]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Use PKGCONFIG to locate gssapi and rpcsecgss header files
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for linux nfs-utils 1.0.8-rc3.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='linux nfs-utils'
425 PACKAGE_TARNAME='nfs-utils'
426 PACKAGE_VERSION='1.0.8-rc3'
427 PACKAGE_STRING='linux nfs-utils 1.0.8-rc3'
428 PACKAGE_BUGREPORT='nfs@lists.sf.net'
429
430 ac_unique_file="tools/getiversion/getiversion.c"
431 ac_default_prefix=/usr
432 ac_unique_file="support/include/config.h.in"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RELEASE statedir statduser enable_nfsv3 IDMAPD enable_nfsv4 CONFIG_NFSV4_TRUE CONFIG_NFSV4_FALSE GSSD SVCGSSD enable_gss CONFIG_GSS_TRUE CONFIG_GSS_FALSE kprefix secure_statd CONFIG_RQUOTAD_TRUE CONFIG_RQUOTAD_FALSE 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 LIBWRAP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CC_FOR_BUILD LD ac_ct_LD LIBSOCKET LIBNSL LIBCRYPT LIBBSD KRBDIR KRBLIBS KRBCFLAGS K5VERS ALLOCA LIBOBJS CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD AM_CPPFLAGS AM_CFLAGS ACLOCAL_AMFLAGS 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_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures linux nfs-utils 1.0.8-rc3 to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 Program names:
1013   --program-prefix=PREFIX            prepend PREFIX to installed program names
1014   --program-suffix=SUFFIX            append SUFFIX to installed program names
1015   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc3:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-nfsv3          enable support for NFSv3 [default=yes]
1033   --enable-nfsv4          enable support for NFSv4 [default=yes]
1034   --enable-gss            enable support for rpcsec_gss [default=yes]
1035   --enable-kprefix        install progs as rpc.knfsd etc
1036   --enable-secure-statd   Only lockd can use statd (security)
1037   --enable-rquotad        enable rquotad [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --enable-shared[=PKGS]
1041                           build shared libraries [default=yes]
1042   --enable-static[=PKGS]
1043                           build static libraries [default=yes]
1044   --enable-fast-install[=PKGS]
1045                           optimize for fast installation [default=yes]
1046   --disable-libtool-lock  avoid locking (might break parallel builds)
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-release=XXX      set release to XXX [1]
1052   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1053   --with-statduser=rpcuser
1054                           statd to run under [rpcuser or nobody]
1055   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1056                  (optionally in PATH)
1057   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058   --with-pic              try to use only PIC/non-PIC objects [default=use
1059                           both]
1060   --with-tags[=TAGS]
1061                           include additional configurations [automatic]
1062   --with-krb5=DIR         use Kerberos v5 installation in DIR
1063
1064 Some influential environment variables:
1065   CC          C compiler command
1066   CFLAGS      C compiler flags
1067   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1068               nonstandard directory <lib dir>
1069   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070               headers in a nonstandard directory <include dir>
1071   CXX         C++ compiler command
1072   CXXFLAGS    C++ compiler flags
1073   CPP         C preprocessor
1074   CXXCPP      C++ preprocessor
1075   F77         Fortran 77 compiler command
1076   FFLAGS      Fortran 77 compiler flags
1077
1078 Use these variables to override the choices made by `configure' or to help
1079 it to find libraries and programs with nonstandard names/locations.
1080
1081 Report bugs to <nfs@lists.sf.net>.
1082 _ACEOF
1083 fi
1084
1085 if test "$ac_init_help" = "recursive"; then
1086   # If there are subdirs, report their specific --help.
1087   ac_popdir=`pwd`
1088   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089     test -d $ac_dir || continue
1090     ac_builddir=.
1091
1092 if test "$ac_dir" != .; then
1093   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094   # A "../" for each directory in $ac_dir_suffix.
1095   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096 else
1097   ac_dir_suffix= ac_top_builddir=
1098 fi
1099
1100 case $srcdir in
1101   .)  # No --srcdir option.  We are building in place.
1102     ac_srcdir=.
1103     if test -z "$ac_top_builddir"; then
1104        ac_top_srcdir=.
1105     else
1106        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107     fi ;;
1108   [\\/]* | ?:[\\/]* )  # Absolute path.
1109     ac_srcdir=$srcdir$ac_dir_suffix;
1110     ac_top_srcdir=$srcdir ;;
1111   *) # Relative path.
1112     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 esac
1115
1116 # Do not use `cd foo && pwd` to compute absolute paths, because
1117 # the directories may not exist.
1118 case `pwd` in
1119 .) ac_abs_builddir="$ac_dir";;
1120 *)
1121   case "$ac_dir" in
1122   .) ac_abs_builddir=`pwd`;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *)
1130   case ${ac_top_builddir}. in
1131   .) ac_abs_top_builddir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_srcdir=$ac_srcdir;;
1138 *)
1139   case $ac_srcdir in
1140   .) ac_abs_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143   esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *)
1148   case $ac_top_srcdir in
1149   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152   esac;;
1153 esac
1154
1155     cd $ac_dir
1156     # Check for guested configure; otherwise get Cygnus style configure.
1157     if test -f $ac_srcdir/configure.gnu; then
1158       echo
1159       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1160     elif test -f $ac_srcdir/configure; then
1161       echo
1162       $SHELL $ac_srcdir/configure  --help=recursive
1163     elif test -f $ac_srcdir/configure.ac ||
1164            test -f $ac_srcdir/configure.in; then
1165       echo
1166       $ac_configure --help
1167     else
1168       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169     fi
1170     cd "$ac_popdir"
1171   done
1172 fi
1173
1174 test -n "$ac_init_help" && exit 0
1175 if $ac_init_version; then
1176   cat <<\_ACEOF
1177 linux nfs-utils configure 1.0.8-rc3
1178 generated by GNU Autoconf 2.59
1179
1180 Copyright (C) 2003 Free Software Foundation, Inc.
1181 This configure script is free software; the Free Software Foundation
1182 gives unlimited permission to copy, distribute and modify it.
1183 _ACEOF
1184   exit 0
1185 fi
1186 exec 5>config.log
1187 cat >&5 <<_ACEOF
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1190
1191 It was created by linux nfs-utils $as_me 1.0.8-rc3, which was
1192 generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194   $ $0 $@
1195
1196 _ACEOF
1197 {
1198 cat <<_ASUNAME
1199 ## --------- ##
1200 ## Platform. ##
1201 ## --------- ##
1202
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220 _ASUNAME
1221
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 for as_dir in $PATH
1224 do
1225   IFS=$as_save_IFS
1226   test -z "$as_dir" && as_dir=.
1227   echo "PATH: $as_dir"
1228 done
1229
1230 } >&5
1231
1232 cat >&5 <<_ACEOF
1233
1234
1235 ## ----------- ##
1236 ## Core tests. ##
1237 ## ----------- ##
1238
1239 _ACEOF
1240
1241
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1247 ac_configure_args=
1248 ac_configure_args0=
1249 ac_configure_args1=
1250 ac_sep=
1251 ac_must_keep_next=false
1252 for ac_pass in 1 2
1253 do
1254   for ac_arg
1255   do
1256     case $ac_arg in
1257     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259     | -silent | --silent | --silen | --sile | --sil)
1260       continue ;;
1261     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     esac
1264     case $ac_pass in
1265     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266     2)
1267       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268       if test $ac_must_keep_next = true; then
1269         ac_must_keep_next=false # Got value, back to normal.
1270       else
1271         case $ac_arg in
1272           *=* | --config-cache | -C | -disable-* | --disable-* \
1273           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275           | -with-* | --with-* | -without-* | --without-* | --x)
1276             case "$ac_configure_args0 " in
1277               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278             esac
1279             ;;
1280           -* ) ac_must_keep_next=true ;;
1281         esac
1282       fi
1283       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284       # Get rid of the leading space.
1285       ac_sep=" "
1286       ;;
1287     esac
1288   done
1289 done
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log.  We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299   # Save into config.log some information that might help in debugging.
1300   {
1301     echo
1302
1303     cat <<\_ASBOX
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1307 _ASBOX
1308     echo
1309     # The following way of writing the cache mishandles newlines in values,
1310 {
1311   (set) 2>&1 |
1312     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313     *ac_space=\ *)
1314       sed -n \
1315         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317       ;;
1318     *)
1319       sed -n \
1320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321       ;;
1322     esac;
1323 }
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1330 _ASBOX
1331     echo
1332     for ac_var in $ac_subst_vars
1333     do
1334       eval ac_val=$`echo $ac_var`
1335       echo "$ac_var='"'"'$ac_val'"'"'"
1336     done | sort
1337     echo
1338
1339     if test -n "$ac_subst_files"; then
1340       cat <<\_ASBOX
1341 ## ------------- ##
1342 ## Output files. ##
1343 ## ------------- ##
1344 _ASBOX
1345       echo
1346       for ac_var in $ac_subst_files
1347       do
1348         eval ac_val=$`echo $ac_var`
1349         echo "$ac_var='"'"'$ac_val'"'"'"
1350       done | sort
1351       echo
1352     fi
1353
1354     if test -s confdefs.h; then
1355       cat <<\_ASBOX
1356 ## ----------- ##
1357 ## confdefs.h. ##
1358 ## ----------- ##
1359 _ASBOX
1360       echo
1361       sed "/^$/d" confdefs.h | sort
1362       echo
1363     fi
1364     test "$ac_signal" != 0 &&
1365       echo "$as_me: caught signal $ac_signal"
1366     echo "$as_me: exit $exit_status"
1367   } >&5
1368   rm -f core *.core &&
1369   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370     exit $exit_status
1371      ' 0
1372 for ac_signal in 1 2 13 15; do
1373   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 done
1375 ac_signal=0
1376
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 echo >confdefs.h
1381
1382 # Predefined preprocessor variables.
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 _ACEOF
1407
1408
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412   if test "x$prefix" != xNONE; then
1413     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414   else
1415     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416   fi
1417 fi
1418 for ac_site_file in $CONFIG_SITE; do
1419   if test -r "$ac_site_file"; then
1420     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422     sed 's/^/| /' "$ac_site_file" >&5
1423     . "$ac_site_file"
1424   fi
1425 done
1426
1427 if test -r "$cache_file"; then
1428   # Some versions of bash will fail to source /dev/null (special
1429   # files actually), so we avoid doing that.
1430   if test -f "$cache_file"; then
1431     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1433     case $cache_file in
1434       [\\/]* | ?:[\\/]* ) . $cache_file;;
1435       *)                      . ./$cache_file;;
1436     esac
1437   fi
1438 else
1439   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1441   >$cache_file
1442 fi
1443
1444 # Check that the precious variables saved in the cache have kept the same
1445 # value.
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450   eval ac_new_set=\$ac_env_${ac_var}_set
1451   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452   eval ac_new_val="\$ac_env_${ac_var}_value"
1453   case $ac_old_set,$ac_new_set in
1454     set,)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,set)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,);;
1463     *)
1464       if test "x$ac_old_val" != "x$ac_new_val"; then
1465         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468 echo "$as_me:   former value:  $ac_old_val" >&2;}
1469         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470 echo "$as_me:   current value: $ac_new_val" >&2;}
1471         ac_cache_corrupted=:
1472       fi;;
1473   esac
1474   # Pass precious variables to config.status.
1475   if test "$ac_new_set" = set; then
1476     case $ac_new_val in
1477     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479     *) ac_arg=$ac_var=$ac_new_val ;;
1480     esac
1481     case " $ac_configure_args " in
1482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484     esac
1485   fi
1486 done
1487 if $ac_cache_corrupted; then
1488   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492    { (exit 1); exit 1; }; }
1493 fi
1494
1495 ac_ext=c
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 ac_aux_dir=
1528 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1529   if test -f $ac_dir/install-sh; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/install-sh -c"
1532     break
1533   elif test -f $ac_dir/install.sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install.sh -c"
1536     break
1537   elif test -f $ac_dir/shtool; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/shtool install -c"
1540     break
1541   fi
1542 done
1543 if test -z "$ac_aux_dir"; then
1544   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546    { (exit 1); exit 1; }; }
1547 fi
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1551
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565   ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569    { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 fi
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1578 build=$ac_cv_build
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591   ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 fi
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1600 host=$ac_cv_host
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606
1607 case aclocal in
1608   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
1609   *)                      ac_macro_dir=$srcdir/aclocal ;;
1610 esac
1611 if test -d "$ac_macro_dir"; then :
1612 else
1613   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1614 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1615    { (exit 1); exit 1; }; }
1616 fi
1617
1618 am__api_version="1.9"
1619 # Find a good install program.  We prefer a C program (faster),
1620 # so one script is as good as another.  But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1625 # AIX /bin/install
1626 # AmigaOS /C/install, which installs bootblocks on floppy discs
1627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # OS/2's system install, which has a completely different semantic
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634 if test -z "$INSTALL"; then
1635 if test "${ac_cv_path_install+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   # Account for people who put trailing slashes in PATH elements.
1644 case $as_dir/ in
1645   ./ | .// | /cC/* | \
1646   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1648   /usr/ucb/* ) ;;
1649   *)
1650     # OSF1 and SCO ODT 3.0 have their own names for install.
1651     # Don't use installbsd from OSF since it installs stuff as root
1652     # by default.
1653     for ac_prog in ginstall scoinst install; do
1654       for ac_exec_ext in '' $ac_executable_extensions; do
1655         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656           if test $ac_prog = install &&
1657             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658             # AIX install.  It has an incompatible calling convention.
1659             :
1660           elif test $ac_prog = install &&
1661             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662             # program-specific install script used by HP pwplus--don't use.
1663             :
1664           else
1665             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1666             break 3
1667           fi
1668         fi
1669       done
1670     done
1671     ;;
1672 esac
1673 done
1674
1675
1676 fi
1677   if test "${ac_cv_path_install+set}" = set; then
1678     INSTALL=$ac_cv_path_install
1679   else
1680     # As a last resort, use the slow shell script.  We don't cache a
1681     # path for INSTALL within a source directory, because that will
1682     # break other packages using the cache if that directory is
1683     # removed, or if the path is relative.
1684     INSTALL=$ac_install_sh
1685   fi
1686 fi
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1689
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1700 # Just in case
1701 sleep 1
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments.  Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1707 # directory).
1708 if (
1709    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710    if test "$*" = "X"; then
1711       # -L didn't work.
1712       set X `ls -t $srcdir/configure conftest.file`
1713    fi
1714    rm -f conftest.file
1715    if test "$*" != "X $srcdir/configure conftest.file" \
1716       && test "$*" != "X conftest.file $srcdir/configure"; then
1717
1718       # If neither matched, then we have a broken ls.  This can happen
1719       # if, for instance, CONFIG_SHELL is bash and it inherits a
1720       # broken ls alias from the environment.  This has actually
1721       # happened.  Such a system could not be considered "sane".
1722       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1725 alias in your environment" >&2;}
1726    { (exit 1); exit 1; }; }
1727    fi
1728
1729    test "$2" = conftest.file
1730    )
1731 then
1732    # Ok.
1733    :
1734 else
1735    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739    { (exit 1); exit 1; }; }
1740 fi
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $.  echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1752 _ACEOF
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 rm conftest.sed
1755
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1758
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762   am_missing_run="$MISSING --run "
1763 else
1764   am_missing_run=
1765   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1767 fi
1768
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770   # We used to keeping the `.' as first argument, in order to
1771   # allow $(mkdir_p) to be used without argument.  As in
1772   #   $(mkdir_p) $(somedir)
1773   # where $(somedir) is conditionally defined.  However this is wrong
1774   # for two reasons:
1775   #  1. if the package is installed by a user who cannot write `.'
1776   #     make install will fail,
1777   #  2. the above comment should most certainly read
1778   #     $(mkdir_p) $(DESTDIR)$(somedir)
1779   #     so it does not work when $(somedir) is undefined and
1780   #     $(DESTDIR) is not.
1781   #  To support the latter case, we have to write
1782   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783   #  so the `.' trick is pointless.
1784   mkdir_p='mkdir -p --'
1785 else
1786   # On NextStep and OpenStep, the `mkdir' command does not
1787   # recognize any option.  It will interpret all options as
1788   # directories to create, and then abort because `.' already
1789   # exists.
1790   for d in ./-p ./--version;
1791   do
1792     test -d $d && rmdir $d
1793   done
1794   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795   if test -f "$ac_aux_dir/mkinstalldirs"; then
1796     mkdir_p='$(mkinstalldirs)'
1797   else
1798     mkdir_p='$(install_sh) -d'
1799   fi
1800 fi
1801
1802 for ac_prog in gawk mawk nawk awk
1803 do
1804   # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$AWK"; then
1812   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_AWK="$ac_prog"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 AWK=$ac_cv_prog_AWK
1831 if test -n "$AWK"; then
1832   echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839   test -n "$AWK" && break
1840 done
1841
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   cat >conftest.make <<\_ACEOF
1849 all:
1850         @echo 'ac_maketemp="$(MAKE)"'
1851 _ACEOF
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855   eval ac_cv_prog_make_${ac_make}_set=yes
1856 else
1857   eval ac_cv_prog_make_${ac_make}_set=no
1858 fi
1859 rm -f conftest.make
1860 fi
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862   echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864   SET_MAKE=
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868   SET_MAKE="MAKE=${MAKE-make}"
1869 fi
1870
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1874   am__leading_dot=.
1875 else
1876   am__leading_dot=_
1877 fi
1878 rmdir .tst 2>/dev/null
1879
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882    test -f $srcdir/config.status; then
1883   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885    { (exit 1); exit 1; }; }
1886 fi
1887
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890   if (cygpath --version) >/dev/null 2>/dev/null; then
1891     CYGPATH_W='cygpath -w'
1892   else
1893     CYGPATH_W=echo
1894   fi
1895 fi
1896
1897
1898 # Define the identity of the package.
1899  PACKAGE='nfs-utils'
1900  VERSION='1.0.8-rc3'
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1910 _ACEOF
1911
1912 # Some tools Automake needs.
1913
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1915
1916
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1918
1919
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1921
1922
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1924
1925
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1929
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'.  However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935   if test -n "$ac_tool_prefix"; then
1936   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$STRIP"; then
1944   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964   echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971 fi
1972 if test -z "$ac_cv_prog_STRIP"; then
1973   ac_ct_STRIP=$STRIP
1974   # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_STRIP"; then
1982   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991     ac_cv_prog_ac_ct_STRIP="strip"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1999 fi
2000 fi
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010   STRIP=$ac_ct_STRIP
2011 else
2012   STRIP="$ac_cv_prog_STRIP"
2013 fi
2014
2015 fi
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2017
2018 # We need awk for the "check" target.  The system "awk" is bad on
2019 # some platforms.
2020 # Always define AMTAR for backward compatibility.
2021
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2023
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034 # Check whether --with-release or --without-release was given.
2035 if test "${with_release+set}" = set; then
2036   withval="$with_release"
2037   RELEASE=$withval
2038 else
2039   RELEASE=1
2040 fi;
2041
2042
2043 # Check whether --with-statedir or --without-statedir was given.
2044 if test "${with_statedir+set}" = set; then
2045   withval="$with_statedir"
2046   statedir=$withval
2047 else
2048   statedir=/var/lib/nfs
2049 fi;
2050
2051
2052 # Check whether --with-statduser or --without-statduser was given.
2053 if test "${with_statduser+set}" = set; then
2054   withval="$with_statduser"
2055   statduser=$withval
2056 else
2057   if test "x$cross_compiling" = "xno"; then
2058                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2059                         statduser=rpcuser
2060                 else
2061                         statduser=nobody
2062                 fi
2063         else
2064                 statduser=nobody
2065         fi
2066 fi;
2067
2068 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2069 if test "${enable_nfsv3+set}" = set; then
2070   enableval="$enable_nfsv3"
2071   enable_nfsv3=$enableval
2072 else
2073   enable_nfsv3=yes
2074 fi;
2075         if test "$enable_nfsv3" = yes; then
2076
2077 cat >>confdefs.h <<\_ACEOF
2078 #define NFS3_SUPPORTED 1
2079 _ACEOF
2080
2081         else
2082                 enable_nfsv3=
2083         fi
2084
2085 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2086 if test "${enable_nfsv4+set}" = set; then
2087   enableval="$enable_nfsv4"
2088   enable_nfsv4=$enableval
2089 else
2090   enable_nfsv4=yes
2091 fi;
2092         if test "$enable_nfsv4" = yes; then
2093
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS4_SUPPORTED 1
2096 _ACEOF
2097
2098                 IDMAPD=idmapd
2099         else
2100                 enable_nfsv4=
2101                 IDMAPD=
2102         fi
2103
2104
2105
2106
2107 if test "$enable_nfsv4" = "yes"; then
2108   CONFIG_NFSV4_TRUE=
2109   CONFIG_NFSV4_FALSE='#'
2110 else
2111   CONFIG_NFSV4_TRUE='#'
2112   CONFIG_NFSV4_FALSE=
2113 fi
2114
2115 # Check whether --enable-gss or --disable-gss was given.
2116 if test "${enable_gss+set}" = set; then
2117   enableval="$enable_gss"
2118   enable_gss=$enableval
2119 else
2120   enable_gss=yes
2121 fi;
2122         if test "$enable_gss" = yes; then
2123
2124 cat >>confdefs.h <<\_ACEOF
2125 #define GSS_SUPPORTED 1
2126 _ACEOF
2127
2128                 GSSD=gssd
2129                 SVCGSSD=svcgssd
2130         else
2131                 enable_gss=
2132                 GSSD=
2133                 SVCGSSD=
2134         fi
2135
2136
2137
2138
2139
2140 if test "$enable_gss" = "yes"; then
2141   CONFIG_GSS_TRUE=
2142   CONFIG_GSS_FALSE='#'
2143 else
2144   CONFIG_GSS_TRUE='#'
2145   CONFIG_GSS_FALSE=
2146 fi
2147
2148 # Check whether --enable-kprefix or --disable-kprefix was given.
2149 if test "${enable_kprefix+set}" = set; then
2150   enableval="$enable_kprefix"
2151   test "$enableval" = "yes" && kprefix=k
2152 else
2153   kprefix=
2154 fi;
2155
2156 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2157 if test "${enable_secure_statd+set}" = set; then
2158   enableval="$enable_secure_statd"
2159   test "$enableval" = "yes" && secure_statd=yes
2160 else
2161   secure_statd=no
2162 fi;
2163         if test "$secure_statd" = yes; then
2164
2165 cat >>confdefs.h <<\_ACEOF
2166 #define RESTRICTED_STATD 1
2167 _ACEOF
2168
2169         fi
2170
2171 # Check whether --enable-rquotad or --disable-rquotad was given.
2172 if test "${enable_rquotad+set}" = set; then
2173   enableval="$enable_rquotad"
2174   enable_rquotad=$enableval
2175 else
2176   enable_rquotad=yes
2177 fi;
2178         if test "$enable_rquotad" = yes; then
2179                 RQUOTAD=rquotad
2180         else
2181                 RQUOTAD=
2182         fi
2183
2184
2185 if test "$enable_rquotad" = "yes"; then
2186   CONFIG_RQUOTAD_TRUE=
2187   CONFIG_RQUOTAD_FALSE='#'
2188 else
2189   CONFIG_RQUOTAD_TRUE='#'
2190   CONFIG_RQUOTAD_FALSE=
2191 fi
2192
2193
2194 # Check whether user wants TCP wrappers support
2195 DEPDIR="${am__leading_dot}deps"
2196
2197           ac_config_commands="$ac_config_commands depfiles"
2198
2199
2200 am_make=${MAKE-make}
2201 cat > confinc << 'END'
2202 am__doit:
2203         @echo done
2204 .PHONY: am__doit
2205 END
2206 # If we don't find an include directive, just comment out the code.
2207 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2208 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2209 am__include="#"
2210 am__quote=
2211 _am_result=none
2212 # First try GNU make style include.
2213 echo "include confinc" > confmf
2214 # We grep out `Entering directory' and `Leaving directory'
2215 # messages which can occur if `w' ends up in MAKEFLAGS.
2216 # In particular we don't look at `^make:' because GNU make might
2217 # be invoked under some other name (usually "gmake"), in which
2218 # case it prints its new name instead of `make'.
2219 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2220    am__include=include
2221    am__quote=
2222    _am_result=GNU
2223 fi
2224 # Now try BSD make style include.
2225 if test "$am__include" = "#"; then
2226    echo '.include "confinc"' > confmf
2227    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2228       am__include=.include
2229       am__quote="\""
2230       _am_result=BSD
2231    fi
2232 fi
2233
2234
2235 echo "$as_me:$LINENO: result: $_am_result" >&5
2236 echo "${ECHO_T}$_am_result" >&6
2237 rm -f confinc confmf
2238
2239 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2240 if test "${enable_dependency_tracking+set}" = set; then
2241   enableval="$enable_dependency_tracking"
2242
2243 fi;
2244 if test "x$enable_dependency_tracking" != xno; then
2245   am_depcomp="$ac_aux_dir/depcomp"
2246   AMDEPBACKSLASH='\'
2247 fi
2248
2249
2250 if test "x$enable_dependency_tracking" != xno; then
2251   AMDEP_TRUE=
2252   AMDEP_FALSE='#'
2253 else
2254   AMDEP_TRUE='#'
2255   AMDEP_FALSE=
2256 fi
2257
2258
2259
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294   echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301 fi
2302 if test -z "$ac_cv_prog_CC"; then
2303   ac_ct_CC=$CC
2304   # Extract the first word of "gcc", so it can be a program name with args.
2305 set dummy gcc; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$ac_ct_CC"; then
2312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321     ac_cv_prog_ac_ct_CC="gcc"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327
2328 fi
2329 fi
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331 if test -n "$ac_ct_CC"; then
2332   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333 echo "${ECHO_T}$ac_ct_CC" >&6
2334 else
2335   echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339   CC=$ac_ct_CC
2340 else
2341   CC="$ac_cv_prog_CC"
2342 fi
2343
2344 if test -z "$CC"; then
2345   if test -n "$ac_tool_prefix"; then
2346   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}cc; ac_word=$2
2348 echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   if test -n "$CC"; then
2354   ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359   IFS=$as_save_IFS
2360   test -z "$as_dir" && as_dir=.
2361   for ac_exec_ext in '' $ac_executable_extensions; do
2362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363     ac_cv_prog_CC="${ac_tool_prefix}cc"
2364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365     break 2
2366   fi
2367 done
2368 done
2369
2370 fi
2371 fi
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374   echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2376 else
2377   echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2379 fi
2380
2381 fi
2382 if test -z "$ac_cv_prog_CC"; then
2383   ac_ct_CC=$CC
2384   # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$ac_ct_CC"; then
2392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401     ac_cv_prog_ac_ct_CC="cc"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407
2408 fi
2409 fi
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6
2414 else
2415   echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2417 fi
2418
2419   CC=$ac_ct_CC
2420 else
2421   CC="$ac_cv_prog_CC"
2422 fi
2423
2424 fi
2425 if test -z "$CC"; then
2426   # Extract the first word of "cc", so it can be a program name with args.
2427 set dummy cc; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436   ac_prog_rejected=no
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445        ac_prog_rejected=yes
2446        continue
2447      fi
2448     ac_cv_prog_CC="cc"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454
2455 if test $ac_prog_rejected = yes; then
2456   # We found a bogon in the path, so make sure we never use it.
2457   set dummy $ac_cv_prog_CC
2458   shift
2459   if test $# != 0; then
2460     # We chose a different compiler from the bogus one.
2461     # However, it has the same basename, so the bogon will be chosen
2462     # first if we set CC to just the basename; use the full file name.
2463     shift
2464     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2465   fi
2466 fi
2467 fi
2468 fi
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471   echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6
2473 else
2474   echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2476 fi
2477
2478 fi
2479 if test -z "$CC"; then
2480   if test -n "$ac_tool_prefix"; then
2481   for ac_prog in cl
2482   do
2483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$CC"; then
2491   ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518     test -n "$CC" && break
2519   done
2520 fi
2521 if test -z "$CC"; then
2522   ac_ct_CC=$CC
2523   for ac_prog in cl
2524 do
2525   # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$ac_ct_CC"; then
2533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542     ac_cv_prog_ac_ct_CC="$ac_prog"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548
2549 fi
2550 fi
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2554 echo "${ECHO_T}$ac_ct_CC" >&6
2555 else
2556   echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2558 fi
2559
2560   test -n "$ac_ct_CC" && break
2561 done
2562
2563   CC=$ac_ct_CC
2564 fi
2565
2566 fi
2567
2568
2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }
2574
2575 # Provide some information about the compiler.
2576 echo "$as_me:$LINENO:" \
2577      "checking for C compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2580   (eval $ac_compiler --version </dev/null >&5) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2585   (eval $ac_compiler -v </dev/null >&5) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2590   (eval $ac_compiler -V </dev/null >&5) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }
2594
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 ac_clean_files_save=$ac_clean_files
2611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2612 # Try to create an executable without -o first, disregard a.out.
2613 # It will help us diagnose broken compilers, and finding out an intuition
2614 # of exeext.
2615 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2617 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2619   (eval $ac_link_default) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; then
2623   # Find the output, starting from the most likely.  This scheme is
2624 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2625 # resort.
2626
2627 # Be careful to initialize this variable, since it used to be cached.
2628 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2629 ac_cv_exeext=
2630 # b.out is created by i960 compilers.
2631 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2632 do
2633   test -f "$ac_file" || continue
2634   case $ac_file in
2635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2636         ;;
2637     conftest.$ac_ext )
2638         # This is the source file.
2639         ;;
2640     [ab].out )
2641         # We found the default executable, but exeext='' is most
2642         # certainly right.
2643         break;;
2644     *.* )
2645         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646         # FIXME: I believe we export ac_cv_exeext for Libtool,
2647         # but it would be cool to find out if it's true.  Does anybody
2648         # maintain Libtool? --akim.
2649         export ac_cv_exeext
2650         break;;
2651     * )
2652         break;;
2653   esac
2654 done
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&2;}
2663    { (exit 77); exit 77; }; }
2664 fi
2665
2666 ac_exeext=$ac_cv_exeext
2667 echo "$as_me:$LINENO: result: $ac_file" >&5
2668 echo "${ECHO_T}$ac_file" >&6
2669
2670 # Check the compiler produces executables we can run.  If not, either
2671 # the compiler is broken, or we cross compile.
2672 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2674 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675 # If not cross compiling, check that we can run a simple program.
2676 if test "$cross_compiling" != yes; then
2677   if { ac_try='./$ac_file'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683     cross_compiling=no
2684   else
2685     if test "$cross_compiling" = maybe; then
2686         cross_compiling=yes
2687     else
2688         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'.
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot run C compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695     fi
2696   fi
2697 fi
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2700
2701 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702 ac_clean_files=$ac_clean_files_save
2703 # Check the compiler produces executables we can run.  If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2707 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708 echo "${ECHO_T}$cross_compiling" >&6
2709
2710 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713   (eval $ac_link) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; then
2717   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2719 # work properly (i.e., refer to `conftest.exe'), while it won't with
2720 # `rm'.
2721 for ac_file in conftest.exe conftest conftest.*; do
2722   test -f "$ac_file" || continue
2723   case $ac_file in
2724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2725     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2726           export ac_cv_exeext
2727           break;;
2728     * ) break;;
2729   esac
2730 done
2731 else
2732   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 rm -f conftest$ac_cv_exeext
2740 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6
2742
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2745 ac_exeext=$EXEEXT
2746 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2748 if test "${ac_cv_objext+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; then
2772   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2775     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776        break;;
2777   esac
2778 done
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786 See \`config.log' for more details." >&2;}
2787    { (exit 1); exit 1; }; }
2788 fi
2789
2790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791 fi
2792 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793 echo "${ECHO_T}$ac_cv_objext" >&6
2794 OBJEXT=$ac_cv_objext
2795 ac_objext=$OBJEXT
2796 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799   echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801   cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807
2808 int
2809 main ()
2810 {
2811 #ifndef __GNUC__
2812        choke me
2813 #endif
2814
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821   (eval $ac_compile) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   ac_compiler_gnu=yes
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
2846 fi
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2853 GCC=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 CFLAGS="-g"
2857 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_g+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879   (eval $ac_compile) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } &&
2886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; } &&
2892          { ac_try='test -s conftest.$ac_objext'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898   ac_cv_prog_cc_g=yes
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 ac_cv_prog_cc_g=no
2904 fi
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2908 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2909 if test "$ac_test_CFLAGS" = set; then
2910   CFLAGS=$ac_save_CFLAGS
2911 elif test $ac_cv_prog_cc_g = yes; then
2912   if test "$GCC" = yes; then
2913     CFLAGS="-g -O2"
2914   else
2915     CFLAGS="-g"
2916   fi
2917 else
2918   if test "$GCC" = yes; then
2919     CFLAGS="-O2"
2920   else
2921     CFLAGS=
2922   fi
2923 fi
2924 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2925 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   ac_cv_prog_cc_stdc=no
2930 ac_save_CC=$CC
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #include <stdarg.h>
2938 #include <stdio.h>
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2945      char **p;
2946      int i;
2947 {
2948   return p[i];
2949 }
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2951 {
2952   char *s;
2953   va_list v;
2954   va_start (v,p);
2955   s = g (p, va_arg (v,int));
2956   va_end (v);
2957   return s;
2958 }
2959
2960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2961    function prototypes and stuff, but not '\xHH' hex character constants.
2962    These don't provoke an error unfortunately, instead are silently treated
2963    as 'x'.  The following induces an error, until -std1 is added to get
2964    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2965    array size at least.  It's necessary to write '\x00'==0 to get something
2966    that's true only with -std1.  */
2967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2968
2969 int test (int i, double x);
2970 struct s1 {int (*f) (int a);};
2971 struct s2 {int (*f) (double a);};
2972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2973 int argc;
2974 char **argv;
2975 int
2976 main ()
2977 {
2978 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 # Don't try gcc -ansi; that turns off useful extensions and
2984 # breaks some systems' header files.
2985 # AIX                   -qlanglvl=ansi
2986 # Ultrix and OSF/1      -std1
2987 # HP-UX 10.20 and later -Ae
2988 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2989 # SVR4                  -Xc -D__EXTENSIONS__
2990 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2991 do
2992   CC="$ac_save_CC $ac_arg"
2993   rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995   (eval $ac_compile) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } &&
3002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; } &&
3008          { ac_try='test -s conftest.$ac_objext'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; }; then
3014   ac_cv_prog_cc_stdc=$ac_arg
3015 break
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 fi
3021 rm -f conftest.err conftest.$ac_objext
3022 done
3023 rm -f conftest.$ac_ext conftest.$ac_objext
3024 CC=$ac_save_CC
3025
3026 fi
3027
3028 case "x$ac_cv_prog_cc_stdc" in
3029   x|xno)
3030     echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6 ;;
3032   *)
3033     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3034 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3035     CC="$CC $ac_cv_prog_cc_stdc" ;;
3036 esac
3037
3038 # Some people use a C++ compiler to compile C.  Since we use `exit',
3039 # in C++ we need to declare it.  In case someone uses the same compiler
3040 # for both compiling C and C++ we need to have the C++ compiler decide
3041 # the declaration of exit, since it's the most demanding environment.
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #ifndef __cplusplus
3044   choke me
3045 #endif
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049   (eval $ac_compile) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064   (eval $ac_try) 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   for ac_declaration in \
3069    '' \
3070    'extern "C" void std::exit (int) throw (); using std::exit;' \
3071    'extern "C" void std::exit (int); using std::exit;' \
3072    'extern "C" void exit (int) throw ();' \
3073    'extern "C" void exit (int);' \
3074    'void exit (int);'
3075 do
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 $ac_declaration
3083 #include <stdlib.h>
3084 int
3085 main ()
3086 {
3087 exit (42);
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094   (eval $ac_compile) 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 continue
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 $ac_declaration
3128 int
3129 main ()
3130 {
3131 exit (42);
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; } &&
3151          { ac_try='test -s conftest.$ac_objext'
3152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153   (eval $ac_try) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; }; then
3157   break
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 fi
3163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164 done
3165 rm -f conftest*
3166 if test -n "$ac_declaration"; then
3167   echo '#ifdef __cplusplus' >>confdefs.h
3168   echo $ac_declaration      >>confdefs.h
3169   echo '#endif'             >>confdefs.h
3170 fi
3171
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 fi
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
3184 depcc="$CC"   am_compiler_list=
3185
3186 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3187 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3188 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3192   # We make a subdir and do the tests there.  Otherwise we can end up
3193   # making bogus files that we don't know about and never remove.  For
3194   # instance it was reported that on HP-UX the gcc test will end up
3195   # making a dummy file named `D' -- because `-MD' means `put the output
3196   # in D'.
3197   mkdir conftest.dir
3198   # Copy depcomp to subdir because otherwise we won't find it if we're
3199   # using a relative directory.
3200   cp "$am_depcomp" conftest.dir
3201   cd conftest.dir
3202   # We will build objects and dependencies in a subdirectory because
3203   # it helps to detect inapplicable dependency modes.  For instance
3204   # both Tru64's cc and ICC support -MD to output dependencies as a
3205   # side effect of compilation, but ICC will put the dependencies in
3206   # the current directory while Tru64 will put them in the object
3207   # directory.
3208   mkdir sub
3209
3210   am_cv_CC_dependencies_compiler_type=none
3211   if test "$am_compiler_list" = ""; then
3212      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3213   fi
3214   for depmode in $am_compiler_list; do
3215     # Setup a source with many dependencies, because some compilers
3216     # like to wrap large dependency lists on column 80 (with \), and
3217     # we should not choose a depcomp mode which is confused by this.
3218     #
3219     # We need to recreate these files for each test, as the compiler may
3220     # overwrite some of them when testing with obscure command lines.
3221     # This happens at least with the AIX C compiler.
3222     : > sub/conftest.c
3223     for i in 1 2 3 4 5 6; do
3224       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3225       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3226       # Solaris 8's {/usr,}/bin/sh.
3227       touch sub/conftst$i.h
3228     done
3229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230
3231     case $depmode in
3232     nosideeffect)
3233       # after this tag, mechanisms are not by side-effect, so they'll
3234       # only be used when explicitly requested
3235       if test "x$enable_dependency_tracking" = xyes; then
3236         continue
3237       else
3238         break
3239       fi
3240       ;;
3241     none) break ;;
3242     esac
3243     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244     # mode.  It turns out that the SunPro C++ compiler does not properly
3245     # handle `-M -o', and we need to detect this.
3246     if depmode=$depmode \
3247        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250          >/dev/null 2>conftest.err &&
3251        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254       # icc doesn't choke on unknown options, it will just issue warnings
3255       # or remarks (even with -Werror).  So we grep stderr for any message
3256       # that says an option was ignored or not supported.
3257       # When given -MP, icc 7.0 and 7.1 complain thusly:
3258       #   icc: Command line warning: ignoring option '-M'; no argument required
3259       # The diagnosis changed in icc 8.0:
3260       #   icc: Command line remark: option '-MP' not supported
3261       if (grep 'ignoring option' conftest.err ||
3262           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3263         am_cv_CC_dependencies_compiler_type=$depmode
3264         break
3265       fi
3266     fi
3267   done
3268
3269   cd ..
3270   rm -rf conftest.dir
3271 else
3272   am_cv_CC_dependencies_compiler_type=none
3273 fi
3274
3275 fi
3276 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3277 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3279
3280
3281
3282 if
3283   test "x$enable_dependency_tracking" != xno \
3284   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3285   am__fastdepCC_TRUE=
3286   am__fastdepCC_FALSE='#'
3287 else
3288   am__fastdepCC_TRUE='#'
3289   am__fastdepCC_FALSE=
3290 fi
3291
3292
3293
3294
3295   TCPW_MSG="no"
3296
3297 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3298 if test "${with_tcp_wrappers+set}" = set; then
3299   withval="$with_tcp_wrappers"
3300
3301         if test "x$withval" != "xno" ; then
3302             saved_LIBS="$LIBS"
3303             saved_LDFLAGS="$LDFLAGS"
3304             saved_CPPFLAGS="$CPPFLAGS"
3305             if test -n "${withval}" -a "${withval}" != "yes"; then
3306                 if test -d "${withval}/lib"; then
3307                     if test -n "${need_dash_r}"; then
3308                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3309                     else
3310                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3311                     fi
3312                 else
3313                     if test -n "${need_dash_r}"; then
3314                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3315                     else
3316                         LDFLAGS="-L${withval} ${LDFLAGS}"
3317                     fi
3318                 fi
3319                 if test -d "${withval}/include"; then
3320                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3321                 else
3322                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3323                 fi
3324             fi
3325             LIBWRAP="-lwrap"
3326             LIBS="$LIBWRAP $LIBS"
3327             echo "$as_me:$LINENO: checking for libwrap" >&5
3328 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3329             cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335
3336                 #include <tcpd.h>
3337                 int deny_severity = 0, allow_severity = 0;
3338
3339 int
3340 main ()
3341 {
3342 hosts_access(0);
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349   (eval $ac_link) 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } &&
3356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; } &&
3362          { ac_try='test -s conftest$ac_exeext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368
3369                 echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3371
3372
3373 cat >>confdefs.h <<\_ACEOF
3374 #define LIBWRAP 1
3375 _ACEOF
3376
3377                 TCPW_MSG="yes"
3378
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3385 echo "$as_me: error: *** libwrap missing" >&2;}
3386    { (exit 1); exit 1; }; }
3387
3388
3389 fi
3390 rm -f conftest.err conftest.$ac_objext \
3391       conftest$ac_exeext conftest.$ac_ext
3392             LIBS="$saved_LIBS"
3393         fi
3394
3395
3396 fi;
3397
3398
3399
3400
3401           ac_config_headers="$ac_config_headers support/include/config.h"
3402
3403
3404 # Checks for programs.
3405 ac_ext=cc
3406 ac_cpp='$CXXCPP $CPPFLAGS'
3407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3410 if test -n "$ac_tool_prefix"; then
3411   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3412   do
3413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_CXX+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -n "$CXX"; then
3421   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436
3437 fi
3438 fi
3439 CXX=$ac_cv_prog_CXX
3440 if test -n "$CXX"; then
3441   echo "$as_me:$LINENO: result: $CXX" >&5
3442 echo "${ECHO_T}$CXX" >&6
3443 else
3444   echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3446 fi
3447
3448     test -n "$CXX" && break
3449   done
3450 fi
3451 if test -z "$CXX"; then
3452   ac_ct_CXX=$CXX
3453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3454 do
3455   # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   if test -n "$ac_ct_CXX"; then
3463   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   for ac_exec_ext in '' $ac_executable_extensions; do
3471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_prog_ac_ct_CXX="$ac_prog"
3473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477 done
3478
3479 fi
3480 fi
3481 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3482 if test -n "$ac_ct_CXX"; then
3483   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3484 echo "${ECHO_T}$ac_ct_CXX" >&6
3485 else
3486   echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489
3490   test -n "$ac_ct_CXX" && break
3491 done
3492 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3493
3494   CXX=$ac_ct_CXX
3495 fi
3496
3497
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500      "checking for C++ compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503   (eval $ac_compiler --version </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508   (eval $ac_compiler -v </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513   (eval $ac_compiler -V </dev/null >&5) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }
3517
3518 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3519 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533 #ifndef __GNUC__
3534        choke me
3535 #endif
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543   (eval $ac_compile) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552   (eval $ac_try) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; }; then
3562   ac_compiler_gnu=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 ac_compiler_gnu=no
3568 fi
3569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3571
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3574 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3575 GXX=`test $ac_compiler_gnu = yes && echo yes`
3576 ac_test_CXXFLAGS=${CXXFLAGS+set}
3577 ac_save_CXXFLAGS=$CXXFLAGS
3578 CXXFLAGS="-g"
3579 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3580 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3581 if test "${ac_cv_prog_cxx_g+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601   (eval $ac_compile) 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } &&
3608          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; } &&
3614          { ac_try='test -s conftest.$ac_objext'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620   ac_cv_prog_cxx_g=yes
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 ac_cv_prog_cxx_g=no
3626 fi
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3631 if test "$ac_test_CXXFLAGS" = set; then
3632   CXXFLAGS=$ac_save_CXXFLAGS
3633 elif test $ac_cv_prog_cxx_g = yes; then
3634   if test "$GXX" = yes; then
3635     CXXFLAGS="-g -O2"
3636   else
3637     CXXFLAGS="-g"
3638   fi
3639 else
3640   if test "$GXX" = yes; then
3641     CXXFLAGS="-O2"
3642   else
3643     CXXFLAGS=
3644   fi
3645 fi
3646 for ac_declaration in \
3647    '' \
3648    'extern "C" void std::exit (int) throw (); using std::exit;' \
3649    'extern "C" void std::exit (int); using std::exit;' \
3650    'extern "C" void exit (int) throw ();' \
3651    'extern "C" void exit (int);' \
3652    'void exit (int);'
3653 do
3654   cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660 $ac_declaration
3661 #include <stdlib.h>
3662 int
3663 main ()
3664 {
3665 exit (42);
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672   (eval $ac_compile) 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; } &&
3685          { ac_try='test -s conftest.$ac_objext'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   :
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 continue
3697 fi
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 $ac_declaration
3706 int
3707 main ()
3708 {
3709 exit (42);
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } &&
3723          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; } &&
3729          { ac_try='test -s conftest.$ac_objext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742 done
3743 rm -f conftest*
3744 if test -n "$ac_declaration"; then
3745   echo '#ifdef __cplusplus' >>confdefs.h
3746   echo $ac_declaration      >>confdefs.h
3747   echo '#endif'             >>confdefs.h
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 depcc="$CXX"  am_compiler_list=
3757
3758 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3759 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3760 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764   # We make a subdir and do the tests there.  Otherwise we can end up
3765   # making bogus files that we don't know about and never remove.  For
3766   # instance it was reported that on HP-UX the gcc test will end up
3767   # making a dummy file named `D' -- because `-MD' means `put the output
3768   # in D'.
3769   mkdir conftest.dir
3770   # Copy depcomp to subdir because otherwise we won't find it if we're
3771   # using a relative directory.
3772   cp "$am_depcomp" conftest.dir
3773   cd conftest.dir
3774   # We will build objects and dependencies in a subdirectory because
3775   # it helps to detect inapplicable dependency modes.  For instance
3776   # both Tru64's cc and ICC support -MD to output dependencies as a
3777   # side effect of compilation, but ICC will put the dependencies in
3778   # the current directory while Tru64 will put them in the object
3779   # directory.
3780   mkdir sub
3781
3782   am_cv_CXX_dependencies_compiler_type=none
3783   if test "$am_compiler_list" = ""; then
3784      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785   fi
3786   for depmode in $am_compiler_list; do
3787     # Setup a source with many dependencies, because some compilers
3788     # like to wrap large dependency lists on column 80 (with \), and
3789     # we should not choose a depcomp mode which is confused by this.
3790     #
3791     # We need to recreate these files for each test, as the compiler may
3792     # overwrite some of them when testing with obscure command lines.
3793     # This happens at least with the AIX C compiler.
3794     : > sub/conftest.c
3795     for i in 1 2 3 4 5 6; do
3796       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798       # Solaris 8's {/usr,}/bin/sh.
3799       touch sub/conftst$i.h
3800     done
3801     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3802
3803     case $depmode in
3804     nosideeffect)
3805       # after this tag, mechanisms are not by side-effect, so they'll
3806       # only be used when explicitly requested
3807       if test "x$enable_dependency_tracking" = xyes; then
3808         continue
3809       else
3810         break
3811       fi
3812       ;;
3813     none) break ;;
3814     esac
3815     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816     # mode.  It turns out that the SunPro C++ compiler does not properly
3817     # handle `-M -o', and we need to detect this.
3818     if depmode=$depmode \
3819        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3820        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3822          >/dev/null 2>conftest.err &&
3823        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3825        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826       # icc doesn't choke on unknown options, it will just issue warnings
3827       # or remarks (even with -Werror).  So we grep stderr for any message
3828       # that says an option was ignored or not supported.
3829       # When given -MP, icc 7.0 and 7.1 complain thusly:
3830       #   icc: Command line warning: ignoring option '-M'; no argument required
3831       # The diagnosis changed in icc 8.0:
3832       #   icc: Command line remark: option '-MP' not supported
3833       if (grep 'ignoring option' conftest.err ||
3834           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835         am_cv_CXX_dependencies_compiler_type=$depmode
3836         break
3837       fi
3838     fi
3839   done
3840
3841   cd ..
3842   rm -rf conftest.dir
3843 else
3844   am_cv_CXX_dependencies_compiler_type=none
3845 fi
3846
3847 fi
3848 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3849 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3850 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3851
3852
3853
3854 if
3855   test "x$enable_dependency_tracking" != xno \
3856   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3857   am__fastdepCXX_TRUE=
3858   am__fastdepCXX_FALSE='#'
3859 else
3860   am__fastdepCXX_TRUE='#'
3861   am__fastdepCXX_FALSE=
3862 fi
3863
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test -n "$ac_tool_prefix"; then
3871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3873 echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_CC+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if test -n "$CC"; then
3879   ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895 fi
3896 fi
3897 CC=$ac_cv_prog_CC
3898 if test -n "$CC"; then
3899   echo "$as_me:$LINENO: result: $CC" >&5
3900 echo "${ECHO_T}$CC" >&6
3901 else
3902   echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6
3904 fi
3905
3906 fi
3907 if test -z "$ac_cv_prog_CC"; then
3908   ac_ct_CC=$CC
3909   # Extract the first word of "gcc", so it can be a program name with args.
3910 set dummy gcc; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$ac_ct_CC"; then
3917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for ac_exec_ext in '' $ac_executable_extensions; do
3925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_ac_ct_CC="gcc"
3927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931 done
3932
3933 fi
3934 fi
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938 echo "${ECHO_T}$ac_ct_CC" >&6
3939 else
3940   echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3942 fi
3943
3944   CC=$ac_ct_CC
3945 else
3946   CC="$ac_cv_prog_CC"
3947 fi
3948
3949 if test -z "$CC"; then
3950   if test -n "$ac_tool_prefix"; then
3951   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}cc; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_CC+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$CC"; then
3959   ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_CC="${ac_tool_prefix}cc"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975 fi
3976 fi
3977 CC=$ac_cv_prog_CC
3978 if test -n "$CC"; then
3979   echo "$as_me:$LINENO: result: $CC" >&5
3980 echo "${ECHO_T}$CC" >&6
3981 else
3982   echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986 fi
3987 if test -z "$ac_cv_prog_CC"; then
3988   ac_ct_CC=$CC
3989   # Extract the first word of "cc", so it can be a program name with args.
3990 set dummy cc; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$ac_ct_CC"; then
3997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_ac_ct_CC="cc"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012
4013 fi
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4018 echo "${ECHO_T}$ac_ct_CC" >&6
4019 else
4020   echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022 fi
4023
4024   CC=$ac_ct_CC
4025 else
4026   CC="$ac_cv_prog_CC"
4027 fi
4028
4029 fi
4030 if test -z "$CC"; then
4031   # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$CC"; then
4039   ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041   ac_prog_rejected=no
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4050        ac_prog_rejected=yes
4051        continue
4052      fi
4053     ac_cv_prog_CC="cc"
4054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058 done
4059
4060 if test $ac_prog_rejected = yes; then
4061   # We found a bogon in the path, so make sure we never use it.
4062   set dummy $ac_cv_prog_CC
4063   shift
4064   if test $# != 0; then
4065     # We chose a different compiler from the bogus one.
4066     # However, it has the same basename, so the bogon will be chosen
4067     # first if we set CC to just the basename; use the full file name.
4068     shift
4069     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4070   fi
4071 fi
4072 fi
4073 fi
4074 CC=$ac_cv_prog_CC
4075 if test -n "$CC"; then
4076   echo "$as_me:$LINENO: result: $CC" >&5
4077 echo "${ECHO_T}$CC" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 fi
4084 if test -z "$CC"; then
4085   if test -n "$ac_tool_prefix"; then
4086   for ac_prog in cl
4087   do
4088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_CC+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$CC"; then
4096   ac_cv_prog_CC="$CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110 done
4111
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116   echo "$as_me:$LINENO: result: $CC" >&5
4117 echo "${ECHO_T}$CC" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123     test -n "$CC" && break
4124   done
4125 fi
4126 if test -z "$CC"; then
4127   ac_ct_CC=$CC
4128   for ac_prog in cl
4129 do
4130   # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   if test -n "$ac_ct_CC"; then
4138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145   for ac_exec_ext in '' $ac_executable_extensions; do
4146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_ac_ct_CC="$ac_prog"
4148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152 done
4153
4154 fi
4155 fi
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4159 echo "${ECHO_T}$ac_ct_CC" >&6
4160 else
4161   echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4163 fi
4164
4165   test -n "$ac_ct_CC" && break
4166 done
4167
4168   CC=$ac_ct_CC
4169 fi
4170
4171 fi
4172
4173
4174 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4175 See \`config.log' for more details." >&5
4176 echo "$as_me: error: no acceptable C compiler found in \$PATH
4177 See \`config.log' for more details." >&2;}
4178    { (exit 1); exit 1; }; }
4179
4180 # Provide some information about the compiler.
4181 echo "$as_me:$LINENO:" \
4182      "checking for C compiler version" >&5
4183 ac_compiler=`set X $ac_compile; echo $2`
4184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4185   (eval $ac_compiler --version </dev/null >&5) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }
4189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4190   (eval $ac_compiler -v </dev/null >&5) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }
4194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4195   (eval $ac_compiler -V </dev/null >&5) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }
4199
4200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215 #ifndef __GNUC__
4216        choke me
4217 #endif
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_compiler_gnu=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_compiler_gnu=no
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4253
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4257 GCC=`test $ac_compiler_gnu = yes && echo yes`
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4260 CFLAGS="-g"
4261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4263 if test "${ac_cv_prog_cc_g+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h.  */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283   (eval $ac_compile) 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } &&
4290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292   (eval $ac_try) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; }; then
4302   ac_cv_prog_cc_g=yes
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_prog_cc_g=no
4308 fi
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4313 if test "$ac_test_CFLAGS" = set; then
4314   CFLAGS=$ac_save_CFLAGS
4315 elif test $ac_cv_prog_cc_g = yes; then
4316   if test "$GCC" = yes; then
4317     CFLAGS="-g -O2"
4318   else
4319     CFLAGS="-g"
4320   fi
4321 else
4322   if test "$GCC" = yes; then
4323     CFLAGS="-O2"
4324   else
4325     CFLAGS=
4326   fi
4327 fi
4328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_cv_prog_cc_stdc=no
4334 ac_save_CC=$CC
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <stdarg.h>
4342 #include <stdio.h>
4343 #include <sys/types.h>
4344 #include <sys/stat.h>
4345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4346 struct buf { int x; };
4347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4348 static char *e (p, i)
4349      char **p;
4350      int i;
4351 {
4352   return p[i];
4353 }
4354 static char *f (char * (*g) (char **, int), char **p, ...)
4355 {
4356   char *s;
4357   va_list v;
4358   va_start (v,p);
4359   s = g (p, va_arg (v,int));
4360   va_end (v);
4361   return s;
4362 }
4363
4364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4365    function prototypes and stuff, but not '\xHH' hex character constants.
4366    These don't provoke an error unfortunately, instead are silently treated
4367    as 'x'.  The following induces an error, until -std1 is added to get
4368    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4369    array size at least.  It's necessary to write '\x00'==0 to get something
4370    that's true only with -std1.  */
4371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4372
4373 int test (int i, double x);
4374 struct s1 {int (*f) (int a);};
4375 struct s2 {int (*f) (double a);};
4376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4377 int argc;
4378 char **argv;
4379 int
4380 main ()
4381 {
4382 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 # Don't try gcc -ansi; that turns off useful extensions and
4388 # breaks some systems' header files.
4389 # AIX                   -qlanglvl=ansi
4390 # Ultrix and OSF/1      -std1
4391 # HP-UX 10.20 and later -Ae
4392 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4393 # SVR4                  -Xc -D__EXTENSIONS__
4394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4395 do
4396   CC="$ac_save_CC $ac_arg"
4397   rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } &&
4406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_cv_prog_cc_stdc=$ac_arg
4419 break
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 fi
4425 rm -f conftest.err conftest.$ac_objext
4426 done
4427 rm -f conftest.$ac_ext conftest.$ac_objext
4428 CC=$ac_save_CC
4429
4430 fi
4431
4432 case "x$ac_cv_prog_cc_stdc" in
4433   x|xno)
4434     echo "$as_me:$LINENO: result: none needed" >&5
4435 echo "${ECHO_T}none needed" >&6 ;;
4436   *)
4437     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4439     CC="$CC $ac_cv_prog_cc_stdc" ;;
4440 esac
4441
4442 # Some people use a C++ compiler to compile C.  Since we use `exit',
4443 # in C++ we need to declare it.  In case someone uses the same compiler
4444 # for both compiling C and C++ we need to have the C++ compiler decide
4445 # the declaration of exit, since it's the most demanding environment.
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #ifndef __cplusplus
4448   choke me
4449 #endif
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   for ac_declaration in \
4473    '' \
4474    'extern "C" void std::exit (int) throw (); using std::exit;' \
4475    'extern "C" void std::exit (int); using std::exit;' \
4476    'extern "C" void exit (int) throw ();' \
4477    'extern "C" void exit (int);' \
4478    'void exit (int);'
4479 do
4480   cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 $ac_declaration
4487 #include <stdlib.h>
4488 int
4489 main ()
4490 {
4491 exit (42);
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; } &&
4511          { ac_try='test -s conftest.$ac_objext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   :
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 continue
4523 fi
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 $ac_declaration
4532 int
4533 main ()
4534 {
4535 exit (42);
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } &&
4549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   break
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 fi
4567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 done
4569 rm -f conftest*
4570 if test -n "$ac_declaration"; then
4571   echo '#ifdef __cplusplus' >>confdefs.h
4572   echo $ac_declaration      >>confdefs.h
4573   echo '#endif'             >>confdefs.h
4574 fi
4575
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 fi
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588 depcc="$CC"   am_compiler_list=
4589
4590 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4591 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4592 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596   # We make a subdir and do the tests there.  Otherwise we can end up
4597   # making bogus files that we don't know about and never remove.  For
4598   # instance it was reported that on HP-UX the gcc test will end up
4599   # making a dummy file named `D' -- because `-MD' means `put the output
4600   # in D'.
4601   mkdir conftest.dir
4602   # Copy depcomp to subdir because otherwise we won't find it if we're
4603   # using a relative directory.
4604   cp "$am_depcomp" conftest.dir
4605   cd conftest.dir
4606   # We will build objects and dependencies in a subdirectory because
4607   # it helps to detect inapplicable dependency modes.  For instance
4608   # both Tru64's cc and ICC support -MD to output dependencies as a
4609   # side effect of compilation, but ICC will put the dependencies in
4610   # the current directory while Tru64 will put them in the object
4611   # directory.
4612   mkdir sub
4613
4614   am_cv_CC_dependencies_compiler_type=none
4615   if test "$am_compiler_list" = ""; then
4616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617   fi
4618   for depmode in $am_compiler_list; do
4619     # Setup a source with many dependencies, because some compilers
4620     # like to wrap large dependency lists on column 80 (with \), and
4621     # we should not choose a depcomp mode which is confused by this.
4622     #
4623     # We need to recreate these files for each test, as the compiler may
4624     # overwrite some of them when testing with obscure command lines.
4625     # This happens at least with the AIX C compiler.
4626     : > sub/conftest.c
4627     for i in 1 2 3 4 5 6; do
4628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4630       # Solaris 8's {/usr,}/bin/sh.
4631       touch sub/conftst$i.h
4632     done
4633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635     case $depmode in
4636     nosideeffect)
4637       # after this tag, mechanisms are not by side-effect, so they'll
4638       # only be used when explicitly requested
4639       if test "x$enable_dependency_tracking" = xyes; then
4640         continue
4641       else
4642         break
4643       fi
4644       ;;
4645     none) break ;;
4646     esac
4647     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4648     # mode.  It turns out that the SunPro C++ compiler does not properly
4649     # handle `-M -o', and we need to detect this.
4650     if depmode=$depmode \
4651        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4652        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4654          >/dev/null 2>conftest.err &&
4655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658       # icc doesn't choke on unknown options, it will just issue warnings
4659       # or remarks (even with -Werror).  So we grep stderr for any message
4660       # that says an option was ignored or not supported.
4661       # When given -MP, icc 7.0 and 7.1 complain thusly:
4662       #   icc: Command line warning: ignoring option '-M'; no argument required
4663       # The diagnosis changed in icc 8.0:
4664       #   icc: Command line remark: option '-MP' not supported
4665       if (grep 'ignoring option' conftest.err ||
4666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667         am_cv_CC_dependencies_compiler_type=$depmode
4668         break
4669       fi
4670     fi
4671   done
4672
4673   cd ..
4674   rm -rf conftest.dir
4675 else
4676   am_cv_CC_dependencies_compiler_type=none
4677 fi
4678
4679 fi
4680 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4683
4684
4685
4686 if
4687   test "x$enable_dependency_tracking" != xno \
4688   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4689   am__fastdepCC_TRUE=
4690   am__fastdepCC_FALSE='#'
4691 else
4692   am__fastdepCC_TRUE='#'
4693   am__fastdepCC_FALSE=
4694 fi
4695
4696
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4706   CPP=
4707 fi
4708 if test -z "$CPP"; then
4709   if test "${ac_cv_prog_CPP+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712       # Double quotes because CPP needs to be expanded
4713     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4714     do
4715       ac_preproc_ok=false
4716 for ac_c_preproc_warn_flag in '' yes
4717 do
4718   # Use a header file that comes with gcc, so configuring glibc
4719   # with a fresh cross-compiler works.
4720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721   # <limits.h> exists even on freestanding compilers.
4722   # On the NeXT, cc -E runs the code through the compiler's parser,
4723   # not just through cpp. "Syntax error" is here to catch this case.
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #ifdef __STDC__
4731 # include <limits.h>
4732 #else
4733 # include <assert.h>
4734 #endif
4735                      Syntax error
4736 _ACEOF
4737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } >/dev/null; then
4745   if test -s conftest.err; then
4746     ac_cpp_err=$ac_c_preproc_warn_flag
4747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4748   else
4749     ac_cpp_err=
4750   fi
4751 else
4752   ac_cpp_err=yes
4753 fi
4754 if test -z "$ac_cpp_err"; then
4755   :
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760   # Broken: fails on valid input.
4761 continue
4762 fi
4763 rm -f conftest.err conftest.$ac_ext
4764
4765   # OK, works on sane cases.  Now check whether non-existent headers
4766   # can be detected and how.
4767   cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773 #include <ac_nonexistent.h>
4774 _ACEOF
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } >/dev/null; then
4783   if test -s conftest.err; then
4784     ac_cpp_err=$ac_c_preproc_warn_flag
4785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4786   else
4787     ac_cpp_err=
4788   fi
4789 else
4790   ac_cpp_err=yes
4791 fi
4792 if test -z "$ac_cpp_err"; then
4793   # Broken: success on invalid input.
4794 continue
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799   # Passes both tests.
4800 ac_preproc_ok=:
4801 break
4802 fi
4803 rm -f conftest.err conftest.$ac_ext
4804
4805 done
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.$ac_ext
4808 if $ac_preproc_ok; then
4809   break
4810 fi
4811
4812     done
4813     ac_cv_prog_CPP=$CPP
4814
4815 fi
4816   CPP=$ac_cv_prog_CPP
4817 else
4818   ac_cv_prog_CPP=$CPP
4819 fi
4820 echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6
4822 ac_preproc_ok=false
4823 for ac_c_preproc_warn_flag in '' yes
4824 do
4825   # Use a header file that comes with gcc, so configuring glibc
4826   # with a fresh cross-compiler works.
4827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828   # <limits.h> exists even on freestanding compilers.
4829   # On the NeXT, cc -E runs the code through the compiler's parser,
4830   # not just through cpp. "Syntax error" is here to catch this case.
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842                      Syntax error
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } >/dev/null; then
4852   if test -s conftest.err; then
4853     ac_cpp_err=$ac_c_preproc_warn_flag
4854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855   else
4856     ac_cpp_err=
4857   fi
4858 else
4859   ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862   :
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867   # Broken: fails on valid input.
4868 continue
4869 fi
4870 rm -f conftest.err conftest.$ac_ext
4871
4872   # OK, works on sane cases.  Now check whether non-existent headers
4873   # can be detected and how.
4874   cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } >/dev/null; then
4890   if test -s conftest.err; then
4891     ac_cpp_err=$ac_c_preproc_warn_flag
4892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893   else
4894     ac_cpp_err=
4895   fi
4896 else
4897   ac_cpp_err=yes
4898 fi
4899 if test -z "$ac_cpp_err"; then
4900   # Broken: success on invalid input.
4901 continue
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906   # Passes both tests.
4907 ac_preproc_ok=:
4908 break
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911
4912 done
4913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4914 rm -f conftest.err conftest.$ac_ext
4915 if $ac_preproc_ok; then
4916   :
4917 else
4918   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&5
4920 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4921 See \`config.log' for more details." >&2;}
4922    { (exit 1); exit 1; }; }
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931 # Find a good install program.  We prefer a C program (faster),
4932 # so one script is as good as another.  But avoid the broken or
4933 # incompatible versions:
4934 # SysV /etc/install, /usr/sbin/install
4935 # SunOS /usr/etc/install
4936 # IRIX /sbin/install
4937 # AIX /bin/install
4938 # AmigaOS /C/install, which installs bootblocks on floppy discs
4939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4942 # OS/2's system install, which has a completely different semantic
4943 # ./install, which can be erroneously created by make from ./install.sh.
4944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4946 if test -z "$INSTALL"; then
4947 if test "${ac_cv_path_install+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   # Account for people who put trailing slashes in PATH elements.
4956 case $as_dir/ in
4957   ./ | .// | /cC/* | \
4958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4959   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4960   /usr/ucb/* ) ;;
4961   *)
4962     # OSF1 and SCO ODT 3.0 have their own names for install.
4963     # Don't use installbsd from OSF since it installs stuff as root
4964     # by default.
4965     for ac_prog in ginstall scoinst install; do
4966       for ac_exec_ext in '' $ac_executable_extensions; do
4967         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4968           if test $ac_prog = install &&
4969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970             # AIX install.  It has an incompatible calling convention.
4971             :
4972           elif test $ac_prog = install &&
4973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974             # program-specific install script used by HP pwplus--don't use.
4975             :
4976           else
4977             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4978             break 3
4979           fi
4980         fi
4981       done
4982     done
4983     ;;
4984 esac
4985 done
4986
4987
4988 fi
4989   if test "${ac_cv_path_install+set}" = set; then
4990     INSTALL=$ac_cv_path_install
4991   else
4992     # As a last resort, use the slow shell script.  We don't cache a
4993     # path for INSTALL within a source directory, because that will
4994     # break other packages using the cache if that directory is
4995     # removed, or if the path is relative.
4996     INSTALL=$ac_install_sh
4997   fi
4998 fi
4999 echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6
5001
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5005
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5007
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5009
5010 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5012 LN_S=$as_ln_s
5013 if test "$LN_S" = "ln -s"; then
5014   echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5016 else
5017   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5018 echo "${ECHO_T}no, using $LN_S" >&6
5019 fi
5020
5021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   cat >conftest.make <<\_ACEOF
5028 all:
5029         @echo 'ac_maketemp="$(MAKE)"'
5030 _ACEOF
5031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5033 if test -n "$ac_maketemp"; then
5034   eval ac_cv_prog_make_${ac_make}_set=yes
5035 else
5036   eval ac_cv_prog_make_${ac_make}_set=no
5037 fi
5038 rm -f conftest.make
5039 fi
5040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5041   echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043   SET_MAKE=
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047   SET_MAKE="MAKE=${MAKE-make}"
5048 fi
5049
5050 # Check whether --enable-shared or --disable-shared was given.
5051 if test "${enable_shared+set}" = set; then
5052   enableval="$enable_shared"
5053   p=${PACKAGE-default}
5054     case $enableval in
5055     yes) enable_shared=yes ;;
5056     no) enable_shared=no ;;
5057     *)
5058       enable_shared=no
5059       # Look at the argument we got.  We use all the common list separators.
5060       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5061       for pkg in $enableval; do
5062         IFS="$lt_save_ifs"
5063         if test "X$pkg" = "X$p"; then
5064           enable_shared=yes
5065         fi
5066       done
5067       IFS="$lt_save_ifs"
5068       ;;
5069     esac
5070 else
5071   enable_shared=yes
5072 fi;
5073
5074 # Check whether --enable-static or --disable-static was given.
5075 if test "${enable_static+set}" = set; then
5076   enableval="$enable_static"
5077   p=${PACKAGE-default}
5078     case $enableval in
5079     yes) enable_static=yes ;;
5080     no) enable_static=no ;;
5081     *)
5082      enable_static=no
5083       # Look at the argument we got.  We use all the common list separators.
5084       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5085       for pkg in $enableval; do
5086         IFS="$lt_save_ifs"
5087         if test "X$pkg" = "X$p"; then
5088           enable_static=yes
5089         fi
5090       done
5091       IFS="$lt_save_ifs"
5092       ;;
5093     esac
5094 else
5095   enable_static=yes
5096 fi;
5097
5098 # Check whether --enable-fast-install or --disable-fast-install was given.
5099 if test "${enable_fast_install+set}" = set; then
5100   enableval="$enable_fast_install"
5101   p=${PACKAGE-default}
5102     case $enableval in
5103     yes) enable_fast_install=yes ;;
5104     no) enable_fast_install=no ;;
5105     *)
5106       enable_fast_install=no
5107       # Look at the argument we got.  We use all the common list separators.
5108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5109       for pkg in $enableval; do
5110         IFS="$lt_save_ifs"
5111         if test "X$pkg" = "X$p"; then
5112           enable_fast_install=yes
5113         fi
5114       done
5115       IFS="$lt_save_ifs"
5116       ;;
5117     esac
5118 else
5119   enable_fast_install=yes
5120 fi;
5121
5122 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5123 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5124 if test "${lt_cv_path_SED+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   # Loop through the user's path and test for sed and gsed.
5128 # Then use that list of sed's as ones to test for truncation.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for lt_ac_prog in sed gsed; do
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5137         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5138       fi
5139     done
5140   done
5141 done
5142 lt_ac_max=0
5143 lt_ac_count=0
5144 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5145 # along with /bin/sed that truncates output.
5146 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5147   test ! -f $lt_ac_sed && continue
5148   cat /dev/null > conftest.in
5149   lt_ac_count=0
5150   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5151   # Check for GNU sed and select it if it is found.
5152   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5153     lt_cv_path_SED=$lt_ac_sed
5154     break
5155   fi
5156   while true; do
5157     cat conftest.in conftest.in >conftest.tmp
5158     mv conftest.tmp conftest.in
5159     cp conftest.in conftest.nl
5160     echo >>conftest.nl
5161     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5162     cmp -s conftest.out conftest.nl || break
5163     # 10000 chars as input seems more than enough
5164     test $lt_ac_count -gt 10 && break
5165     lt_ac_count=`expr $lt_ac_count + 1`
5166     if test $lt_ac_count -gt $lt_ac_max; then
5167       lt_ac_max=$lt_ac_count
5168       lt_cv_path_SED=$lt_ac_sed
5169     fi
5170   done
5171 done
5172
5173 fi
5174
5175 SED=$lt_cv_path_SED
5176 echo "$as_me:$LINENO: result: $SED" >&5
5177 echo "${ECHO_T}$SED" >&6
5178
5179 echo "$as_me:$LINENO: checking for egrep" >&5
5180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5181 if test "${ac_cv_prog_egrep+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5185     then ac_cv_prog_egrep='grep -E'
5186     else ac_cv_prog_egrep='egrep'
5187     fi
5188 fi
5189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5191  EGREP=$ac_cv_prog_egrep
5192
5193
5194
5195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5196 if test "${with_gnu_ld+set}" = set; then
5197   withval="$with_gnu_ld"
5198   test "$withval" = no || with_gnu_ld=yes
5199 else
5200   with_gnu_ld=no
5201 fi;
5202 ac_prog=ld
5203 if test "$GCC" = yes; then
5204   # Check if gcc -print-prog-name=ld gives a path.
5205   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5206 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5207   case $host in
5208   *-*-mingw*)
5209     # gcc leaves a trailing carriage return which upsets mingw
5210     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5211   *)
5212     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5213   esac
5214   case $ac_prog in
5215     # Accept absolute paths.
5216     [\\/]* | ?:[\\/]*)
5217       re_direlt='/[^/][^/]*/\.\./'
5218       # Canonicalize the pathname of ld
5219       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5220       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5221         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5222       done
5223       test -z "$LD" && LD="$ac_prog"
5224       ;;
5225   "")
5226     # If it fails, then pretend we aren't using GCC.
5227     ac_prog=ld
5228     ;;
5229   *)
5230     # If it is relative, then search for the first ld in PATH.
5231     with_gnu_ld=unknown
5232     ;;
5233   esac
5234 elif test "$with_gnu_ld" = yes; then
5235   echo "$as_me:$LINENO: checking for GNU ld" >&5
5236 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5237 else
5238   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5239 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5240 fi
5241 if test "${lt_cv_path_LD+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   if test -z "$LD"; then
5245   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246   for ac_dir in $PATH; do
5247     IFS="$lt_save_ifs"
5248     test -z "$ac_dir" && ac_dir=.
5249     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5250       lt_cv_path_LD="$ac_dir/$ac_prog"
5251       # Check to see if the program is GNU ld.  I'd rather use --version,
5252       # but apparently some variants of GNU ld only accept -v.
5253       # Break only if it was the GNU/non-GNU ld that we prefer.
5254       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5255       *GNU* | *'with BFD'*)
5256         test "$with_gnu_ld" != no && break
5257         ;;
5258       *)
5259         test "$with_gnu_ld" != yes && break
5260         ;;
5261       esac
5262     fi
5263   done
5264   IFS="$lt_save_ifs"
5265 else
5266   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5267 fi
5268 fi
5269
5270 LD="$lt_cv_path_LD"
5271 if test -n "$LD"; then
5272   echo "$as_me:$LINENO: result: $LD" >&5
5273 echo "${ECHO_T}$LD" >&6
5274 else
5275   echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5279 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5280    { (exit 1); exit 1; }; }
5281 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5282 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5283 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5287 case `$LD -v 2>&1 </dev/null` in
5288 *GNU* | *'with BFD'*)
5289   lt_cv_prog_gnu_ld=yes
5290   ;;
5291 *)
5292   lt_cv_prog_gnu_ld=no
5293   ;;
5294 esac
5295 fi
5296 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5297 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5298 with_gnu_ld=$lt_cv_prog_gnu_ld
5299
5300
5301 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5302 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5303 if test "${lt_cv_ld_reload_flag+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   lt_cv_ld_reload_flag='-r'
5307 fi
5308 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5309 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5310 reload_flag=$lt_cv_ld_reload_flag
5311 case $reload_flag in
5312 "" | " "*) ;;
5313 *) reload_flag=" $reload_flag" ;;
5314 esac
5315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5316 case $host_os in
5317   darwin*)
5318     if test "$GCC" = yes; then
5319       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5320     else
5321       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5322     fi
5323     ;;
5324 esac
5325
5326 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5327 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5328 if test "${lt_cv_path_NM+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -n "$NM"; then
5332   # Let the user override the test.
5333   lt_cv_path_NM="$NM"
5334 else
5335   lt_nm_to_check="${ac_tool_prefix}nm"
5336   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5337     lt_nm_to_check="$lt_nm_to_check nm"
5338   fi
5339   for lt_tmp_nm in $lt_nm_to_check; do
5340     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5342       IFS="$lt_save_ifs"
5343       test -z "$ac_dir" && ac_dir=.
5344       tmp_nm="$ac_dir/$lt_tmp_nm"
5345       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5346         # Check to see if the nm accepts a BSD-compat flag.
5347         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5348         #   nm: unknown option "B" ignored
5349         # Tru64's nm complains that /dev/null is an invalid object file
5350         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5351         */dev/null* | *'Invalid file or object type'*)
5352           lt_cv_path_NM="$tmp_nm -B"
5353           break
5354           ;;
5355         *)
5356           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5357           */dev/null*)
5358             lt_cv_path_NM="$tmp_nm -p"
5359             break
5360             ;;
5361           *)
5362             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5363             continue # so that we can try to find one that supports BSD flags
5364             ;;
5365           esac
5366           ;;
5367         esac
5368       fi
5369     done
5370     IFS="$lt_save_ifs"
5371   done
5372   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5373 fi
5374 fi
5375 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5376 echo "${ECHO_T}$lt_cv_path_NM" >&6
5377 NM="$lt_cv_path_NM"
5378
5379 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5380 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5381 if test "${lt_cv_deplibs_check_method+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   lt_cv_file_magic_cmd='$MAGIC_CMD'
5385 lt_cv_file_magic_test_file=
5386 lt_cv_deplibs_check_method='unknown'
5387 # Need to set the preceding variable on all platforms that support
5388 # interlibrary dependencies.
5389 # 'none' -- dependencies not supported.
5390 # `unknown' -- same as none, but documents that we really don't know.
5391 # 'pass_all' -- all dependencies passed with no checks.
5392 # 'test_compile' -- check by making test program.
5393 # 'file_magic [[regex]]' -- check by looking for files in library path
5394 # which responds to the $file_magic_cmd with a given extended regex.
5395 # If you have `file' or equivalent on your system and you're not sure
5396 # whether `pass_all' will *always* work, you probably want this one.
5397
5398 case $host_os in
5399 aix4* | aix5*)
5400   lt_cv_deplibs_check_method=pass_all
5401   ;;
5402
5403 beos*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5406
5407 bsdi[45]*)
5408   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5409   lt_cv_file_magic_cmd='/usr/bin/file -L'
5410   lt_cv_file_magic_test_file=/shlib/libc.so
5411   ;;
5412
5413 cygwin*)
5414   # func_win32_libid is a shell function defined in ltmain.sh
5415   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5416   lt_cv_file_magic_cmd='func_win32_libid'
5417   ;;
5418
5419 mingw* | pw32*)
5420   # Base MSYS/MinGW do not provide the 'file' command needed by
5421   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5422   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5423   lt_cv_file_magic_cmd='$OBJDUMP -f'
5424   ;;
5425
5426 darwin* | rhapsody*)
5427   lt_cv_deplibs_check_method=pass_all
5428   ;;
5429
5430 freebsd* | dragonfly*)
5431   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5432     case $host_cpu in
5433     i*86 )
5434       # Not sure whether the presence of OpenBSD here was a mistake.
5435       # Let's accept both of them until this is cleared up.
5436       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437       lt_cv_file_magic_cmd=/usr/bin/file
5438       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439       ;;
5440     esac
5441   else
5442     lt_cv_deplibs_check_method=pass_all
5443   fi
5444   ;;
5445
5446 gnu*)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 hpux10.20* | hpux11*)
5451   lt_cv_file_magic_cmd=/usr/bin/file
5452   case $host_cpu in
5453   ia64*)
5454     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5455     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456     ;;
5457   hppa*64*)
5458     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5459     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460     ;;
5461   *)
5462     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5463     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5464     ;;
5465   esac
5466   ;;
5467
5468 interix3*)
5469   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5470   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471   ;;
5472
5473 irix5* | irix6* | nonstopux*)
5474   case $LD in
5475   *-32|*"-32 ") libmagic=32-bit;;
5476   *-n32|*"-n32 ") libmagic=N32;;
5477   *-64|*"-64 ") libmagic=64-bit;;
5478   *) libmagic=never-match;;
5479   esac
5480   lt_cv_deplibs_check_method=pass_all
5481   ;;
5482
5483 # This must be Linux ELF.
5484 linux* | k*bsd*-gnu)
5485   lt_cv_deplibs_check_method=pass_all
5486   ;;
5487
5488 netbsd* | netbsdelf*-gnu)
5489   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5491   else
5492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5493   fi
5494   ;;
5495
5496 newos6*)
5497   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5498   lt_cv_file_magic_cmd=/usr/bin/file
5499   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5500   ;;
5501
5502 nto-qnx*)
5503   lt_cv_deplibs_check_method=unknown
5504   ;;
5505
5506 openbsd*)
5507   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5509   else
5510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511   fi
5512   ;;
5513
5514 osf3* | osf4* | osf5*)
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517
5518 solaris*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 sysv4 | sysv4.3*)
5523   case $host_vendor in
5524   motorola)
5525     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]'
5526     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5527     ;;
5528   ncr)
5529     lt_cv_deplibs_check_method=pass_all
5530     ;;
5531   sequent)
5532     lt_cv_file_magic_cmd='/bin/file'
5533     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5534     ;;
5535   sni)
5536     lt_cv_file_magic_cmd='/bin/file'
5537     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5538     lt_cv_file_magic_test_file=/lib/libc.so
5539     ;;
5540   siemens)
5541     lt_cv_deplibs_check_method=pass_all
5542     ;;
5543   pc)
5544     lt_cv_deplibs_check_method=pass_all
5545     ;;
5546   esac
5547   ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552 esac
5553
5554 fi
5555 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5556 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5557 file_magic_cmd=$lt_cv_file_magic_cmd
5558 deplibs_check_method=$lt_cv_deplibs_check_method
5559 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5560
5561
5562
5563
5564 # If no C compiler was specified, use CC.
5565 LTCC=${LTCC-"$CC"}
5566
5567 # If no C compiler flags were specified, use CFLAGS.
5568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5569
5570 # Allow CC to be a program name with arguments.
5571 compiler=$CC
5572
5573 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5574 if test "${enable_libtool_lock+set}" = set; then
5575   enableval="$enable_libtool_lock"
5576
5577 fi;
5578 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5579
5580 # Some flags need to be propagated to the compiler or linker for good
5581 # libtool support.
5582 case $host in
5583 ia64-*-hpux*)
5584   # Find out which ABI we are using.
5585   echo 'int i;' > conftest.$ac_ext
5586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587   (eval $ac_compile) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; then
5591     case `/usr/bin/file conftest.$ac_objext` in
5592     *ELF-32*)
5593       HPUX_IA64_MODE="32"
5594       ;;
5595     *ELF-64*)
5596       HPUX_IA64_MODE="64"
5597       ;;
5598     esac
5599   fi
5600   rm -rf conftest*
5601   ;;
5602 *-*-irix6*)
5603   # Find out which ABI we are using.
5604   echo '#line 5604 "configure"' > conftest.$ac_ext
5605   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; then
5610    if test "$lt_cv_prog_gnu_ld" = yes; then
5611     case `/usr/bin/file conftest.$ac_objext` in
5612     *32-bit*)
5613       LD="${LD-ld} -melf32bsmip"
5614       ;;
5615     *N32*)
5616       LD="${LD-ld} -melf32bmipn32"
5617       ;;
5618     *64-bit*)
5619       LD="${LD-ld} -melf64bmip"
5620       ;;
5621     esac
5622    else
5623     case `/usr/bin/file conftest.$ac_objext` in
5624     *32-bit*)
5625       LD="${LD-ld} -32"
5626       ;;
5627     *N32*)
5628       LD="${LD-ld} -n32"
5629       ;;
5630     *64-bit*)
5631       LD="${LD-ld} -64"
5632       ;;
5633     esac
5634    fi
5635   fi
5636   rm -rf conftest*
5637   ;;
5638
5639 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5640   # Find out which ABI we are using.
5641   echo 'int i;' > conftest.$ac_ext
5642   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643   (eval $ac_compile) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; then
5647     case `/usr/bin/file conftest.o` in
5648     *32-bit*)
5649       case $host in
5650         x86_64-*linux*)
5651           LD="${LD-ld} -m elf_i386"
5652           ;;
5653         ppc64-*linux*|powerpc64-*linux*)
5654           LD="${LD-ld} -m elf32ppclinux"
5655           ;;
5656         s390x-*linux*)
5657           LD="${LD-ld} -m elf_s390"
5658           ;;
5659         sparc64-*linux*)
5660           LD="${LD-ld} -m elf32_sparc"
5661           ;;
5662       esac
5663       ;;
5664     *64-bit*)
5665       case $host in
5666         x86_64-*linux*)
5667           LD="${LD-ld} -m elf_x86_64"
5668           ;;
5669         ppc*-*linux*|powerpc*-*linux*)
5670           LD="${LD-ld} -m elf64ppc"
5671           ;;
5672         s390*-*linux*)
5673           LD="${LD-ld} -m elf64_s390"
5674           ;;
5675         sparc*-*linux*)
5676           LD="${LD-ld} -m elf64_sparc"
5677           ;;
5678       esac
5679       ;;
5680     esac
5681   fi
5682   rm -rf conftest*
5683   ;;
5684
5685 *-*-sco3.2v5*)
5686   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5687   SAVE_CFLAGS="$CFLAGS"
5688   CFLAGS="$CFLAGS -belf"
5689   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5690 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5691 if test "${lt_cv_cc_needs_belf+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   ac_ext=c
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700      cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706
5707 int
5708 main ()
5709 {
5710
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717   (eval $ac_link) 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest$ac_exeext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   lt_cv_cc_needs_belf=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 lt_cv_cc_needs_belf=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext \
5744       conftest$ac_exeext conftest.$ac_ext
5745      ac_ext=c
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750
5751 fi
5752 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5753 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5754   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5755     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5756     CFLAGS="$SAVE_CFLAGS"
5757   fi
5758   ;;
5759 sparc*-*solaris*)
5760   # Find out which ABI we are using.
5761   echo 'int i;' > conftest.$ac_ext
5762   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; then
5767     case `/usr/bin/file conftest.o` in
5768     *64-bit*)
5769       case $lt_cv_prog_gnu_ld in
5770       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5771       *)    LD="${LD-ld} -64" ;;
5772       esac
5773       ;;
5774     esac
5775   fi
5776   rm -rf conftest*
5777   ;;
5778
5779
5780 esac
5781
5782 need_locks="$enable_libtool_lock"
5783
5784
5785
5786 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5787 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5788 if test "${ac_cv_header_stdc+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 #include <stdlib.h>
5798 #include <stdarg.h>
5799 #include <string.h>
5800 #include <float.h>
5801
5802 int
5803 main ()
5804 {
5805
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812   (eval $ac_compile) 2>conftest.er1
5813   ac_status=$?
5814   grep -v '^ *+' conftest.er1 >conftest.err
5815   rm -f conftest.er1
5816   cat conftest.err >&5
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); } &&
5819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; } &&
5825          { ac_try='test -s conftest.$ac_objext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   ac_cv_header_stdc=yes
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 ac_cv_header_stdc=no
5837 fi
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839
5840 if test $ac_cv_header_stdc = yes; then
5841   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5842   cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 #include <string.h>
5849
5850 _ACEOF
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852   $EGREP "memchr" >/dev/null 2>&1; then
5853   :
5854 else
5855   ac_cv_header_stdc=no
5856 fi
5857 rm -f conftest*
5858
5859 fi
5860
5861 if test $ac_cv_header_stdc = yes; then
5862   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5863   cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869 #include <stdlib.h>
5870
5871 _ACEOF
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873   $EGREP "free" >/dev/null 2>&1; then
5874   :
5875 else
5876   ac_cv_header_stdc=no
5877 fi
5878 rm -f conftest*
5879
5880 fi
5881
5882 if test $ac_cv_header_stdc = yes; then
5883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5884   if test "$cross_compiling" = yes; then
5885   :
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <ctype.h>
5894 #if ((' ' & 0x0FF) == 0x020)
5895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5897 #else
5898 # define ISLOWER(c) \
5899                    (('a' <= (c) && (c) <= 'i') \
5900                      || ('j' <= (c) && (c) <= 'r') \
5901                      || ('s' <= (c) && (c) <= 'z'))
5902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5903 #endif
5904
5905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5906 int
5907 main ()
5908 {
5909   int i;
5910   for (i = 0; i < 256; i++)
5911     if (XOR (islower (i), ISLOWER (i))
5912         || toupper (i) != TOUPPER (i))
5913       exit(2);
5914   exit (0);
5915 }
5916 _ACEOF
5917 rm -f conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919   (eval $ac_link) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   :
5929 else
5930   echo "$as_me: program exited with status $ac_status" >&5
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 ( exit $ac_status )
5935 ac_cv_header_stdc=no
5936 fi
5937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938 fi
5939 fi
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5942 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5943 if test $ac_cv_header_stdc = yes; then
5944
5945 cat >>confdefs.h <<\_ACEOF
5946 #define STDC_HEADERS 1
5947 _ACEOF
5948
5949 fi
5950
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962                   inttypes.h stdint.h unistd.h
5963 do
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976 $ac_includes_default
5977
5978 #include <$ac_header>
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982   (eval $ac_compile) 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; } &&
5995          { ac_try='test -s conftest.$ac_objext'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; }; then
6001   eval "$as_ac_Header=yes"
6002 else
6003   echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 eval "$as_ac_Header=no"
6007 fi
6008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013   cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015 _ACEOF
6016
6017 fi
6018
6019 done
6020
6021
6022
6023 for ac_header in dlfcn.h
6024 do
6025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027   echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 fi
6032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034 else
6035   # Is the header compilable?
6036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 $ac_includes_default
6045 #include <$ac_header>
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049   (eval $ac_compile) 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; } &&
6062          { ac_try='test -s conftest.$ac_objext'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068   ac_header_compiler=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ac_header_compiler=no
6074 fi
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6077 echo "${ECHO_T}$ac_header_compiler" >&6
6078
6079 # Is the header present?
6080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h.  */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h.  */
6088 #include <$ac_header>
6089 _ACEOF
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092   ac_status=$?
6093   grep -v '^ *+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } >/dev/null; then
6098   if test -s conftest.err; then
6099     ac_cpp_err=$ac_c_preproc_warn_flag
6100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6101   else
6102     ac_cpp_err=
6103   fi
6104 else
6105   ac_cpp_err=yes
6106 fi
6107 if test -z "$ac_cpp_err"; then
6108   ac_header_preproc=yes
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113   ac_header_preproc=no
6114 fi
6115 rm -f conftest.err conftest.$ac_ext
6116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117 echo "${ECHO_T}$ac_header_preproc" >&6
6118
6119 # So?  What about this header?
6120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6121   yes:no: )
6122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126     ac_header_preproc=yes
6127     ;;
6128   no:yes:* )
6129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6141     (
6142       cat <<\_ASBOX
6143 ## ------------------------------- ##
6144 ## Report this to nfs@lists.sf.net ##
6145 ## ------------------------------- ##
6146 _ASBOX
6147     ) |
6148       sed "s/^/$as_me: WARNING:     /" >&2
6149     ;;
6150 esac
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   eval "$as_ac_Header=\$ac_header_preproc"
6157 fi
6158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6160
6161 fi
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163   cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6165 _ACEOF
6166
6167 fi
6168
6169 done
6170
6171
6172
6173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6174     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6175     (test "X$CXX" != "Xg++"))) ; then
6176   ac_ext=cc
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6182 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6183 if test -z "$CXXCPP"; then
6184   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187       # Double quotes because CXXCPP needs to be expanded
6188     for CXXCPP in "$CXX -E" "/lib/cpp"
6189     do
6190       ac_preproc_ok=false
6191 for ac_cxx_preproc_warn_flag in '' yes
6192 do
6193   # Use a header file that comes with gcc, so configuring glibc
6194   # with a fresh cross-compiler works.
6195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196   # <limits.h> exists even on freestanding compilers.
6197   # On the NeXT, cc -E runs the code through the compiler's parser,
6198   # not just through cpp. "Syntax error" is here to catch this case.
6199   cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #ifdef __STDC__
6206 # include <limits.h>
6207 #else
6208 # include <assert.h>
6209 #endif
6210                      Syntax error
6211 _ACEOF
6212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } >/dev/null; then
6220   if test -s conftest.err; then
6221     ac_cpp_err=$ac_cxx_preproc_warn_flag
6222     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6223   else
6224     ac_cpp_err=
6225   fi
6226 else
6227   ac_cpp_err=yes
6228 fi
6229 if test -z "$ac_cpp_err"; then
6230   :
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235   # Broken: fails on valid input.
6236 continue
6237 fi
6238 rm -f conftest.err conftest.$ac_ext
6239
6240   # OK, works on sane cases.  Now check whether non-existent headers
6241   # can be detected and how.
6242   cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h.  */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h.  */
6248 #include <ac_nonexistent.h>
6249 _ACEOF
6250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } >/dev/null; then
6258   if test -s conftest.err; then
6259     ac_cpp_err=$ac_cxx_preproc_warn_flag
6260     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6261   else
6262     ac_cpp_err=
6263   fi
6264 else
6265   ac_cpp_err=yes
6266 fi
6267 if test -z "$ac_cpp_err"; then
6268   # Broken: success on invalid input.
6269 continue
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274   # Passes both tests.
6275 ac_preproc_ok=:
6276 break
6277 fi
6278 rm -f conftest.err conftest.$ac_ext
6279
6280 done
6281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6282 rm -f conftest.err conftest.$ac_ext
6283 if $ac_preproc_ok; then
6284   break
6285 fi
6286
6287     done
6288     ac_cv_prog_CXXCPP=$CXXCPP
6289
6290 fi
6291   CXXCPP=$ac_cv_prog_CXXCPP
6292 else
6293   ac_cv_prog_CXXCPP=$CXXCPP
6294 fi
6295 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6296 echo "${ECHO_T}$CXXCPP" >&6
6297 ac_preproc_ok=false
6298 for ac_cxx_preproc_warn_flag in '' yes
6299 do
6300   # Use a header file that comes with gcc, so configuring glibc
6301   # with a fresh cross-compiler works.
6302   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303   # <limits.h> exists even on freestanding compilers.
6304   # On the NeXT, cc -E runs the code through the compiler's parser,
6305   # not just through cpp. "Syntax error" is here to catch this case.
6306   cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 #ifdef __STDC__
6313 # include <limits.h>
6314 #else
6315 # include <assert.h>
6316 #endif
6317                      Syntax error
6318 _ACEOF
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } >/dev/null; then
6327   if test -s conftest.err; then
6328     ac_cpp_err=$ac_cxx_preproc_warn_flag
6329     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6330   else
6331     ac_cpp_err=
6332   fi
6333 else
6334   ac_cpp_err=yes
6335 fi
6336 if test -z "$ac_cpp_err"; then
6337   :
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342   # Broken: fails on valid input.
6343 continue
6344 fi
6345 rm -f conftest.err conftest.$ac_ext
6346
6347   # OK, works on sane cases.  Now check whether non-existent headers
6348   # can be detected and how.
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 #include <ac_nonexistent.h>
6356 _ACEOF
6357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } >/dev/null; then
6365   if test -s conftest.err; then
6366     ac_cpp_err=$ac_cxx_preproc_warn_flag
6367     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6368   else
6369     ac_cpp_err=
6370   fi
6371 else
6372   ac_cpp_err=yes
6373 fi
6374 if test -z "$ac_cpp_err"; then
6375   # Broken: success on invalid input.
6376 continue
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381   # Passes both tests.
6382 ac_preproc_ok=:
6383 break
6384 fi
6385 rm -f conftest.err conftest.$ac_ext
6386
6387 done
6388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6389 rm -f conftest.err conftest.$ac_ext
6390 if $ac_preproc_ok; then
6391   :
6392 else
6393   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6394 See \`config.log' for more details." >&5
6395 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6396 See \`config.log' for more details." >&2;}
6397    { (exit 1); exit 1; }; }
6398 fi
6399
6400 ac_ext=cc
6401 ac_cpp='$CXXCPP $CPPFLAGS'
6402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6405
6406 fi
6407
6408
6409 ac_ext=f
6410 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6411 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6413 if test -n "$ac_tool_prefix"; then
6414   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6415   do
6416     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6418 echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420 if test "${ac_cv_prog_F77+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   if test -n "$F77"; then
6424   ac_cv_prog_F77="$F77" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431   for ac_exec_ext in '' $ac_executable_extensions; do
6432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438 done
6439
6440 fi
6441 fi
6442 F77=$ac_cv_prog_F77
6443 if test -n "$F77"; then
6444   echo "$as_me:$LINENO: result: $F77" >&5
6445 echo "${ECHO_T}$F77" >&6
6446 else
6447   echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6449 fi
6450
6451     test -n "$F77" && break
6452   done
6453 fi
6454 if test -z "$F77"; then
6455   ac_ct_F77=$F77
6456   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6457 do
6458   # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   if test -n "$ac_ct_F77"; then
6466   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_ac_ct_F77="$ac_prog"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481
6482 fi
6483 fi
6484 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6485 if test -n "$ac_ct_F77"; then
6486   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6487 echo "${ECHO_T}$ac_ct_F77" >&6
6488 else
6489   echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6491 fi
6492
6493   test -n "$ac_ct_F77" && break
6494 done
6495
6496   F77=$ac_ct_F77
6497 fi
6498
6499
6500 # Provide some information about the compiler.
6501 echo "$as_me:6501:" \
6502      "checking for Fortran 77 compiler version" >&5
6503 ac_compiler=`set X $ac_compile; echo $2`
6504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6505   (eval $ac_compiler --version </dev/null >&5) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }
6509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6510   (eval $ac_compiler -v </dev/null >&5) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }
6514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6515   (eval $ac_compiler -V </dev/null >&5) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }
6519 rm -f a.out
6520
6521 # If we don't use `.F' as extension, the preprocessor is not run on the
6522 # input file.  (Note that this only needs to work for GNU compilers.)
6523 ac_save_ext=$ac_ext
6524 ac_ext=F
6525 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6526 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6527 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   cat >conftest.$ac_ext <<_ACEOF
6531       program main
6532 #ifndef __GNUC__
6533        choke me
6534 #endif
6535
6536       end
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540   (eval $ac_compile) 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549   (eval $ac_try) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; } &&
6553          { ac_try='test -s conftest.$ac_objext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559   ac_compiler_gnu=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_compiler_gnu=no
6565 fi
6566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6568
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6571 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6572 ac_ext=$ac_save_ext
6573 ac_test_FFLAGS=${FFLAGS+set}
6574 ac_save_FFLAGS=$FFLAGS
6575 FFLAGS=
6576 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6577 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6578 if test "${ac_cv_prog_f77_g+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   FFLAGS=-g
6582 cat >conftest.$ac_ext <<_ACEOF
6583       program main
6584
6585       end
6586 _ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589   (eval $ac_compile) 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; } &&
6602          { ac_try='test -s conftest.$ac_objext'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   ac_cv_prog_f77_g=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_cv_prog_f77_g=no
6614 fi
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6619 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6620 if test "$ac_test_FFLAGS" = set; then
6621   FFLAGS=$ac_save_FFLAGS
6622 elif test $ac_cv_prog_f77_g = yes; then
6623   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6624     FFLAGS="-g -O2"
6625   else
6626     FFLAGS="-g"
6627   fi
6628 else
6629   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6630     FFLAGS="-O2"
6631   else
6632     FFLAGS=
6633   fi
6634 fi
6635
6636 G77=`test $ac_compiler_gnu = yes && echo yes`
6637 ac_ext=c
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
6643
6644
6645 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6646
6647 # find the maximum length of command line arguments
6648 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6649 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6650 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653     i=0
6654   teststring="ABCD"
6655
6656   case $build_os in
6657   msdosdjgpp*)
6658     # On DJGPP, this test can blow up pretty badly due to problems in libc
6659     # (any single argument exceeding 2000 bytes causes a buffer overrun
6660     # during glob expansion).  Even if it were fixed, the result of this
6661     # check would be larger than it should be.
6662     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6663     ;;
6664
6665   gnu*)
6666     # Under GNU Hurd, this test is not required because there is
6667     # no limit to the length of command line arguments.
6668     # Libtool will interpret -1 as no limit whatsoever
6669     lt_cv_sys_max_cmd_len=-1;
6670     ;;
6671
6672   cygwin* | mingw*)
6673     # On Win9x/ME, this test blows up -- it succeeds, but takes
6674     # about 5 minutes as the teststring grows exponentially.
6675     # Worse, since 9x/ME are not pre-emptively multitasking,
6676     # you end up with a "frozen" computer, even though with patience
6677     # the test eventually succeeds (with a max line length of 256k).
6678     # Instead, let's just punt: use the minimum linelength reported by
6679     # all of the supported platforms: 8192 (on NT/2K/XP).
6680     lt_cv_sys_max_cmd_len=8192;
6681     ;;
6682
6683   amigaos*)
6684     # On AmigaOS with pdksh, this test takes hours, literally.
6685     # So we just punt and use a minimum line length of 8192.
6686     lt_cv_sys_max_cmd_len=8192;
6687     ;;
6688
6689   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6690     # This has been around since 386BSD, at least.  Likely further.
6691     if test -x /sbin/sysctl; then
6692       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6693     elif test -x /usr/sbin/sysctl; then
6694       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6695     else
6696       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6697     fi
6698     # And add a safety zone
6699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6700     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6701     ;;
6702
6703   interix*)
6704     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6705     lt_cv_sys_max_cmd_len=196608
6706     ;;
6707
6708   osf*)
6709     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6710     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6711     # nice to cause kernel panics so lets avoid the loop below.
6712     # First set a reasonable default.
6713     lt_cv_sys_max_cmd_len=16384
6714     #
6715     if test -x /sbin/sysconfig; then
6716       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6717         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6718       esac
6719     fi
6720     ;;
6721   sco3.2v5*)
6722     lt_cv_sys_max_cmd_len=102400
6723     ;;
6724   sysv5* | sco5v6* | sysv4.2uw2*)
6725     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6726     if test -n "$kargmax"; then
6727       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6728     else
6729       lt_cv_sys_max_cmd_len=32768
6730     fi
6731     ;;
6732   *)
6733     # If test is not a shell built-in, we'll probably end up computing a
6734     # maximum length that is only half of the actual maximum length, but
6735     # we can't tell.
6736     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6737     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6738                = "XX$teststring") >/dev/null 2>&1 &&
6739             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6740             lt_cv_sys_max_cmd_len=$new_result &&
6741             test $i != 17 # 1/2 MB should be enough
6742     do
6743       i=`expr $i + 1`
6744       teststring=$teststring$teststring
6745     done
6746     teststring=
6747     # Add a significant safety factor because C++ compilers can tack on massive
6748     # amounts of additional arguments before passing them to the linker.
6749     # It appears as though 1/2 is a usable value.
6750     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6751     ;;
6752   esac
6753
6754 fi
6755
6756 if test -n $lt_cv_sys_max_cmd_len ; then
6757   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6758 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6759 else
6760   echo "$as_me:$LINENO: result: none" >&5
6761 echo "${ECHO_T}none" >&6
6762 fi
6763
6764
6765
6766
6767 # Check for command to grab the raw symbol name followed by C symbol from nm.
6768 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6769 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6770 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773
6774 # These are sane defaults that work on at least a few old systems.
6775 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6776
6777 # Character class describing NM global symbol codes.
6778 symcode='[BCDEGRST]'
6779
6780 # Regexp to match symbols that can be accessed directly from C.
6781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6782
6783 # Transform an extracted symbol line into a proper C declaration
6784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6785
6786 # Transform an extracted symbol line into symbol name and symbol address
6787 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6788
6789 # Define system-specific variables.
6790 case $host_os in
6791 aix*)
6792   symcode='[BCDT]'
6793   ;;
6794 cygwin* | mingw* | pw32*)
6795   symcode='[ABCDGISTW]'
6796   ;;
6797 hpux*) # Its linker distinguishes data from code symbols
6798   if test "$host_cpu" = ia64; then
6799     symcode='[ABCDEGRST]'
6800   fi
6801   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6802   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6803   ;;
6804 linux* | k*bsd*-gnu)
6805   if test "$host_cpu" = ia64; then
6806     symcode='[ABCDGIRSTW]'
6807     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6808     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6809   fi
6810   ;;
6811 irix* | nonstopux*)
6812   symcode='[BCDEGRST]'
6813   ;;
6814 osf*)
6815   symcode='[BCDEGQRST]'
6816   ;;
6817 solaris*)
6818   symcode='[BDRT]'
6819   ;;
6820 sco3.2v5*)
6821   symcode='[DT]'
6822   ;;
6823 sysv4.2uw2*)
6824   symcode='[DT]'
6825   ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827   symcode='[ABDT]'
6828   ;;
6829 sysv4)
6830   symcode='[DFNSTU]'
6831   ;;
6832 esac
6833
6834 # Handle CRLF in mingw tool chain
6835 opt_cr=
6836 case $build_os in
6837 mingw*)
6838   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6839   ;;
6840 esac
6841
6842 # If we're using GNU nm, then use its standard symbol codes.
6843 case `$NM -V 2>&1` in
6844 *GNU* | *'with BFD'*)
6845   symcode='[ABCDGIRSTW]' ;;
6846 esac
6847
6848 # Try without a prefix undercore, then with it.
6849 for ac_symprfx in "" "_"; do
6850
6851   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6852   symxfrm="\\1 $ac_symprfx\\2 \\2"
6853
6854   # Write the raw and C identifiers.
6855   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6856
6857   # Check to see that the pipe works correctly.
6858   pipe_works=no
6859
6860   rm -f conftest*
6861   cat > conftest.$ac_ext <<EOF
6862 #ifdef __cplusplus
6863 extern "C" {
6864 #endif
6865 char nm_test_var;
6866 void nm_test_func(){}
6867 #ifdef __cplusplus
6868 }
6869 #endif
6870 int main(){nm_test_var='a';nm_test_func();return(0);}
6871 EOF
6872
6873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; then
6878     # Now try to grab the symbols.
6879     nlist=conftest.nm
6880     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6881   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } && test -s "$nlist"; then
6885       # Try sorting and uniquifying the output.
6886       if sort "$nlist" | uniq > "$nlist"T; then
6887         mv -f "$nlist"T "$nlist"
6888       else
6889         rm -f "$nlist"T
6890       fi
6891
6892       # Make sure that we snagged all the symbols we need.
6893       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6894         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6895           cat <<EOF > conftest.$ac_ext
6896 #ifdef __cplusplus
6897 extern "C" {
6898 #endif
6899
6900 EOF
6901           # Now generate the symbol file.
6902           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6903
6904           cat <<EOF >> conftest.$ac_ext
6905 #if defined (__STDC__) && __STDC__
6906 # define lt_ptr_t void *
6907 #else
6908 # define lt_ptr_t char *
6909 # define const
6910 #endif
6911
6912 /* The mapping between symbol names and symbols. */
6913 const struct {
6914   const char *name;
6915   lt_ptr_t address;
6916 }
6917 lt_preloaded_symbols[] =
6918 {
6919 EOF
6920           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6921           cat <<\EOF >> conftest.$ac_ext
6922   {0, (lt_ptr_t) 0}
6923 };
6924
6925 #ifdef __cplusplus
6926 }
6927 #endif
6928 EOF
6929           # Now try linking the two files.
6930           mv conftest.$ac_objext conftstm.$ac_objext
6931           lt_save_LIBS="$LIBS"
6932           lt_save_CFLAGS="$CFLAGS"
6933           LIBS="conftstm.$ac_objext"
6934           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6935           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936   (eval $ac_link) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6940             pipe_works=yes
6941           fi
6942           LIBS="$lt_save_LIBS"
6943           CFLAGS="$lt_save_CFLAGS"
6944         else
6945           echo "cannot find nm_test_func in $nlist" >&5
6946         fi
6947       else
6948         echo "cannot find nm_test_var in $nlist" >&5
6949       fi
6950     else
6951       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6952     fi
6953   else
6954     echo "$progname: failed program was:" >&5
6955     cat conftest.$ac_ext >&5
6956   fi
6957   rm -f conftest* conftst*
6958
6959   # Do not use the global_symbol_pipe unless it works.
6960   if test "$pipe_works" = yes; then
6961     break
6962   else
6963     lt_cv_sys_global_symbol_pipe=
6964   fi
6965 done
6966
6967 fi
6968
6969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6970   lt_cv_sys_global_symbol_to_cdecl=
6971 fi
6972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6973   echo "$as_me:$LINENO: result: failed" >&5
6974 echo "${ECHO_T}failed" >&6
6975 else
6976   echo "$as_me:$LINENO: result: ok" >&5
6977 echo "${ECHO_T}ok" >&6
6978 fi
6979
6980 echo "$as_me:$LINENO: checking for objdir" >&5
6981 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6982 if test "${lt_cv_objdir+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   rm -f .libs 2>/dev/null
6986 mkdir .libs 2>/dev/null
6987 if test -d .libs; then
6988   lt_cv_objdir=.libs
6989 else
6990   # MS-DOS does not allow filenames that begin with a dot.
6991   lt_cv_objdir=_libs
6992 fi
6993 rmdir .libs 2>/dev/null
6994 fi
6995 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6996 echo "${ECHO_T}$lt_cv_objdir" >&6
6997 objdir=$lt_cv_objdir
6998
6999
7000
7001
7002
7003 case $host_os in
7004 aix3*)
7005   # AIX sometimes has problems with the GCC collect2 program.  For some
7006   # reason, if we set the COLLECT_NAMES environment variable, the problems
7007   # vanish in a puff of smoke.
7008   if test "X${COLLECT_NAMES+set}" != Xset; then
7009     COLLECT_NAMES=
7010     export COLLECT_NAMES
7011   fi
7012   ;;
7013 esac
7014
7015 # Sed substitution that helps us do robust quoting.  It backslashifies
7016 # metacharacters that are still active within double-quoted strings.
7017 Xsed='sed -e 1s/^X//'
7018 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7019
7020 # Same as above, but do not quote variable references.
7021 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7022
7023 # Sed substitution to delay expansion of an escaped shell variable in a
7024 # double_quote_subst'ed string.
7025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7026
7027 # Sed substitution to avoid accidental globbing in evaled expressions
7028 no_glob_subst='s/\*/\\\*/g'
7029
7030 # Constants:
7031 rm="rm -f"
7032
7033 # Global variables:
7034 default_ofile=libtool
7035 can_build_shared=yes
7036
7037 # All known linkers require a `.a' archive for static linking (except MSVC,
7038 # which needs '.lib').
7039 libext=a
7040 ltmain="$ac_aux_dir/ltmain.sh"
7041 ofile="$default_ofile"
7042 with_gnu_ld="$lt_cv_prog_gnu_ld"
7043
7044 if test -n "$ac_tool_prefix"; then
7045   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}ar; ac_word=$2
7047 echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049 if test "${ac_cv_prog_AR+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   if test -n "$AR"; then
7053   ac_cv_prog_AR="$AR" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062     ac_cv_prog_AR="${ac_tool_prefix}ar"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068
7069 fi
7070 fi
7071 AR=$ac_cv_prog_AR
7072 if test -n "$AR"; then
7073   echo "$as_me:$LINENO: result: $AR" >&5
7074 echo "${ECHO_T}$AR" >&6
7075 else
7076   echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6
7078 fi
7079
7080 fi
7081 if test -z "$ac_cv_prog_AR"; then
7082   ac_ct_AR=$AR
7083   # Extract the first word of "ar", so it can be a program name with args.
7084 set dummy ar; ac_word=$2
7085 echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7087 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   if test -n "$ac_ct_AR"; then
7091   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098   for ac_exec_ext in '' $ac_executable_extensions; do
7099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100     ac_cv_prog_ac_ct_AR="ar"
7101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105 done
7106
7107   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7108 fi
7109 fi
7110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7111 if test -n "$ac_ct_AR"; then
7112   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7113 echo "${ECHO_T}$ac_ct_AR" >&6
7114 else
7115   echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7117 fi
7118
7119   AR=$ac_ct_AR
7120 else
7121   AR="$ac_cv_prog_AR"
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7127 echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129 if test "${ac_cv_prog_RANLIB+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$RANLIB"; then
7133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148
7149 fi
7150 fi
7151 RANLIB=$ac_cv_prog_RANLIB
7152 if test -n "$RANLIB"; then
7153   echo "$as_me:$LINENO: result: $RANLIB" >&5
7154 echo "${ECHO_T}$RANLIB" >&6
7155 else
7156   echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7158 fi
7159
7160 fi
7161 if test -z "$ac_cv_prog_RANLIB"; then
7162   ac_ct_RANLIB=$RANLIB
7163   # Extract the first word of "ranlib", so it can be a program name with args.
7164 set dummy ranlib; ac_word=$2
7165 echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   if test -n "$ac_ct_RANLIB"; then
7171   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_ac_ct_RANLIB="ranlib"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186
7187   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7188 fi
7189 fi
7190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7191 if test -n "$ac_ct_RANLIB"; then
7192   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7194 else
7195   echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6
7197 fi
7198
7199   RANLIB=$ac_ct_RANLIB
7200 else
7201   RANLIB="$ac_cv_prog_RANLIB"
7202 fi
7203
7204 if test -n "$ac_tool_prefix"; then
7205   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}strip; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_STRIP+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   if test -n "$STRIP"; then
7213   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228
7229 fi
7230 fi
7231 STRIP=$ac_cv_prog_STRIP
7232 if test -n "$STRIP"; then
7233   echo "$as_me:$LINENO: result: $STRIP" >&5
7234 echo "${ECHO_T}$STRIP" >&6
7235 else
7236   echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7238 fi
7239
7240 fi
7241 if test -z "$ac_cv_prog_STRIP"; then
7242   ac_ct_STRIP=$STRIP
7243   # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   if test -n "$ac_ct_STRIP"; then
7251   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260     ac_cv_prog_ac_ct_STRIP="strip"
7261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266
7267   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7268 fi
7269 fi
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7273 echo "${ECHO_T}$ac_ct_STRIP" >&6
7274 else
7275   echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 fi
7278
7279   STRIP=$ac_ct_STRIP
7280 else
7281   STRIP="$ac_cv_prog_STRIP"
7282 fi
7283
7284
7285 old_CC="$CC"
7286 old_CFLAGS="$CFLAGS"
7287
7288 # Set sane defaults for various variables
7289 test -z "$AR" && AR=ar
7290 test -z "$AR_FLAGS" && AR_FLAGS=cru
7291 test -z "$AS" && AS=as
7292 test -z "$CC" && CC=cc
7293 test -z "$LTCC" && LTCC=$CC
7294 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7295 test -z "$DLLTOOL" && DLLTOOL=dlltool
7296 test -z "$LD" && LD=ld
7297 test -z "$LN_S" && LN_S="ln -s"
7298 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7299 test -z "$NM" && NM=nm
7300 test -z "$SED" && SED=sed
7301 test -z "$OBJDUMP" && OBJDUMP=objdump
7302 test -z "$RANLIB" && RANLIB=:
7303 test -z "$STRIP" && STRIP=:
7304 test -z "$ac_objext" && ac_objext=o
7305
7306 # Determine commands to create old-style static archives.
7307 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7308 old_postinstall_cmds='chmod 644 $oldlib'
7309 old_postuninstall_cmds=
7310
7311 if test -n "$RANLIB"; then
7312   case $host_os in
7313   openbsd*)
7314     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7315     ;;
7316   *)
7317     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7318     ;;
7319   esac
7320   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7321 fi
7322
7323 for cc_temp in $compiler""; do
7324   case $cc_temp in
7325     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7326     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7327     \-*) ;;
7328     *) break;;
7329   esac
7330 done
7331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7332
7333
7334 # Only perform the check for file, if the check method requires it
7335 case $deplibs_check_method in
7336 file_magic*)
7337   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7338     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7339 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7340 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   case $MAGIC_CMD in
7344 [\\/*] |  ?:[\\/]*)
7345   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7346   ;;
7347 *)
7348   lt_save_MAGIC_CMD="$MAGIC_CMD"
7349   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7350   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7351   for ac_dir in $ac_dummy; do
7352     IFS="$lt_save_ifs"
7353     test -z "$ac_dir" && ac_dir=.
7354     if test -f $ac_dir/${ac_tool_prefix}file; then
7355       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7356       if test -n "$file_magic_test_file"; then
7357         case $deplibs_check_method in
7358         "file_magic "*)
7359           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7360           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7361           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7362             $EGREP "$file_magic_regex" > /dev/null; then
7363             :
7364           else
7365             cat <<EOF 1>&2
7366
7367 *** Warning: the command libtool uses to detect shared libraries,
7368 *** $file_magic_cmd, produces output that libtool cannot recognize.
7369 *** The result is that libtool may fail to recognize shared libraries
7370 *** as such.  This will affect the creation of libtool libraries that
7371 *** depend on shared libraries, but programs linked with such libtool
7372 *** libraries will work regardless of this problem.  Nevertheless, you
7373 *** may want to report the problem to your system manager and/or to
7374 *** bug-libtool@gnu.org
7375
7376 EOF
7377           fi ;;
7378         esac
7379       fi
7380       break
7381     fi
7382   done
7383   IFS="$lt_save_ifs"
7384   MAGIC_CMD="$lt_save_MAGIC_CMD"
7385   ;;
7386 esac
7387 fi
7388
7389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7390 if test -n "$MAGIC_CMD"; then
7391   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7392 echo "${ECHO_T}$MAGIC_CMD" >&6
7393 else
7394   echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7396 fi
7397
7398 if test -z "$lt_cv_path_MAGIC_CMD"; then
7399   if test -n "$ac_tool_prefix"; then
7400     echo "$as_me:$LINENO: checking for file" >&5
7401 echo $ECHO_N "checking for file... $ECHO_C" >&6
7402 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   case $MAGIC_CMD in
7406 [\\/*] |  ?:[\\/]*)
7407   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408   ;;
7409 *)
7410   lt_save_MAGIC_CMD="$MAGIC_CMD"
7411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7412   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7413   for ac_dir in $ac_dummy; do
7414     IFS="$lt_save_ifs"
7415     test -z "$ac_dir" && ac_dir=.
7416     if test -f $ac_dir/file; then
7417       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7418       if test -n "$file_magic_test_file"; then
7419         case $deplibs_check_method in
7420         "file_magic "*)
7421           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7422           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7424             $EGREP "$file_magic_regex" > /dev/null; then
7425             :
7426           else
7427             cat <<EOF 1>&2
7428
7429 *** Warning: the command libtool uses to detect shared libraries,
7430 *** $file_magic_cmd, produces output that libtool cannot recognize.
7431 *** The result is that libtool may fail to recognize shared libraries
7432 *** as such.  This will affect the creation of libtool libraries that
7433 *** depend on shared libraries, but programs linked with such libtool
7434 *** libraries will work regardless of this problem.  Nevertheless, you
7435 *** may want to report the problem to your system manager and/or to
7436 *** bug-libtool@gnu.org
7437
7438 EOF
7439           fi ;;
7440         esac
7441       fi
7442       break
7443     fi
7444   done
7445   IFS="$lt_save_ifs"
7446   MAGIC_CMD="$lt_save_MAGIC_CMD"
7447   ;;
7448 esac
7449 fi
7450
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if test -n "$MAGIC_CMD"; then
7453   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7454 echo "${ECHO_T}$MAGIC_CMD" >&6
7455 else
7456   echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6
7458 fi
7459
7460   else
7461     MAGIC_CMD=:
7462   fi
7463 fi
7464
7465   fi
7466   ;;
7467 esac
7468
7469 enable_dlopen=no
7470 enable_win32_dll=no
7471
7472 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7473 if test "${enable_libtool_lock+set}" = set; then
7474   enableval="$enable_libtool_lock"
7475
7476 fi;
7477 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7478
7479
7480 # Check whether --with-pic or --without-pic was given.
7481 if test "${with_pic+set}" = set; then
7482   withval="$with_pic"
7483   pic_mode="$withval"
7484 else
7485   pic_mode=default
7486 fi;
7487 test -z "$pic_mode" && pic_mode=default
7488
7489 # Use C for the default configuration in the libtool script
7490 tagname=
7491 lt_save_CC="$CC"
7492 ac_ext=c
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498
7499 # Source file extension for C test sources.
7500 ac_ext=c
7501
7502 # Object file extension for compiled C test sources.
7503 objext=o
7504 objext=$objext
7505
7506 # Code to be used in simple compile tests
7507 lt_simple_compile_test_code="int some_variable = 0;\n"
7508
7509 # Code to be used in simple link tests
7510 lt_simple_link_test_code='int main(){return(0);}\n'
7511
7512
7513 # If no C compiler was specified, use CC.
7514 LTCC=${LTCC-"$CC"}
7515
7516 # If no C compiler flags were specified, use CFLAGS.
7517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7518
7519 # Allow CC to be a program name with arguments.
7520 compiler=$CC
7521
7522
7523 # save warnings/boilerplate of simple test code
7524 ac_outfile=conftest.$ac_objext
7525 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527 _lt_compiler_boilerplate=`cat conftest.err`
7528 $rm conftest*
7529
7530 ac_outfile=conftest.$ac_objext
7531 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533 _lt_linker_boilerplate=`cat conftest.err`
7534 $rm conftest*
7535
7536
7537
7538 lt_prog_compiler_no_builtin_flag=
7539
7540 if test "$GCC" = yes; then
7541   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7542
7543
7544 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   lt_cv_prog_compiler_rtti_exceptions=no
7550   ac_outfile=conftest.$ac_objext
7551    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552    lt_compiler_flag="-fno-rtti -fno-exceptions"
7553    # Insert the option either (1) after the last *FLAGS variable, or
7554    # (2) before a word containing "conftest.", or (3) at the end.
7555    # Note that $ac_compile itself does not contain backslashes and begins
7556    # with a dollar sign (not a hyphen), so the echo should work correctly.
7557    # The option is referenced via a variable to avoid confusing sed.
7558    lt_compile=`echo "$ac_compile" | $SED \
7559    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561    -e 's:$: $lt_compiler_flag:'`
7562    (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563    (eval "$lt_compile" 2>conftest.err)
7564    ac_status=$?
7565    cat conftest.err >&5
7566    echo "$as_me:7566: \$? = $ac_status" >&5
7567    if (exit $ac_status) && test -s "$ac_outfile"; then
7568      # The compiler can only warn and ignore the option if not recognized
7569      # So say no if there are warnings other than the usual output.
7570      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573        lt_cv_prog_compiler_rtti_exceptions=yes
7574      fi
7575    fi
7576    $rm conftest*
7577
7578 fi
7579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7581
7582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7584 else
7585     :
7586 fi
7587
7588 fi
7589
7590 lt_prog_compiler_wl=
7591 lt_prog_compiler_pic=
7592 lt_prog_compiler_static=
7593
7594 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7595 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7596
7597   if test "$GCC" = yes; then
7598     lt_prog_compiler_wl='-Wl,'
7599     lt_prog_compiler_static='-static'
7600
7601     case $host_os in
7602       aix*)
7603       # All AIX code is PIC.
7604       if test "$host_cpu" = ia64; then
7605         # AIX 5 now supports IA64 processor
7606         lt_prog_compiler_static='-Bstatic'
7607       fi
7608       ;;
7609
7610     amigaos*)
7611       # FIXME: we need at least 68020 code to build shared libraries, but
7612       # adding the `-m68020' flag to GCC prevents building anything better,
7613       # like `-m68040'.
7614       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615       ;;
7616
7617     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7618       # PIC is the default for these OSes.
7619       ;;
7620
7621     mingw* | pw32* | os2*)
7622       # This hack is so that the source file can tell whether it is being
7623       # built for inclusion in a dll (and should export symbols for example).
7624       lt_prog_compiler_pic='-DDLL_EXPORT'
7625       ;;
7626
7627     darwin* | rhapsody*)
7628       # PIC is the default on this platform
7629       # Common symbols not allowed in MH_DYLIB files
7630       lt_prog_compiler_pic='-fno-common'
7631       ;;
7632
7633     interix3*)
7634       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7635       # Instead, we relocate shared libraries at runtime.
7636       ;;
7637
7638     msdosdjgpp*)
7639       # Just because we use GCC doesn't mean we suddenly get shared libraries
7640       # on systems that don't support them.
7641       lt_prog_compiler_can_build_shared=no
7642       enable_shared=no
7643       ;;
7644
7645     sysv4*MP*)
7646       if test -d /usr/nec; then
7647         lt_prog_compiler_pic=-Kconform_pic
7648       fi
7649       ;;
7650
7651     hpux*)
7652       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7653       # not for PA HP-UX.
7654       case $host_cpu in
7655       hppa*64*|ia64*)
7656         # +Z the default
7657         ;;
7658       *)
7659         lt_prog_compiler_pic='-fPIC'
7660         ;;
7661       esac
7662       ;;
7663
7664     *)
7665       lt_prog_compiler_pic='-fPIC'
7666       ;;
7667     esac
7668   else
7669     # PORTME Check for flag to pass linker flags through the system compiler.
7670     case $host_os in
7671     aix*)
7672       lt_prog_compiler_wl='-Wl,'
7673       if test "$host_cpu" = ia64; then
7674         # AIX 5 now supports IA64 processor
7675         lt_prog_compiler_static='-Bstatic'
7676       else
7677         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7678       fi
7679       ;;
7680       darwin*)
7681         # PIC is the default on this platform
7682         # Common symbols not allowed in MH_DYLIB files
7683        case $cc_basename in
7684          xlc*)
7685          lt_prog_compiler_pic='-qnocommon'
7686          lt_prog_compiler_wl='-Wl,'
7687          ;;
7688        esac
7689        ;;
7690
7691     mingw* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       lt_prog_compiler_pic='-DDLL_EXPORT'
7695       ;;
7696
7697     hpux9* | hpux10* | hpux11*)
7698       lt_prog_compiler_wl='-Wl,'
7699       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700       # not for PA HP-UX.
7701       case $host_cpu in
7702       hppa*64*|ia64*)
7703         # +Z the default
7704         ;;
7705       *)
7706         lt_prog_compiler_pic='+Z'
7707         ;;
7708       esac
7709       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710       lt_prog_compiler_static='${wl}-a ${wl}archive'
7711       ;;
7712
7713     irix5* | irix6* | nonstopux*)
7714       lt_prog_compiler_wl='-Wl,'
7715       # PIC (with -KPIC) is the default.
7716       lt_prog_compiler_static='-non_shared'
7717       ;;
7718
7719     newsos6)
7720       lt_prog_compiler_pic='-KPIC'
7721       lt_prog_compiler_static='-Bstatic'
7722       ;;
7723
7724     linux* | k*bsd*-gnu)
7725       case $cc_basename in
7726       icc* | ecc*)
7727         lt_prog_compiler_wl='-Wl,'
7728         lt_prog_compiler_pic='-KPIC'
7729         lt_prog_compiler_static='-static'
7730         ;;
7731       pgcc* | pgf77* | pgf90* | pgf95*)
7732         # Portland Group compilers (*not* the Pentium gcc compiler,
7733         # which looks to be a dead project)
7734         lt_prog_compiler_wl='-Wl,'
7735         lt_prog_compiler_pic='-fpic'
7736         lt_prog_compiler_static='-Bstatic'
7737         ;;
7738       ccc*)
7739         lt_prog_compiler_wl='-Wl,'
7740         # All Alpha code is PIC.
7741         lt_prog_compiler_static='-non_shared'
7742         ;;
7743       esac
7744       ;;
7745
7746     osf3* | osf4* | osf5*)
7747       lt_prog_compiler_wl='-Wl,'
7748       # All OSF/1 code is PIC.
7749       lt_prog_compiler_static='-non_shared'
7750       ;;
7751
7752     solaris*)
7753       lt_prog_compiler_pic='-KPIC'
7754       lt_prog_compiler_static='-Bstatic'
7755       case $cc_basename in
7756       f77* | f90* | f95*)
7757         lt_prog_compiler_wl='-Qoption ld ';;
7758       *)
7759         lt_prog_compiler_wl='-Wl,';;
7760       esac
7761       ;;
7762
7763     sunos4*)
7764       lt_prog_compiler_wl='-Qoption ld '
7765       lt_prog_compiler_pic='-PIC'
7766       lt_prog_compiler_static='-Bstatic'
7767       ;;
7768
7769     sysv4 | sysv4.2uw2* | sysv4.3*)
7770       lt_prog_compiler_wl='-Wl,'
7771       lt_prog_compiler_pic='-KPIC'
7772       lt_prog_compiler_static='-Bstatic'
7773       ;;
7774
7775     sysv4*MP*)
7776       if test -d /usr/nec ;then
7777         lt_prog_compiler_pic='-Kconform_pic'
7778         lt_prog_compiler_static='-Bstatic'
7779       fi
7780       ;;
7781
7782     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7783       lt_prog_compiler_wl='-Wl,'
7784       lt_prog_compiler_pic='-KPIC'
7785       lt_prog_compiler_static='-Bstatic'
7786       ;;
7787
7788     unicos*)
7789       lt_prog_compiler_wl='-Wl,'
7790       lt_prog_compiler_can_build_shared=no
7791       ;;
7792
7793     uts4*)
7794       lt_prog_compiler_pic='-pic'
7795       lt_prog_compiler_static='-Bstatic'
7796       ;;
7797
7798     *)
7799       lt_prog_compiler_can_build_shared=no
7800       ;;
7801     esac
7802   fi
7803
7804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7805 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7806
7807 #
7808 # Check to make sure the PIC flag actually works.
7809 #
7810 if test -n "$lt_prog_compiler_pic"; then
7811
7812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7814 if test "${lt_prog_compiler_pic_works+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   lt_prog_compiler_pic_works=no
7818   ac_outfile=conftest.$ac_objext
7819    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7820    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7821    # Insert the option either (1) after the last *FLAGS variable, or
7822    # (2) before a word containing "conftest.", or (3) at the end.
7823    # Note that $ac_compile itself does not contain backslashes and begins
7824    # with a dollar sign (not a hyphen), so the echo should work correctly.
7825    # The option is referenced via a variable to avoid confusing sed.
7826    lt_compile=`echo "$ac_compile" | $SED \
7827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829    -e 's:$: $lt_compiler_flag:'`
7830    (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831    (eval "$lt_compile" 2>conftest.err)
7832    ac_status=$?
7833    cat conftest.err >&5
7834    echo "$as_me:7834: \$? = $ac_status" >&5
7835    if (exit $ac_status) && test -s "$ac_outfile"; then
7836      # The compiler can only warn and ignore the option if not recognized
7837      # So say no if there are warnings other than the usual output.
7838      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7839      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7840      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7841        lt_prog_compiler_pic_works=yes
7842      fi
7843    fi
7844    $rm conftest*
7845
7846 fi
7847 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7848 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7849
7850 if test x"$lt_prog_compiler_pic_works" = xyes; then
7851     case $lt_prog_compiler_pic in
7852      "" | " "*) ;;
7853      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7854      esac
7855 else
7856     lt_prog_compiler_pic=
7857      lt_prog_compiler_can_build_shared=no
7858 fi
7859
7860 fi
7861 case $host_os in
7862   # For platforms which do not support PIC, -DPIC is meaningless:
7863   *djgpp*)
7864     lt_prog_compiler_pic=
7865     ;;
7866   *)
7867     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868     ;;
7869 esac
7870
7871 #
7872 # Check to make sure the static flag actually works.
7873 #
7874 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7875 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7876 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7877 if test "${lt_prog_compiler_static_works+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   lt_prog_compiler_static_works=no
7881    save_LDFLAGS="$LDFLAGS"
7882    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7883    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7884    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7885      # The linker can only warn and ignore the option if not recognized
7886      # So say no if there are warnings
7887      if test -s conftest.err; then
7888        # Append any errors to the config.log.
7889        cat conftest.err 1>&5
7890        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7891        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7892        if diff conftest.exp conftest.er2 >/dev/null; then
7893          lt_prog_compiler_static_works=yes
7894        fi
7895      else
7896        lt_prog_compiler_static_works=yes
7897      fi
7898    fi
7899    $rm conftest*
7900    LDFLAGS="$save_LDFLAGS"
7901
7902 fi
7903 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7904 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7905
7906 if test x"$lt_prog_compiler_static_works" = xyes; then
7907     :
7908 else
7909     lt_prog_compiler_static=
7910 fi
7911
7912
7913 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7914 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7915 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   lt_cv_prog_compiler_c_o=no
7919    $rm -r conftest 2>/dev/null
7920    mkdir conftest
7921    cd conftest
7922    mkdir out
7923    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7924
7925    lt_compiler_flag="-o out/conftest2.$ac_objext"
7926    # Insert the option either (1) after the last *FLAGS variable, or
7927    # (2) before a word containing "conftest.", or (3) at the end.
7928    # Note that $ac_compile itself does not contain backslashes and begins
7929    # with a dollar sign (not a hyphen), so the echo should work correctly.
7930    lt_compile=`echo "$ac_compile" | $SED \
7931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933    -e 's:$: $lt_compiler_flag:'`
7934    (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935    (eval "$lt_compile" 2>out/conftest.err)
7936    ac_status=$?
7937    cat out/conftest.err >&5
7938    echo "$as_me:7938: \$? = $ac_status" >&5
7939    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7940    then
7941      # The compiler can only warn and ignore the option if not recognized
7942      # So say no if there are warnings
7943      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7944      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7945      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7946        lt_cv_prog_compiler_c_o=yes
7947      fi
7948    fi
7949    chmod u+w . 2>&5
7950    $rm conftest*
7951    # SGI C++ compiler will create directory out/ii_files/ for
7952    # template instantiation
7953    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7954    $rm out/* && rmdir out
7955    cd ..
7956    rmdir conftest
7957    $rm conftest*
7958
7959 fi
7960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7961 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7962
7963
7964 hard_links="nottested"
7965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7966   # do not overwrite the value of need_locks provided by the user
7967   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7969   hard_links=yes
7970   $rm conftest*
7971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7972   touch conftest.a
7973   ln conftest.a conftest.b 2>&5 || hard_links=no
7974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7975   echo "$as_me:$LINENO: result: $hard_links" >&5
7976 echo "${ECHO_T}$hard_links" >&6
7977   if test "$hard_links" = no; then
7978     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7980     need_locks=warn
7981   fi
7982 else
7983   need_locks=no
7984 fi
7985
7986 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7988
7989   runpath_var=
7990   allow_undefined_flag=
7991   enable_shared_with_static_runtimes=no
7992   archive_cmds=
7993   archive_expsym_cmds=
7994   old_archive_From_new_cmds=
7995   old_archive_from_expsyms_cmds=
7996   export_dynamic_flag_spec=
7997   whole_archive_flag_spec=
7998   thread_safe_flag_spec=
7999   hardcode_libdir_flag_spec=
8000   hardcode_libdir_flag_spec_ld=
8001   hardcode_libdir_separator=
8002   hardcode_direct=no
8003   hardcode_minus_L=no
8004   hardcode_shlibpath_var=unsupported
8005   link_all_deplibs=unknown
8006   hardcode_automatic=no
8007   module_cmds=
8008   module_expsym_cmds=
8009   always_export_symbols=no
8010   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8011   # include_expsyms should be a list of space-separated symbols to be *always*
8012   # included in the symbol list
8013   include_expsyms=
8014   # exclude_expsyms can be an extended regexp of symbols to exclude
8015   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8016   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8017   # as well as any symbol that contains `d'.
8018   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8019   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8020   # platforms (ab)use it in PIC code, but their linkers get confused if
8021   # the symbol is explicitly referenced.  Since portable code cannot
8022   # rely on this symbol name, it's probably fine to never include it in
8023   # preloaded symbol tables.
8024   extract_expsyms_cmds=
8025   # Just being paranoid about ensuring that cc_basename is set.
8026   for cc_temp in $compiler""; do
8027   case $cc_temp in
8028     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8030     \-*) ;;
8031     *) break;;
8032   esac
8033 done
8034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8035
8036   case $host_os in
8037   cygwin* | mingw* | pw32*)
8038     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8039     # When not using gcc, we currently assume that we are using
8040     # Microsoft Visual C++.
8041     if test "$GCC" != yes; then
8042       with_gnu_ld=no
8043     fi
8044     ;;
8045   interix*)
8046     # we just hope/assume this is gcc and not c89 (= MSVC++)
8047     with_gnu_ld=yes
8048     ;;
8049   openbsd*)
8050     with_gnu_ld=no
8051     ;;
8052   esac
8053
8054   ld_shlibs=yes
8055   if test "$with_gnu_ld" = yes; then
8056     # If archive_cmds runs LD, not CC, wlarc should be empty
8057     wlarc='${wl}'
8058
8059     # Set some defaults for GNU ld with shared library support. These
8060     # are reset later if shared libraries are not supported. Putting them
8061     # here allows them to be overridden if necessary.
8062     runpath_var=LD_RUN_PATH
8063     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8064     export_dynamic_flag_spec='${wl}--export-dynamic'
8065     # ancient GNU ld didn't support --whole-archive et. al.
8066     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8067         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068       else
8069         whole_archive_flag_spec=
8070     fi
8071     supports_anon_versioning=no
8072     case `$LD -v 2>/dev/null` in
8073       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076       *\ 2.11.*) ;; # other 2.11 versions
8077       *) supports_anon_versioning=yes ;;
8078     esac
8079
8080     # See if GNU ld supports shared libraries.
8081     case $host_os in
8082     aix3* | aix4* | aix5*)
8083       # On AIX/PPC, the GNU linker is very broken
8084       if test "$host_cpu" != ia64; then
8085         ld_shlibs=no
8086         cat <<EOF 1>&2
8087
8088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8089 *** to be unable to reliably create shared libraries on AIX.
8090 *** Therefore, libtool is disabling shared libraries support.  If you
8091 *** really care for shared libraries, you may want to modify your PATH
8092 *** so that a non-GNU linker is found, and then restart.
8093
8094 EOF
8095       fi
8096       ;;
8097
8098     amigaos*)
8099       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)'
8100       hardcode_libdir_flag_spec='-L$libdir'
8101       hardcode_minus_L=yes
8102
8103       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8104       # that the semantics of dynamic libraries on AmigaOS, at least up
8105       # to version 4, is to share data among multiple programs linked
8106       # with the same dynamic library.  Since this doesn't match the
8107       # behavior of shared libraries on other platforms, we can't use
8108       # them.
8109       ld_shlibs=no
8110       ;;
8111
8112     beos*)
8113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114         allow_undefined_flag=unsupported
8115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8116         # support --undefined.  This deserves some investigation.  FIXME
8117         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118       else
8119         ld_shlibs=no
8120       fi
8121       ;;
8122
8123     cygwin* | mingw* | pw32*)
8124       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8125       # as there is no search path for DLLs.
8126       hardcode_libdir_flag_spec='-L$libdir'
8127       allow_undefined_flag=unsupported
8128       always_export_symbols=no
8129       enable_shared_with_static_runtimes=yes
8130       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8131
8132       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134         # If the export-symbols file already is a .def file (1st line
8135         # is EXPORTS), use it as is; otherwise, prepend...
8136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8137           cp $export_symbols $output_objdir/$soname.def;
8138         else
8139           echo EXPORTS > $output_objdir/$soname.def;
8140           cat $export_symbols >> $output_objdir/$soname.def;
8141         fi~
8142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8143       else
8144         ld_shlibs=no
8145       fi
8146       ;;
8147
8148     interix3*)
8149       hardcode_direct=no
8150       hardcode_shlibpath_var=no
8151       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152       export_dynamic_flag_spec='${wl}-E'
8153       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8154       # Instead, shared libraries are loaded at an image base (0x10000000 by
8155       # default) and relocated if they conflict, which is a slow very memory
8156       # consuming and fragmenting process.  To avoid this, we pick a random,
8157       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8158       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8159       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8160       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8161       ;;
8162
8163     linux* | k*bsd*-gnu)
8164       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165         tmp_addflag=
8166         case $cc_basename,$host_cpu in
8167         pgcc*)                          # Portland Group C compiler
8168           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8169           tmp_addflag=' $pic_flag'
8170           ;;
8171         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8172           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8173           tmp_addflag=' $pic_flag -Mnomain' ;;
8174         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8175           tmp_addflag=' -i_dynamic' ;;
8176         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8177           tmp_addflag=' -i_dynamic -nofor_main' ;;
8178         ifc* | ifort*)                  # Intel Fortran compiler
8179           tmp_addflag=' -nofor_main' ;;
8180         esac
8181         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182
8183         if test $supports_anon_versioning = yes; then
8184           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8185   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8186   $echo "local: *; };" >> $output_objdir/$libname.ver~
8187           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8188         fi
8189         link_all_deplibs=no
8190       else
8191         ld_shlibs=no
8192       fi
8193       ;;
8194
8195     netbsd* | netbsdelf*-gnu)
8196       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8197         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8198         wlarc=
8199       else
8200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202       fi
8203       ;;
8204
8205     solaris*)
8206       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8207         ld_shlibs=no
8208         cat <<EOF 1>&2
8209
8210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8211 *** create shared libraries on Solaris systems.  Therefore, libtool
8212 *** is disabling shared libraries support.  We urge you to upgrade GNU
8213 *** binutils to release 2.9.1 or newer.  Another option is to modify
8214 *** your PATH or compiler configuration so that the native linker is
8215 *** used, and then restart.
8216
8217 EOF
8218       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221       else
8222         ld_shlibs=no
8223       fi
8224       ;;
8225
8226     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8227       case `$LD -v 2>&1` in
8228         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8229         ld_shlibs=no
8230         cat <<_LT_EOF 1>&2
8231
8232 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8233 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8234 *** is disabling shared libraries support.  We urge you to upgrade GNU
8235 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8236 *** your PATH or compiler configuration so that the native linker is
8237 *** used, and then restart.
8238
8239 _LT_EOF
8240         ;;
8241         *)
8242           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8243             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8244             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8245             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8246           else
8247             ld_shlibs=no
8248           fi
8249         ;;
8250       esac
8251       ;;
8252
8253     sunos4*)
8254       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8255       wlarc=
8256       hardcode_direct=yes
8257       hardcode_shlibpath_var=no
8258       ;;
8259
8260     *)
8261       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8263         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8264       else
8265         ld_shlibs=no
8266       fi
8267       ;;
8268     esac
8269
8270     if test "$ld_shlibs" = no; then
8271       runpath_var=
8272       hardcode_libdir_flag_spec=
8273       export_dynamic_flag_spec=
8274       whole_archive_flag_spec=
8275     fi
8276   else
8277     # PORTME fill in a description of your system's linker (not GNU ld)
8278     case $host_os in
8279     aix3*)
8280       allow_undefined_flag=unsupported
8281       always_export_symbols=yes
8282       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'
8283       # Note: this linker hardcodes the directories in LIBPATH if there
8284       # are no directories specified by -L.
8285       hardcode_minus_L=yes
8286       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8287         # Neither direct hardcoding nor static linking is supported with a
8288         # broken collect2.
8289         hardcode_direct=unsupported
8290       fi
8291       ;;
8292
8293     aix4* | aix5*)
8294       if test "$host_cpu" = ia64; then
8295         # On IA64, the linker does run time linking by default, so we don't
8296         # have to do anything special.
8297         aix_use_runtimelinking=no
8298         exp_sym_flag='-Bexport'
8299         no_entry_flag=""
8300       else
8301         # If we're using GNU nm, then we don't want the "-C" option.
8302         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8303         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8304           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8305         else
8306           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8307         fi
8308         aix_use_runtimelinking=no
8309
8310         # Test if we are trying to use run time linking or normal
8311         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8312         # need to do runtime linking.
8313         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8314           for ld_flag in $LDFLAGS; do
8315           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8316             aix_use_runtimelinking=yes
8317             break
8318           fi
8319           done
8320           ;;
8321         esac
8322
8323         exp_sym_flag='-bexport'
8324         no_entry_flag='-bnoentry'
8325       fi
8326
8327       # When large executables or shared objects are built, AIX ld can
8328       # have problems creating the table of contents.  If linking a library
8329       # or program results in "error TOC overflow" add -mminimal-toc to
8330       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8331       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8332
8333       archive_cmds=''
8334       hardcode_direct=yes
8335       hardcode_libdir_separator=':'
8336       link_all_deplibs=yes
8337
8338       if test "$GCC" = yes; then
8339         case $host_os in aix4.[012]|aix4.[012].*)
8340         # We only want to do this on AIX 4.2 and lower, the check
8341         # below for broken collect2 doesn't work under 4.3+
8342           collect2name=`${CC} -print-prog-name=collect2`
8343           if test -f "$collect2name" && \
8344            strings "$collect2name" | grep resolve_lib_name >/dev/null
8345           then
8346           # We have reworked collect2
8347           hardcode_direct=yes
8348           else
8349           # We have old collect2
8350           hardcode_direct=unsupported
8351           # It fails to find uninstalled libraries when the uninstalled
8352           # path is not listed in the libpath.  Setting hardcode_minus_L
8353           # to unsupported forces relinking
8354           hardcode_minus_L=yes
8355           hardcode_libdir_flag_spec='-L$libdir'
8356           hardcode_libdir_separator=
8357           fi
8358           ;;
8359         esac
8360         shared_flag='-shared'
8361         if test "$aix_use_runtimelinking" = yes; then
8362           shared_flag="$shared_flag "'${wl}-G'
8363         fi
8364       else
8365         # not using gcc
8366         if test "$host_cpu" = ia64; then
8367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368         # chokes on -Wl,-G. The following line is correct:
8369           shared_flag='-G'
8370         else
8371           if test "$aix_use_runtimelinking" = yes; then
8372             shared_flag='${wl}-G'
8373           else
8374             shared_flag='${wl}-bM:SRE'
8375           fi
8376         fi
8377       fi
8378
8379       # It seems that -bexpall does not export symbols beginning with
8380       # underscore (_), so it is better to generate a list of symbols to export.
8381       always_export_symbols=yes
8382       if test "$aix_use_runtimelinking" = yes; then
8383         # Warning - without using the other runtime loading flags (-brtl),
8384         # -berok will link without error, but may produce a broken library.
8385         allow_undefined_flag='-berok'
8386        # Determine the default libpath from the value encoded in an empty executable.
8387        cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393
8394 int
8395 main ()
8396 {
8397
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404   (eval $ac_link) 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; } &&
8417          { ac_try='test -s conftest$ac_exeext'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423
8424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8425 }'`
8426 # Check for a 64-bit object if we didn't find anything.
8427 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8428 }'`; fi
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 fi
8434 rm -f conftest.err conftest.$ac_objext \
8435       conftest$ac_exeext conftest.$ac_ext
8436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437
8438        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8440        else
8441         if test "$host_cpu" = ia64; then
8442           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8443           allow_undefined_flag="-z nodefs"
8444           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8445         else
8446          # Determine the default libpath from the value encoded in an empty executable.
8447          cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 int
8455 main ()
8456 {
8457
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; } &&
8477          { ac_try='test -s conftest$ac_exeext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483
8484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8485 }'`
8486 # Check for a 64-bit object if we didn't find anything.
8487 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8488 }'`; fi
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 fi
8494 rm -f conftest.err conftest.$ac_objext \
8495       conftest$ac_exeext conftest.$ac_ext
8496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8497
8498          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8499           # Warning - without using the other run time loading flags,
8500           # -berok will link without error, but may produce a broken library.
8501           no_undefined_flag=' ${wl}-bernotok'
8502           allow_undefined_flag=' ${wl}-berok'
8503           # Exported symbols can be pulled into shared objects from archives
8504           whole_archive_flag_spec='$convenience'
8505           archive_cmds_need_lc=yes
8506           # This is similar to how AIX traditionally builds its shared libraries.
8507           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8508         fi
8509       fi
8510       ;;
8511
8512     amigaos*)
8513       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)'
8514       hardcode_libdir_flag_spec='-L$libdir'
8515       hardcode_minus_L=yes
8516       # see comment about different semantics on the GNU ld section
8517       ld_shlibs=no
8518       ;;
8519
8520     bsdi[45]*)
8521       export_dynamic_flag_spec=-rdynamic
8522       ;;
8523
8524     cygwin* | mingw* | pw32*)
8525       # When not using gcc, we currently assume that we are using
8526       # Microsoft Visual C++.
8527       # hardcode_libdir_flag_spec is actually meaningless, as there is
8528       # no search path for DLLs.
8529       hardcode_libdir_flag_spec=' '
8530       allow_undefined_flag=unsupported
8531       # Tell ltmain to make .lib files, not .a files.
8532       libext=lib
8533       # Tell ltmain to make .dll files, not .so files.
8534       shrext_cmds=".dll"
8535       # FIXME: Setting linknames here is a bad hack.
8536       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8537       # The linker will automatically build a .lib file if we build a DLL.
8538       old_archive_From_new_cmds='true'
8539       # FIXME: Should let the user specify the lib program.
8540       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8541       fix_srcfile_path='`cygpath -w "$srcfile"`'
8542       enable_shared_with_static_runtimes=yes
8543       ;;
8544
8545     darwin* | rhapsody*)
8546       case $host_os in
8547         rhapsody* | darwin1.[012])
8548          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8549          ;;
8550        *) # Darwin 1.3 on
8551          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8552            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8553          else
8554            case ${MACOSX_DEPLOYMENT_TARGET} in
8555              10.[012])
8556                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557                ;;
8558              10.*)
8559                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8560                ;;
8561            esac
8562          fi
8563          ;;
8564       esac
8565       archive_cmds_need_lc=no
8566       hardcode_direct=no
8567       hardcode_automatic=yes
8568       hardcode_shlibpath_var=unsupported
8569       whole_archive_flag_spec=''
8570       link_all_deplibs=yes
8571     if test "$GCC" = yes ; then
8572         output_verbose_link_cmd='echo'
8573         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8574       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8575       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8576       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8577       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8578     else
8579       case $cc_basename in
8580         xlc*)
8581          output_verbose_link_cmd='echo'
8582          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8583          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8584           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8585          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8586           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8587           ;;
8588        *)
8589          ld_shlibs=no
8590           ;;
8591       esac
8592     fi
8593       ;;
8594
8595     dgux*)
8596       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8597       hardcode_libdir_flag_spec='-L$libdir'
8598       hardcode_shlibpath_var=no
8599       ;;
8600
8601     freebsd1*)
8602       ld_shlibs=no
8603       ;;
8604
8605     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8606     # support.  Future versions do this automatically, but an explicit c++rt0.o
8607     # does not break anything, and helps significantly (at the cost of a little
8608     # extra space).
8609     freebsd2.2*)
8610       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8611       hardcode_libdir_flag_spec='-R$libdir'
8612       hardcode_direct=yes
8613       hardcode_shlibpath_var=no
8614       ;;
8615
8616     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8617     freebsd2*)
8618       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8619       hardcode_direct=yes
8620       hardcode_minus_L=yes
8621       hardcode_shlibpath_var=no
8622       ;;
8623
8624     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8625     freebsd* | dragonfly*)
8626       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8627       hardcode_libdir_flag_spec='-R$libdir'
8628       hardcode_direct=yes
8629       hardcode_shlibpath_var=no
8630       ;;
8631
8632     hpux9*)
8633       if test "$GCC" = yes; then
8634         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8635       else
8636         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'
8637       fi
8638       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8639       hardcode_libdir_separator=:
8640       hardcode_direct=yes
8641
8642       # hardcode_minus_L: Not really in the search PATH,
8643       # but as the default location of the library.
8644       hardcode_minus_L=yes
8645       export_dynamic_flag_spec='${wl}-E'
8646       ;;
8647
8648     hpux10*)
8649       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8650         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8651       else
8652         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8653       fi
8654       if test "$with_gnu_ld" = no; then
8655         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8656         hardcode_libdir_separator=:
8657
8658         hardcode_direct=yes
8659         export_dynamic_flag_spec='${wl}-E'
8660
8661         # hardcode_minus_L: Not really in the search PATH,
8662         # but as the default location of the library.
8663         hardcode_minus_L=yes
8664       fi
8665       ;;
8666
8667     hpux11*)
8668       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8669         case $host_cpu in
8670         hppa*64*)
8671           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672           ;;
8673         ia64*)
8674           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8675           ;;
8676         *)
8677           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678           ;;
8679         esac
8680       else
8681         case $host_cpu in
8682         hppa*64*)
8683           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8684           ;;
8685         ia64*)
8686           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8687           ;;
8688         *)
8689           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8690           ;;
8691         esac
8692       fi
8693       if test "$with_gnu_ld" = no; then
8694         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8695         hardcode_libdir_separator=:
8696
8697         case $host_cpu in
8698         hppa*64*|ia64*)
8699           hardcode_libdir_flag_spec_ld='+b $libdir'
8700           hardcode_direct=no
8701           hardcode_shlibpath_var=no
8702           ;;
8703         *)
8704           hardcode_direct=yes
8705           export_dynamic_flag_spec='${wl}-E'
8706
8707           # hardcode_minus_L: Not really in the search PATH,
8708           # but as the default location of the library.
8709           hardcode_minus_L=yes
8710           ;;
8711         esac
8712       fi
8713       ;;
8714
8715     irix5* | irix6* | nonstopux*)
8716       if test "$GCC" = yes; then
8717         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'
8718       else
8719         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'
8720         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8721       fi
8722       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723       hardcode_libdir_separator=:
8724       link_all_deplibs=yes
8725       ;;
8726
8727     netbsd* | netbsdelf*-gnu)
8728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8729         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8730       else
8731         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8732       fi
8733       hardcode_libdir_flag_spec='-R$libdir'
8734       hardcode_direct=yes
8735       hardcode_shlibpath_var=no
8736       ;;
8737
8738     newsos6)
8739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740       hardcode_direct=yes
8741       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742       hardcode_libdir_separator=:
8743       hardcode_shlibpath_var=no
8744       ;;
8745
8746     openbsd*)
8747       hardcode_direct=yes
8748       hardcode_shlibpath_var=no
8749       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8750         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8752         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753         export_dynamic_flag_spec='${wl}-E'
8754       else
8755        case $host_os in
8756          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8757            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758            hardcode_libdir_flag_spec='-R$libdir'
8759            ;;
8760          *)
8761            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8762            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8763            ;;
8764        esac
8765       fi
8766       ;;
8767
8768     os2*)
8769       hardcode_libdir_flag_spec='-L$libdir'
8770       hardcode_minus_L=yes
8771       allow_undefined_flag=unsupported
8772       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'
8773       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8774       ;;
8775
8776     osf3*)
8777       if test "$GCC" = yes; then
8778         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8779         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'
8780       else
8781         allow_undefined_flag=' -expect_unresolved \*'
8782         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'
8783       fi
8784       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785       hardcode_libdir_separator=:
8786       ;;
8787
8788     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8789       if test "$GCC" = yes; then
8790         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8791         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'
8792         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793       else
8794         allow_undefined_flag=' -expect_unresolved \*'
8795         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'
8796         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8797         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8798
8799         # Both c and cxx compiler support -rpath directly
8800         hardcode_libdir_flag_spec='-rpath $libdir'
8801       fi
8802       hardcode_libdir_separator=:
8803       ;;
8804
8805     solaris*)
8806       no_undefined_flag=' -z text'
8807       if test "$GCC" = yes; then
8808         wlarc='${wl}'
8809         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8810         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8811           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8812       else
8813         wlarc=''
8814         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8816         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8817       fi
8818       hardcode_libdir_flag_spec='-R$libdir'
8819       hardcode_shlibpath_var=no
8820       case $host_os in
8821       solaris2.[0-5] | solaris2.[0-5].*) ;;
8822       *)
8823         # The compiler driver will combine linker options so we
8824         # cannot just pass the convience library names through
8825         # without $wl, iff we do not link with $LD.
8826         # Luckily, gcc supports the same syntax we need for Sun Studio.
8827         # Supported since Solaris 2.6 (maybe 2.5.1?)
8828         case $wlarc in
8829         '')
8830           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8831         *)
8832           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8833         esac ;;
8834       esac
8835       link_all_deplibs=yes
8836       ;;
8837
8838     sunos4*)
8839       if test "x$host_vendor" = xsequent; then
8840         # Use $CC to link under sequent, because it throws in some extra .o
8841         # files that make .init and .fini sections work.
8842         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8843       else
8844         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8845       fi
8846       hardcode_libdir_flag_spec='-L$libdir'
8847       hardcode_direct=yes
8848       hardcode_minus_L=yes
8849       hardcode_shlibpath_var=no
8850       ;;
8851
8852     sysv4)
8853       case $host_vendor in
8854         sni)
8855           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856           hardcode_direct=yes # is this really true???
8857         ;;
8858         siemens)
8859           ## LD is ld it makes a PLAMLIB
8860           ## CC just makes a GrossModule.
8861           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8862           reload_cmds='$CC -r -o $output$reload_objs'
8863           hardcode_direct=no
8864         ;;
8865         motorola)
8866           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8868         ;;
8869       esac
8870       runpath_var='LD_RUN_PATH'
8871       hardcode_shlibpath_var=no
8872       ;;
8873
8874     sysv4.3*)
8875       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876       hardcode_shlibpath_var=no
8877       export_dynamic_flag_spec='-Bexport'
8878       ;;
8879
8880     sysv4*MP*)
8881       if test -d /usr/nec; then
8882         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883         hardcode_shlibpath_var=no
8884         runpath_var=LD_RUN_PATH
8885         hardcode_runpath_var=yes
8886         ld_shlibs=yes
8887       fi
8888       ;;
8889
8890     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8891       no_undefined_flag='${wl}-z,text'
8892       archive_cmds_need_lc=no
8893       hardcode_shlibpath_var=no
8894       runpath_var='LD_RUN_PATH'
8895
8896       if test "$GCC" = yes; then
8897         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8898         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8899       else
8900         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8901         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8902       fi
8903       ;;
8904
8905     sysv5* | sco3.2v5* | sco5v6*)
8906       # Note: We can NOT use -z defs as we might desire, because we do not
8907       # link with -lc, and that would cause any symbols used from libc to
8908       # always be unresolved, which means just about no library would
8909       # ever link correctly.  If we're not using GNU ld we use -z text
8910       # though, which does catch some bad symbols but isn't as heavy-handed
8911       # as -z defs.
8912       no_undefined_flag='${wl}-z,text'
8913       allow_undefined_flag='${wl}-z,nodefs'
8914       archive_cmds_need_lc=no
8915       hardcode_shlibpath_var=no
8916       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8917       hardcode_libdir_separator=':'
8918       link_all_deplibs=yes
8919       export_dynamic_flag_spec='${wl}-Bexport'
8920       runpath_var='LD_RUN_PATH'
8921
8922       if test "$GCC" = yes; then
8923         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925       else
8926         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8927         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928       fi
8929       ;;
8930
8931     uts4*)
8932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933       hardcode_libdir_flag_spec='-L$libdir'
8934       hardcode_shlibpath_var=no
8935       ;;
8936
8937     *)
8938       ld_shlibs=no
8939       ;;
8940     esac
8941   fi
8942
8943 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8944 echo "${ECHO_T}$ld_shlibs" >&6
8945 test "$ld_shlibs" = no && can_build_shared=no
8946
8947 #
8948 # Do we need to explicitly link libc?
8949 #
8950 case "x$archive_cmds_need_lc" in
8951 x|xyes)
8952   # Assume -lc should be added
8953   archive_cmds_need_lc=yes
8954
8955   if test "$enable_shared" = yes && test "$GCC" = yes; then
8956     case $archive_cmds in
8957     *'~'*)
8958       # FIXME: we may have to deal with multi-command sequences.
8959       ;;
8960     '$CC '*)
8961       # Test whether the compiler implicitly links with -lc since on some
8962       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8963       # to ld, don't add -lc before -lgcc.
8964       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8966       $rm conftest*
8967       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8968
8969       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8970   (eval $ac_compile) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } 2>conftest.err; then
8974         soname=conftest
8975         lib=conftest
8976         libobjs=conftest.$ac_objext
8977         deplibs=
8978         wl=$lt_prog_compiler_wl
8979         pic_flag=$lt_prog_compiler_pic
8980         compiler_flags=-v
8981         linker_flags=-v
8982         verstring=
8983         output_objdir=.
8984         libname=conftest
8985         lt_save_allow_undefined_flag=$allow_undefined_flag
8986         allow_undefined_flag=
8987         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8988   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }
8992         then
8993           archive_cmds_need_lc=no
8994         else
8995           archive_cmds_need_lc=yes
8996         fi
8997         allow_undefined_flag=$lt_save_allow_undefined_flag
8998       else
8999         cat conftest.err 1>&5
9000       fi
9001       $rm conftest*
9002       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9003 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9004       ;;
9005     esac
9006   fi
9007   ;;
9008 esac
9009
9010 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9011 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9012 library_names_spec=
9013 libname_spec='lib$name'
9014 soname_spec=
9015 shrext_cmds=".so"
9016 postinstall_cmds=
9017 postuninstall_cmds=
9018 finish_cmds=
9019 finish_eval=
9020 shlibpath_var=
9021 shlibpath_overrides_runpath=unknown
9022 version_type=none
9023 dynamic_linker="$host_os ld.so"
9024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9025 if test "$GCC" = yes; then
9026   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9027   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9028     # if the path contains ";" then we assume it to be the separator
9029     # otherwise default to the standard path separator (i.e. ":") - it is
9030     # assumed that no part of a normal pathname contains ";" but that should
9031     # okay in the real world where ";" in dirpaths is itself problematic.
9032     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9033   else
9034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9035   fi
9036 else
9037   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9038 fi
9039 need_lib_prefix=unknown
9040 hardcode_into_libs=no
9041
9042 # when you set need_version to no, make sure it does not cause -set_version
9043 # flags to be left without arguments
9044 need_version=unknown
9045
9046 case $host_os in
9047 aix3*)
9048   version_type=linux
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9050   shlibpath_var=LIBPATH
9051
9052   # AIX 3 has no versioning support, so we append a major version to the name.
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   ;;
9055
9056 aix4* | aix5*)
9057   version_type=linux
9058   need_lib_prefix=no
9059   need_version=no
9060   hardcode_into_libs=yes
9061   if test "$host_cpu" = ia64; then
9062     # AIX 5 supports IA64
9063     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9064     shlibpath_var=LD_LIBRARY_PATH
9065   else
9066     # With GCC up to 2.95.x, collect2 would create an import file
9067     # for dependence libraries.  The import file would start with
9068     # the line `#! .'.  This would cause the generated library to
9069     # depend on `.', always an invalid library.  This was fixed in
9070     # development snapshots of GCC prior to 3.0.
9071     case $host_os in
9072       aix4 | aix4.[01] | aix4.[01].*)
9073       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9074            echo ' yes '
9075            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9076         :
9077       else
9078         can_build_shared=no
9079       fi
9080       ;;
9081     esac
9082     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9083     # soname into executable. Probably we can add versioning support to
9084     # collect2, so additional links can be useful in future.
9085     if test "$aix_use_runtimelinking" = yes; then
9086       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9087       # instead of lib<name>.a to let people know that these are not
9088       # typical AIX shared libraries.
9089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090     else
9091       # We preserve .a as extension for shared libraries through AIX4.2
9092       # and later when we are not doing run time linking.
9093       library_names_spec='${libname}${release}.a $libname.a'
9094       soname_spec='${libname}${release}${shared_ext}$major'
9095     fi
9096     shlibpath_var=LIBPATH
9097   fi
9098   ;;
9099
9100 amigaos*)
9101   library_names_spec='$libname.ixlibrary $libname.a'
9102   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9103   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'
9104   ;;
9105
9106 beos*)
9107   library_names_spec='${libname}${shared_ext}'
9108   dynamic_linker="$host_os ld.so"
9109   shlibpath_var=LIBRARY_PATH
9110   ;;
9111
9112 bsdi[45]*)
9113   version_type=linux
9114   need_version=no
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9120   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9121   # the default ld.so.conf also contains /usr/contrib/lib and
9122   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9123   # libtool to hard-code these into programs
9124   ;;
9125
9126 cygwin* | mingw* | pw32*)
9127   version_type=windows
9128   shrext_cmds=".dll"
9129   need_version=no
9130   need_lib_prefix=no
9131
9132   case $GCC,$host_os in
9133   yes,cygwin* | yes,mingw* | yes,pw32*)
9134     library_names_spec='$libname.dll.a'
9135     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9136     postinstall_cmds='base_file=`basename \${file}`~
9137       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9138       dldir=$destdir/`dirname \$dlpath`~
9139       test -d \$dldir || mkdir -p \$dldir~
9140       $install_prog $dir/$dlname \$dldir/$dlname~
9141       chmod a+x \$dldir/$dlname'
9142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9143       dlpath=$dir/\$dldll~
9144        $rm \$dlpath'
9145     shlibpath_overrides_runpath=yes
9146
9147     case $host_os in
9148     cygwin*)
9149       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9150       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9152       ;;
9153     mingw*)
9154       # MinGW DLLs use traditional 'lib' prefix
9155       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9157       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9158         # It is most probably a Windows format PATH printed by
9159         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9160         # path with ; separators, and with drive letters. We can handle the
9161         # drive letters (cygwin fileutils understands them), so leave them,
9162         # especially as we might pass files found there to a mingw objdump,
9163         # which wouldn't understand a cygwinified path. Ahh.
9164         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9165       else
9166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9167       fi
9168       ;;
9169     pw32*)
9170       # pw32 DLLs use 'pw' prefix rather than 'lib'
9171       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9172       ;;
9173     esac
9174     ;;
9175
9176   *)
9177     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9178     ;;
9179   esac
9180   dynamic_linker='Win32 ld.exe'
9181   # FIXME: first we should search . and the directory the executable is in
9182   shlibpath_var=PATH
9183   ;;
9184
9185 darwin* | rhapsody*)
9186   dynamic_linker="$host_os dyld"
9187   version_type=darwin
9188   need_lib_prefix=no
9189   need_version=no
9190   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9191   soname_spec='${libname}${release}${major}$shared_ext'
9192   shlibpath_overrides_runpath=yes
9193   shlibpath_var=DYLD_LIBRARY_PATH
9194   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9195   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9196   if test "$GCC" = yes; then
9197     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9198   else
9199     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9200   fi
9201   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9202   ;;
9203
9204 dgux*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   ;;
9212
9213 freebsd1*)
9214   dynamic_linker=no
9215   ;;
9216
9217 freebsd* | dragonfly*)
9218   # DragonFly does not have aout.  When/if they implement a new
9219   # versioning mechanism, adjust this.
9220   if test -x /usr/bin/objformat; then
9221     objformat=`/usr/bin/objformat`
9222   else
9223     case $host_os in
9224     freebsd[123]*) objformat=aout ;;
9225     *) objformat=elf ;;
9226     esac
9227   fi
9228   version_type=freebsd-$objformat
9229   case $version_type in
9230     freebsd-elf*)
9231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9232       need_version=no
9233       need_lib_prefix=no
9234       ;;
9235     freebsd-*)
9236       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9237       need_version=yes
9238       ;;
9239   esac
9240   shlibpath_var=LD_LIBRARY_PATH
9241   case $host_os in
9242   freebsd2*)
9243     shlibpath_overrides_runpath=yes
9244     ;;
9245   freebsd3.[01]* | freebsdelf3.[01]*)
9246     shlibpath_overrides_runpath=yes
9247     hardcode_into_libs=yes
9248     ;;
9249   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9250   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9251     shlibpath_overrides_runpath=no
9252     hardcode_into_libs=yes
9253     ;;
9254   freebsd*) # from 4.6 on
9255     shlibpath_overrides_runpath=yes
9256     hardcode_into_libs=yes
9257     ;;
9258   esac
9259   ;;
9260
9261 gnu*)
9262   version_type=linux
9263   need_lib_prefix=no
9264   need_version=no
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   hardcode_into_libs=yes
9269   ;;
9270
9271 hpux9* | hpux10* | hpux11*)
9272   # Give a soname corresponding to the major version so that dld.sl refuses to
9273   # link against other versions.
9274   version_type=sunos
9275   need_lib_prefix=no
9276   need_version=no
9277   case $host_cpu in
9278   ia64*)
9279     shrext_cmds='.so'
9280     hardcode_into_libs=yes
9281     dynamic_linker="$host_os dld.so"
9282     shlibpath_var=LD_LIBRARY_PATH
9283     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285     soname_spec='${libname}${release}${shared_ext}$major'
9286     if test "X$HPUX_IA64_MODE" = X32; then
9287       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9288     else
9289       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9290     fi
9291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9292     ;;
9293    hppa*64*)
9294      shrext_cmds='.sl'
9295      hardcode_into_libs=yes
9296      dynamic_linker="$host_os dld.sl"
9297      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9298      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9299      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300      soname_spec='${libname}${release}${shared_ext}$major'
9301      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9302      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303      ;;
9304    *)
9305     shrext_cmds='.sl'
9306     dynamic_linker="$host_os dld.sl"
9307     shlibpath_var=SHLIB_PATH
9308     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310     soname_spec='${libname}${release}${shared_ext}$major'
9311     ;;
9312   esac
9313   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9314   postinstall_cmds='chmod 555 $lib'
9315   ;;
9316
9317 interix3*)
9318   version_type=linux
9319   need_lib_prefix=no
9320   need_version=no
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9322   soname_spec='${libname}${release}${shared_ext}$major'
9323   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   shlibpath_overrides_runpath=no
9326   hardcode_into_libs=yes
9327   ;;
9328
9329 irix5* | irix6* | nonstopux*)
9330   case $host_os in
9331     nonstopux*) version_type=nonstopux ;;
9332     *)
9333         if test "$lt_cv_prog_gnu_ld" = yes; then
9334                 version_type=linux
9335         else
9336                 version_type=irix
9337         fi ;;
9338   esac
9339   need_lib_prefix=no
9340   need_version=no
9341   soname_spec='${libname}${release}${shared_ext}$major'
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9343   case $host_os in
9344   irix5* | nonstopux*)
9345     libsuff= shlibsuff=
9346     ;;
9347   *)
9348     case $LD in # libtool.m4 will add one of these switches to LD
9349     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9350       libsuff= shlibsuff= libmagic=32-bit;;
9351     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9352       libsuff=32 shlibsuff=N32 libmagic=N32;;
9353     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9354       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9355     *) libsuff= shlibsuff= libmagic=never-match;;
9356     esac
9357     ;;
9358   esac
9359   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9360   shlibpath_overrides_runpath=no
9361   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9362   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9363   hardcode_into_libs=yes
9364   ;;
9365
9366 # No shared lib support for Linux oldld, aout, or coff.
9367 linux*oldld* | linux*aout* | linux*coff*)
9368   dynamic_linker=no
9369   ;;
9370
9371 # This must be Linux ELF.
9372 linux* | k*bsd*-gnu)
9373   version_type=linux
9374   need_lib_prefix=no
9375   need_version=no
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377   soname_spec='${libname}${release}${shared_ext}$major'
9378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9379   shlibpath_var=LD_LIBRARY_PATH
9380   shlibpath_overrides_runpath=no
9381   # This implies no fast_install, which is unacceptable.
9382   # Some rework will be needed to allow for fast_install
9383   # before this can be enabled.
9384   hardcode_into_libs=yes
9385
9386   # Append ld.so.conf contents to the search path
9387   if test -f /etc/ld.so.conf; then
9388     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9390   fi
9391
9392   # We used to test for /lib/ld.so.1 and disable shared libraries on
9393   # powerpc, because MkLinux only supported shared libraries with the
9394   # GNU dynamic linker.  Since this was broken with cross compilers,
9395   # most powerpc-linux boxes support dynamic linking these days and
9396   # people can always --disable-shared, the test was removed, and we
9397   # assume the GNU/Linux dynamic linker is in use.
9398   dynamic_linker='GNU/Linux ld.so'
9399   ;;
9400
9401 netbsdelf*-gnu)
9402   version_type=linux
9403   need_lib_prefix=no
9404   need_version=no
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406   soname_spec='${libname}${release}${shared_ext}$major'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   shlibpath_overrides_runpath=no
9409   hardcode_into_libs=yes
9410   dynamic_linker='NetBSD ld.elf_so'
9411   ;;
9412
9413 netbsd*)
9414   version_type=sunos
9415   need_lib_prefix=no
9416   need_version=no
9417   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9420     dynamic_linker='NetBSD (a.out) ld.so'
9421   else
9422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9423     soname_spec='${libname}${release}${shared_ext}$major'
9424     dynamic_linker='NetBSD ld.elf_so'
9425   fi
9426   shlibpath_var=LD_LIBRARY_PATH
9427   shlibpath_overrides_runpath=yes
9428   hardcode_into_libs=yes
9429   ;;
9430
9431 newsos6)
9432   version_type=linux
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434   shlibpath_var=LD_LIBRARY_PATH
9435   shlibpath_overrides_runpath=yes
9436   ;;
9437
9438 nto-qnx*)
9439   version_type=linux
9440   need_lib_prefix=no
9441   need_version=no
9442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443   soname_spec='${libname}${release}${shared_ext}$major'
9444   shlibpath_var=LD_LIBRARY_PATH
9445   shlibpath_overrides_runpath=yes
9446   ;;
9447
9448 openbsd*)
9449   version_type=sunos
9450   sys_lib_dlsearch_path_spec="/usr/lib"
9451   need_lib_prefix=no
9452   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9453   case $host_os in
9454     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9455     *)                         need_version=no  ;;
9456   esac
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9458   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9459   shlibpath_var=LD_LIBRARY_PATH
9460   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9461     case $host_os in
9462       openbsd2.[89] | openbsd2.[89].*)
9463         shlibpath_overrides_runpath=no
9464         ;;
9465       *)
9466         shlibpath_overrides_runpath=yes
9467         ;;
9468       esac
9469   else
9470     shlibpath_overrides_runpath=yes
9471   fi
9472   ;;
9473
9474 os2*)
9475   libname_spec='$name'
9476   shrext_cmds=".dll"
9477   need_lib_prefix=no
9478   library_names_spec='$libname${shared_ext} $libname.a'
9479   dynamic_linker='OS/2 ld.exe'
9480   shlibpath_var=LIBPATH
9481   ;;
9482
9483 osf3* | osf4* | osf5*)
9484   version_type=osf
9485   need_lib_prefix=no
9486   need_version=no
9487   soname_spec='${libname}${release}${shared_ext}$major'
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9491   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9492   ;;
9493
9494 solaris*)
9495   version_type=linux
9496   need_lib_prefix=no
9497   need_version=no
9498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499   soname_spec='${libname}${release}${shared_ext}$major'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   hardcode_into_libs=yes
9503   # ldd complains unless libraries are executable
9504   postinstall_cmds='chmod +x $lib'
9505   ;;
9506
9507 sunos4*)
9508   version_type=sunos
9509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9511   shlibpath_var=LD_LIBRARY_PATH
9512   shlibpath_overrides_runpath=yes
9513   if test "$with_gnu_ld" = yes; then
9514     need_lib_prefix=no
9515   fi
9516   need_version=yes
9517   ;;
9518
9519 sysv4 | sysv4.3*)
9520   version_type=linux
9521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522   soname_spec='${libname}${release}${shared_ext}$major'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   case $host_vendor in
9525     sni)
9526       shlibpath_overrides_runpath=no
9527       need_lib_prefix=no
9528       export_dynamic_flag_spec='${wl}-Blargedynsym'
9529       runpath_var=LD_RUN_PATH
9530       ;;
9531     siemens)
9532       need_lib_prefix=no
9533       ;;
9534     motorola)
9535       need_lib_prefix=no
9536       need_version=no
9537       shlibpath_overrides_runpath=no
9538       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9539       ;;
9540   esac
9541   ;;
9542
9543 sysv4*MP*)
9544   if test -d /usr/nec ;then
9545     version_type=linux
9546     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9547     soname_spec='$libname${shared_ext}.$major'
9548     shlibpath_var=LD_LIBRARY_PATH
9549   fi
9550   ;;
9551
9552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9553   version_type=freebsd-elf
9554   need_lib_prefix=no
9555   need_version=no
9556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9557   soname_spec='${libname}${release}${shared_ext}$major'
9558   shlibpath_var=LD_LIBRARY_PATH
9559   hardcode_into_libs=yes
9560   if test "$with_gnu_ld" = yes; then
9561     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9562     shlibpath_overrides_runpath=no
9563   else
9564     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9565     shlibpath_overrides_runpath=yes
9566     case $host_os in
9567       sco3.2v5*)
9568         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9569         ;;
9570     esac
9571   fi
9572   sys_lib_dlsearch_path_spec='/usr/lib'
9573   ;;
9574
9575 uts4*)
9576   version_type=linux
9577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578   soname_spec='${libname}${release}${shared_ext}$major'
9579   shlibpath_var=LD_LIBRARY_PATH
9580   ;;
9581
9582 *)
9583   dynamic_linker=no
9584   ;;
9585 esac
9586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9587 echo "${ECHO_T}$dynamic_linker" >&6
9588 test "$dynamic_linker" = no && can_build_shared=no
9589
9590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9591 if test "$GCC" = yes; then
9592   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9593 fi
9594
9595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9597 hardcode_action=
9598 if test -n "$hardcode_libdir_flag_spec" || \
9599    test -n "$runpath_var" || \
9600    test "X$hardcode_automatic" = "Xyes" ; then
9601
9602   # We can hardcode non-existant directories.
9603   if test "$hardcode_direct" != no &&
9604      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9605      # have to relink, otherwise we might link with an installed library
9606      # when we should be linking with a yet-to-be-installed one
9607      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9608      test "$hardcode_minus_L" != no; then
9609     # Linking always hardcodes the temporary library directory.
9610     hardcode_action=relink
9611   else
9612     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9613     hardcode_action=immediate
9614   fi
9615 else
9616   # We cannot hardcode anything, or else we can only hardcode existing
9617   # directories.
9618   hardcode_action=unsupported
9619 fi
9620 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9621 echo "${ECHO_T}$hardcode_action" >&6
9622
9623 if test "$hardcode_action" = relink; then
9624   # Fast installation is not supported
9625   enable_fast_install=no
9626 elif test "$shlibpath_overrides_runpath" = yes ||
9627      test "$enable_shared" = no; then
9628   # Fast installation is not necessary
9629   enable_fast_install=needless
9630 fi
9631
9632 striplib=
9633 old_striplib=
9634 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9635 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9636 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9637   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9638   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9639   echo "$as_me:$LINENO: result: yes" >&5
9640 echo "${ECHO_T}yes" >&6
9641 else
9642 # FIXME - insert some real tests, host_os isn't really good enough
9643   case $host_os in
9644    darwin*)
9645        if test -n "$STRIP" ; then
9646          striplib="$STRIP -x"
9647          echo "$as_me:$LINENO: result: yes" >&5
9648 echo "${ECHO_T}yes" >&6
9649        else
9650   echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6
9652 fi
9653        ;;
9654    *)
9655   echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9657     ;;
9658   esac
9659 fi
9660
9661 if test "x$enable_dlopen" != xyes; then
9662   enable_dlopen=unknown
9663   enable_dlopen_self=unknown
9664   enable_dlopen_self_static=unknown
9665 else
9666   lt_cv_dlopen=no
9667   lt_cv_dlopen_libs=
9668
9669   case $host_os in
9670   beos*)
9671     lt_cv_dlopen="load_add_on"
9672     lt_cv_dlopen_libs=
9673     lt_cv_dlopen_self=yes
9674     ;;
9675
9676   mingw* | pw32*)
9677     lt_cv_dlopen="LoadLibrary"
9678     lt_cv_dlopen_libs=
9679    ;;
9680
9681   cygwin*)
9682     lt_cv_dlopen="dlopen"
9683     lt_cv_dlopen_libs=
9684    ;;
9685
9686   darwin*)
9687   # if libdl is installed we need to link against it
9688     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-ldl  $LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702 /* Override any gcc2 internal prototype to avoid an error.  */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 /* We use char because int might match the return type of a gcc2
9707    builtin and then its argument prototype would still apply.  */
9708 char dlopen ();
9709 int
9710 main ()
9711 {
9712 dlopen ();
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719   (eval $ac_link) 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } &&
9726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; } &&
9732          { ac_try='test -s conftest$ac_exeext'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_cv_lib_dl_dlopen=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 ac_cv_lib_dl_dlopen=no
9744 fi
9745 rm -f conftest.err conftest.$ac_objext \
9746       conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9748 fi
9749 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9751 if test $ac_cv_lib_dl_dlopen = yes; then
9752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9753 else
9754
9755     lt_cv_dlopen="dyld"
9756     lt_cv_dlopen_libs=
9757     lt_cv_dlopen_self=yes
9758
9759 fi
9760
9761    ;;
9762
9763   *)
9764     echo "$as_me:$LINENO: checking for shl_load" >&5
9765 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9766 if test "${ac_cv_func_shl_load+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9777 #define shl_load innocuous_shl_load
9778
9779 /* System header to define __stub macros and hopefully few prototypes,
9780     which can conflict with char shl_load (); below.
9781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782     <limits.h> exists even on freestanding compilers.  */
9783
9784 #ifdef __STDC__
9785 # include <limits.h>
9786 #else
9787 # include <assert.h>
9788 #endif
9789
9790 #undef shl_load
9791
9792 /* Override any gcc2 internal prototype to avoid an error.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 {
9796 #endif
9797 /* We use char because int might match the return type of a gcc2
9798    builtin and then its argument prototype would still apply.  */
9799 char shl_load ();
9800 /* The GNU C library defines this for functions which it implements
9801     to always fail with ENOSYS.  Some functions are actually named
9802     something starting with __ and the normal name is an alias.  */
9803 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9804 choke me
9805 #else
9806 char (*f) () = shl_load;
9807 #endif
9808 #ifdef __cplusplus
9809 }
9810 #endif
9811
9812 int
9813 main ()
9814 {
9815 return f != shl_load;
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822   (eval $ac_link) 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest$ac_exeext'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_func_shl_load=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_func_shl_load=no
9847 fi
9848 rm -f conftest.err conftest.$ac_objext \
9849       conftest$ac_exeext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9853 if test $ac_cv_func_shl_load = yes; then
9854   lt_cv_dlopen="shl_load"
9855 else
9856   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-ldld  $LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869
9870 /* Override any gcc2 internal prototype to avoid an error.  */
9871 #ifdef __cplusplus
9872 extern "C"
9873 #endif
9874 /* We use char because int might match the return type of a gcc2
9875    builtin and then its argument prototype would still apply.  */
9876 char shl_load ();
9877 int
9878 main ()
9879 {
9880 shl_load ();
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887   (eval $ac_link) 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896   (eval $ac_try) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_lib_dld_shl_load=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_cv_lib_dld_shl_load=no
9912 fi
9913 rm -f conftest.err conftest.$ac_objext \
9914       conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9916 fi
9917 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9918 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9919 if test $ac_cv_lib_dld_shl_load = yes; then
9920   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9921 else
9922   echo "$as_me:$LINENO: checking for dlopen" >&5
9923 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9924 if test "${ac_cv_func_dlopen+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9935 #define dlopen innocuous_dlopen
9936
9937 /* System header to define __stub macros and hopefully few prototypes,
9938     which can conflict with char dlopen (); below.
9939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9940     <limits.h> exists even on freestanding compilers.  */
9941
9942 #ifdef __STDC__
9943 # include <limits.h>
9944 #else
9945 # include <assert.h>
9946 #endif
9947
9948 #undef dlopen
9949
9950 /* Override any gcc2 internal prototype to avoid an error.  */
9951 #ifdef __cplusplus
9952 extern "C"
9953 {
9954 #endif
9955 /* We use char because int might match the return type of a gcc2
9956    builtin and then its argument prototype would still apply.  */
9957 char dlopen ();
9958 /* The GNU C library defines this for functions which it implements
9959     to always fail with ENOSYS.  Some functions are actually named
9960     something starting with __ and the normal name is an alias.  */
9961 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9962 choke me
9963 #else
9964 char (*f) () = dlopen;
9965 #endif
9966 #ifdef __cplusplus
9967 }
9968 #endif
9969
9970 int
9971 main ()
9972 {
9973 return f != dlopen;
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_func_dlopen=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 ac_cv_func_dlopen=no
10005 fi
10006 rm -f conftest.err conftest.$ac_objext \
10007       conftest$ac_exeext conftest.$ac_ext
10008 fi
10009 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10011 if test $ac_cv_func_dlopen = yes; then
10012   lt_cv_dlopen="dlopen"
10013 else
10014   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-ldl  $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027
10028 /* Override any gcc2 internal prototype to avoid an error.  */
10029 #ifdef __cplusplus
10030 extern "C"
10031 #endif
10032 /* We use char because int might match the return type of a gcc2
10033    builtin and then its argument prototype would still apply.  */
10034 char dlopen ();
10035 int
10036 main ()
10037 {
10038 dlopen ();
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045   (eval $ac_link) 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_lib_dl_dlopen=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_lib_dl_dlopen=no
10070 fi
10071 rm -f conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10074 fi
10075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10077 if test $ac_cv_lib_dl_dlopen = yes; then
10078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10079 else
10080   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-lsvld  $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 /* Override any gcc2 internal prototype to avoid an error.  */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 /* We use char because int might match the return type of a gcc2
10099    builtin and then its argument prototype would still apply.  */
10100 char dlopen ();
10101 int
10102 main ()
10103 {
10104 dlopen ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111   (eval $ac_link) 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; } &&
10124          { ac_try='test -s conftest$ac_exeext'
10125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126   (eval $ac_try) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; }; then
10130   ac_cv_lib_svld_dlopen=yes
10131 else
10132   echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 ac_cv_lib_svld_dlopen=no
10136 fi
10137 rm -f conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10143 if test $ac_cv_lib_svld_dlopen = yes; then
10144   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10145 else
10146   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10147 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10148 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-ldld  $LIBS"
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159
10160 /* Override any gcc2 internal prototype to avoid an error.  */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 /* We use char because int might match the return type of a gcc2
10165    builtin and then its argument prototype would still apply.  */
10166 char dld_link ();
10167 int
10168 main ()
10169 {
10170 dld_link ();
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177   (eval $ac_link) 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; } &&
10190          { ac_try='test -s conftest$ac_exeext'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; }; then
10196   ac_cv_lib_dld_dld_link=yes
10197 else
10198   echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 ac_cv_lib_dld_dld_link=no
10202 fi
10203 rm -f conftest.err conftest.$ac_objext \
10204       conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10206 fi
10207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10209 if test $ac_cv_lib_dld_dld_link = yes; then
10210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10211 fi
10212
10213
10214 fi
10215
10216
10217 fi
10218
10219
10220 fi
10221
10222
10223 fi
10224
10225
10226 fi
10227
10228     ;;
10229   esac
10230
10231   if test "x$lt_cv_dlopen" != xno; then
10232     enable_dlopen=yes
10233   else
10234     enable_dlopen=no
10235   fi
10236
10237   case $lt_cv_dlopen in
10238   dlopen)
10239     save_CPPFLAGS="$CPPFLAGS"
10240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10241
10242     save_LDFLAGS="$LDFLAGS"
10243     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10244
10245     save_LIBS="$LIBS"
10246     LIBS="$lt_cv_dlopen_libs $LIBS"
10247
10248     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10250 if test "${lt_cv_dlopen_self+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253           if test "$cross_compiling" = yes; then :
10254   lt_cv_dlopen_self=cross
10255 else
10256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257   lt_status=$lt_dlunknown
10258   cat > conftest.$ac_ext <<EOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10261
10262 #if HAVE_DLFCN_H
10263 #include <dlfcn.h>
10264 #endif
10265
10266 #include <stdio.h>
10267
10268 #ifdef RTLD_GLOBAL
10269 #  define LT_DLGLOBAL           RTLD_GLOBAL
10270 #else
10271 #  ifdef DL_GLOBAL
10272 #    define LT_DLGLOBAL         DL_GLOBAL
10273 #  else
10274 #    define LT_DLGLOBAL         0
10275 #  endif
10276 #endif
10277
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279    find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10281 #  ifdef RTLD_LAZY
10282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10283 #  else
10284 #    ifdef DL_LAZY
10285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10286 #    else
10287 #      ifdef RTLD_NOW
10288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10289 #      else
10290 #        ifdef DL_NOW
10291 #          define LT_DLLAZY_OR_NOW      DL_NOW
10292 #        else
10293 #          define LT_DLLAZY_OR_NOW      0
10294 #        endif
10295 #      endif
10296 #    endif
10297 #  endif
10298 #endif
10299
10300 #ifdef __cplusplus
10301 extern "C" void exit (int);
10302 #endif
10303
10304 void fnord() { int i=42;}
10305 int main ()
10306 {
10307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10308   int status = $lt_dlunknown;
10309
10310   if (self)
10311     {
10312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10313       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10314       /* dlclose (self); */
10315     }
10316   else
10317     puts (dlerror ());
10318
10319     exit (status);
10320 }
10321 EOF
10322   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10327     (./conftest; exit; ) >&5 2>/dev/null
10328     lt_status=$?
10329     case x$lt_status in
10330       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10331       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10332       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10333     esac
10334   else :
10335     # compilation failed
10336     lt_cv_dlopen_self=no
10337   fi
10338 fi
10339 rm -fr conftest*
10340
10341
10342 fi
10343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10345
10346     if test "x$lt_cv_dlopen_self" = xyes; then
10347       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10348       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10350 if test "${lt_cv_dlopen_self_static+set}" = set; then
10351   echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353           if test "$cross_compiling" = yes; then :
10354   lt_cv_dlopen_self_static=cross
10355 else
10356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10357   lt_status=$lt_dlunknown
10358   cat > conftest.$ac_ext <<EOF
10359 #line 10359 "configure"
10360 #include "confdefs.h"
10361
10362 #if HAVE_DLFCN_H
10363 #include <dlfcn.h>
10364 #endif
10365
10366 #include <stdio.h>
10367
10368 #ifdef RTLD_GLOBAL
10369 #  define LT_DLGLOBAL           RTLD_GLOBAL
10370 #else
10371 #  ifdef DL_GLOBAL
10372 #    define LT_DLGLOBAL         DL_GLOBAL
10373 #  else
10374 #    define LT_DLGLOBAL         0
10375 #  endif
10376 #endif
10377
10378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10379    find out it does not work in some platform. */
10380 #ifndef LT_DLLAZY_OR_NOW
10381 #  ifdef RTLD_LAZY
10382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10383 #  else
10384 #    ifdef DL_LAZY
10385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10386 #    else
10387 #      ifdef RTLD_NOW
10388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10389 #      else
10390 #        ifdef DL_NOW
10391 #          define LT_DLLAZY_OR_NOW      DL_NOW
10392 #        else
10393 #          define LT_DLLAZY_OR_NOW      0
10394 #        endif
10395 #      endif
10396 #    endif
10397 #  endif
10398 #endif
10399
10400 #ifdef __cplusplus
10401 extern "C" void exit (int);
10402 #endif
10403
10404 void fnord() { int i=42;}
10405 int main ()
10406 {
10407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10408   int status = $lt_dlunknown;
10409
10410   if (self)
10411     {
10412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10414       /* dlclose (self); */
10415     }
10416   else
10417     puts (dlerror ());
10418
10419     exit (status);
10420 }
10421 EOF
10422   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423   (eval $ac_link) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10427     (./conftest; exit; ) >&5 2>/dev/null
10428     lt_status=$?
10429     case x$lt_status in
10430       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10431       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10432       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10433     esac
10434   else :
10435     # compilation failed
10436     lt_cv_dlopen_self_static=no
10437   fi
10438 fi
10439 rm -fr conftest*
10440
10441
10442 fi
10443 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10444 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10445     fi
10446
10447     CPPFLAGS="$save_CPPFLAGS"
10448     LDFLAGS="$save_LDFLAGS"
10449     LIBS="$save_LIBS"
10450     ;;
10451   esac
10452
10453   case $lt_cv_dlopen_self in
10454   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10455   *) enable_dlopen_self=unknown ;;
10456   esac
10457
10458   case $lt_cv_dlopen_self_static in
10459   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10460   *) enable_dlopen_self_static=unknown ;;
10461   esac
10462 fi
10463
10464
10465 # Report which library types will actually be built
10466 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10467 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10468 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10469 echo "${ECHO_T}$can_build_shared" >&6
10470
10471 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10472 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10473 test "$can_build_shared" = "no" && enable_shared=no
10474
10475 # On AIX, shared libraries and static libraries use the same namespace, and
10476 # are all built from PIC.
10477 case $host_os in
10478 aix3*)
10479   test "$enable_shared" = yes && enable_static=no
10480   if test -n "$RANLIB"; then
10481     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10482     postinstall_cmds='$RANLIB $lib'
10483   fi
10484   ;;
10485
10486 aix4* | aix5*)
10487   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10488     test "$enable_shared" = yes && enable_static=no
10489   fi
10490     ;;
10491 esac
10492 echo "$as_me:$LINENO: result: $enable_shared" >&5
10493 echo "${ECHO_T}$enable_shared" >&6
10494
10495 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10496 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10497 # Make sure either enable_shared or enable_static is yes.
10498 test "$enable_shared" = yes || enable_static=yes
10499 echo "$as_me:$LINENO: result: $enable_static" >&5
10500 echo "${ECHO_T}$enable_static" >&6
10501
10502 # The else clause should only fire when bootstrapping the
10503 # libtool distribution, otherwise you forgot to ship ltmain.sh
10504 # with your package, and you will get complaints that there are
10505 # no rules to generate ltmain.sh.
10506 if test -f "$ltmain"; then
10507   # See if we are running on zsh, and set the options which allow our commands through
10508   # without removal of \ escapes.
10509   if test -n "${ZSH_VERSION+set}" ; then
10510     setopt NO_GLOB_SUBST
10511   fi
10512   # Now quote all the things that may contain metacharacters while being
10513   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10514   # variables and quote the copies for generation of the libtool script.
10515   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10516     SED SHELL STRIP \
10517     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10518     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10519     deplibs_check_method reload_flag reload_cmds need_locks \
10520     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10521     lt_cv_sys_global_symbol_to_c_name_address \
10522     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10523     old_postinstall_cmds old_postuninstall_cmds \
10524     compiler \
10525     CC \
10526     LD \
10527     lt_prog_compiler_wl \
10528     lt_prog_compiler_pic \
10529     lt_prog_compiler_static \
10530     lt_prog_compiler_no_builtin_flag \
10531     export_dynamic_flag_spec \
10532     thread_safe_flag_spec \
10533     whole_archive_flag_spec \
10534     enable_shared_with_static_runtimes \
10535     old_archive_cmds \
10536     old_archive_from_new_cmds \
10537     predep_objects \
10538     postdep_objects \
10539     predeps \
10540     postdeps \
10541     compiler_lib_search_path \
10542     archive_cmds \
10543     archive_expsym_cmds \
10544     postinstall_cmds \
10545     postuninstall_cmds \
10546     old_archive_from_expsyms_cmds \
10547     allow_undefined_flag \
10548     no_undefined_flag \
10549     export_symbols_cmds \
10550     hardcode_libdir_flag_spec \
10551     hardcode_libdir_flag_spec_ld \
10552     hardcode_libdir_separator \
10553     hardcode_automatic \
10554     module_cmds \
10555     module_expsym_cmds \
10556     lt_cv_prog_compiler_c_o \
10557     exclude_expsyms \
10558     include_expsyms; do
10559
10560     case $var in
10561     old_archive_cmds | \
10562     old_archive_from_new_cmds | \
10563     archive_cmds | \
10564     archive_expsym_cmds | \
10565     module_cmds | \
10566     module_expsym_cmds | \
10567     old_archive_from_expsyms_cmds | \
10568     export_symbols_cmds | \
10569     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10570     postinstall_cmds | postuninstall_cmds | \
10571     old_postinstall_cmds | old_postuninstall_cmds | \
10572     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10573       # Double-quote double-evaled strings.
10574       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10575       ;;
10576     *)
10577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10578       ;;
10579     esac
10580   done
10581
10582   case $lt_echo in
10583   *'\$0 --fallback-echo"')
10584     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10585     ;;
10586   esac
10587
10588 cfgfile="${ofile}T"
10589   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10590   $rm -f "$cfgfile"
10591   { echo "$as_me:$LINENO: creating $ofile" >&5
10592 echo "$as_me: creating $ofile" >&6;}
10593
10594   cat <<__EOF__ >> "$cfgfile"
10595 #! $SHELL
10596
10597 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10598 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10599 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10600 #
10601 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10602 # Free Software Foundation, Inc.
10603 #
10604 # This file is part of GNU Libtool:
10605 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10606 #
10607 # This program is free software; you can redistribute it and/or modify
10608 # it under the terms of the GNU General Public License as published by
10609 # the Free Software Foundation; either version 2 of the License, or
10610 # (at your option) any later version.
10611 #
10612 # This program is distributed in the hope that it will be useful, but
10613 # WITHOUT ANY WARRANTY; without even the implied warranty of
10614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10615 # General Public License for more details.
10616 #
10617 # You should have received a copy of the GNU General Public License
10618 # along with this program; if not, write to the Free Software
10619 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10620 #
10621 # As a special exception to the GNU General Public License, if you
10622 # distribute this file as part of a program that contains a
10623 # configuration script generated by Autoconf, you may include it under
10624 # the same distribution terms that you use for the rest of that program.
10625
10626 # A sed program that does not truncate output.
10627 SED=$lt_SED
10628
10629 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10630 Xsed="$SED -e 1s/^X//"
10631
10632 # The HP-UX ksh and POSIX shell print the target directory to stdout
10633 # if CDPATH is set.
10634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10635
10636 # The names of the tagged configurations supported by this script.
10637 available_tags=
10638
10639 # ### BEGIN LIBTOOL CONFIG
10640
10641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10642
10643 # Shell to use when invoking shell scripts.
10644 SHELL=$lt_SHELL
10645
10646 # Whether or not to build shared libraries.
10647 build_libtool_libs=$enable_shared
10648
10649 # Whether or not to build static libraries.
10650 build_old_libs=$enable_static
10651
10652 # Whether or not to add -lc for building shared libraries.
10653 build_libtool_need_lc=$archive_cmds_need_lc
10654
10655 # Whether or not to disallow shared libs when runtime libs are static
10656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10657
10658 # Whether or not to optimize for fast installation.
10659 fast_install=$enable_fast_install
10660
10661 # The host system.
10662 host_alias=$host_alias
10663 host=$host
10664 host_os=$host_os
10665
10666 # The build system.
10667 build_alias=$build_alias
10668 build=$build
10669 build_os=$build_os
10670
10671 # An echo program that does not interpret backslashes.
10672 echo=$lt_echo
10673
10674 # The archiver.
10675 AR=$lt_AR
10676 AR_FLAGS=$lt_AR_FLAGS
10677
10678 # A C compiler.
10679 LTCC=$lt_LTCC
10680
10681 # LTCC compiler flags.
10682 LTCFLAGS=$lt_LTCFLAGS
10683
10684 # A language-specific compiler.
10685 CC=$lt_compiler
10686
10687 # Is the compiler the GNU C compiler?
10688 with_gcc=$GCC
10689
10690 # An ERE matcher.
10691 EGREP=$lt_EGREP
10692
10693 # The linker used to build libraries.
10694 LD=$lt_LD
10695
10696 # Whether we need hard or soft links.
10697 LN_S=$lt_LN_S
10698
10699 # A BSD-compatible nm program.
10700 NM=$lt_NM
10701
10702 # A symbol stripping program
10703 STRIP=$lt_STRIP
10704
10705 # Used to examine libraries when file_magic_cmd begins "file"
10706 MAGIC_CMD=$MAGIC_CMD
10707
10708 # Used on cygwin: DLL creation program.
10709 DLLTOOL="$DLLTOOL"
10710
10711 # Used on cygwin: object dumper.
10712 OBJDUMP="$OBJDUMP"
10713
10714 # Used on cygwin: assembler.
10715 AS="$AS"
10716
10717 # The name of the directory that contains temporary libtool files.
10718 objdir=$objdir
10719
10720 # How to create reloadable object files.
10721 reload_flag=$lt_reload_flag
10722 reload_cmds=$lt_reload_cmds
10723
10724 # How to pass a linker flag through the compiler.
10725 wl=$lt_lt_prog_compiler_wl
10726
10727 # Object file suffix (normally "o").
10728 objext="$ac_objext"
10729
10730 # Old archive suffix (normally "a").
10731 libext="$libext"
10732
10733 # Shared library suffix (normally ".so").
10734 shrext_cmds='$shrext_cmds'
10735
10736 # Executable file suffix (normally "").
10737 exeext="$exeext"
10738
10739 # Additional compiler flags for building library objects.
10740 pic_flag=$lt_lt_prog_compiler_pic
10741 pic_mode=$pic_mode
10742
10743 # What is the maximum length of a command?
10744 max_cmd_len=$lt_cv_sys_max_cmd_len
10745
10746 # Does compiler simultaneously support -c and -o options?
10747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10748
10749 # Must we lock files when doing compilation?
10750 need_locks=$lt_need_locks
10751
10752 # Do we need the lib prefix for modules?
10753 need_lib_prefix=$need_lib_prefix
10754
10755 # Do we need a version for libraries?
10756 need_version=$need_version
10757
10758 # Whether dlopen is supported.
10759 dlopen_support=$enable_dlopen
10760
10761 # Whether dlopen of programs is supported.
10762 dlopen_self=$enable_dlopen_self
10763
10764 # Whether dlopen of statically linked programs is supported.
10765 dlopen_self_static=$enable_dlopen_self_static
10766
10767 # Compiler flag to prevent dynamic linking.
10768 link_static_flag=$lt_lt_prog_compiler_static
10769
10770 # Compiler flag to turn off builtin functions.
10771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10772
10773 # Compiler flag to allow reflexive dlopens.
10774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10775
10776 # Compiler flag to generate shared objects directly from archives.
10777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10778
10779 # Compiler flag to generate thread-safe objects.
10780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10781
10782 # Library versioning type.
10783 version_type=$version_type
10784
10785 # Format of library name prefix.
10786 libname_spec=$lt_libname_spec
10787
10788 # List of archive names.  First name is the real one, the rest are links.
10789 # The last name is the one that the linker finds with -lNAME.
10790 library_names_spec=$lt_library_names_spec
10791
10792 # The coded name of the library, if different from the real name.
10793 soname_spec=$lt_soname_spec
10794
10795 # Commands used to build and install an old-style archive.
10796 RANLIB=$lt_RANLIB
10797 old_archive_cmds=$lt_old_archive_cmds
10798 old_postinstall_cmds=$lt_old_postinstall_cmds
10799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10800
10801 # Create an old-style archive from a shared archive.
10802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10803
10804 # Create a temporary old-style archive to link instead of a shared archive.
10805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10806
10807 # Commands used to build and install a shared archive.
10808 archive_cmds=$lt_archive_cmds
10809 archive_expsym_cmds=$lt_archive_expsym_cmds
10810 postinstall_cmds=$lt_postinstall_cmds
10811 postuninstall_cmds=$lt_postuninstall_cmds
10812
10813 # Commands used to build a loadable module (assumed same as above if empty)
10814 module_cmds=$lt_module_cmds
10815 module_expsym_cmds=$lt_module_expsym_cmds
10816
10817 # Commands to strip libraries.
10818 old_striplib=$lt_old_striplib
10819 striplib=$lt_striplib
10820
10821 # Dependencies to place before the objects being linked to create a
10822 # shared library.
10823 predep_objects=$lt_predep_objects
10824
10825 # Dependencies to place after the objects being linked to create a
10826 # shared library.
10827 postdep_objects=$lt_postdep_objects
10828
10829 # Dependencies to place before the objects being linked to create a
10830 # shared library.
10831 predeps=$lt_predeps
10832
10833 # Dependencies to place after the objects being linked to create a
10834 # shared library.
10835 postdeps=$lt_postdeps
10836
10837 # The library search path used internally by the compiler when linking
10838 # a shared library.
10839 compiler_lib_search_path=$lt_compiler_lib_search_path
10840
10841 # Method to check whether dependent libraries are shared objects.
10842 deplibs_check_method=$lt_deplibs_check_method
10843
10844 # Command to use when deplibs_check_method == file_magic.
10845 file_magic_cmd=$lt_file_magic_cmd
10846
10847 # Flag that allows shared libraries with undefined symbols to be built.
10848 allow_undefined_flag=$lt_allow_undefined_flag
10849
10850 # Flag that forces no undefined symbols.
10851 no_undefined_flag=$lt_no_undefined_flag
10852
10853 # Commands used to finish a libtool library installation in a directory.
10854 finish_cmds=$lt_finish_cmds
10855
10856 # Same as above, but a single script fragment to be evaled but not shown.
10857 finish_eval=$lt_finish_eval
10858
10859 # Take the output of nm and produce a listing of raw symbols and C names.
10860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10861
10862 # Transform the output of nm in a proper C declaration
10863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10864
10865 # Transform the output of nm in a C name address pair
10866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10867
10868 # This is the shared library runtime path variable.
10869 runpath_var=$runpath_var
10870
10871 # This is the shared library path variable.
10872 shlibpath_var=$shlibpath_var
10873
10874 # Is shlibpath searched before the hard-coded library search path?
10875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10876
10877 # How to hardcode a shared library path into an executable.
10878 hardcode_action=$hardcode_action
10879
10880 # Whether we should hardcode library paths into libraries.
10881 hardcode_into_libs=$hardcode_into_libs
10882
10883 # Flag to hardcode \$libdir into a binary during linking.
10884 # This must work even if \$libdir does not exist.
10885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10886
10887 # If ld is used when linking, flag to hardcode \$libdir into
10888 # a binary during linking. This must work even if \$libdir does
10889 # not exist.
10890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10891
10892 # Whether we need a single -rpath flag with a separated argument.
10893 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10894
10895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10896 # resulting binary.
10897 hardcode_direct=$hardcode_direct
10898
10899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10900 # resulting binary.
10901 hardcode_minus_L=$hardcode_minus_L
10902
10903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10904 # the resulting binary.
10905 hardcode_shlibpath_var=$hardcode_shlibpath_var
10906
10907 # Set to yes if building a shared library automatically hardcodes DIR into the library
10908 # and all subsequent libraries and executables linked against it.
10909 hardcode_automatic=$hardcode_automatic
10910
10911 # Variables whose values should be saved in libtool wrapper scripts and
10912 # restored at relink time.
10913 variables_saved_for_relink="$variables_saved_for_relink"
10914
10915 # Whether libtool must link a program against all its dependency libraries.
10916 link_all_deplibs=$link_all_deplibs
10917
10918 # Compile-time system search path for libraries
10919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10920
10921 # Run-time system search path for libraries
10922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10923
10924 # Fix the shell variable \$srcfile for the compiler.
10925 fix_srcfile_path="$fix_srcfile_path"
10926
10927 # Set to yes if exported symbols are required.
10928 always_export_symbols=$always_export_symbols
10929
10930 # The commands to list exported symbols.
10931 export_symbols_cmds=$lt_export_symbols_cmds
10932
10933 # The commands to extract the exported symbol list from a shared archive.
10934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10935
10936 # Symbols that should not be listed in the preloaded symbols.
10937 exclude_expsyms=$lt_exclude_expsyms
10938
10939 # Symbols that must always be exported.
10940 include_expsyms=$lt_include_expsyms
10941
10942 # ### END LIBTOOL CONFIG
10943
10944 __EOF__
10945
10946
10947   case $host_os in
10948   aix3*)
10949     cat <<\EOF >> "$cfgfile"
10950
10951 # AIX sometimes has problems with the GCC collect2 program.  For some
10952 # reason, if we set the COLLECT_NAMES environment variable, the problems
10953 # vanish in a puff of smoke.
10954 if test "X${COLLECT_NAMES+set}" != Xset; then
10955   COLLECT_NAMES=
10956   export COLLECT_NAMES
10957 fi
10958 EOF
10959     ;;
10960   esac
10961
10962   # We use sed instead of cat because bash on DJGPP gets confused if
10963   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10964   # text mode, it properly converts lines to CR/LF.  This bash problem
10965   # is reportedly fixed, but why not run on old versions too?
10966   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10967
10968   mv -f "$cfgfile" "$ofile" || \
10969     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10970   chmod +x "$ofile"
10971
10972 else
10973   # If there is no Makefile yet, we rely on a make rule to execute
10974   # `config.status --recheck' to rerun these tests and create the
10975   # libtool script then.
10976   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10977   if test -f "$ltmain_in"; then
10978     test -f Makefile && make "$ltmain"
10979   fi
10980 fi
10981
10982
10983 ac_ext=c
10984 ac_cpp='$CPP $CPPFLAGS'
10985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988
10989 CC="$lt_save_CC"
10990
10991
10992 # Check whether --with-tags or --without-tags was given.
10993 if test "${with_tags+set}" = set; then
10994   withval="$with_tags"
10995   tagnames="$withval"
10996 fi;
10997
10998 if test -f "$ltmain" && test -n "$tagnames"; then
10999   if test ! -f "${ofile}"; then
11000     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11001 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11002   fi
11003
11004   if test -z "$LTCC"; then
11005     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11006     if test -z "$LTCC"; then
11007       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11008 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11009     else
11010       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11011 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11012     fi
11013   fi
11014   if test -z "$LTCFLAGS"; then
11015     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11016   fi
11017
11018   # Extract list of available tagged configurations in $ofile.
11019   # Note that this assumes the entire list is on one line.
11020   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11021
11022   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11023   for tagname in $tagnames; do
11024     IFS="$lt_save_ifs"
11025     # Check whether tagname contains only valid characters
11026     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11027     "") ;;
11028     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11029 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11030    { (exit 1); exit 1; }; }
11031         ;;
11032     esac
11033
11034     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11035     then
11036       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11037 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11038    { (exit 1); exit 1; }; }
11039     fi
11040
11041     # Update the list of available tags.
11042     if test -n "$tagname"; then
11043       echo appending configuration tag \"$tagname\" to $ofile
11044
11045       case $tagname in
11046       CXX)
11047         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11048             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11049             (test "X$CXX" != "Xg++"))) ; then
11050           ac_ext=cc
11051 ac_cpp='$CXXCPP $CPPFLAGS'
11052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11055
11056
11057
11058
11059 archive_cmds_need_lc_CXX=no
11060 allow_undefined_flag_CXX=
11061 always_export_symbols_CXX=no
11062 archive_expsym_cmds_CXX=
11063 export_dynamic_flag_spec_CXX=
11064 hardcode_direct_CXX=no
11065 hardcode_libdir_flag_spec_CXX=
11066 hardcode_libdir_flag_spec_ld_CXX=
11067 hardcode_libdir_separator_CXX=
11068 hardcode_minus_L_CXX=no
11069 hardcode_shlibpath_var_CXX=unsupported
11070 hardcode_automatic_CXX=no
11071 module_cmds_CXX=
11072 module_expsym_cmds_CXX=
11073 link_all_deplibs_CXX=unknown
11074 old_archive_cmds_CXX=$old_archive_cmds
11075 no_undefined_flag_CXX=
11076 whole_archive_flag_spec_CXX=
11077 enable_shared_with_static_runtimes_CXX=no
11078
11079 # Dependencies to place before and after the object being linked:
11080 predep_objects_CXX=
11081 postdep_objects_CXX=
11082 predeps_CXX=
11083 postdeps_CXX=
11084 compiler_lib_search_path_CXX=
11085
11086 # Source file extension for C++ test sources.
11087 ac_ext=cpp
11088
11089 # Object file extension for compiled C++ test sources.
11090 objext=o
11091 objext_CXX=$objext
11092
11093 # Code to be used in simple compile tests
11094 lt_simple_compile_test_code="int some_variable = 0;\n"
11095
11096 # Code to be used in simple link tests
11097 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11098
11099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11100
11101 # If no C compiler was specified, use CC.
11102 LTCC=${LTCC-"$CC"}
11103
11104 # If no C compiler flags were specified, use CFLAGS.
11105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11106
11107 # Allow CC to be a program name with arguments.
11108 compiler=$CC
11109
11110
11111 # save warnings/boilerplate of simple test code
11112 ac_outfile=conftest.$ac_objext
11113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11115 _lt_compiler_boilerplate=`cat conftest.err`
11116 $rm conftest*
11117
11118 ac_outfile=conftest.$ac_objext
11119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11121 _lt_linker_boilerplate=`cat conftest.err`
11122 $rm conftest*
11123
11124
11125 # Allow CC to be a program name with arguments.
11126 lt_save_CC=$CC
11127 lt_save_LD=$LD
11128 lt_save_GCC=$GCC
11129 GCC=$GXX
11130 lt_save_with_gnu_ld=$with_gnu_ld
11131 lt_save_path_LD=$lt_cv_path_LD
11132 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11133   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11134 else
11135   $as_unset lt_cv_prog_gnu_ld
11136 fi
11137 if test -n "${lt_cv_path_LDCXX+set}"; then
11138   lt_cv_path_LD=$lt_cv_path_LDCXX
11139 else
11140   $as_unset lt_cv_path_LD
11141 fi
11142 test -z "${LDCXX+set}" || LD=$LDCXX
11143 CC=${CXX-"c++"}
11144 compiler=$CC
11145 compiler_CXX=$CC
11146 for cc_temp in $compiler""; do
11147   case $cc_temp in
11148     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11149     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11150     \-*) ;;
11151     *) break;;
11152   esac
11153 done
11154 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11155
11156
11157 # We don't want -fno-exception wen compiling C++ code, so set the
11158 # no_builtin_flag separately
11159 if test "$GXX" = yes; then
11160   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11161 else
11162   lt_prog_compiler_no_builtin_flag_CXX=
11163 fi
11164
11165 if test "$GXX" = yes; then
11166   # Set up default GNU C++ configuration
11167
11168
11169 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11170 if test "${with_gnu_ld+set}" = set; then
11171   withval="$with_gnu_ld"
11172   test "$withval" = no || with_gnu_ld=yes
11173 else
11174   with_gnu_ld=no
11175 fi;
11176 ac_prog=ld
11177 if test "$GCC" = yes; then
11178   # Check if gcc -print-prog-name=ld gives a path.
11179   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11180 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11181   case $host in
11182   *-*-mingw*)
11183     # gcc leaves a trailing carriage return which upsets mingw
11184     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11185   *)
11186     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11187   esac
11188   case $ac_prog in
11189     # Accept absolute paths.
11190     [\\/]* | ?:[\\/]*)
11191       re_direlt='/[^/][^/]*/\.\./'
11192       # Canonicalize the pathname of ld
11193       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11194       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11195         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11196       done
11197       test -z "$LD" && LD="$ac_prog"
11198       ;;
11199   "")
11200     # If it fails, then pretend we aren't using GCC.
11201     ac_prog=ld
11202     ;;
11203   *)
11204     # If it is relative, then search for the first ld in PATH.
11205     with_gnu_ld=unknown
11206     ;;
11207   esac
11208 elif test "$with_gnu_ld" = yes; then
11209   echo "$as_me:$LINENO: checking for GNU ld" >&5
11210 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11211 else
11212   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11213 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11214 fi
11215 if test "${lt_cv_path_LD+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   if test -z "$LD"; then
11219   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11220   for ac_dir in $PATH; do
11221     IFS="$lt_save_ifs"
11222     test -z "$ac_dir" && ac_dir=.
11223     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11224       lt_cv_path_LD="$ac_dir/$ac_prog"
11225       # Check to see if the program is GNU ld.  I'd rather use --version,
11226       # but apparently some variants of GNU ld only accept -v.
11227       # Break only if it was the GNU/non-GNU ld that we prefer.
11228       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11229       *GNU* | *'with BFD'*)
11230         test "$with_gnu_ld" != no && break
11231         ;;
11232       *)
11233         test "$with_gnu_ld" != yes && break
11234         ;;
11235       esac
11236     fi
11237   done
11238   IFS="$lt_save_ifs"
11239 else
11240   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11241 fi
11242 fi
11243
11244 LD="$lt_cv_path_LD"
11245 if test -n "$LD"; then
11246   echo "$as_me:$LINENO: result: $LD" >&5
11247 echo "${ECHO_T}$LD" >&6
11248 else
11249   echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11251 fi
11252 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11253 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11254    { (exit 1); exit 1; }; }
11255 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11256 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11257 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11261 case `$LD -v 2>&1 </dev/null` in
11262 *GNU* | *'with BFD'*)
11263   lt_cv_prog_gnu_ld=yes
11264   ;;
11265 *)
11266   lt_cv_prog_gnu_ld=no
11267   ;;
11268 esac
11269 fi
11270 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11271 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11272 with_gnu_ld=$lt_cv_prog_gnu_ld
11273
11274
11275
11276   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11277   # archiving commands below assume that GNU ld is being used.
11278   if test "$with_gnu_ld" = yes; then
11279     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11280     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11281
11282     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11283     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11284
11285     # If archive_cmds runs LD, not CC, wlarc should be empty
11286     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11287     #     investigate it a little bit more. (MM)
11288     wlarc='${wl}'
11289
11290     # ancient GNU ld didn't support --whole-archive et. al.
11291     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11292         grep 'no-whole-archive' > /dev/null; then
11293       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11294     else
11295       whole_archive_flag_spec_CXX=
11296     fi
11297   else
11298     with_gnu_ld=no
11299     wlarc=
11300
11301     # A generic and very simple default shared library creation
11302     # command for GNU C++ for the case where it uses the native
11303     # linker, instead of GNU ld.  If possible, this setting should
11304     # overridden to take advantage of the native linker features on
11305     # the platform it is being used on.
11306     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11307   fi
11308
11309   # Commands to make compiler produce verbose output that lists
11310   # what "hidden" libraries, object files and flags are used when
11311   # linking a shared library.
11312   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11313
11314 else
11315   GXX=no
11316   with_gnu_ld=no
11317   wlarc=
11318 fi
11319
11320 # PORTME: fill in a description of your system's C++ link characteristics
11321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11323 ld_shlibs_CXX=yes
11324 case $host_os in
11325   aix3*)
11326     # FIXME: insert proper C++ library support
11327     ld_shlibs_CXX=no
11328     ;;
11329   aix4* | aix5*)
11330     if test "$host_cpu" = ia64; then
11331       # On IA64, the linker does run time linking by default, so we don't
11332       # have to do anything special.
11333       aix_use_runtimelinking=no
11334       exp_sym_flag='-Bexport'
11335       no_entry_flag=""
11336     else
11337       aix_use_runtimelinking=no
11338
11339       # Test if we are trying to use run time linking or normal
11340       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11341       # need to do runtime linking.
11342       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11343         for ld_flag in $LDFLAGS; do
11344           case $ld_flag in
11345           *-brtl*)
11346             aix_use_runtimelinking=yes
11347             break
11348             ;;
11349           esac
11350         done
11351         ;;
11352       esac
11353
11354       exp_sym_flag='-bexport'
11355       no_entry_flag='-bnoentry'
11356     fi
11357
11358     # When large executables or shared objects are built, AIX ld can
11359     # have problems creating the table of contents.  If linking a library
11360     # or program results in "error TOC overflow" add -mminimal-toc to
11361     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11362     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11363
11364     archive_cmds_CXX=''
11365     hardcode_direct_CXX=yes
11366     hardcode_libdir_separator_CXX=':'
11367     link_all_deplibs_CXX=yes
11368
11369     if test "$GXX" = yes; then
11370       case $host_os in aix4.[012]|aix4.[012].*)
11371       # We only want to do this on AIX 4.2 and lower, the check
11372       # below for broken collect2 doesn't work under 4.3+
11373         collect2name=`${CC} -print-prog-name=collect2`
11374         if test -f "$collect2name" && \
11375            strings "$collect2name" | grep resolve_lib_name >/dev/null
11376         then
11377           # We have reworked collect2
11378           hardcode_direct_CXX=yes
11379         else
11380           # We have old collect2
11381           hardcode_direct_CXX=unsupported
11382           # It fails to find uninstalled libraries when the uninstalled
11383           # path is not listed in the libpath.  Setting hardcode_minus_L
11384           # to unsupported forces relinking
11385           hardcode_minus_L_CXX=yes
11386           hardcode_libdir_flag_spec_CXX='-L$libdir'
11387           hardcode_libdir_separator_CXX=
11388         fi
11389         ;;
11390       esac
11391       shared_flag='-shared'
11392       if test "$aix_use_runtimelinking" = yes; then
11393         shared_flag="$shared_flag "'${wl}-G'
11394       fi
11395     else
11396       # not using gcc
11397       if test "$host_cpu" = ia64; then
11398         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11399         # chokes on -Wl,-G. The following line is correct:
11400         shared_flag='-G'
11401       else
11402         if test "$aix_use_runtimelinking" = yes; then
11403           shared_flag='${wl}-G'
11404         else
11405           shared_flag='${wl}-bM:SRE'
11406         fi
11407       fi
11408     fi
11409
11410     # It seems that -bexpall does not export symbols beginning with
11411     # underscore (_), so it is better to generate a list of symbols to export.
11412     always_export_symbols_CXX=yes
11413     if test "$aix_use_runtimelinking" = yes; then
11414       # Warning - without using the other runtime loading flags (-brtl),
11415       # -berok will link without error, but may produce a broken library.
11416       allow_undefined_flag_CXX='-berok'
11417       # Determine the default libpath from the value encoded in an empty executable.
11418       cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h.  */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h.  */
11424
11425 int
11426 main ()
11427 {
11428
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435   (eval $ac_link) 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; } &&
11448          { ac_try='test -s conftest$ac_exeext'
11449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450   (eval $ac_try) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; }; then
11454
11455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11456 }'`
11457 # Check for a 64-bit object if we didn't find anything.
11458 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11459 }'`; fi
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 fi
11465 rm -f conftest.err conftest.$ac_objext \
11466       conftest$ac_exeext conftest.$ac_ext
11467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11468
11469       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11470
11471       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11472      else
11473       if test "$host_cpu" = ia64; then
11474         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11475         allow_undefined_flag_CXX="-z nodefs"
11476         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11477       else
11478         # Determine the default libpath from the value encoded in an empty executable.
11479         cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485
11486 int
11487 main ()
11488 {
11489
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>conftest.er1
11497   ac_status=$?
11498   grep -v '^ *+' conftest.er1 >conftest.err
11499   rm -f conftest.er1
11500   cat conftest.err >&5
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } &&
11503          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; } &&
11509          { ac_try='test -s conftest$ac_exeext'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515
11516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11517 }'`
11518 # Check for a 64-bit object if we didn't find anything.
11519 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11520 }'`; fi
11521 else
11522   echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 fi
11526 rm -f conftest.err conftest.$ac_objext \
11527       conftest$ac_exeext conftest.$ac_ext
11528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11529
11530         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11531         # Warning - without using the other run time loading flags,
11532         # -berok will link without error, but may produce a broken library.
11533         no_undefined_flag_CXX=' ${wl}-bernotok'
11534         allow_undefined_flag_CXX=' ${wl}-berok'
11535         # Exported symbols can be pulled into shared objects from archives
11536         whole_archive_flag_spec_CXX='$convenience'
11537         archive_cmds_need_lc_CXX=yes
11538         # This is similar to how AIX traditionally builds its shared libraries.
11539         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11540       fi
11541     fi
11542     ;;
11543
11544   beos*)
11545     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11546       allow_undefined_flag_CXX=unsupported
11547       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11548       # support --undefined.  This deserves some investigation.  FIXME
11549       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11550     else
11551       ld_shlibs_CXX=no
11552     fi
11553     ;;
11554
11555   chorus*)
11556     case $cc_basename in
11557       *)
11558         # FIXME: insert proper C++ library support
11559         ld_shlibs_CXX=no
11560         ;;
11561     esac
11562     ;;
11563
11564   cygwin* | mingw* | pw32*)
11565     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11566     # as there is no search path for DLLs.
11567     hardcode_libdir_flag_spec_CXX='-L$libdir'
11568     allow_undefined_flag_CXX=unsupported
11569     always_export_symbols_CXX=no
11570     enable_shared_with_static_runtimes_CXX=yes
11571
11572     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11573       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11574       # If the export-symbols file already is a .def file (1st line
11575       # is EXPORTS), use it as is; otherwise, prepend...
11576       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11577         cp $export_symbols $output_objdir/$soname.def;
11578       else
11579         echo EXPORTS > $output_objdir/$soname.def;
11580         cat $export_symbols >> $output_objdir/$soname.def;
11581       fi~
11582       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11583     else
11584       ld_shlibs_CXX=no
11585     fi
11586   ;;
11587       darwin* | rhapsody*)
11588         case $host_os in
11589         rhapsody* | darwin1.[012])
11590          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11591          ;;
11592        *) # Darwin 1.3 on
11593          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11594            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11595          else
11596            case ${MACOSX_DEPLOYMENT_TARGET} in
11597              10.[012])
11598                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11599                ;;
11600              10.*)
11601                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11602                ;;
11603            esac
11604          fi
11605          ;;
11606         esac
11607       archive_cmds_need_lc_CXX=no
11608       hardcode_direct_CXX=no
11609       hardcode_automatic_CXX=yes
11610       hardcode_shlibpath_var_CXX=unsupported
11611       whole_archive_flag_spec_CXX=''
11612       link_all_deplibs_CXX=yes
11613
11614     if test "$GXX" = yes ; then
11615       lt_int_apple_cc_single_mod=no
11616       output_verbose_link_cmd='echo'
11617       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11618        lt_int_apple_cc_single_mod=yes
11619       fi
11620       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11621        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11622       else
11623           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11624         fi
11625         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11626         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11627           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11628             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11629           else
11630             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11631           fi
11632             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11633       else
11634       case $cc_basename in
11635         xlc*)
11636          output_verbose_link_cmd='echo'
11637           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11638           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11639           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11640           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11641           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11642           ;;
11643        *)
11644          ld_shlibs_CXX=no
11645           ;;
11646       esac
11647       fi
11648         ;;
11649
11650   dgux*)
11651     case $cc_basename in
11652       ec++*)
11653         # FIXME: insert proper C++ library support
11654         ld_shlibs_CXX=no
11655         ;;
11656       ghcx*)
11657         # Green Hills C++ Compiler
11658         # FIXME: insert proper C++ library support
11659         ld_shlibs_CXX=no
11660         ;;
11661       *)
11662         # FIXME: insert proper C++ library support
11663         ld_shlibs_CXX=no
11664         ;;
11665     esac
11666     ;;
11667   freebsd[12]*)
11668     # C++ shared libraries reported to be fairly broken before switch to ELF
11669     ld_shlibs_CXX=no
11670     ;;
11671   freebsd-elf*)
11672     archive_cmds_need_lc_CXX=no
11673     ;;
11674   freebsd* | dragonfly*)
11675     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11676     # conventions
11677     ld_shlibs_CXX=yes
11678     ;;
11679   gnu*)
11680     ;;
11681   hpux9*)
11682     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11683     hardcode_libdir_separator_CXX=:
11684     export_dynamic_flag_spec_CXX='${wl}-E'
11685     hardcode_direct_CXX=yes
11686     hardcode_minus_L_CXX=yes # Not in the search PATH,
11687                                 # but as the default
11688                                 # location of the library.
11689
11690     case $cc_basename in
11691     CC*)
11692       # FIXME: insert proper C++ library support
11693       ld_shlibs_CXX=no
11694       ;;
11695     aCC*)
11696       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11697       # Commands to make compiler produce verbose output that lists
11698       # what "hidden" libraries, object files and flags are used when
11699       # linking a shared library.
11700       #
11701       # There doesn't appear to be a way to prevent this compiler from
11702       # explicitly linking system object files so we need to strip them
11703       # from the output so that they don't get included in the library
11704       # dependencies.
11705       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11706       ;;
11707     *)
11708       if test "$GXX" = yes; then
11709         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11710       else
11711         # FIXME: insert proper C++ library support
11712         ld_shlibs_CXX=no
11713       fi
11714       ;;
11715     esac
11716     ;;
11717   hpux10*|hpux11*)
11718     if test $with_gnu_ld = no; then
11719       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11720       hardcode_libdir_separator_CXX=:
11721
11722       case $host_cpu in
11723       hppa*64*|ia64*)
11724         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11725         ;;
11726       *)
11727         export_dynamic_flag_spec_CXX='${wl}-E'
11728         ;;
11729       esac
11730     fi
11731     case $host_cpu in
11732     hppa*64*|ia64*)
11733       hardcode_direct_CXX=no
11734       hardcode_shlibpath_var_CXX=no
11735       ;;
11736     *)
11737       hardcode_direct_CXX=yes
11738       hardcode_minus_L_CXX=yes # Not in the search PATH,
11739                                               # but as the default
11740                                               # location of the library.
11741       ;;
11742     esac
11743
11744     case $cc_basename in
11745       CC*)
11746         # FIXME: insert proper C++ library support
11747         ld_shlibs_CXX=no
11748         ;;
11749       aCC*)
11750         case $host_cpu in
11751         hppa*64*)
11752           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11753           ;;
11754         ia64*)
11755           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11756           ;;
11757         *)
11758           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11759           ;;
11760         esac
11761         # Commands to make compiler produce verbose output that lists
11762         # what "hidden" libraries, object files and flags are used when
11763         # linking a shared library.
11764         #
11765         # There doesn't appear to be a way to prevent this compiler from
11766         # explicitly linking system object files so we need to strip them
11767         # from the output so that they don't get included in the library
11768         # dependencies.
11769         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11770         ;;
11771       *)
11772         if test "$GXX" = yes; then
11773           if test $with_gnu_ld = no; then
11774             case $host_cpu in
11775             hppa*64*)
11776               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11777               ;;
11778             ia64*)
11779               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11780               ;;
11781             *)
11782               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11783               ;;
11784             esac
11785           fi
11786         else
11787           # FIXME: insert proper C++ library support
11788           ld_shlibs_CXX=no
11789         fi
11790         ;;
11791     esac
11792     ;;
11793   interix3*)
11794     hardcode_direct_CXX=no
11795     hardcode_shlibpath_var_CXX=no
11796     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11797     export_dynamic_flag_spec_CXX='${wl}-E'
11798     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11799     # Instead, shared libraries are loaded at an image base (0x10000000 by
11800     # default) and relocated if they conflict, which is a slow very memory
11801     # consuming and fragmenting process.  To avoid this, we pick a random,
11802     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11803     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11804     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11805     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11806     ;;
11807   irix5* | irix6*)
11808     case $cc_basename in
11809       CC*)
11810         # SGI C++
11811         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11812
11813         # Archives containing C++ object files must be created using
11814         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11815         # necessary to make sure instantiated templates are included
11816         # in the archive.
11817         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11818         ;;
11819       *)
11820         if test "$GXX" = yes; then
11821           if test "$with_gnu_ld" = no; then
11822             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11823           else
11824             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11825           fi
11826         fi
11827         link_all_deplibs_CXX=yes
11828         ;;
11829     esac
11830     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11831     hardcode_libdir_separator_CXX=:
11832     ;;
11833   linux* | k*bsd*-gnu)
11834     case $cc_basename in
11835       KCC*)
11836         # Kuck and Associates, Inc. (KAI) C++ Compiler
11837
11838         # KCC will only create a shared library if the output file
11839         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11840         # to its proper name (with version) after linking.
11841         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11842         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11843         # Commands to make compiler produce verbose output that lists
11844         # what "hidden" libraries, object files and flags are used when
11845         # linking a shared library.
11846         #
11847         # There doesn't appear to be a way to prevent this compiler from
11848         # explicitly linking system object files so we need to strip them
11849         # from the output so that they don't get included in the library
11850         # dependencies.
11851         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11852
11853         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11854         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11855
11856         # Archives containing C++ object files must be created using
11857         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11858         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11859         ;;
11860       icpc*)
11861         # Intel C++
11862         with_gnu_ld=yes
11863         # version 8.0 and above of icpc choke on multiply defined symbols
11864         # if we add $predep_objects and $postdep_objects, however 7.1 and
11865         # earlier do not add the objects themselves.
11866         case `$CC -V 2>&1` in
11867         *"Version 7."*)
11868           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11870           ;;
11871         *)  # Version 8.0 or newer
11872           tmp_idyn=
11873           case $host_cpu in
11874             ia64*) tmp_idyn=' -i_dynamic';;
11875           esac
11876           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11877           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11878           ;;
11879         esac
11880         archive_cmds_need_lc_CXX=no
11881         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11882         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11883         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11884         ;;
11885       pgCC*)
11886         # Portland Group C++ compiler
11887         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11888         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11889
11890         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11891         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11892         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11893         ;;
11894       cxx*)
11895         # Compaq C++
11896         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11897         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11898
11899         runpath_var=LD_RUN_PATH
11900         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11901         hardcode_libdir_separator_CXX=:
11902
11903         # Commands to make compiler produce verbose output that lists
11904         # what "hidden" libraries, object files and flags are used when
11905         # linking a shared library.
11906         #
11907         # There doesn't appear to be a way to prevent this compiler from
11908         # explicitly linking system object files so we need to strip them
11909         # from the output so that they don't get included in the library
11910         # dependencies.
11911         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11912         ;;
11913     esac
11914     ;;
11915   lynxos*)
11916     # FIXME: insert proper C++ library support
11917     ld_shlibs_CXX=no
11918     ;;
11919   m88k*)
11920     # FIXME: insert proper C++ library support
11921     ld_shlibs_CXX=no
11922     ;;
11923   mvs*)
11924     case $cc_basename in
11925       cxx*)
11926         # FIXME: insert proper C++ library support
11927         ld_shlibs_CXX=no
11928         ;;
11929       *)
11930         # FIXME: insert proper C++ library support
11931         ld_shlibs_CXX=no
11932         ;;
11933     esac
11934     ;;
11935   netbsd* | netbsdelf*-gnu)
11936     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11937       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11938       wlarc=
11939       hardcode_libdir_flag_spec_CXX='-R$libdir'
11940       hardcode_direct_CXX=yes
11941       hardcode_shlibpath_var_CXX=no
11942     fi
11943     # Workaround some broken pre-1.5 toolchains
11944     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11945     ;;
11946   openbsd2*)
11947     # C++ shared libraries are fairly broken
11948     ld_shlibs_CXX=no
11949     ;;
11950   openbsd*)
11951     hardcode_direct_CXX=yes
11952     hardcode_shlibpath_var_CXX=no
11953     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11954     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11955     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11956       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11957       export_dynamic_flag_spec_CXX='${wl}-E'
11958       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11959     fi
11960     output_verbose_link_cmd='echo'
11961     ;;
11962   osf3*)
11963     case $cc_basename in
11964       KCC*)
11965         # Kuck and Associates, Inc. (KAI) C++ Compiler
11966
11967         # KCC will only create a shared library if the output file
11968         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11969         # to its proper name (with version) after linking.
11970         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11971
11972         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11973         hardcode_libdir_separator_CXX=:
11974
11975         # Archives containing C++ object files must be created using
11976         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11977         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11978
11979         ;;
11980       RCC*)
11981         # Rational C++ 2.4.1
11982         # FIXME: insert proper C++ library support
11983         ld_shlibs_CXX=no
11984         ;;
11985       cxx*)
11986         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11987         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11988
11989         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11990         hardcode_libdir_separator_CXX=:
11991
11992         # Commands to make compiler produce verbose output that lists
11993         # what "hidden" libraries, object files and flags are used when
11994         # linking a shared library.
11995         #
11996         # There doesn't appear to be a way to prevent this compiler from
11997         # explicitly linking system object files so we need to strip them
11998         # from the output so that they don't get included in the library
11999         # dependencies.
12000         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12001         ;;
12002       *)
12003         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12004           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12005           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12006
12007           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12008           hardcode_libdir_separator_CXX=:
12009
12010           # Commands to make compiler produce verbose output that lists
12011           # what "hidden" libraries, object files and flags are used when
12012           # linking a shared library.
12013           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12014
12015         else
12016           # FIXME: insert proper C++ library support
12017           ld_shlibs_CXX=no
12018         fi
12019         ;;
12020     esac
12021     ;;
12022   osf4* | osf5*)
12023     case $cc_basename in
12024       KCC*)
12025         # Kuck and Associates, Inc. (KAI) C++ Compiler
12026
12027         # KCC will only create a shared library if the output file
12028         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029         # to its proper name (with version) after linking.
12030         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12031
12032         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12033         hardcode_libdir_separator_CXX=:
12034
12035         # Archives containing C++ object files must be created using
12036         # the KAI C++ compiler.
12037         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12038         ;;
12039       RCC*)
12040         # Rational C++ 2.4.1
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044       cxx*)
12045         allow_undefined_flag_CXX=' -expect_unresolved \*'
12046         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12047         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12048           echo "-hidden">> $lib.exp~
12049           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12050           $rm $lib.exp'
12051
12052         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12053         hardcode_libdir_separator_CXX=:
12054
12055         # Commands to make compiler produce verbose output that lists
12056         # what "hidden" libraries, object files and flags are used when
12057         # linking a shared library.
12058         #
12059         # There doesn't appear to be a way to prevent this compiler from
12060         # explicitly linking system object files so we need to strip them
12061         # from the output so that they don't get included in the library
12062         # dependencies.
12063         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12064         ;;
12065       *)
12066         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12067           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12068          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12069
12070           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12071           hardcode_libdir_separator_CXX=:
12072
12073           # Commands to make compiler produce verbose output that lists
12074           # what "hidden" libraries, object files and flags are used when
12075           # linking a shared library.
12076           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12077
12078         else
12079           # FIXME: insert proper C++ library support
12080           ld_shlibs_CXX=no
12081         fi
12082         ;;
12083     esac
12084     ;;
12085   psos*)
12086     # FIXME: insert proper C++ library support
12087     ld_shlibs_CXX=no
12088     ;;
12089   sunos4*)
12090     case $cc_basename in
12091       CC*)
12092         # Sun C++ 4.x
12093         # FIXME: insert proper C++ library support
12094         ld_shlibs_CXX=no
12095         ;;
12096       lcc*)
12097         # Lucid
12098         # FIXME: insert proper C++ library support
12099         ld_shlibs_CXX=no
12100         ;;
12101       *)
12102         # FIXME: insert proper C++ library support
12103         ld_shlibs_CXX=no
12104         ;;
12105     esac
12106     ;;
12107   solaris*)
12108     case $cc_basename in
12109       CC*)
12110         # Sun C++ 4.2, 5.x and Centerline C++
12111         archive_cmds_need_lc_CXX=yes
12112         no_undefined_flag_CXX=' -zdefs'
12113         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12114         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12116
12117         hardcode_libdir_flag_spec_CXX='-R$libdir'
12118         hardcode_shlibpath_var_CXX=no
12119         case $host_os in
12120           solaris2.[0-5] | solaris2.[0-5].*) ;;
12121           *)
12122             # The C++ compiler is used as linker so we must use $wl
12123             # flag to pass the commands to the underlying system
12124             # linker. We must also pass each convience library through
12125             # to the system linker between allextract/defaultextract.
12126             # The C++ compiler will combine linker options so we
12127             # cannot just pass the convience library names through
12128             # without $wl.
12129             # Supported since Solaris 2.6 (maybe 2.5.1?)
12130             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12131             ;;
12132         esac
12133         link_all_deplibs_CXX=yes
12134
12135         output_verbose_link_cmd='echo'
12136
12137         # Archives containing C++ object files must be created using
12138         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12139         # necessary to make sure instantiated templates are included
12140         # in the archive.
12141         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12142         ;;
12143       gcx*)
12144         # Green Hills C++ Compiler
12145         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12146
12147         # The C++ compiler must be used to create the archive.
12148         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12149         ;;
12150       *)
12151         # GNU C++ compiler with Solaris linker
12152         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12153           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12154           if $CC --version | grep -v '^2\.7' > /dev/null; then
12155             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12156             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12157                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12158
12159             # Commands to make compiler produce verbose output that lists
12160             # what "hidden" libraries, object files and flags are used when
12161             # linking a shared library.
12162             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12163           else
12164             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12165             # platform.
12166             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12167             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12168                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12169
12170             # Commands to make compiler produce verbose output that lists
12171             # what "hidden" libraries, object files and flags are used when
12172             # linking a shared library.
12173             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12174           fi
12175
12176           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12177         fi
12178         ;;
12179     esac
12180     ;;
12181   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12182     no_undefined_flag_CXX='${wl}-z,text'
12183     archive_cmds_need_lc_CXX=no
12184     hardcode_shlibpath_var_CXX=no
12185     runpath_var='LD_RUN_PATH'
12186
12187     case $cc_basename in
12188       CC*)
12189         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12190         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12191         ;;
12192       *)
12193         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12194         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195         ;;
12196     esac
12197     ;;
12198   sysv5* | sco3.2v5* | sco5v6*)
12199     # Note: We can NOT use -z defs as we might desire, because we do not
12200     # link with -lc, and that would cause any symbols used from libc to
12201     # always be unresolved, which means just about no library would
12202     # ever link correctly.  If we're not using GNU ld we use -z text
12203     # though, which does catch some bad symbols but isn't as heavy-handed
12204     # as -z defs.
12205     # For security reasons, it is highly recommended that you always
12206     # use absolute paths for naming shared libraries, and exclude the
12207     # DT_RUNPATH tag from executables and libraries.  But doing so
12208     # requires that you compile everything twice, which is a pain.
12209     # So that behaviour is only enabled if SCOABSPATH is set to a
12210     # non-empty value in the environment.  Most likely only useful for
12211     # creating official distributions of packages.
12212     # This is a hack until libtool officially supports absolute path
12213     # names for shared libraries.
12214     no_undefined_flag_CXX='${wl}-z,text'
12215     allow_undefined_flag_CXX='${wl}-z,nodefs'
12216     archive_cmds_need_lc_CXX=no
12217     hardcode_shlibpath_var_CXX=no
12218     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12219     hardcode_libdir_separator_CXX=':'
12220     link_all_deplibs_CXX=yes
12221     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12222     runpath_var='LD_RUN_PATH'
12223
12224     case $cc_basename in
12225       CC*)
12226         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12227         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12228         ;;
12229       *)
12230         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12231         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12232         ;;
12233     esac
12234     ;;
12235   tandem*)
12236     case $cc_basename in
12237       NCC*)
12238         # NonStop-UX NCC 3.20
12239         # FIXME: insert proper C++ library support
12240         ld_shlibs_CXX=no
12241         ;;
12242       *)
12243         # FIXME: insert proper C++ library support
12244         ld_shlibs_CXX=no
12245         ;;
12246     esac
12247     ;;
12248   vxworks*)
12249     # FIXME: insert proper C++ library support
12250     ld_shlibs_CXX=no
12251     ;;
12252   *)
12253     # FIXME: insert proper C++ library support
12254     ld_shlibs_CXX=no
12255     ;;
12256 esac
12257 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12258 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12259 test "$ld_shlibs_CXX" = no && can_build_shared=no
12260
12261 GCC_CXX="$GXX"
12262 LD_CXX="$LD"
12263
12264
12265 cat > conftest.$ac_ext <<EOF
12266 class Foo
12267 {
12268 public:
12269   Foo (void) { a = 0; }
12270 private:
12271   int a;
12272 };
12273 EOF
12274
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; then
12280   # Parse the compiler output and extract the necessary
12281   # objects, libraries and library flags.
12282
12283   # Sentinel used to keep track of whether or not we are before
12284   # the conftest object file.
12285   pre_test_object_deps_done=no
12286
12287   # The `*' in the case matches for architectures that use `case' in
12288   # $output_verbose_cmd can trigger glob expansion during the loop
12289   # eval without this substitution.
12290   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12291
12292   for p in `eval $output_verbose_link_cmd`; do
12293     case $p in
12294
12295     -L* | -R* | -l*)
12296        # Some compilers place space between "-{L,R}" and the path.
12297        # Remove the space.
12298        if test $p = "-L" \
12299           || test $p = "-R"; then
12300          prev=$p
12301          continue
12302        else
12303          prev=
12304        fi
12305
12306        if test "$pre_test_object_deps_done" = no; then
12307          case $p in
12308          -L* | -R*)
12309            # Internal compiler library paths should come after those
12310            # provided the user.  The postdeps already come after the
12311            # user supplied libs so there is no need to process them.
12312            if test -z "$compiler_lib_search_path_CXX"; then
12313              compiler_lib_search_path_CXX="${prev}${p}"
12314            else
12315              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12316            fi
12317            ;;
12318          # The "-l" case would never come before the object being
12319          # linked, so don't bother handling this case.
12320          esac
12321        else
12322          if test -z "$postdeps_CXX"; then
12323            postdeps_CXX="${prev}${p}"
12324          else
12325            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12326          fi
12327        fi
12328        ;;
12329
12330     *.$objext)
12331        # This assumes that the test object file only shows up
12332        # once in the compiler output.
12333        if test "$p" = "conftest.$objext"; then
12334          pre_test_object_deps_done=yes
12335          continue
12336        fi
12337
12338        if test "$pre_test_object_deps_done" = no; then
12339          if test -z "$predep_objects_CXX"; then
12340            predep_objects_CXX="$p"
12341          else
12342            predep_objects_CXX="$predep_objects_CXX $p"
12343          fi
12344        else
12345          if test -z "$postdep_objects_CXX"; then
12346            postdep_objects_CXX="$p"
12347          else
12348            postdep_objects_CXX="$postdep_objects_CXX $p"
12349          fi
12350        fi
12351        ;;
12352
12353     *) ;; # Ignore the rest.
12354
12355     esac
12356   done
12357
12358   # Clean up.
12359   rm -f a.out a.exe
12360 else
12361   echo "libtool.m4: error: problem compiling CXX test program"
12362 fi
12363
12364 $rm -f confest.$objext
12365
12366 # PORTME: override above test on systems where it is broken
12367 case $host_os in
12368 interix3*)
12369   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12370   # hack all around it, let's just trust "g++" to DTRT.
12371   predep_objects_CXX=
12372   postdep_objects_CXX=
12373   postdeps_CXX=
12374   ;;
12375
12376 solaris*)
12377   case $cc_basename in
12378   CC*)
12379     # Adding this requires a known-good setup of shared libraries for
12380     # Sun compiler versions before 5.6, else PIC objects from an old
12381     # archive will be linked into the output, leading to subtle bugs.
12382     postdeps_CXX='-lCstd -lCrun'
12383     ;;
12384   esac
12385   ;;
12386 esac
12387
12388
12389 case " $postdeps_CXX " in
12390 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12391 esac
12392
12393 lt_prog_compiler_wl_CXX=
12394 lt_prog_compiler_pic_CXX=
12395 lt_prog_compiler_static_CXX=
12396
12397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12399
12400   # C++ specific cases for pic, static, wl, etc.
12401   if test "$GXX" = yes; then
12402     lt_prog_compiler_wl_CXX='-Wl,'
12403     lt_prog_compiler_static_CXX='-static'
12404
12405     case $host_os in
12406     aix*)
12407       # All AIX code is PIC.
12408       if test "$host_cpu" = ia64; then
12409         # AIX 5 now supports IA64 processor
12410         lt_prog_compiler_static_CXX='-Bstatic'
12411       fi
12412       ;;
12413     amigaos*)
12414       # FIXME: we need at least 68020 code to build shared libraries, but
12415       # adding the `-m68020' flag to GCC prevents building anything better,
12416       # like `-m68040'.
12417       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12418       ;;
12419     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12420       # PIC is the default for these OSes.
12421       ;;
12422     mingw* | os2* | pw32*)
12423       # This hack is so that the source file can tell whether it is being
12424       # built for inclusion in a dll (and should export symbols for example).
12425       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12426       ;;
12427     darwin* | rhapsody*)
12428       # PIC is the default on this platform
12429       # Common symbols not allowed in MH_DYLIB files
12430       lt_prog_compiler_pic_CXX='-fno-common'
12431       ;;
12432     *djgpp*)
12433       # DJGPP does not support shared libraries at all
12434       lt_prog_compiler_pic_CXX=
12435       ;;
12436     interix3*)
12437       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12438       # Instead, we relocate shared libraries at runtime.
12439       ;;
12440     sysv4*MP*)
12441       if test -d /usr/nec; then
12442         lt_prog_compiler_pic_CXX=-Kconform_pic
12443       fi
12444       ;;
12445     hpux*)
12446       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12447       # not for PA HP-UX.
12448       case $host_cpu in
12449       hppa*64*|ia64*)
12450         ;;
12451       *)
12452         lt_prog_compiler_pic_CXX='-fPIC'
12453         ;;
12454       esac
12455       ;;
12456     *)
12457       lt_prog_compiler_pic_CXX='-fPIC'
12458       ;;
12459     esac
12460   else
12461     case $host_os in
12462       aix4* | aix5*)
12463         # All AIX code is PIC.
12464         if test "$host_cpu" = ia64; then
12465           # AIX 5 now supports IA64 processor
12466           lt_prog_compiler_static_CXX='-Bstatic'
12467         else
12468           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12469         fi
12470         ;;
12471       chorus*)
12472         case $cc_basename in
12473         cxch68*)
12474           # Green Hills C++ Compiler
12475           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12476           ;;
12477         esac
12478         ;;
12479        darwin*)
12480          # PIC is the default on this platform
12481          # Common symbols not allowed in MH_DYLIB files
12482          case $cc_basename in
12483            xlc*)
12484            lt_prog_compiler_pic_CXX='-qnocommon'
12485            lt_prog_compiler_wl_CXX='-Wl,'
12486            ;;
12487          esac
12488        ;;
12489       dgux*)
12490         case $cc_basename in
12491           ec++*)
12492             lt_prog_compiler_pic_CXX='-KPIC'
12493             ;;
12494           ghcx*)
12495             # Green Hills C++ Compiler
12496             lt_prog_compiler_pic_CXX='-pic'
12497             ;;
12498           *)
12499             ;;
12500         esac
12501         ;;
12502       freebsd* | dragonfly*)
12503         # FreeBSD uses GNU C++
12504         ;;
12505       hpux9* | hpux10* | hpux11*)
12506         case $cc_basename in
12507           CC*)
12508             lt_prog_compiler_wl_CXX='-Wl,'
12509             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12510             if test "$host_cpu" != ia64; then
12511               lt_prog_compiler_pic_CXX='+Z'
12512             fi
12513             ;;
12514           aCC*)
12515             lt_prog_compiler_wl_CXX='-Wl,'
12516             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12517             case $host_cpu in
12518             hppa*64*|ia64*)
12519               # +Z the default
12520               ;;
12521             *)
12522               lt_prog_compiler_pic_CXX='+Z'
12523               ;;
12524             esac
12525             ;;
12526           *)
12527             ;;
12528         esac
12529         ;;
12530       interix*)
12531         # This is c89, which is MS Visual C++ (no shared libs)
12532         # Anyone wants to do a port?
12533         ;;
12534       irix5* | irix6* | nonstopux*)
12535         case $cc_basename in
12536           CC*)
12537             lt_prog_compiler_wl_CXX='-Wl,'
12538             lt_prog_compiler_static_CXX='-non_shared'
12539             # CC pic flag -KPIC is the default.
12540             ;;
12541           *)
12542             ;;
12543         esac
12544         ;;
12545       linux* | k*bsd*-gnu)
12546         case $cc_basename in
12547           KCC*)
12548             # KAI C++ Compiler
12549             lt_prog_compiler_wl_CXX='--backend -Wl,'
12550             lt_prog_compiler_pic_CXX='-fPIC'
12551             ;;
12552           icpc* | ecpc*)
12553             # Intel C++
12554             lt_prog_compiler_wl_CXX='-Wl,'
12555             lt_prog_compiler_pic_CXX='-KPIC'
12556             lt_prog_compiler_static_CXX='-static'
12557             ;;
12558           pgCC*)
12559             # Portland Group C++ compiler.
12560             lt_prog_compiler_wl_CXX='-Wl,'
12561             lt_prog_compiler_pic_CXX='-fpic'
12562             lt_prog_compiler_static_CXX='-Bstatic'
12563             ;;
12564           cxx*)
12565             # Compaq C++
12566             # Make sure the PIC flag is empty.  It appears that all Alpha
12567             # Linux and Compaq Tru64 Unix objects are PIC.
12568             lt_prog_compiler_pic_CXX=
12569             lt_prog_compiler_static_CXX='-non_shared'
12570             ;;
12571           *)
12572             ;;
12573         esac
12574         ;;
12575       lynxos*)
12576         ;;
12577       m88k*)
12578         ;;
12579       mvs*)
12580         case $cc_basename in
12581           cxx*)
12582             lt_prog_compiler_pic_CXX='-W c,exportall'
12583             ;;
12584           *)
12585             ;;
12586         esac
12587         ;;
12588       netbsd* | netbsdelf*-gnu)
12589         ;;
12590       osf3* | osf4* | osf5*)
12591         case $cc_basename in
12592           KCC*)
12593             lt_prog_compiler_wl_CXX='--backend -Wl,'
12594             ;;
12595           RCC*)
12596             # Rational C++ 2.4.1
12597             lt_prog_compiler_pic_CXX='-pic'
12598             ;;
12599           cxx*)
12600             # Digital/Compaq C++
12601             lt_prog_compiler_wl_CXX='-Wl,'
12602             # Make sure the PIC flag is empty.  It appears that all Alpha
12603             # Linux and Compaq Tru64 Unix objects are PIC.
12604             lt_prog_compiler_pic_CXX=
12605             lt_prog_compiler_static_CXX='-non_shared'
12606             ;;
12607           *)
12608             ;;
12609         esac
12610         ;;
12611       psos*)
12612         ;;
12613       solaris*)
12614         case $cc_basename in
12615           CC*)
12616             # Sun C++ 4.2, 5.x and Centerline C++
12617             lt_prog_compiler_pic_CXX='-KPIC'
12618             lt_prog_compiler_static_CXX='-Bstatic'
12619             lt_prog_compiler_wl_CXX='-Qoption ld '
12620             ;;
12621           gcx*)
12622             # Green Hills C++ Compiler
12623             lt_prog_compiler_pic_CXX='-PIC'
12624             ;;
12625           *)
12626             ;;
12627         esac
12628         ;;
12629       sunos4*)
12630         case $cc_basename in
12631           CC*)
12632             # Sun C++ 4.x
12633             lt_prog_compiler_pic_CXX='-pic'
12634             lt_prog_compiler_static_CXX='-Bstatic'
12635             ;;
12636           lcc*)
12637             # Lucid
12638             lt_prog_compiler_pic_CXX='-pic'
12639             ;;
12640           *)
12641             ;;
12642         esac
12643         ;;
12644       tandem*)
12645         case $cc_basename in
12646           NCC*)
12647             # NonStop-UX NCC 3.20
12648             lt_prog_compiler_pic_CXX='-KPIC'
12649             ;;
12650           *)
12651             ;;
12652         esac
12653         ;;
12654       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12655         case $cc_basename in
12656           CC*)
12657             lt_prog_compiler_wl_CXX='-Wl,'
12658             lt_prog_compiler_pic_CXX='-KPIC'
12659             lt_prog_compiler_static_CXX='-Bstatic'
12660             ;;
12661         esac
12662         ;;
12663       vxworks*)
12664         ;;
12665       *)
12666         lt_prog_compiler_can_build_shared_CXX=no
12667         ;;
12668     esac
12669   fi
12670
12671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12672 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12673
12674 #
12675 # Check to make sure the PIC flag actually works.
12676 #
12677 if test -n "$lt_prog_compiler_pic_CXX"; then
12678
12679 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12680 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12681 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   lt_prog_compiler_pic_works_CXX=no
12685   ac_outfile=conftest.$ac_objext
12686    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12687    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12688    # Insert the option either (1) after the last *FLAGS variable, or
12689    # (2) before a word containing "conftest.", or (3) at the end.
12690    # Note that $ac_compile itself does not contain backslashes and begins
12691    # with a dollar sign (not a hyphen), so the echo should work correctly.
12692    # The option is referenced via a variable to avoid confusing sed.
12693    lt_compile=`echo "$ac_compile" | $SED \
12694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12696    -e 's:$: $lt_compiler_flag:'`
12697    (eval echo "\"\$as_me:12697: $lt_compile\"" >&5)
12698    (eval "$lt_compile" 2>conftest.err)
12699    ac_status=$?
12700    cat conftest.err >&5
12701    echo "$as_me:12701: \$? = $ac_status" >&5
12702    if (exit $ac_status) && test -s "$ac_outfile"; then
12703      # The compiler can only warn and ignore the option if not recognized
12704      # So say no if there are warnings other than the usual output.
12705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12708        lt_prog_compiler_pic_works_CXX=yes
12709      fi
12710    fi
12711    $rm conftest*
12712
12713 fi
12714 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12715 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12716
12717 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12718     case $lt_prog_compiler_pic_CXX in
12719      "" | " "*) ;;
12720      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12721      esac
12722 else
12723     lt_prog_compiler_pic_CXX=
12724      lt_prog_compiler_can_build_shared_CXX=no
12725 fi
12726
12727 fi
12728 case $host_os in
12729   # For platforms which do not support PIC, -DPIC is meaningless:
12730   *djgpp*)
12731     lt_prog_compiler_pic_CXX=
12732     ;;
12733   *)
12734     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12735     ;;
12736 esac
12737
12738 #
12739 # Check to make sure the static flag actually works.
12740 #
12741 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12742 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12743 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12744 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   lt_prog_compiler_static_works_CXX=no
12748    save_LDFLAGS="$LDFLAGS"
12749    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12750    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12751    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12752      # The linker can only warn and ignore the option if not recognized
12753      # So say no if there are warnings
12754      if test -s conftest.err; then
12755        # Append any errors to the config.log.
12756        cat conftest.err 1>&5
12757        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12758        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12759        if diff conftest.exp conftest.er2 >/dev/null; then
12760          lt_prog_compiler_static_works_CXX=yes
12761        fi
12762      else
12763        lt_prog_compiler_static_works_CXX=yes
12764      fi
12765    fi
12766    $rm conftest*
12767    LDFLAGS="$save_LDFLAGS"
12768
12769 fi
12770 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12771 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12772
12773 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12774     :
12775 else
12776     lt_prog_compiler_static_CXX=
12777 fi
12778
12779
12780 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12781 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   lt_cv_prog_compiler_c_o_CXX=no
12786    $rm -r conftest 2>/dev/null
12787    mkdir conftest
12788    cd conftest
12789    mkdir out
12790    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12791
12792    lt_compiler_flag="-o out/conftest2.$ac_objext"
12793    # Insert the option either (1) after the last *FLAGS variable, or
12794    # (2) before a word containing "conftest.", or (3) at the end.
12795    # Note that $ac_compile itself does not contain backslashes and begins
12796    # with a dollar sign (not a hyphen), so the echo should work correctly.
12797    lt_compile=`echo "$ac_compile" | $SED \
12798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12800    -e 's:$: $lt_compiler_flag:'`
12801    (eval echo "\"\$as_me:12801: $lt_compile\"" >&5)
12802    (eval "$lt_compile" 2>out/conftest.err)
12803    ac_status=$?
12804    cat out/conftest.err >&5
12805    echo "$as_me:12805: \$? = $ac_status" >&5
12806    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12807    then
12808      # The compiler can only warn and ignore the option if not recognized
12809      # So say no if there are warnings
12810      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12811      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12812      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12813        lt_cv_prog_compiler_c_o_CXX=yes
12814      fi
12815    fi
12816    chmod u+w . 2>&5
12817    $rm conftest*
12818    # SGI C++ compiler will create directory out/ii_files/ for
12819    # template instantiation
12820    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12821    $rm out/* && rmdir out
12822    cd ..
12823    rmdir conftest
12824    $rm conftest*
12825
12826 fi
12827 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12828 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12829
12830
12831 hard_links="nottested"
12832 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12833   # do not overwrite the value of need_locks provided by the user
12834   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12835 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12836   hard_links=yes
12837   $rm conftest*
12838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839   touch conftest.a
12840   ln conftest.a conftest.b 2>&5 || hard_links=no
12841   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12842   echo "$as_me:$LINENO: result: $hard_links" >&5
12843 echo "${ECHO_T}$hard_links" >&6
12844   if test "$hard_links" = no; then
12845     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12846 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12847     need_locks=warn
12848   fi
12849 else
12850   need_locks=no
12851 fi
12852
12853 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12855
12856   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12857   case $host_os in
12858   aix4* | aix5*)
12859     # If we're using GNU nm, then we don't want the "-C" option.
12860     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12861     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12862       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12863     else
12864       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12865     fi
12866     ;;
12867   pw32*)
12868     export_symbols_cmds_CXX="$ltdll_cmds"
12869   ;;
12870   cygwin* | mingw*)
12871     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12872   ;;
12873   linux* | k*bsd*-gnu)
12874     link_all_deplibs_CXX=no
12875   ;;
12876   *)
12877     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12878   ;;
12879   esac
12880
12881 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12882 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12883 test "$ld_shlibs_CXX" = no && can_build_shared=no
12884
12885 #
12886 # Do we need to explicitly link libc?
12887 #
12888 case "x$archive_cmds_need_lc_CXX" in
12889 x|xyes)
12890   # Assume -lc should be added
12891   archive_cmds_need_lc_CXX=yes
12892
12893   if test "$enable_shared" = yes && test "$GCC" = yes; then
12894     case $archive_cmds_CXX in
12895     *'~'*)
12896       # FIXME: we may have to deal with multi-command sequences.
12897       ;;
12898     '$CC '*)
12899       # Test whether the compiler implicitly links with -lc since on some
12900       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12901       # to ld, don't add -lc before -lgcc.
12902       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12904       $rm conftest*
12905       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } 2>conftest.err; then
12912         soname=conftest
12913         lib=conftest
12914         libobjs=conftest.$ac_objext
12915         deplibs=
12916         wl=$lt_prog_compiler_wl_CXX
12917         pic_flag=$lt_prog_compiler_pic_CXX
12918         compiler_flags=-v
12919         linker_flags=-v
12920         verstring=
12921         output_objdir=.
12922         libname=conftest
12923         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12924         allow_undefined_flag_CXX=
12925         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12926   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }
12930         then
12931           archive_cmds_need_lc_CXX=no
12932         else
12933           archive_cmds_need_lc_CXX=yes
12934         fi
12935         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12936       else
12937         cat conftest.err 1>&5
12938       fi
12939       $rm conftest*
12940       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12941 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12942       ;;
12943     esac
12944   fi
12945   ;;
12946 esac
12947
12948 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12950 library_names_spec=
12951 libname_spec='lib$name'
12952 soname_spec=
12953 shrext_cmds=".so"
12954 postinstall_cmds=
12955 postuninstall_cmds=
12956 finish_cmds=
12957 finish_eval=
12958 shlibpath_var=
12959 shlibpath_overrides_runpath=unknown
12960 version_type=none
12961 dynamic_linker="$host_os ld.so"
12962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12963 if test "$GCC" = yes; then
12964   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12965   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12966     # if the path contains ";" then we assume it to be the separator
12967     # otherwise default to the standard path separator (i.e. ":") - it is
12968     # assumed that no part of a normal pathname contains ";" but that should
12969     # okay in the real world where ";" in dirpaths is itself problematic.
12970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12971   else
12972     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12973   fi
12974 else
12975   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12976 fi
12977 need_lib_prefix=unknown
12978 hardcode_into_libs=no
12979
12980 # when you set need_version to no, make sure it does not cause -set_version
12981 # flags to be left without arguments
12982 need_version=unknown
12983
12984 case $host_os in
12985 aix3*)
12986   version_type=linux
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12988   shlibpath_var=LIBPATH
12989
12990   # AIX 3 has no versioning support, so we append a major version to the name.
12991   soname_spec='${libname}${release}${shared_ext}$major'
12992   ;;
12993
12994 aix4* | aix5*)
12995   version_type=linux
12996   need_lib_prefix=no
12997   need_version=no
12998   hardcode_into_libs=yes
12999   if test "$host_cpu" = ia64; then
13000     # AIX 5 supports IA64
13001     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13002     shlibpath_var=LD_LIBRARY_PATH
13003   else
13004     # With GCC up to 2.95.x, collect2 would create an import file
13005     # for dependence libraries.  The import file would start with
13006     # the line `#! .'.  This would cause the generated library to
13007     # depend on `.', always an invalid library.  This was fixed in
13008     # development snapshots of GCC prior to 3.0.
13009     case $host_os in
13010       aix4 | aix4.[01] | aix4.[01].*)
13011       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13012            echo ' yes '
13013            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13014         :
13015       else
13016         can_build_shared=no
13017       fi
13018       ;;
13019     esac
13020     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13021     # soname into executable. Probably we can add versioning support to
13022     # collect2, so additional links can be useful in future.
13023     if test "$aix_use_runtimelinking" = yes; then
13024       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13025       # instead of lib<name>.a to let people know that these are not
13026       # typical AIX shared libraries.
13027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028     else
13029       # We preserve .a as extension for shared libraries through AIX4.2
13030       # and later when we are not doing run time linking.
13031       library_names_spec='${libname}${release}.a $libname.a'
13032       soname_spec='${libname}${release}${shared_ext}$major'
13033     fi
13034     shlibpath_var=LIBPATH
13035   fi
13036   ;;
13037
13038 amigaos*)
13039   library_names_spec='$libname.ixlibrary $libname.a'
13040   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13041   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'
13042   ;;
13043
13044 beos*)
13045   library_names_spec='${libname}${shared_ext}'
13046   dynamic_linker="$host_os ld.so"
13047   shlibpath_var=LIBRARY_PATH
13048   ;;
13049
13050 bsdi[45]*)
13051   version_type=linux
13052   need_version=no
13053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054   soname_spec='${libname}${release}${shared_ext}$major'
13055   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13056   shlibpath_var=LD_LIBRARY_PATH
13057   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13058   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13059   # the default ld.so.conf also contains /usr/contrib/lib and
13060   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13061   # libtool to hard-code these into programs
13062   ;;
13063
13064 cygwin* | mingw* | pw32*)
13065   version_type=windows
13066   shrext_cmds=".dll"
13067   need_version=no
13068   need_lib_prefix=no
13069
13070   case $GCC,$host_os in
13071   yes,cygwin* | yes,mingw* | yes,pw32*)
13072     library_names_spec='$libname.dll.a'
13073     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13074     postinstall_cmds='base_file=`basename \${file}`~
13075       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13076       dldir=$destdir/`dirname \$dlpath`~
13077       test -d \$dldir || mkdir -p \$dldir~
13078       $install_prog $dir/$dlname \$dldir/$dlname~
13079       chmod a+x \$dldir/$dlname'
13080     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13081       dlpath=$dir/\$dldll~
13082        $rm \$dlpath'
13083     shlibpath_overrides_runpath=yes
13084
13085     case $host_os in
13086     cygwin*)
13087       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13088       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13090       ;;
13091     mingw*)
13092       # MinGW DLLs use traditional 'lib' prefix
13093       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13094       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13095       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13096         # It is most probably a Windows format PATH printed by
13097         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13098         # path with ; separators, and with drive letters. We can handle the
13099         # drive letters (cygwin fileutils understands them), so leave them,
13100         # especially as we might pass files found there to a mingw objdump,
13101         # which wouldn't understand a cygwinified path. Ahh.
13102         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13103       else
13104         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13105       fi
13106       ;;
13107     pw32*)
13108       # pw32 DLLs use 'pw' prefix rather than 'lib'
13109       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13110       ;;
13111     esac
13112     ;;
13113
13114   *)
13115     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13116     ;;
13117   esac
13118   dynamic_linker='Win32 ld.exe'
13119   # FIXME: first we should search . and the directory the executable is in
13120   shlibpath_var=PATH
13121   ;;
13122
13123 darwin* | rhapsody*)
13124   dynamic_linker="$host_os dyld"
13125   version_type=darwin
13126   need_lib_prefix=no
13127   need_version=no
13128   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13129   soname_spec='${libname}${release}${major}$shared_ext'
13130   shlibpath_overrides_runpath=yes
13131   shlibpath_var=DYLD_LIBRARY_PATH
13132   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13133   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13134   if test "$GCC" = yes; then
13135     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13136   else
13137     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13138   fi
13139   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13140   ;;
13141
13142 dgux*)
13143   version_type=linux
13144   need_lib_prefix=no
13145   need_version=no
13146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13147   soname_spec='${libname}${release}${shared_ext}$major'
13148   shlibpath_var=LD_LIBRARY_PATH
13149   ;;
13150
13151 freebsd1*)
13152   dynamic_linker=no
13153   ;;
13154
13155 freebsd* | dragonfly*)
13156   # DragonFly does not have aout.  When/if they implement a new
13157   # versioning mechanism, adjust this.
13158   if test -x /usr/bin/objformat; then
13159     objformat=`/usr/bin/objformat`
13160   else
13161     case $host_os in
13162     freebsd[123]*) objformat=aout ;;
13163     *) objformat=elf ;;
13164     esac
13165   fi
13166   version_type=freebsd-$objformat
13167   case $version_type in
13168     freebsd-elf*)
13169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13170       need_version=no
13171       need_lib_prefix=no
13172       ;;
13173     freebsd-*)
13174       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13175       need_version=yes
13176       ;;
13177   esac
13178   shlibpath_var=LD_LIBRARY_PATH
13179   case $host_os in
13180   freebsd2*)
13181     shlibpath_overrides_runpath=yes
13182     ;;
13183   freebsd3.[01]* | freebsdelf3.[01]*)
13184     shlibpath_overrides_runpath=yes
13185     hardcode_into_libs=yes
13186     ;;
13187   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189     shlibpath_overrides_runpath=no
13190     hardcode_into_libs=yes
13191     ;;
13192   freebsd*) # from 4.6 on
13193     shlibpath_overrides_runpath=yes
13194     hardcode_into_libs=yes
13195     ;;
13196   esac
13197   ;;
13198
13199 gnu*)
13200   version_type=linux
13201   need_lib_prefix=no
13202   need_version=no
13203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13204   soname_spec='${libname}${release}${shared_ext}$major'
13205   shlibpath_var=LD_LIBRARY_PATH
13206   hardcode_into_libs=yes
13207   ;;
13208
13209 hpux9* | hpux10* | hpux11*)
13210   # Give a soname corresponding to the major version so that dld.sl refuses to
13211   # link against other versions.
13212   version_type=sunos
13213   need_lib_prefix=no
13214   need_version=no
13215   case $host_cpu in
13216   ia64*)
13217     shrext_cmds='.so'
13218     hardcode_into_libs=yes
13219     dynamic_linker="$host_os dld.so"
13220     shlibpath_var=LD_LIBRARY_PATH
13221     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223     soname_spec='${libname}${release}${shared_ext}$major'
13224     if test "X$HPUX_IA64_MODE" = X32; then
13225       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13226     else
13227       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13228     fi
13229     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13230     ;;
13231    hppa*64*)
13232      shrext_cmds='.sl'
13233      hardcode_into_libs=yes
13234      dynamic_linker="$host_os dld.sl"
13235      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13236      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13237      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238      soname_spec='${libname}${release}${shared_ext}$major'
13239      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13240      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13241      ;;
13242    *)
13243     shrext_cmds='.sl'
13244     dynamic_linker="$host_os dld.sl"
13245     shlibpath_var=SHLIB_PATH
13246     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248     soname_spec='${libname}${release}${shared_ext}$major'
13249     ;;
13250   esac
13251   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13252   postinstall_cmds='chmod 555 $lib'
13253   ;;
13254
13255 interix3*)
13256   version_type=linux
13257   need_lib_prefix=no
13258   need_version=no
13259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260   soname_spec='${libname}${release}${shared_ext}$major'
13261   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13262   shlibpath_var=LD_LIBRARY_PATH
13263   shlibpath_overrides_runpath=no
13264   hardcode_into_libs=yes
13265   ;;
13266
13267 irix5* | irix6* | nonstopux*)
13268   case $host_os in
13269     nonstopux*) version_type=nonstopux ;;
13270     *)
13271         if test "$lt_cv_prog_gnu_ld" = yes; then
13272                 version_type=linux
13273         else
13274                 version_type=irix
13275         fi ;;
13276   esac
13277   need_lib_prefix=no
13278   need_version=no
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13281   case $host_os in
13282   irix5* | nonstopux*)
13283     libsuff= shlibsuff=
13284     ;;
13285   *)
13286     case $LD in # libtool.m4 will add one of these switches to LD
13287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13288       libsuff= shlibsuff= libmagic=32-bit;;
13289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13290       libsuff=32 shlibsuff=N32 libmagic=N32;;
13291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13293     *) libsuff= shlibsuff= libmagic=never-match;;
13294     esac
13295     ;;
13296   esac
13297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13298   shlibpath_overrides_runpath=no
13299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13301   hardcode_into_libs=yes
13302   ;;
13303
13304 # No shared lib support for Linux oldld, aout, or coff.
13305 linux*oldld* | linux*aout* | linux*coff*)
13306   dynamic_linker=no
13307   ;;
13308
13309 # This must be Linux ELF.
13310 linux* | k*bsd*-gnu)
13311   version_type=linux
13312   need_lib_prefix=no
13313   need_version=no
13314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13315   soname_spec='${libname}${release}${shared_ext}$major'
13316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13317   shlibpath_var=LD_LIBRARY_PATH
13318   shlibpath_overrides_runpath=no
13319   # This implies no fast_install, which is unacceptable.
13320   # Some rework will be needed to allow for fast_install
13321   # before this can be enabled.
13322   hardcode_into_libs=yes
13323
13324   # Append ld.so.conf contents to the search path
13325   if test -f /etc/ld.so.conf; then
13326     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13327     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13328   fi
13329
13330   # We used to test for /lib/ld.so.1 and disable shared libraries on
13331   # powerpc, because MkLinux only supported shared libraries with the
13332   # GNU dynamic linker.  Since this was broken with cross compilers,
13333   # most powerpc-linux boxes support dynamic linking these days and
13334   # people can always --disable-shared, the test was removed, and we
13335   # assume the GNU/Linux dynamic linker is in use.
13336   dynamic_linker='GNU/Linux ld.so'
13337   ;;
13338
13339 netbsdelf*-gnu)
13340   version_type=linux
13341   need_lib_prefix=no
13342   need_version=no
13343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344   soname_spec='${libname}${release}${shared_ext}$major'
13345   shlibpath_var=LD_LIBRARY_PATH
13346   shlibpath_overrides_runpath=no
13347   hardcode_into_libs=yes
13348   dynamic_linker='NetBSD ld.elf_so'
13349   ;;
13350
13351 netbsd*)
13352   version_type=sunos
13353   need_lib_prefix=no
13354   need_version=no
13355   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358     dynamic_linker='NetBSD (a.out) ld.so'
13359   else
13360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361     soname_spec='${libname}${release}${shared_ext}$major'
13362     dynamic_linker='NetBSD ld.elf_so'
13363   fi
13364   shlibpath_var=LD_LIBRARY_PATH
13365   shlibpath_overrides_runpath=yes
13366   hardcode_into_libs=yes
13367   ;;
13368
13369 newsos6)
13370   version_type=linux
13371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   ;;
13375
13376 nto-qnx*)
13377   version_type=linux
13378   need_lib_prefix=no
13379   need_version=no
13380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381   soname_spec='${libname}${release}${shared_ext}$major'
13382   shlibpath_var=LD_LIBRARY_PATH
13383   shlibpath_overrides_runpath=yes
13384   ;;
13385
13386 openbsd*)
13387   version_type=sunos
13388   sys_lib_dlsearch_path_spec="/usr/lib"
13389   need_lib_prefix=no
13390   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13391   case $host_os in
13392     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393     *)                         need_version=no  ;;
13394   esac
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397   shlibpath_var=LD_LIBRARY_PATH
13398   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13399     case $host_os in
13400       openbsd2.[89] | openbsd2.[89].*)
13401         shlibpath_overrides_runpath=no
13402         ;;
13403       *)
13404         shlibpath_overrides_runpath=yes
13405         ;;
13406       esac
13407   else
13408     shlibpath_overrides_runpath=yes
13409   fi
13410   ;;
13411
13412 os2*)
13413   libname_spec='$name'
13414   shrext_cmds=".dll"
13415   need_lib_prefix=no
13416   library_names_spec='$libname${shared_ext} $libname.a'
13417   dynamic_linker='OS/2 ld.exe'
13418   shlibpath_var=LIBPATH
13419   ;;
13420
13421 osf3* | osf4* | osf5*)
13422   version_type=osf
13423   need_lib_prefix=no
13424   need_version=no
13425   soname_spec='${libname}${release}${shared_ext}$major'
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13430   ;;
13431
13432 solaris*)
13433   version_type=linux
13434   need_lib_prefix=no
13435   need_version=no
13436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437   soname_spec='${libname}${release}${shared_ext}$major'
13438   shlibpath_var=LD_LIBRARY_PATH
13439   shlibpath_overrides_runpath=yes
13440   hardcode_into_libs=yes
13441   # ldd complains unless libraries are executable
13442   postinstall_cmds='chmod +x $lib'
13443   ;;
13444
13445 sunos4*)
13446   version_type=sunos
13447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13449   shlibpath_var=LD_LIBRARY_PATH
13450   shlibpath_overrides_runpath=yes
13451   if test "$with_gnu_ld" = yes; then
13452     need_lib_prefix=no
13453   fi
13454   need_version=yes
13455   ;;
13456
13457 sysv4 | sysv4.3*)
13458   version_type=linux
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460   soname_spec='${libname}${release}${shared_ext}$major'
13461   shlibpath_var=LD_LIBRARY_PATH
13462   case $host_vendor in
13463     sni)
13464       shlibpath_overrides_runpath=no
13465       need_lib_prefix=no
13466       export_dynamic_flag_spec='${wl}-Blargedynsym'
13467       runpath_var=LD_RUN_PATH
13468       ;;
13469     siemens)
13470       need_lib_prefix=no
13471       ;;
13472     motorola)
13473       need_lib_prefix=no
13474       need_version=no
13475       shlibpath_overrides_runpath=no
13476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13477       ;;
13478   esac
13479   ;;
13480
13481 sysv4*MP*)
13482   if test -d /usr/nec ;then
13483     version_type=linux
13484     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13485     soname_spec='$libname${shared_ext}.$major'
13486     shlibpath_var=LD_LIBRARY_PATH
13487   fi
13488   ;;
13489
13490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491   version_type=freebsd-elf
13492   need_lib_prefix=no
13493   need_version=no
13494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   hardcode_into_libs=yes
13498   if test "$with_gnu_ld" = yes; then
13499     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13500     shlibpath_overrides_runpath=no
13501   else
13502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13503     shlibpath_overrides_runpath=yes
13504     case $host_os in
13505       sco3.2v5*)
13506         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13507         ;;
13508     esac
13509   fi
13510   sys_lib_dlsearch_path_spec='/usr/lib'
13511   ;;
13512
13513 uts4*)
13514   version_type=linux
13515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13516   soname_spec='${libname}${release}${shared_ext}$major'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   ;;
13519
13520 *)
13521   dynamic_linker=no
13522   ;;
13523 esac
13524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13525 echo "${ECHO_T}$dynamic_linker" >&6
13526 test "$dynamic_linker" = no && can_build_shared=no
13527
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13531 fi
13532
13533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13535 hardcode_action_CXX=
13536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13537    test -n "$runpath_var_CXX" || \
13538    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13539
13540   # We can hardcode non-existant directories.
13541   if test "$hardcode_direct_CXX" != no &&
13542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13543      # have to relink, otherwise we might link with an installed library
13544      # when we should be linking with a yet-to-be-installed one
13545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13546      test "$hardcode_minus_L_CXX" != no; then
13547     # Linking always hardcodes the temporary library directory.
13548     hardcode_action_CXX=relink
13549   else
13550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13551     hardcode_action_CXX=immediate
13552   fi
13553 else
13554   # We cannot hardcode anything, or else we can only hardcode existing
13555   # directories.
13556   hardcode_action_CXX=unsupported
13557 fi
13558 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13559 echo "${ECHO_T}$hardcode_action_CXX" >&6
13560
13561 if test "$hardcode_action_CXX" = relink; then
13562   # Fast installation is not supported
13563   enable_fast_install=no
13564 elif test "$shlibpath_overrides_runpath" = yes ||
13565      test "$enable_shared" = no; then
13566   # Fast installation is not necessary
13567   enable_fast_install=needless
13568 fi
13569
13570
13571 # The else clause should only fire when bootstrapping the
13572 # libtool distribution, otherwise you forgot to ship ltmain.sh
13573 # with your package, and you will get complaints that there are
13574 # no rules to generate ltmain.sh.
13575 if test -f "$ltmain"; then
13576   # See if we are running on zsh, and set the options which allow our commands through
13577   # without removal of \ escapes.
13578   if test -n "${ZSH_VERSION+set}" ; then
13579     setopt NO_GLOB_SUBST
13580   fi
13581   # Now quote all the things that may contain metacharacters while being
13582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13583   # variables and quote the copies for generation of the libtool script.
13584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13585     SED SHELL STRIP \
13586     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13587     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13588     deplibs_check_method reload_flag reload_cmds need_locks \
13589     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13590     lt_cv_sys_global_symbol_to_c_name_address \
13591     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13592     old_postinstall_cmds old_postuninstall_cmds \
13593     compiler_CXX \
13594     CC_CXX \
13595     LD_CXX \
13596     lt_prog_compiler_wl_CXX \
13597     lt_prog_compiler_pic_CXX \
13598     lt_prog_compiler_static_CXX \
13599     lt_prog_compiler_no_builtin_flag_CXX \
13600     export_dynamic_flag_spec_CXX \
13601     thread_safe_flag_spec_CXX \
13602     whole_archive_flag_spec_CXX \
13603     enable_shared_with_static_runtimes_CXX \
13604     old_archive_cmds_CXX \
13605     old_archive_from_new_cmds_CXX \
13606     predep_objects_CXX \
13607     postdep_objects_CXX \
13608     predeps_CXX \
13609     postdeps_CXX \
13610     compiler_lib_search_path_CXX \
13611     archive_cmds_CXX \
13612     archive_expsym_cmds_CXX \
13613     postinstall_cmds_CXX \
13614     postuninstall_cmds_CXX \
13615     old_archive_from_expsyms_cmds_CXX \
13616     allow_undefined_flag_CXX \
13617     no_undefined_flag_CXX \
13618     export_symbols_cmds_CXX \
13619     hardcode_libdir_flag_spec_CXX \
13620     hardcode_libdir_flag_spec_ld_CXX \
13621     hardcode_libdir_separator_CXX \
13622     hardcode_automatic_CXX \
13623     module_cmds_CXX \
13624     module_expsym_cmds_CXX \
13625     lt_cv_prog_compiler_c_o_CXX \
13626     exclude_expsyms_CXX \
13627     include_expsyms_CXX; do
13628
13629     case $var in
13630     old_archive_cmds_CXX | \
13631     old_archive_from_new_cmds_CXX | \
13632     archive_cmds_CXX | \
13633     archive_expsym_cmds_CXX | \
13634     module_cmds_CXX | \
13635     module_expsym_cmds_CXX | \
13636     old_archive_from_expsyms_cmds_CXX | \
13637     export_symbols_cmds_CXX | \
13638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13639     postinstall_cmds | postuninstall_cmds | \
13640     old_postinstall_cmds | old_postuninstall_cmds | \
13641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13642       # Double-quote double-evaled strings.
13643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13644       ;;
13645     *)
13646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13647       ;;
13648     esac
13649   done
13650
13651   case $lt_echo in
13652   *'\$0 --fallback-echo"')
13653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13654     ;;
13655   esac
13656
13657 cfgfile="$ofile"
13658
13659   cat <<__EOF__ >> "$cfgfile"
13660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13661
13662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13663
13664 # Shell to use when invoking shell scripts.
13665 SHELL=$lt_SHELL
13666
13667 # Whether or not to build shared libraries.
13668 build_libtool_libs=$enable_shared
13669
13670 # Whether or not to build static libraries.
13671 build_old_libs=$enable_static
13672
13673 # Whether or not to add -lc for building shared libraries.
13674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13675
13676 # Whether or not to disallow shared libs when runtime libs are static
13677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13678
13679 # Whether or not to optimize for fast installation.
13680 fast_install=$enable_fast_install
13681
13682 # The host system.
13683 host_alias=$host_alias
13684 host=$host
13685 host_os=$host_os
13686
13687 # The build system.
13688 build_alias=$build_alias
13689 build=$build
13690 build_os=$build_os
13691
13692 # An echo program that does not interpret backslashes.
13693 echo=$lt_echo
13694
13695 # The archiver.
13696 AR=$lt_AR
13697 AR_FLAGS=$lt_AR_FLAGS
13698
13699 # A C compiler.
13700 LTCC=$lt_LTCC
13701
13702 # LTCC compiler flags.
13703 LTCFLAGS=$lt_LTCFLAGS
13704
13705 # A language-specific compiler.
13706 CC=$lt_compiler_CXX
13707
13708 # Is the compiler the GNU C compiler?
13709 with_gcc=$GCC_CXX
13710
13711 # An ERE matcher.
13712 EGREP=$lt_EGREP
13713
13714 # The linker used to build libraries.
13715 LD=$lt_LD_CXX
13716
13717 # Whether we need hard or soft links.
13718 LN_S=$lt_LN_S
13719
13720 # A BSD-compatible nm program.
13721 NM=$lt_NM
13722
13723 # A symbol stripping program
13724 STRIP=$lt_STRIP
13725
13726 # Used to examine libraries when file_magic_cmd begins "file"
13727 MAGIC_CMD=$MAGIC_CMD
13728
13729 # Used on cygwin: DLL creation program.
13730 DLLTOOL="$DLLTOOL"
13731
13732 # Used on cygwin: object dumper.
13733 OBJDUMP="$OBJDUMP"
13734
13735 # Used on cygwin: assembler.
13736 AS="$AS"
13737
13738 # The name of the directory that contains temporary libtool files.
13739 objdir=$objdir
13740
13741 # How to create reloadable object files.
13742 reload_flag=$lt_reload_flag
13743 reload_cmds=$lt_reload_cmds
13744
13745 # How to pass a linker flag through the compiler.
13746 wl=$lt_lt_prog_compiler_wl_CXX
13747
13748 # Object file suffix (normally "o").
13749 objext="$ac_objext"
13750
13751 # Old archive suffix (normally "a").
13752 libext="$libext"
13753
13754 # Shared library suffix (normally ".so").
13755 shrext_cmds='$shrext_cmds'
13756
13757 # Executable file suffix (normally "").
13758 exeext="$exeext"
13759
13760 # Additional compiler flags for building library objects.
13761 pic_flag=$lt_lt_prog_compiler_pic_CXX
13762 pic_mode=$pic_mode
13763
13764 # What is the maximum length of a command?
13765 max_cmd_len=$lt_cv_sys_max_cmd_len
13766
13767 # Does compiler simultaneously support -c and -o options?
13768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13769
13770 # Must we lock files when doing compilation?
13771 need_locks=$lt_need_locks
13772
13773 # Do we need the lib prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13775
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13778
13779 # Whether dlopen is supported.
13780 dlopen_support=$enable_dlopen
13781
13782 # Whether dlopen of programs is supported.
13783 dlopen_self=$enable_dlopen_self
13784
13785 # Whether dlopen of statically linked programs is supported.
13786 dlopen_self_static=$enable_dlopen_self_static
13787
13788 # Compiler flag to prevent dynamic linking.
13789 link_static_flag=$lt_lt_prog_compiler_static_CXX
13790
13791 # Compiler flag to turn off builtin functions.
13792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13793
13794 # Compiler flag to allow reflexive dlopens.
13795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13796
13797 # Compiler flag to generate shared objects directly from archives.
13798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13799
13800 # Compiler flag to generate thread-safe objects.
13801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13802
13803 # Library versioning type.
13804 version_type=$version_type
13805
13806 # Format of library name prefix.
13807 libname_spec=$lt_libname_spec
13808
13809 # List of archive names.  First name is the real one, the rest are links.
13810 # The last name is the one that the linker finds with -lNAME.
13811 library_names_spec=$lt_library_names_spec
13812
13813 # The coded name of the library, if different from the real name.
13814 soname_spec=$lt_soname_spec
13815
13816 # Commands used to build and install an old-style archive.
13817 RANLIB=$lt_RANLIB
13818 old_archive_cmds=$lt_old_archive_cmds_CXX
13819 old_postinstall_cmds=$lt_old_postinstall_cmds
13820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13821
13822 # Create an old-style archive from a shared archive.
13823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13824
13825 # Create a temporary old-style archive to link instead of a shared archive.
13826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13827
13828 # Commands used to build and install a shared archive.
13829 archive_cmds=$lt_archive_cmds_CXX
13830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13831 postinstall_cmds=$lt_postinstall_cmds
13832 postuninstall_cmds=$lt_postuninstall_cmds
13833
13834 # Commands used to build a loadable module (assumed same as above if empty)
13835 module_cmds=$lt_module_cmds_CXX
13836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13837
13838 # Commands to strip libraries.
13839 old_striplib=$lt_old_striplib
13840 striplib=$lt_striplib
13841
13842 # Dependencies to place before the objects being linked to create a
13843 # shared library.
13844 predep_objects=$lt_predep_objects_CXX
13845
13846 # Dependencies to place after the objects being linked to create a
13847 # shared library.
13848 postdep_objects=$lt_postdep_objects_CXX
13849
13850 # Dependencies to place before the objects being linked to create a
13851 # shared library.
13852 predeps=$lt_predeps_CXX
13853
13854 # Dependencies to place after the objects being linked to create a
13855 # shared library.
13856 postdeps=$lt_postdeps_CXX
13857
13858 # The library search path used internally by the compiler when linking
13859 # a shared library.
13860 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13861
13862 # Method to check whether dependent libraries are shared objects.
13863 deplibs_check_method=$lt_deplibs_check_method
13864
13865 # Command to use when deplibs_check_method == file_magic.
13866 file_magic_cmd=$lt_file_magic_cmd
13867
13868 # Flag that allows shared libraries with undefined symbols to be built.
13869 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13870
13871 # Flag that forces no undefined symbols.
13872 no_undefined_flag=$lt_no_undefined_flag_CXX
13873
13874 # Commands used to finish a libtool library installation in a directory.
13875 finish_cmds=$lt_finish_cmds
13876
13877 # Same as above, but a single script fragment to be evaled but not shown.
13878 finish_eval=$lt_finish_eval
13879
13880 # Take the output of nm and produce a listing of raw symbols and C names.
13881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13882
13883 # Transform the output of nm in a proper C declaration
13884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13885
13886 # Transform the output of nm in a C name address pair
13887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13888
13889 # This is the shared library runtime path variable.
13890 runpath_var=$runpath_var
13891
13892 # This is the shared library path variable.
13893 shlibpath_var=$shlibpath_var
13894
13895 # Is shlibpath searched before the hard-coded library search path?
13896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13897
13898 # How to hardcode a shared library path into an executable.
13899 hardcode_action=$hardcode_action_CXX
13900
13901 # Whether we should hardcode library paths into libraries.
13902 hardcode_into_libs=$hardcode_into_libs
13903
13904 # Flag to hardcode \$libdir into a binary during linking.
13905 # This must work even if \$libdir does not exist.
13906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13907
13908 # If ld is used when linking, flag to hardcode \$libdir into
13909 # a binary during linking. This must work even if \$libdir does
13910 # not exist.
13911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13912
13913 # Whether we need a single -rpath flag with a separated argument.
13914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13915
13916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917 # resulting binary.
13918 hardcode_direct=$hardcode_direct_CXX
13919
13920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_minus_L=$hardcode_minus_L_CXX
13923
13924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925 # the resulting binary.
13926 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13927
13928 # Set to yes if building a shared library automatically hardcodes DIR into the library
13929 # and all subsequent libraries and executables linked against it.
13930 hardcode_automatic=$hardcode_automatic_CXX
13931
13932 # Variables whose values should be saved in libtool wrapper scripts and
13933 # restored at relink time.
13934 variables_saved_for_relink="$variables_saved_for_relink"
13935
13936 # Whether libtool must link a program against all its dependency libraries.
13937 link_all_deplibs=$link_all_deplibs_CXX
13938
13939 # Compile-time system search path for libraries
13940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13941
13942 # Run-time system search path for libraries
13943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13944
13945 # Fix the shell variable \$srcfile for the compiler.
13946 fix_srcfile_path="$fix_srcfile_path_CXX"
13947
13948 # Set to yes if exported symbols are required.
13949 always_export_symbols=$always_export_symbols_CXX
13950
13951 # The commands to list exported symbols.
13952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13953
13954 # The commands to extract the exported symbol list from a shared archive.
13955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13956
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms_CXX
13959
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms_CXX
13962
13963 # ### END LIBTOOL TAG CONFIG: $tagname
13964
13965 __EOF__
13966
13967
13968 else
13969   # If there is no Makefile yet, we rely on a make rule to execute
13970   # `config.status --recheck' to rerun these tests and create the
13971   # libtool script then.
13972   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973   if test -f "$ltmain_in"; then
13974     test -f Makefile && make "$ltmain"
13975   fi
13976 fi
13977
13978
13979 ac_ext=c
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13984
13985 CC=$lt_save_CC
13986 LDCXX=$LD
13987 LD=$lt_save_LD
13988 GCC=$lt_save_GCC
13989 with_gnu_ldcxx=$with_gnu_ld
13990 with_gnu_ld=$lt_save_with_gnu_ld
13991 lt_cv_path_LDCXX=$lt_cv_path_LD
13992 lt_cv_path_LD=$lt_save_path_LD
13993 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13995
13996         else
13997           tagname=""
13998         fi
13999         ;;
14000
14001       F77)
14002         if test -n "$F77" && test "X$F77" != "Xno"; then
14003
14004 ac_ext=f
14005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14008
14009
14010 archive_cmds_need_lc_F77=no
14011 allow_undefined_flag_F77=
14012 always_export_symbols_F77=no
14013 archive_expsym_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 hardcode_direct_F77=no
14016 hardcode_libdir_flag_spec_F77=
14017 hardcode_libdir_flag_spec_ld_F77=
14018 hardcode_libdir_separator_F77=
14019 hardcode_minus_L_F77=no
14020 hardcode_automatic_F77=no
14021 module_cmds_F77=
14022 module_expsym_cmds_F77=
14023 link_all_deplibs_F77=unknown
14024 old_archive_cmds_F77=$old_archive_cmds
14025 no_undefined_flag_F77=
14026 whole_archive_flag_spec_F77=
14027 enable_shared_with_static_runtimes_F77=no
14028
14029 # Source file extension for f77 test sources.
14030 ac_ext=f
14031
14032 # Object file extension for compiled f77 test sources.
14033 objext=o
14034 objext_F77=$objext
14035
14036 # Code to be used in simple compile tests
14037 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14038
14039 # Code to be used in simple link tests
14040 lt_simple_link_test_code="      program t\n      end\n"
14041
14042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14043
14044 # If no C compiler was specified, use CC.
14045 LTCC=${LTCC-"$CC"}
14046
14047 # If no C compiler flags were specified, use CFLAGS.
14048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14049
14050 # Allow CC to be a program name with arguments.
14051 compiler=$CC
14052
14053
14054 # save warnings/boilerplate of simple test code
14055 ac_outfile=conftest.$ac_objext
14056 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14058 _lt_compiler_boilerplate=`cat conftest.err`
14059 $rm conftest*
14060
14061 ac_outfile=conftest.$ac_objext
14062 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14064 _lt_linker_boilerplate=`cat conftest.err`
14065 $rm conftest*
14066
14067
14068 # Allow CC to be a program name with arguments.
14069 lt_save_CC="$CC"
14070 CC=${F77-"f77"}
14071 compiler=$CC
14072 compiler_F77=$CC
14073 for cc_temp in $compiler""; do
14074   case $cc_temp in
14075     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14076     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14077     \-*) ;;
14078     *) break;;
14079   esac
14080 done
14081 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14082
14083
14084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14087 echo "${ECHO_T}$can_build_shared" >&6
14088
14089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14091 test "$can_build_shared" = "no" && enable_shared=no
14092
14093 # On AIX, shared libraries and static libraries use the same namespace, and
14094 # are all built from PIC.
14095 case $host_os in
14096 aix3*)
14097   test "$enable_shared" = yes && enable_static=no
14098   if test -n "$RANLIB"; then
14099     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14100     postinstall_cmds='$RANLIB $lib'
14101   fi
14102   ;;
14103 aix4* | aix5*)
14104   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14105     test "$enable_shared" = yes && enable_static=no
14106   fi
14107   ;;
14108 esac
14109 echo "$as_me:$LINENO: result: $enable_shared" >&5
14110 echo "${ECHO_T}$enable_shared" >&6
14111
14112 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14113 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14114 # Make sure either enable_shared or enable_static is yes.
14115 test "$enable_shared" = yes || enable_static=yes
14116 echo "$as_me:$LINENO: result: $enable_static" >&5
14117 echo "${ECHO_T}$enable_static" >&6
14118
14119 GCC_F77="$G77"
14120 LD_F77="$LD"
14121
14122 lt_prog_compiler_wl_F77=
14123 lt_prog_compiler_pic_F77=
14124 lt_prog_compiler_static_F77=
14125
14126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14128
14129   if test "$GCC" = yes; then
14130     lt_prog_compiler_wl_F77='-Wl,'
14131     lt_prog_compiler_static_F77='-static'
14132
14133     case $host_os in
14134       aix*)
14135       # All AIX code is PIC.
14136       if test "$host_cpu" = ia64; then
14137         # AIX 5 now supports IA64 processor
14138         lt_prog_compiler_static_F77='-Bstatic'
14139       fi
14140       ;;
14141
14142     amigaos*)
14143       # FIXME: we need at least 68020 code to build shared libraries, but
14144       # adding the `-m68020' flag to GCC prevents building anything better,
14145       # like `-m68040'.
14146       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14147       ;;
14148
14149     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14150       # PIC is the default for these OSes.
14151       ;;
14152
14153     mingw* | pw32* | os2*)
14154       # This hack is so that the source file can tell whether it is being
14155       # built for inclusion in a dll (and should export symbols for example).
14156       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14157       ;;
14158
14159     darwin* | rhapsody*)
14160       # PIC is the default on this platform
14161       # Common symbols not allowed in MH_DYLIB files
14162       lt_prog_compiler_pic_F77='-fno-common'
14163       ;;
14164
14165     interix3*)
14166       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14167       # Instead, we relocate shared libraries at runtime.
14168       ;;
14169
14170     msdosdjgpp*)
14171       # Just because we use GCC doesn't mean we suddenly get shared libraries
14172       # on systems that don't support them.
14173       lt_prog_compiler_can_build_shared_F77=no
14174       enable_shared=no
14175       ;;
14176
14177     sysv4*MP*)
14178       if test -d /usr/nec; then
14179         lt_prog_compiler_pic_F77=-Kconform_pic
14180       fi
14181       ;;
14182
14183     hpux*)
14184       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185       # not for PA HP-UX.
14186       case $host_cpu in
14187       hppa*64*|ia64*)
14188         # +Z the default
14189         ;;
14190       *)
14191         lt_prog_compiler_pic_F77='-fPIC'
14192         ;;
14193       esac
14194       ;;
14195
14196     *)
14197       lt_prog_compiler_pic_F77='-fPIC'
14198       ;;
14199     esac
14200   else
14201     # PORTME Check for flag to pass linker flags through the system compiler.
14202     case $host_os in
14203     aix*)
14204       lt_prog_compiler_wl_F77='-Wl,'
14205       if test "$host_cpu" = ia64; then
14206         # AIX 5 now supports IA64 processor
14207         lt_prog_compiler_static_F77='-Bstatic'
14208       else
14209         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14210       fi
14211       ;;
14212       darwin*)
14213         # PIC is the default on this platform
14214         # Common symbols not allowed in MH_DYLIB files
14215        case $cc_basename in
14216          xlc*)
14217          lt_prog_compiler_pic_F77='-qnocommon'
14218          lt_prog_compiler_wl_F77='-Wl,'
14219          ;;
14220        esac
14221        ;;
14222
14223     mingw* | pw32* | os2*)
14224       # This hack is so that the source file can tell whether it is being
14225       # built for inclusion in a dll (and should export symbols for example).
14226       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14227       ;;
14228
14229     hpux9* | hpux10* | hpux11*)
14230       lt_prog_compiler_wl_F77='-Wl,'
14231       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14232       # not for PA HP-UX.
14233       case $host_cpu in
14234       hppa*64*|ia64*)
14235         # +Z the default
14236         ;;
14237       *)
14238         lt_prog_compiler_pic_F77='+Z'
14239         ;;
14240       esac
14241       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14242       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14243       ;;
14244
14245     irix5* | irix6* | nonstopux*)
14246       lt_prog_compiler_wl_F77='-Wl,'
14247       # PIC (with -KPIC) is the default.
14248       lt_prog_compiler_static_F77='-non_shared'
14249       ;;
14250
14251     newsos6)
14252       lt_prog_compiler_pic_F77='-KPIC'
14253       lt_prog_compiler_static_F77='-Bstatic'
14254       ;;
14255
14256     linux* | k*bsd*-gnu)
14257       case $cc_basename in
14258       icc* | ecc*)
14259         lt_prog_compiler_wl_F77='-Wl,'
14260         lt_prog_compiler_pic_F77='-KPIC'
14261         lt_prog_compiler_static_F77='-static'
14262         ;;
14263       pgcc* | pgf77* | pgf90* | pgf95*)
14264         # Portland Group compilers (*not* the Pentium gcc compiler,
14265         # which looks to be a dead project)
14266         lt_prog_compiler_wl_F77='-Wl,'
14267         lt_prog_compiler_pic_F77='-fpic'
14268         lt_prog_compiler_static_F77='-Bstatic'
14269         ;;
14270       ccc*)
14271         lt_prog_compiler_wl_F77='-Wl,'
14272         # All Alpha code is PIC.
14273         lt_prog_compiler_static_F77='-non_shared'
14274         ;;
14275       esac
14276       ;;
14277
14278     osf3* | osf4* | osf5*)
14279       lt_prog_compiler_wl_F77='-Wl,'
14280       # All OSF/1 code is PIC.
14281       lt_prog_compiler_static_F77='-non_shared'
14282       ;;
14283
14284     solaris*)
14285       lt_prog_compiler_pic_F77='-KPIC'
14286       lt_prog_compiler_static_F77='-Bstatic'
14287       case $cc_basename in
14288       f77* | f90* | f95*)
14289         lt_prog_compiler_wl_F77='-Qoption ld ';;
14290       *)
14291         lt_prog_compiler_wl_F77='-Wl,';;
14292       esac
14293       ;;
14294
14295     sunos4*)
14296       lt_prog_compiler_wl_F77='-Qoption ld '
14297       lt_prog_compiler_pic_F77='-PIC'
14298       lt_prog_compiler_static_F77='-Bstatic'
14299       ;;
14300
14301     sysv4 | sysv4.2uw2* | sysv4.3*)
14302       lt_prog_compiler_wl_F77='-Wl,'
14303       lt_prog_compiler_pic_F77='-KPIC'
14304       lt_prog_compiler_static_F77='-Bstatic'
14305       ;;
14306
14307     sysv4*MP*)
14308       if test -d /usr/nec ;then
14309         lt_prog_compiler_pic_F77='-Kconform_pic'
14310         lt_prog_compiler_static_F77='-Bstatic'
14311       fi
14312       ;;
14313
14314     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14315       lt_prog_compiler_wl_F77='-Wl,'
14316       lt_prog_compiler_pic_F77='-KPIC'
14317       lt_prog_compiler_static_F77='-Bstatic'
14318       ;;
14319
14320     unicos*)
14321       lt_prog_compiler_wl_F77='-Wl,'
14322       lt_prog_compiler_can_build_shared_F77=no
14323       ;;
14324
14325     uts4*)
14326       lt_prog_compiler_pic_F77='-pic'
14327       lt_prog_compiler_static_F77='-Bstatic'
14328       ;;
14329
14330     *)
14331       lt_prog_compiler_can_build_shared_F77=no
14332       ;;
14333     esac
14334   fi
14335
14336 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14337 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14338
14339 #
14340 # Check to make sure the PIC flag actually works.
14341 #
14342 if test -n "$lt_prog_compiler_pic_F77"; then
14343
14344 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14345 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14346 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   lt_prog_compiler_pic_works_F77=no
14350   ac_outfile=conftest.$ac_objext
14351    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14352    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14353    # Insert the option either (1) after the last *FLAGS variable, or
14354    # (2) before a word containing "conftest.", or (3) at the end.
14355    # Note that $ac_compile itself does not contain backslashes and begins
14356    # with a dollar sign (not a hyphen), so the echo should work correctly.
14357    # The option is referenced via a variable to avoid confusing sed.
14358    lt_compile=`echo "$ac_compile" | $SED \
14359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361    -e 's:$: $lt_compiler_flag:'`
14362    (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363    (eval "$lt_compile" 2>conftest.err)
14364    ac_status=$?
14365    cat conftest.err >&5
14366    echo "$as_me:14366: \$? = $ac_status" >&5
14367    if (exit $ac_status) && test -s "$ac_outfile"; then
14368      # The compiler can only warn and ignore the option if not recognized
14369      # So say no if there are warnings other than the usual output.
14370      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14371      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14373        lt_prog_compiler_pic_works_F77=yes
14374      fi
14375    fi
14376    $rm conftest*
14377
14378 fi
14379 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14380 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14381
14382 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14383     case $lt_prog_compiler_pic_F77 in
14384      "" | " "*) ;;
14385      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14386      esac
14387 else
14388     lt_prog_compiler_pic_F77=
14389      lt_prog_compiler_can_build_shared_F77=no
14390 fi
14391
14392 fi
14393 case $host_os in
14394   # For platforms which do not support PIC, -DPIC is meaningless:
14395   *djgpp*)
14396     lt_prog_compiler_pic_F77=
14397     ;;
14398   *)
14399     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14400     ;;
14401 esac
14402
14403 #
14404 # Check to make sure the static flag actually works.
14405 #
14406 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14407 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14408 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14409 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   lt_prog_compiler_static_works_F77=no
14413    save_LDFLAGS="$LDFLAGS"
14414    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14415    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14416    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14417      # The linker can only warn and ignore the option if not recognized
14418      # So say no if there are warnings
14419      if test -s conftest.err; then
14420        # Append any errors to the config.log.
14421        cat conftest.err 1>&5
14422        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14423        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424        if diff conftest.exp conftest.er2 >/dev/null; then
14425          lt_prog_compiler_static_works_F77=yes
14426        fi
14427      else
14428        lt_prog_compiler_static_works_F77=yes
14429      fi
14430    fi
14431    $rm conftest*
14432    LDFLAGS="$save_LDFLAGS"
14433
14434 fi
14435 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14436 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14437
14438 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14439     :
14440 else
14441     lt_prog_compiler_static_F77=
14442 fi
14443
14444
14445 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14446 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14447 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   lt_cv_prog_compiler_c_o_F77=no
14451    $rm -r conftest 2>/dev/null
14452    mkdir conftest
14453    cd conftest
14454    mkdir out
14455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14456
14457    lt_compiler_flag="-o out/conftest2.$ac_objext"
14458    # Insert the option either (1) after the last *FLAGS variable, or
14459    # (2) before a word containing "conftest.", or (3) at the end.
14460    # Note that $ac_compile itself does not contain backslashes and begins
14461    # with a dollar sign (not a hyphen), so the echo should work correctly.
14462    lt_compile=`echo "$ac_compile" | $SED \
14463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14465    -e 's:$: $lt_compiler_flag:'`
14466    (eval echo "\"\$as_me:14466: $lt_compile\"" >&5)
14467    (eval "$lt_compile" 2>out/conftest.err)
14468    ac_status=$?
14469    cat out/conftest.err >&5
14470    echo "$as_me:14470: \$? = $ac_status" >&5
14471    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14472    then
14473      # The compiler can only warn and ignore the option if not recognized
14474      # So say no if there are warnings
14475      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14476      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14477      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14478        lt_cv_prog_compiler_c_o_F77=yes
14479      fi
14480    fi
14481    chmod u+w . 2>&5
14482    $rm conftest*
14483    # SGI C++ compiler will create directory out/ii_files/ for
14484    # template instantiation
14485    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14486    $rm out/* && rmdir out
14487    cd ..
14488    rmdir conftest
14489    $rm conftest*
14490
14491 fi
14492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14493 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14494
14495
14496 hard_links="nottested"
14497 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14498   # do not overwrite the value of need_locks provided by the user
14499   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14500 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14501   hard_links=yes
14502   $rm conftest*
14503   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14504   touch conftest.a
14505   ln conftest.a conftest.b 2>&5 || hard_links=no
14506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14507   echo "$as_me:$LINENO: result: $hard_links" >&5
14508 echo "${ECHO_T}$hard_links" >&6
14509   if test "$hard_links" = no; then
14510     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14511 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14512     need_locks=warn
14513   fi
14514 else
14515   need_locks=no
14516 fi
14517
14518 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14519 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14520
14521   runpath_var=
14522   allow_undefined_flag_F77=
14523   enable_shared_with_static_runtimes_F77=no
14524   archive_cmds_F77=
14525   archive_expsym_cmds_F77=
14526   old_archive_From_new_cmds_F77=
14527   old_archive_from_expsyms_cmds_F77=
14528   export_dynamic_flag_spec_F77=
14529   whole_archive_flag_spec_F77=
14530   thread_safe_flag_spec_F77=
14531   hardcode_libdir_flag_spec_F77=
14532   hardcode_libdir_flag_spec_ld_F77=
14533   hardcode_libdir_separator_F77=
14534   hardcode_direct_F77=no
14535   hardcode_minus_L_F77=no
14536   hardcode_shlibpath_var_F77=unsupported
14537   link_all_deplibs_F77=unknown
14538   hardcode_automatic_F77=no
14539   module_cmds_F77=
14540   module_expsym_cmds_F77=
14541   always_export_symbols_F77=no
14542   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14543   # include_expsyms should be a list of space-separated symbols to be *always*
14544   # included in the symbol list
14545   include_expsyms_F77=
14546   # exclude_expsyms can be an extended regexp of symbols to exclude
14547   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14548   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14549   # as well as any symbol that contains `d'.
14550   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14551   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14552   # platforms (ab)use it in PIC code, but their linkers get confused if
14553   # the symbol is explicitly referenced.  Since portable code cannot
14554   # rely on this symbol name, it's probably fine to never include it in
14555   # preloaded symbol tables.
14556   extract_expsyms_cmds=
14557   # Just being paranoid about ensuring that cc_basename is set.
14558   for cc_temp in $compiler""; do
14559   case $cc_temp in
14560     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14561     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14562     \-*) ;;
14563     *) break;;
14564   esac
14565 done
14566 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14567
14568   case $host_os in
14569   cygwin* | mingw* | pw32*)
14570     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14571     # When not using gcc, we currently assume that we are using
14572     # Microsoft Visual C++.
14573     if test "$GCC" != yes; then
14574       with_gnu_ld=no
14575     fi
14576     ;;
14577   interix*)
14578     # we just hope/assume this is gcc and not c89 (= MSVC++)
14579     with_gnu_ld=yes
14580     ;;
14581   openbsd*)
14582     with_gnu_ld=no
14583     ;;
14584   esac
14585
14586   ld_shlibs_F77=yes
14587   if test "$with_gnu_ld" = yes; then
14588     # If archive_cmds runs LD, not CC, wlarc should be empty
14589     wlarc='${wl}'
14590
14591     # Set some defaults for GNU ld with shared library support. These
14592     # are reset later if shared libraries are not supported. Putting them
14593     # here allows them to be overridden if necessary.
14594     runpath_var=LD_RUN_PATH
14595     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14596     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14597     # ancient GNU ld didn't support --whole-archive et. al.
14598     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14599         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14600       else
14601         whole_archive_flag_spec_F77=
14602     fi
14603     supports_anon_versioning=no
14604     case `$LD -v 2>/dev/null` in
14605       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14606       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14607       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14608       *\ 2.11.*) ;; # other 2.11 versions
14609       *) supports_anon_versioning=yes ;;
14610     esac
14611
14612     # See if GNU ld supports shared libraries.
14613     case $host_os in
14614     aix3* | aix4* | aix5*)
14615       # On AIX/PPC, the GNU linker is very broken
14616       if test "$host_cpu" != ia64; then
14617         ld_shlibs_F77=no
14618         cat <<EOF 1>&2
14619
14620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14621 *** to be unable to reliably create shared libraries on AIX.
14622 *** Therefore, libtool is disabling shared libraries support.  If you
14623 *** really care for shared libraries, you may want to modify your PATH
14624 *** so that a non-GNU linker is found, and then restart.
14625
14626 EOF
14627       fi
14628       ;;
14629
14630     amigaos*)
14631       archive_cmds_F77='$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)'
14632       hardcode_libdir_flag_spec_F77='-L$libdir'
14633       hardcode_minus_L_F77=yes
14634
14635       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14636       # that the semantics of dynamic libraries on AmigaOS, at least up
14637       # to version 4, is to share data among multiple programs linked
14638       # with the same dynamic library.  Since this doesn't match the
14639       # behavior of shared libraries on other platforms, we can't use
14640       # them.
14641       ld_shlibs_F77=no
14642       ;;
14643
14644     beos*)
14645       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14646         allow_undefined_flag_F77=unsupported
14647         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14648         # support --undefined.  This deserves some investigation.  FIXME
14649         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14650       else
14651         ld_shlibs_F77=no
14652       fi
14653       ;;
14654
14655     cygwin* | mingw* | pw32*)
14656       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14657       # as there is no search path for DLLs.
14658       hardcode_libdir_flag_spec_F77='-L$libdir'
14659       allow_undefined_flag_F77=unsupported
14660       always_export_symbols_F77=no
14661       enable_shared_with_static_runtimes_F77=yes
14662       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14663
14664       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14665         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14666         # If the export-symbols file already is a .def file (1st line
14667         # is EXPORTS), use it as is; otherwise, prepend...
14668         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14669           cp $export_symbols $output_objdir/$soname.def;
14670         else
14671           echo EXPORTS > $output_objdir/$soname.def;
14672           cat $export_symbols >> $output_objdir/$soname.def;
14673         fi~
14674         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14675       else
14676         ld_shlibs_F77=no
14677       fi
14678       ;;
14679
14680     interix3*)
14681       hardcode_direct_F77=no
14682       hardcode_shlibpath_var_F77=no
14683       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14684       export_dynamic_flag_spec_F77='${wl}-E'
14685       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14686       # Instead, shared libraries are loaded at an image base (0x10000000 by
14687       # default) and relocated if they conflict, which is a slow very memory
14688       # consuming and fragmenting process.  To avoid this, we pick a random,
14689       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14690       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14691       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14692       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14693       ;;
14694
14695     linux* | k*bsd*-gnu)
14696       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14697         tmp_addflag=
14698         case $cc_basename,$host_cpu in
14699         pgcc*)                          # Portland Group C compiler
14700           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14701           tmp_addflag=' $pic_flag'
14702           ;;
14703         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14704           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14705           tmp_addflag=' $pic_flag -Mnomain' ;;
14706         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14707           tmp_addflag=' -i_dynamic' ;;
14708         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14709           tmp_addflag=' -i_dynamic -nofor_main' ;;
14710         ifc* | ifort*)                  # Intel Fortran compiler
14711           tmp_addflag=' -nofor_main' ;;
14712         esac
14713         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14714
14715         if test $supports_anon_versioning = yes; then
14716           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14717   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14718   $echo "local: *; };" >> $output_objdir/$libname.ver~
14719           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14720         fi
14721         link_all_deplibs_F77=no
14722       else
14723         ld_shlibs_F77=no
14724       fi
14725       ;;
14726
14727     netbsd* | netbsdelf*-gnu)
14728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14729         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14730         wlarc=
14731       else
14732         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14733         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14734       fi
14735       ;;
14736
14737     solaris*)
14738       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14739         ld_shlibs_F77=no
14740         cat <<EOF 1>&2
14741
14742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14743 *** create shared libraries on Solaris systems.  Therefore, libtool
14744 *** is disabling shared libraries support.  We urge you to upgrade GNU
14745 *** binutils to release 2.9.1 or newer.  Another option is to modify
14746 *** your PATH or compiler configuration so that the native linker is
14747 *** used, and then restart.
14748
14749 EOF
14750       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14751         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14752         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14753       else
14754         ld_shlibs_F77=no
14755       fi
14756       ;;
14757
14758     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14759       case `$LD -v 2>&1` in
14760         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14761         ld_shlibs_F77=no
14762         cat <<_LT_EOF 1>&2
14763
14764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14765 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14766 *** is disabling shared libraries support.  We urge you to upgrade GNU
14767 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14768 *** your PATH or compiler configuration so that the native linker is
14769 *** used, and then restart.
14770
14771 _LT_EOF
14772         ;;
14773         *)
14774           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14775             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14776             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14777             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14778           else
14779             ld_shlibs_F77=no
14780           fi
14781         ;;
14782       esac
14783       ;;
14784
14785     sunos4*)
14786       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14787       wlarc=
14788       hardcode_direct_F77=yes
14789       hardcode_shlibpath_var_F77=no
14790       ;;
14791
14792     *)
14793       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14796       else
14797         ld_shlibs_F77=no
14798       fi
14799       ;;
14800     esac
14801
14802     if test "$ld_shlibs_F77" = no; then
14803       runpath_var=
14804       hardcode_libdir_flag_spec_F77=
14805       export_dynamic_flag_spec_F77=
14806       whole_archive_flag_spec_F77=
14807     fi
14808   else
14809     # PORTME fill in a description of your system's linker (not GNU ld)
14810     case $host_os in
14811     aix3*)
14812       allow_undefined_flag_F77=unsupported
14813       always_export_symbols_F77=yes
14814       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14815       # Note: this linker hardcodes the directories in LIBPATH if there
14816       # are no directories specified by -L.
14817       hardcode_minus_L_F77=yes
14818       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14819         # Neither direct hardcoding nor static linking is supported with a
14820         # broken collect2.
14821         hardcode_direct_F77=unsupported
14822       fi
14823       ;;
14824
14825     aix4* | aix5*)
14826       if test "$host_cpu" = ia64; then
14827         # On IA64, the linker does run time linking by default, so we don't
14828         # have to do anything special.
14829         aix_use_runtimelinking=no
14830         exp_sym_flag='-Bexport'
14831         no_entry_flag=""
14832       else
14833         # If we're using GNU nm, then we don't want the "-C" option.
14834         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14835         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14836           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14837         else
14838           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14839         fi
14840         aix_use_runtimelinking=no
14841
14842         # Test if we are trying to use run time linking or normal
14843         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14844         # need to do runtime linking.
14845         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14846           for ld_flag in $LDFLAGS; do
14847           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14848             aix_use_runtimelinking=yes
14849             break
14850           fi
14851           done
14852           ;;
14853         esac
14854
14855         exp_sym_flag='-bexport'
14856         no_entry_flag='-bnoentry'
14857       fi
14858
14859       # When large executables or shared objects are built, AIX ld can
14860       # have problems creating the table of contents.  If linking a library
14861       # or program results in "error TOC overflow" add -mminimal-toc to
14862       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14863       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14864
14865       archive_cmds_F77=''
14866       hardcode_direct_F77=yes
14867       hardcode_libdir_separator_F77=':'
14868       link_all_deplibs_F77=yes
14869
14870       if test "$GCC" = yes; then
14871         case $host_os in aix4.[012]|aix4.[012].*)
14872         # We only want to do this on AIX 4.2 and lower, the check
14873         # below for broken collect2 doesn't work under 4.3+
14874           collect2name=`${CC} -print-prog-name=collect2`
14875           if test -f "$collect2name" && \
14876            strings "$collect2name" | grep resolve_lib_name >/dev/null
14877           then
14878           # We have reworked collect2
14879           hardcode_direct_F77=yes
14880           else
14881           # We have old collect2
14882           hardcode_direct_F77=unsupported
14883           # It fails to find uninstalled libraries when the uninstalled
14884           # path is not listed in the libpath.  Setting hardcode_minus_L
14885           # to unsupported forces relinking
14886           hardcode_minus_L_F77=yes
14887           hardcode_libdir_flag_spec_F77='-L$libdir'
14888           hardcode_libdir_separator_F77=
14889           fi
14890           ;;
14891         esac
14892         shared_flag='-shared'
14893         if test "$aix_use_runtimelinking" = yes; then
14894           shared_flag="$shared_flag "'${wl}-G'
14895         fi
14896       else
14897         # not using gcc
14898         if test "$host_cpu" = ia64; then
14899         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14900         # chokes on -Wl,-G. The following line is correct:
14901           shared_flag='-G'
14902         else
14903           if test "$aix_use_runtimelinking" = yes; then
14904             shared_flag='${wl}-G'
14905           else
14906             shared_flag='${wl}-bM:SRE'
14907           fi
14908         fi
14909       fi
14910
14911       # It seems that -bexpall does not export symbols beginning with
14912       # underscore (_), so it is better to generate a list of symbols to export.
14913       always_export_symbols_F77=yes
14914       if test "$aix_use_runtimelinking" = yes; then
14915         # Warning - without using the other runtime loading flags (-brtl),
14916         # -berok will link without error, but may produce a broken library.
14917         allow_undefined_flag_F77='-berok'
14918        # Determine the default libpath from the value encoded in an empty executable.
14919        cat >conftest.$ac_ext <<_ACEOF
14920       program main
14921
14922       end
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926   (eval $ac_link) 2>conftest.er1
14927   ac_status=$?
14928   grep -v '^ *+' conftest.er1 >conftest.err
14929   rm -f conftest.er1
14930   cat conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } &&
14933          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; } &&
14939          { ac_try='test -s conftest$ac_exeext'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945
14946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14947 }'`
14948 # Check for a 64-bit object if we didn't find anything.
14949 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14950 }'`; fi
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 fi
14956 rm -f conftest.err conftest.$ac_objext \
14957       conftest$ac_exeext conftest.$ac_ext
14958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14959
14960        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14961         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14962        else
14963         if test "$host_cpu" = ia64; then
14964           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14965           allow_undefined_flag_F77="-z nodefs"
14966           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14967         else
14968          # Determine the default libpath from the value encoded in an empty executable.
14969          cat >conftest.$ac_ext <<_ACEOF
14970       program main
14971
14972       end
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } &&
14983          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985   (eval $ac_try) 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); }; } &&
14989          { ac_try='test -s conftest$ac_exeext'
14990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991   (eval $ac_try) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995
14996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14997 }'`
14998 # Check for a 64-bit object if we didn't find anything.
14999 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15000 }'`; fi
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005 fi
15006 rm -f conftest.err conftest.$ac_objext \
15007       conftest$ac_exeext conftest.$ac_ext
15008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15009
15010          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15011           # Warning - without using the other run time loading flags,
15012           # -berok will link without error, but may produce a broken library.
15013           no_undefined_flag_F77=' ${wl}-bernotok'
15014           allow_undefined_flag_F77=' ${wl}-berok'
15015           # Exported symbols can be pulled into shared objects from archives
15016           whole_archive_flag_spec_F77='$convenience'
15017           archive_cmds_need_lc_F77=yes
15018           # This is similar to how AIX traditionally builds its shared libraries.
15019           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15020         fi
15021       fi
15022       ;;
15023
15024     amigaos*)
15025       archive_cmds_F77='$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)'
15026       hardcode_libdir_flag_spec_F77='-L$libdir'
15027       hardcode_minus_L_F77=yes
15028       # see comment about different semantics on the GNU ld section
15029       ld_shlibs_F77=no
15030       ;;
15031
15032     bsdi[45]*)
15033       export_dynamic_flag_spec_F77=-rdynamic
15034       ;;
15035
15036     cygwin* | mingw* | pw32*)
15037       # When not using gcc, we currently assume that we are using
15038       # Microsoft Visual C++.
15039       # hardcode_libdir_flag_spec is actually meaningless, as there is
15040       # no search path for DLLs.
15041       hardcode_libdir_flag_spec_F77=' '
15042       allow_undefined_flag_F77=unsupported
15043       # Tell ltmain to make .lib files, not .a files.
15044       libext=lib
15045       # Tell ltmain to make .dll files, not .so files.
15046       shrext_cmds=".dll"
15047       # FIXME: Setting linknames here is a bad hack.
15048       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15049       # The linker will automatically build a .lib file if we build a DLL.
15050       old_archive_From_new_cmds_F77='true'
15051       # FIXME: Should let the user specify the lib program.
15052       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15053       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15054       enable_shared_with_static_runtimes_F77=yes
15055       ;;
15056
15057     darwin* | rhapsody*)
15058       case $host_os in
15059         rhapsody* | darwin1.[012])
15060          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15061          ;;
15062        *) # Darwin 1.3 on
15063          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15064            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15065          else
15066            case ${MACOSX_DEPLOYMENT_TARGET} in
15067              10.[012])
15068                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15069                ;;
15070              10.*)
15071                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15072                ;;
15073            esac
15074          fi
15075          ;;
15076       esac
15077       archive_cmds_need_lc_F77=no
15078       hardcode_direct_F77=no
15079       hardcode_automatic_F77=yes
15080       hardcode_shlibpath_var_F77=unsupported
15081       whole_archive_flag_spec_F77=''
15082       link_all_deplibs_F77=yes
15083     if test "$GCC" = yes ; then
15084         output_verbose_link_cmd='echo'
15085         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15086       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15087       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15088       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15089       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15090     else
15091       case $cc_basename in
15092         xlc*)
15093          output_verbose_link_cmd='echo'
15094          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15095          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15096           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15097          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15098           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15099           ;;
15100        *)
15101          ld_shlibs_F77=no
15102           ;;
15103       esac
15104     fi
15105       ;;
15106
15107     dgux*)
15108       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109       hardcode_libdir_flag_spec_F77='-L$libdir'
15110       hardcode_shlibpath_var_F77=no
15111       ;;
15112
15113     freebsd1*)
15114       ld_shlibs_F77=no
15115       ;;
15116
15117     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15118     # support.  Future versions do this automatically, but an explicit c++rt0.o
15119     # does not break anything, and helps significantly (at the cost of a little
15120     # extra space).
15121     freebsd2.2*)
15122       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15123       hardcode_libdir_flag_spec_F77='-R$libdir'
15124       hardcode_direct_F77=yes
15125       hardcode_shlibpath_var_F77=no
15126       ;;
15127
15128     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15129     freebsd2*)
15130       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15131       hardcode_direct_F77=yes
15132       hardcode_minus_L_F77=yes
15133       hardcode_shlibpath_var_F77=no
15134       ;;
15135
15136     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15137     freebsd* | dragonfly*)
15138       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15139       hardcode_libdir_flag_spec_F77='-R$libdir'
15140       hardcode_direct_F77=yes
15141       hardcode_shlibpath_var_F77=no
15142       ;;
15143
15144     hpux9*)
15145       if test "$GCC" = yes; then
15146         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15147       else
15148         archive_cmds_F77='$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'
15149       fi
15150       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151       hardcode_libdir_separator_F77=:
15152       hardcode_direct_F77=yes
15153
15154       # hardcode_minus_L: Not really in the search PATH,
15155       # but as the default location of the library.
15156       hardcode_minus_L_F77=yes
15157       export_dynamic_flag_spec_F77='${wl}-E'
15158       ;;
15159
15160     hpux10*)
15161       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15162         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15163       else
15164         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15165       fi
15166       if test "$with_gnu_ld" = no; then
15167         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168         hardcode_libdir_separator_F77=:
15169
15170         hardcode_direct_F77=yes
15171         export_dynamic_flag_spec_F77='${wl}-E'
15172
15173         # hardcode_minus_L: Not really in the search PATH,
15174         # but as the default location of the library.
15175         hardcode_minus_L_F77=yes
15176       fi
15177       ;;
15178
15179     hpux11*)
15180       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15181         case $host_cpu in
15182         hppa*64*)
15183           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184           ;;
15185         ia64*)
15186           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15187           ;;
15188         *)
15189           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15190           ;;
15191         esac
15192       else
15193         case $host_cpu in
15194         hppa*64*)
15195           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196           ;;
15197         ia64*)
15198           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15199           ;;
15200         *)
15201           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15202           ;;
15203         esac
15204       fi
15205       if test "$with_gnu_ld" = no; then
15206         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15207         hardcode_libdir_separator_F77=:
15208
15209         case $host_cpu in
15210         hppa*64*|ia64*)
15211           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15212           hardcode_direct_F77=no
15213           hardcode_shlibpath_var_F77=no
15214           ;;
15215         *)
15216           hardcode_direct_F77=yes
15217           export_dynamic_flag_spec_F77='${wl}-E'
15218
15219           # hardcode_minus_L: Not really in the search PATH,
15220           # but as the default location of the library.
15221           hardcode_minus_L_F77=yes
15222           ;;
15223         esac
15224       fi
15225       ;;
15226
15227     irix5* | irix6* | nonstopux*)
15228       if test "$GCC" = yes; then
15229         archive_cmds_F77='$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'
15230       else
15231         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15232         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15233       fi
15234       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15235       hardcode_libdir_separator_F77=:
15236       link_all_deplibs_F77=yes
15237       ;;
15238
15239     netbsd* | netbsdelf*-gnu)
15240       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15241         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15242       else
15243         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15244       fi
15245       hardcode_libdir_flag_spec_F77='-R$libdir'
15246       hardcode_direct_F77=yes
15247       hardcode_shlibpath_var_F77=no
15248       ;;
15249
15250     newsos6)
15251       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252       hardcode_direct_F77=yes
15253       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15254       hardcode_libdir_separator_F77=:
15255       hardcode_shlibpath_var_F77=no
15256       ;;
15257
15258     openbsd*)
15259       hardcode_direct_F77=yes
15260       hardcode_shlibpath_var_F77=no
15261       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15262         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15263         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15264         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15265         export_dynamic_flag_spec_F77='${wl}-E'
15266       else
15267        case $host_os in
15268          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15269            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270            hardcode_libdir_flag_spec_F77='-R$libdir'
15271            ;;
15272          *)
15273            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15274            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15275            ;;
15276        esac
15277       fi
15278       ;;
15279
15280     os2*)
15281       hardcode_libdir_flag_spec_F77='-L$libdir'
15282       hardcode_minus_L_F77=yes
15283       allow_undefined_flag_F77=unsupported
15284       archive_cmds_F77='$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'
15285       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15286       ;;
15287
15288     osf3*)
15289       if test "$GCC" = yes; then
15290         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15291         archive_cmds_F77='$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'
15292       else
15293         allow_undefined_flag_F77=' -expect_unresolved \*'
15294         archive_cmds_F77='$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'
15295       fi
15296       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15297       hardcode_libdir_separator_F77=:
15298       ;;
15299
15300     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15301       if test "$GCC" = yes; then
15302         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15303         archive_cmds_F77='$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'
15304         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15305       else
15306         allow_undefined_flag_F77=' -expect_unresolved \*'
15307         archive_cmds_F77='$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'
15308         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15309         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15310
15311         # Both c and cxx compiler support -rpath directly
15312         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15313       fi
15314       hardcode_libdir_separator_F77=:
15315       ;;
15316
15317     solaris*)
15318       no_undefined_flag_F77=' -z text'
15319       if test "$GCC" = yes; then
15320         wlarc='${wl}'
15321         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15323           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15324       else
15325         wlarc=''
15326         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15328         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15329       fi
15330       hardcode_libdir_flag_spec_F77='-R$libdir'
15331       hardcode_shlibpath_var_F77=no
15332       case $host_os in
15333       solaris2.[0-5] | solaris2.[0-5].*) ;;
15334       *)
15335         # The compiler driver will combine linker options so we
15336         # cannot just pass the convience library names through
15337         # without $wl, iff we do not link with $LD.
15338         # Luckily, gcc supports the same syntax we need for Sun Studio.
15339         # Supported since Solaris 2.6 (maybe 2.5.1?)
15340         case $wlarc in
15341         '')
15342           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15343         *)
15344           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15345         esac ;;
15346       esac
15347       link_all_deplibs_F77=yes
15348       ;;
15349
15350     sunos4*)
15351       if test "x$host_vendor" = xsequent; then
15352         # Use $CC to link under sequent, because it throws in some extra .o
15353         # files that make .init and .fini sections work.
15354         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15355       else
15356         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15357       fi
15358       hardcode_libdir_flag_spec_F77='-L$libdir'
15359       hardcode_direct_F77=yes
15360       hardcode_minus_L_F77=yes
15361       hardcode_shlibpath_var_F77=no
15362       ;;
15363
15364     sysv4)
15365       case $host_vendor in
15366         sni)
15367           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15368           hardcode_direct_F77=yes # is this really true???
15369         ;;
15370         siemens)
15371           ## LD is ld it makes a PLAMLIB
15372           ## CC just makes a GrossModule.
15373           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15374           reload_cmds_F77='$CC -r -o $output$reload_objs'
15375           hardcode_direct_F77=no
15376         ;;
15377         motorola)
15378           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15380         ;;
15381       esac
15382       runpath_var='LD_RUN_PATH'
15383       hardcode_shlibpath_var_F77=no
15384       ;;
15385
15386     sysv4.3*)
15387       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388       hardcode_shlibpath_var_F77=no
15389       export_dynamic_flag_spec_F77='-Bexport'
15390       ;;
15391
15392     sysv4*MP*)
15393       if test -d /usr/nec; then
15394         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395         hardcode_shlibpath_var_F77=no
15396         runpath_var=LD_RUN_PATH
15397         hardcode_runpath_var=yes
15398         ld_shlibs_F77=yes
15399       fi
15400       ;;
15401
15402     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15403       no_undefined_flag_F77='${wl}-z,text'
15404       archive_cmds_need_lc_F77=no
15405       hardcode_shlibpath_var_F77=no
15406       runpath_var='LD_RUN_PATH'
15407
15408       if test "$GCC" = yes; then
15409         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15410         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15411       else
15412         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15413         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15414       fi
15415       ;;
15416
15417     sysv5* | sco3.2v5* | sco5v6*)
15418       # Note: We can NOT use -z defs as we might desire, because we do not
15419       # link with -lc, and that would cause any symbols used from libc to
15420       # always be unresolved, which means just about no library would
15421       # ever link correctly.  If we're not using GNU ld we use -z text
15422       # though, which does catch some bad symbols but isn't as heavy-handed
15423       # as -z defs.
15424       no_undefined_flag_F77='${wl}-z,text'
15425       allow_undefined_flag_F77='${wl}-z,nodefs'
15426       archive_cmds_need_lc_F77=no
15427       hardcode_shlibpath_var_F77=no
15428       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15429       hardcode_libdir_separator_F77=':'
15430       link_all_deplibs_F77=yes
15431       export_dynamic_flag_spec_F77='${wl}-Bexport'
15432       runpath_var='LD_RUN_PATH'
15433
15434       if test "$GCC" = yes; then
15435         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15436         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437       else
15438         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440       fi
15441       ;;
15442
15443     uts4*)
15444       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445       hardcode_libdir_flag_spec_F77='-L$libdir'
15446       hardcode_shlibpath_var_F77=no
15447       ;;
15448
15449     *)
15450       ld_shlibs_F77=no
15451       ;;
15452     esac
15453   fi
15454
15455 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15456 echo "${ECHO_T}$ld_shlibs_F77" >&6
15457 test "$ld_shlibs_F77" = no && can_build_shared=no
15458
15459 #
15460 # Do we need to explicitly link libc?
15461 #
15462 case "x$archive_cmds_need_lc_F77" in
15463 x|xyes)
15464   # Assume -lc should be added
15465   archive_cmds_need_lc_F77=yes
15466
15467   if test "$enable_shared" = yes && test "$GCC" = yes; then
15468     case $archive_cmds_F77 in
15469     *'~'*)
15470       # FIXME: we may have to deal with multi-command sequences.
15471       ;;
15472     '$CC '*)
15473       # Test whether the compiler implicitly links with -lc since on some
15474       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15475       # to ld, don't add -lc before -lgcc.
15476       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15478       $rm conftest*
15479       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15480
15481       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482   (eval $ac_compile) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } 2>conftest.err; then
15486         soname=conftest
15487         lib=conftest
15488         libobjs=conftest.$ac_objext
15489         deplibs=
15490         wl=$lt_prog_compiler_wl_F77
15491         pic_flag=$lt_prog_compiler_pic_F77
15492         compiler_flags=-v
15493         linker_flags=-v
15494         verstring=
15495         output_objdir=.
15496         libname=conftest
15497         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15498         allow_undefined_flag_F77=
15499         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15500   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }
15504         then
15505           archive_cmds_need_lc_F77=no
15506         else
15507           archive_cmds_need_lc_F77=yes
15508         fi
15509         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15510       else
15511         cat conftest.err 1>&5
15512       fi
15513       $rm conftest*
15514       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15515 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15516       ;;
15517     esac
15518   fi
15519   ;;
15520 esac
15521
15522 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15524 library_names_spec=
15525 libname_spec='lib$name'
15526 soname_spec=
15527 shrext_cmds=".so"
15528 postinstall_cmds=
15529 postuninstall_cmds=
15530 finish_cmds=
15531 finish_eval=
15532 shlibpath_var=
15533 shlibpath_overrides_runpath=unknown
15534 version_type=none
15535 dynamic_linker="$host_os ld.so"
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15537 if test "$GCC" = yes; then
15538   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15539   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15540     # if the path contains ";" then we assume it to be the separator
15541     # otherwise default to the standard path separator (i.e. ":") - it is
15542     # assumed that no part of a normal pathname contains ";" but that should
15543     # okay in the real world where ";" in dirpaths is itself problematic.
15544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15545   else
15546     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15547   fi
15548 else
15549   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15550 fi
15551 need_lib_prefix=unknown
15552 hardcode_into_libs=no
15553
15554 # when you set need_version to no, make sure it does not cause -set_version
15555 # flags to be left without arguments
15556 need_version=unknown
15557
15558 case $host_os in
15559 aix3*)
15560   version_type=linux
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15562   shlibpath_var=LIBPATH
15563
15564   # AIX 3 has no versioning support, so we append a major version to the name.
15565   soname_spec='${libname}${release}${shared_ext}$major'
15566   ;;
15567
15568 aix4* | aix5*)
15569   version_type=linux
15570   need_lib_prefix=no
15571   need_version=no
15572   hardcode_into_libs=yes
15573   if test "$host_cpu" = ia64; then
15574     # AIX 5 supports IA64
15575     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15576     shlibpath_var=LD_LIBRARY_PATH
15577   else
15578     # With GCC up to 2.95.x, collect2 would create an import file
15579     # for dependence libraries.  The import file would start with
15580     # the line `#! .'.  This would cause the generated library to
15581     # depend on `.', always an invalid library.  This was fixed in
15582     # development snapshots of GCC prior to 3.0.
15583     case $host_os in
15584       aix4 | aix4.[01] | aix4.[01].*)
15585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15586            echo ' yes '
15587            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15588         :
15589       else
15590         can_build_shared=no
15591       fi
15592       ;;
15593     esac
15594     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15595     # soname into executable. Probably we can add versioning support to
15596     # collect2, so additional links can be useful in future.
15597     if test "$aix_use_runtimelinking" = yes; then
15598       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15599       # instead of lib<name>.a to let people know that these are not
15600       # typical AIX shared libraries.
15601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602     else
15603       # We preserve .a as extension for shared libraries through AIX4.2
15604       # and later when we are not doing run time linking.
15605       library_names_spec='${libname}${release}.a $libname.a'
15606       soname_spec='${libname}${release}${shared_ext}$major'
15607     fi
15608     shlibpath_var=LIBPATH
15609   fi
15610   ;;
15611
15612 amigaos*)
15613   library_names_spec='$libname.ixlibrary $libname.a'
15614   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15615   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'
15616   ;;
15617
15618 beos*)
15619   library_names_spec='${libname}${shared_ext}'
15620   dynamic_linker="$host_os ld.so"
15621   shlibpath_var=LIBRARY_PATH
15622   ;;
15623
15624 bsdi[45]*)
15625   version_type=linux
15626   need_version=no
15627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15632   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15633   # the default ld.so.conf also contains /usr/contrib/lib and
15634   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15635   # libtool to hard-code these into programs
15636   ;;
15637
15638 cygwin* | mingw* | pw32*)
15639   version_type=windows
15640   shrext_cmds=".dll"
15641   need_version=no
15642   need_lib_prefix=no
15643
15644   case $GCC,$host_os in
15645   yes,cygwin* | yes,mingw* | yes,pw32*)
15646     library_names_spec='$libname.dll.a'
15647     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15648     postinstall_cmds='base_file=`basename \${file}`~
15649       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15650       dldir=$destdir/`dirname \$dlpath`~
15651       test -d \$dldir || mkdir -p \$dldir~
15652       $install_prog $dir/$dlname \$dldir/$dlname~
15653       chmod a+x \$dldir/$dlname'
15654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15655       dlpath=$dir/\$dldll~
15656        $rm \$dlpath'
15657     shlibpath_overrides_runpath=yes
15658
15659     case $host_os in
15660     cygwin*)
15661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15663       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15664       ;;
15665     mingw*)
15666       # MinGW DLLs use traditional 'lib' prefix
15667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15668       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15669       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15670         # It is most probably a Windows format PATH printed by
15671         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15672         # path with ; separators, and with drive letters. We can handle the
15673         # drive letters (cygwin fileutils understands them), so leave them,
15674         # especially as we might pass files found there to a mingw objdump,
15675         # which wouldn't understand a cygwinified path. Ahh.
15676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15677       else
15678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15679       fi
15680       ;;
15681     pw32*)
15682       # pw32 DLLs use 'pw' prefix rather than 'lib'
15683       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15684       ;;
15685     esac
15686     ;;
15687
15688   *)
15689     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15690     ;;
15691   esac
15692   dynamic_linker='Win32 ld.exe'
15693   # FIXME: first we should search . and the directory the executable is in
15694   shlibpath_var=PATH
15695   ;;
15696
15697 darwin* | rhapsody*)
15698   dynamic_linker="$host_os dyld"
15699   version_type=darwin
15700   need_lib_prefix=no
15701   need_version=no
15702   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15703   soname_spec='${libname}${release}${major}$shared_ext'
15704   shlibpath_overrides_runpath=yes
15705   shlibpath_var=DYLD_LIBRARY_PATH
15706   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15707   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15708   if test "$GCC" = yes; then
15709     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15710   else
15711     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15712   fi
15713   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15714   ;;
15715
15716 dgux*)
15717   version_type=linux
15718   need_lib_prefix=no
15719   need_version=no
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   ;;
15724
15725 freebsd1*)
15726   dynamic_linker=no
15727   ;;
15728
15729 freebsd* | dragonfly*)
15730   # DragonFly does not have aout.  When/if they implement a new
15731   # versioning mechanism, adjust this.
15732   if test -x /usr/bin/objformat; then
15733     objformat=`/usr/bin/objformat`
15734   else
15735     case $host_os in
15736     freebsd[123]*) objformat=aout ;;
15737     *) objformat=elf ;;
15738     esac
15739   fi
15740   version_type=freebsd-$objformat
15741   case $version_type in
15742     freebsd-elf*)
15743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15744       need_version=no
15745       need_lib_prefix=no
15746       ;;
15747     freebsd-*)
15748       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15749       need_version=yes
15750       ;;
15751   esac
15752   shlibpath_var=LD_LIBRARY_PATH
15753   case $host_os in
15754   freebsd2*)
15755     shlibpath_overrides_runpath=yes
15756     ;;
15757   freebsd3.[01]* | freebsdelf3.[01]*)
15758     shlibpath_overrides_runpath=yes
15759     hardcode_into_libs=yes
15760     ;;
15761   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15762   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15763     shlibpath_overrides_runpath=no
15764     hardcode_into_libs=yes
15765     ;;
15766   freebsd*) # from 4.6 on
15767     shlibpath_overrides_runpath=yes
15768     hardcode_into_libs=yes
15769     ;;
15770   esac
15771   ;;
15772
15773 gnu*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   hardcode_into_libs=yes
15781   ;;
15782
15783 hpux9* | hpux10* | hpux11*)
15784   # Give a soname corresponding to the major version so that dld.sl refuses to
15785   # link against other versions.
15786   version_type=sunos
15787   need_lib_prefix=no
15788   need_version=no
15789   case $host_cpu in
15790   ia64*)
15791     shrext_cmds='.so'
15792     hardcode_into_libs=yes
15793     dynamic_linker="$host_os dld.so"
15794     shlibpath_var=LD_LIBRARY_PATH
15795     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797     soname_spec='${libname}${release}${shared_ext}$major'
15798     if test "X$HPUX_IA64_MODE" = X32; then
15799       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15800     else
15801       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802     fi
15803     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804     ;;
15805    hppa*64*)
15806      shrext_cmds='.sl'
15807      hardcode_into_libs=yes
15808      dynamic_linker="$host_os dld.sl"
15809      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812      soname_spec='${libname}${release}${shared_ext}$major'
15813      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15815      ;;
15816    *)
15817     shrext_cmds='.sl'
15818     dynamic_linker="$host_os dld.sl"
15819     shlibpath_var=SHLIB_PATH
15820     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822     soname_spec='${libname}${release}${shared_ext}$major'
15823     ;;
15824   esac
15825   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15826   postinstall_cmds='chmod 555 $lib'
15827   ;;
15828
15829 interix3*)
15830   version_type=linux
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   shlibpath_overrides_runpath=no
15838   hardcode_into_libs=yes
15839   ;;
15840
15841 irix5* | irix6* | nonstopux*)
15842   case $host_os in
15843     nonstopux*) version_type=nonstopux ;;
15844     *)
15845         if test "$lt_cv_prog_gnu_ld" = yes; then
15846                 version_type=linux
15847         else
15848                 version_type=irix
15849         fi ;;
15850   esac
15851   need_lib_prefix=no
15852   need_version=no
15853   soname_spec='${libname}${release}${shared_ext}$major'
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15855   case $host_os in
15856   irix5* | nonstopux*)
15857     libsuff= shlibsuff=
15858     ;;
15859   *)
15860     case $LD in # libtool.m4 will add one of these switches to LD
15861     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862       libsuff= shlibsuff= libmagic=32-bit;;
15863     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864       libsuff=32 shlibsuff=N32 libmagic=N32;;
15865     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867     *) libsuff= shlibsuff= libmagic=never-match;;
15868     esac
15869     ;;
15870   esac
15871   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872   shlibpath_overrides_runpath=no
15873   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875   hardcode_into_libs=yes
15876   ;;
15877
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15880   dynamic_linker=no
15881   ;;
15882
15883 # This must be Linux ELF.
15884 linux* | k*bsd*-gnu)
15885   version_type=linux
15886   need_lib_prefix=no
15887   need_version=no
15888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891   shlibpath_var=LD_LIBRARY_PATH
15892   shlibpath_overrides_runpath=no
15893   # This implies no fast_install, which is unacceptable.
15894   # Some rework will be needed to allow for fast_install
15895   # before this can be enabled.
15896   hardcode_into_libs=yes
15897
15898   # Append ld.so.conf contents to the search path
15899   if test -f /etc/ld.so.conf; then
15900     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15902   fi
15903
15904   # We used to test for /lib/ld.so.1 and disable shared libraries on
15905   # powerpc, because MkLinux only supported shared libraries with the
15906   # GNU dynamic linker.  Since this was broken with cross compilers,
15907   # most powerpc-linux boxes support dynamic linking these days and
15908   # people can always --disable-shared, the test was removed, and we
15909   # assume the GNU/Linux dynamic linker is in use.
15910   dynamic_linker='GNU/Linux ld.so'
15911   ;;
15912
15913 netbsdelf*-gnu)
15914   version_type=linux
15915   need_lib_prefix=no
15916   need_version=no
15917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918   soname_spec='${libname}${release}${shared_ext}$major'
15919   shlibpath_var=LD_LIBRARY_PATH
15920   shlibpath_overrides_runpath=no
15921   hardcode_into_libs=yes
15922   dynamic_linker='NetBSD ld.elf_so'
15923   ;;
15924
15925 netbsd*)
15926   version_type=sunos
15927   need_lib_prefix=no
15928   need_version=no
15929   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932     dynamic_linker='NetBSD (a.out) ld.so'
15933   else
15934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935     soname_spec='${libname}${release}${shared_ext}$major'
15936     dynamic_linker='NetBSD ld.elf_so'
15937   fi
15938   shlibpath_var=LD_LIBRARY_PATH
15939   shlibpath_overrides_runpath=yes
15940   hardcode_into_libs=yes
15941   ;;
15942
15943 newsos6)
15944   version_type=linux
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   shlibpath_overrides_runpath=yes
15948   ;;
15949
15950 nto-qnx*)
15951   version_type=linux
15952   need_lib_prefix=no
15953   need_version=no
15954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955   soname_spec='${libname}${release}${shared_ext}$major'
15956   shlibpath_var=LD_LIBRARY_PATH
15957   shlibpath_overrides_runpath=yes
15958   ;;
15959
15960 openbsd*)
15961   version_type=sunos
15962   sys_lib_dlsearch_path_spec="/usr/lib"
15963   need_lib_prefix=no
15964   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15965   case $host_os in
15966     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15967     *)                         need_version=no  ;;
15968   esac
15969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971   shlibpath_var=LD_LIBRARY_PATH
15972   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15973     case $host_os in
15974       openbsd2.[89] | openbsd2.[89].*)
15975         shlibpath_overrides_runpath=no
15976         ;;
15977       *)
15978         shlibpath_overrides_runpath=yes
15979         ;;
15980       esac
15981   else
15982     shlibpath_overrides_runpath=yes
15983   fi
15984   ;;
15985
15986 os2*)
15987   libname_spec='$name'
15988   shrext_cmds=".dll"
15989   need_lib_prefix=no
15990   library_names_spec='$libname${shared_ext} $libname.a'
15991   dynamic_linker='OS/2 ld.exe'
15992   shlibpath_var=LIBPATH
15993   ;;
15994
15995 osf3* | osf4* | osf5*)
15996   version_type=osf
15997   need_lib_prefix=no
15998   need_version=no
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   shlibpath_var=LD_LIBRARY_PATH
16002   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16003   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16004   ;;
16005
16006 solaris*)
16007   version_type=linux
16008   need_lib_prefix=no
16009   need_version=no
16010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011   soname_spec='${libname}${release}${shared_ext}$major'
16012   shlibpath_var=LD_LIBRARY_PATH
16013   shlibpath_overrides_runpath=yes
16014   hardcode_into_libs=yes
16015   # ldd complains unless libraries are executable
16016   postinstall_cmds='chmod +x $lib'
16017   ;;
16018
16019 sunos4*)
16020   version_type=sunos
16021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16023   shlibpath_var=LD_LIBRARY_PATH
16024   shlibpath_overrides_runpath=yes
16025   if test "$with_gnu_ld" = yes; then
16026     need_lib_prefix=no
16027   fi
16028   need_version=yes
16029   ;;
16030
16031 sysv4 | sysv4.3*)
16032   version_type=linux
16033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034   soname_spec='${libname}${release}${shared_ext}$major'
16035   shlibpath_var=LD_LIBRARY_PATH
16036   case $host_vendor in
16037     sni)
16038       shlibpath_overrides_runpath=no
16039       need_lib_prefix=no
16040       export_dynamic_flag_spec='${wl}-Blargedynsym'
16041       runpath_var=LD_RUN_PATH
16042       ;;
16043     siemens)
16044       need_lib_prefix=no
16045       ;;
16046     motorola)
16047       need_lib_prefix=no
16048       need_version=no
16049       shlibpath_overrides_runpath=no
16050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16051       ;;
16052   esac
16053   ;;
16054
16055 sysv4*MP*)
16056   if test -d /usr/nec ;then
16057     version_type=linux
16058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16059     soname_spec='$libname${shared_ext}.$major'
16060     shlibpath_var=LD_LIBRARY_PATH
16061   fi
16062   ;;
16063
16064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16065   version_type=freebsd-elf
16066   need_lib_prefix=no
16067   need_version=no
16068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16069   soname_spec='${libname}${release}${shared_ext}$major'
16070   shlibpath_var=LD_LIBRARY_PATH
16071   hardcode_into_libs=yes
16072   if test "$with_gnu_ld" = yes; then
16073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16074     shlibpath_overrides_runpath=no
16075   else
16076     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16077     shlibpath_overrides_runpath=yes
16078     case $host_os in
16079       sco3.2v5*)
16080         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16081         ;;
16082     esac
16083   fi
16084   sys_lib_dlsearch_path_spec='/usr/lib'
16085   ;;
16086
16087 uts4*)
16088   version_type=linux
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   soname_spec='${libname}${release}${shared_ext}$major'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   ;;
16093
16094 *)
16095   dynamic_linker=no
16096   ;;
16097 esac
16098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16099 echo "${ECHO_T}$dynamic_linker" >&6
16100 test "$dynamic_linker" = no && can_build_shared=no
16101
16102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16103 if test "$GCC" = yes; then
16104   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16105 fi
16106
16107 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16109 hardcode_action_F77=
16110 if test -n "$hardcode_libdir_flag_spec_F77" || \
16111    test -n "$runpath_var_F77" || \
16112    test "X$hardcode_automatic_F77" = "Xyes" ; then
16113
16114   # We can hardcode non-existant directories.
16115   if test "$hardcode_direct_F77" != no &&
16116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117      # have to relink, otherwise we might link with an installed library
16118      # when we should be linking with a yet-to-be-installed one
16119      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16120      test "$hardcode_minus_L_F77" != no; then
16121     # Linking always hardcodes the temporary library directory.
16122     hardcode_action_F77=relink
16123   else
16124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125     hardcode_action_F77=immediate
16126   fi
16127 else
16128   # We cannot hardcode anything, or else we can only hardcode existing
16129   # directories.
16130   hardcode_action_F77=unsupported
16131 fi
16132 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16133 echo "${ECHO_T}$hardcode_action_F77" >&6
16134
16135 if test "$hardcode_action_F77" = relink; then
16136   # Fast installation is not supported
16137   enable_fast_install=no
16138 elif test "$shlibpath_overrides_runpath" = yes ||
16139      test "$enable_shared" = no; then
16140   # Fast installation is not necessary
16141   enable_fast_install=needless
16142 fi
16143
16144
16145 # The else clause should only fire when bootstrapping the
16146 # libtool distribution, otherwise you forgot to ship ltmain.sh
16147 # with your package, and you will get complaints that there are
16148 # no rules to generate ltmain.sh.
16149 if test -f "$ltmain"; then
16150   # See if we are running on zsh, and set the options which allow our commands through
16151   # without removal of \ escapes.
16152   if test -n "${ZSH_VERSION+set}" ; then
16153     setopt NO_GLOB_SUBST
16154   fi
16155   # Now quote all the things that may contain metacharacters while being
16156   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16157   # variables and quote the copies for generation of the libtool script.
16158   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16159     SED SHELL STRIP \
16160     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16161     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16162     deplibs_check_method reload_flag reload_cmds need_locks \
16163     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16164     lt_cv_sys_global_symbol_to_c_name_address \
16165     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16166     old_postinstall_cmds old_postuninstall_cmds \
16167     compiler_F77 \
16168     CC_F77 \
16169     LD_F77 \
16170     lt_prog_compiler_wl_F77 \
16171     lt_prog_compiler_pic_F77 \
16172     lt_prog_compiler_static_F77 \
16173     lt_prog_compiler_no_builtin_flag_F77 \
16174     export_dynamic_flag_spec_F77 \
16175     thread_safe_flag_spec_F77 \
16176     whole_archive_flag_spec_F77 \
16177     enable_shared_with_static_runtimes_F77 \
16178     old_archive_cmds_F77 \
16179     old_archive_from_new_cmds_F77 \
16180     predep_objects_F77 \
16181     postdep_objects_F77 \
16182     predeps_F77 \
16183     postdeps_F77 \
16184     compiler_lib_search_path_F77 \
16185     archive_cmds_F77 \
16186     archive_expsym_cmds_F77 \
16187     postinstall_cmds_F77 \
16188     postuninstall_cmds_F77 \
16189     old_archive_from_expsyms_cmds_F77 \
16190     allow_undefined_flag_F77 \
16191     no_undefined_flag_F77 \
16192     export_symbols_cmds_F77 \
16193     hardcode_libdir_flag_spec_F77 \
16194     hardcode_libdir_flag_spec_ld_F77 \
16195     hardcode_libdir_separator_F77 \
16196     hardcode_automatic_F77 \
16197     module_cmds_F77 \
16198     module_expsym_cmds_F77 \
16199     lt_cv_prog_compiler_c_o_F77 \
16200     exclude_expsyms_F77 \
16201     include_expsyms_F77; do
16202
16203     case $var in
16204     old_archive_cmds_F77 | \
16205     old_archive_from_new_cmds_F77 | \
16206     archive_cmds_F77 | \
16207     archive_expsym_cmds_F77 | \
16208     module_cmds_F77 | \
16209     module_expsym_cmds_F77 | \
16210     old_archive_from_expsyms_cmds_F77 | \
16211     export_symbols_cmds_F77 | \
16212     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16213     postinstall_cmds | postuninstall_cmds | \
16214     old_postinstall_cmds | old_postuninstall_cmds | \
16215     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16216       # Double-quote double-evaled strings.
16217       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16218       ;;
16219     *)
16220       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16221       ;;
16222     esac
16223   done
16224
16225   case $lt_echo in
16226   *'\$0 --fallback-echo"')
16227     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16228     ;;
16229   esac
16230
16231 cfgfile="$ofile"
16232
16233   cat <<__EOF__ >> "$cfgfile"
16234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16235
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16237
16238 # Shell to use when invoking shell scripts.
16239 SHELL=$lt_SHELL
16240
16241 # Whether or not to build shared libraries.
16242 build_libtool_libs=$enable_shared
16243
16244 # Whether or not to build static libraries.
16245 build_old_libs=$enable_static
16246
16247 # Whether or not to add -lc for building shared libraries.
16248 build_libtool_need_lc=$archive_cmds_need_lc_F77
16249
16250 # Whether or not to disallow shared libs when runtime libs are static
16251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16252
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16255
16256 # The host system.
16257 host_alias=$host_alias
16258 host=$host
16259 host_os=$host_os
16260
16261 # The build system.
16262 build_alias=$build_alias
16263 build=$build
16264 build_os=$build_os
16265
16266 # An echo program that does not interpret backslashes.
16267 echo=$lt_echo
16268
16269 # The archiver.
16270 AR=$lt_AR
16271 AR_FLAGS=$lt_AR_FLAGS
16272
16273 # A C compiler.
16274 LTCC=$lt_LTCC
16275
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_LTCFLAGS
16278
16279 # A language-specific compiler.
16280 CC=$lt_compiler_F77
16281
16282 # Is the compiler the GNU C compiler?
16283 with_gcc=$GCC_F77
16284
16285 # An ERE matcher.
16286 EGREP=$lt_EGREP
16287
16288 # The linker used to build libraries.
16289 LD=$lt_LD_F77
16290
16291 # Whether we need hard or soft links.
16292 LN_S=$lt_LN_S
16293
16294 # A BSD-compatible nm program.
16295 NM=$lt_NM
16296
16297 # A symbol stripping program
16298 STRIP=$lt_STRIP
16299
16300 # Used to examine libraries when file_magic_cmd begins "file"
16301 MAGIC_CMD=$MAGIC_CMD
16302
16303 # Used on cygwin: DLL creation program.
16304 DLLTOOL="$DLLTOOL"
16305
16306 # Used on cygwin: object dumper.
16307 OBJDUMP="$OBJDUMP"
16308
16309 # Used on cygwin: assembler.
16310 AS="$AS"
16311
16312 # The name of the directory that contains temporary libtool files.
16313 objdir=$objdir
16314
16315 # How to create reloadable object files.
16316 reload_flag=$lt_reload_flag
16317 reload_cmds=$lt_reload_cmds
16318
16319 # How to pass a linker flag through the compiler.
16320 wl=$lt_lt_prog_compiler_wl_F77
16321
16322 # Object file suffix (normally "o").
16323 objext="$ac_objext"
16324
16325 # Old archive suffix (normally "a").
16326 libext="$libext"
16327
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds='$shrext_cmds'
16330
16331 # Executable file suffix (normally "").
16332 exeext="$exeext"
16333
16334 # Additional compiler flags for building library objects.
16335 pic_flag=$lt_lt_prog_compiler_pic_F77
16336 pic_mode=$pic_mode
16337
16338 # What is the maximum length of a command?
16339 max_cmd_len=$lt_cv_sys_max_cmd_len
16340
16341 # Does compiler simultaneously support -c and -o options?
16342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16343
16344 # Must we lock files when doing compilation?
16345 need_locks=$lt_need_locks
16346
16347 # Do we need the lib prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16349
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16352
16353 # Whether dlopen is supported.
16354 dlopen_support=$enable_dlopen
16355
16356 # Whether dlopen of programs is supported.
16357 dlopen_self=$enable_dlopen_self
16358
16359 # Whether dlopen of statically linked programs is supported.
16360 dlopen_self_static=$enable_dlopen_self_static
16361
16362 # Compiler flag to prevent dynamic linking.
16363 link_static_flag=$lt_lt_prog_compiler_static_F77
16364
16365 # Compiler flag to turn off builtin functions.
16366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16367
16368 # Compiler flag to allow reflexive dlopens.
16369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16370
16371 # Compiler flag to generate shared objects directly from archives.
16372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16373
16374 # Compiler flag to generate thread-safe objects.
16375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16376
16377 # Library versioning type.
16378 version_type=$version_type
16379
16380 # Format of library name prefix.
16381 libname_spec=$lt_libname_spec
16382
16383 # List of archive names.  First name is the real one, the rest are links.
16384 # The last name is the one that the linker finds with -lNAME.
16385 library_names_spec=$lt_library_names_spec
16386
16387 # The coded name of the library, if different from the real name.
16388 soname_spec=$lt_soname_spec
16389
16390 # Commands used to build and install an old-style archive.
16391 RANLIB=$lt_RANLIB
16392 old_archive_cmds=$lt_old_archive_cmds_F77
16393 old_postinstall_cmds=$lt_old_postinstall_cmds
16394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16395
16396 # Create an old-style archive from a shared archive.
16397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16398
16399 # Create a temporary old-style archive to link instead of a shared archive.
16400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16401
16402 # Commands used to build and install a shared archive.
16403 archive_cmds=$lt_archive_cmds_F77
16404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16405 postinstall_cmds=$lt_postinstall_cmds
16406 postuninstall_cmds=$lt_postuninstall_cmds
16407
16408 # Commands used to build a loadable module (assumed same as above if empty)
16409 module_cmds=$lt_module_cmds_F77
16410 module_expsym_cmds=$lt_module_expsym_cmds_F77
16411
16412 # Commands to strip libraries.
16413 old_striplib=$lt_old_striplib
16414 striplib=$lt_striplib
16415
16416 # Dependencies to place before the objects being linked to create a
16417 # shared library.
16418 predep_objects=$lt_predep_objects_F77
16419
16420 # Dependencies to place after the objects being linked to create a
16421 # shared library.
16422 postdep_objects=$lt_postdep_objects_F77
16423
16424 # Dependencies to place before the objects being linked to create a
16425 # shared library.
16426 predeps=$lt_predeps_F77
16427
16428 # Dependencies to place after the objects being linked to create a
16429 # shared library.
16430 postdeps=$lt_postdeps_F77
16431
16432 # The library search path used internally by the compiler when linking
16433 # a shared library.
16434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16435
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16438
16439 # Command to use when deplibs_check_method == file_magic.
16440 file_magic_cmd=$lt_file_magic_cmd
16441
16442 # Flag that allows shared libraries with undefined symbols to be built.
16443 allow_undefined_flag=$lt_allow_undefined_flag_F77
16444
16445 # Flag that forces no undefined symbols.
16446 no_undefined_flag=$lt_no_undefined_flag_F77
16447
16448 # Commands used to finish a libtool library installation in a directory.
16449 finish_cmds=$lt_finish_cmds
16450
16451 # Same as above, but a single script fragment to be evaled but not shown.
16452 finish_eval=$lt_finish_eval
16453
16454 # Take the output of nm and produce a listing of raw symbols and C names.
16455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16456
16457 # Transform the output of nm in a proper C declaration
16458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16459
16460 # Transform the output of nm in a C name address pair
16461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16462
16463 # This is the shared library runtime path variable.
16464 runpath_var=$runpath_var
16465
16466 # This is the shared library path variable.
16467 shlibpath_var=$shlibpath_var
16468
16469 # Is shlibpath searched before the hard-coded library search path?
16470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16471
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_F77
16474
16475 # Whether we should hardcode library paths into libraries.
16476 hardcode_into_libs=$hardcode_into_libs
16477
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist.
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16481
16482 # If ld is used when linking, flag to hardcode \$libdir into
16483 # a binary during linking. This must work even if \$libdir does
16484 # not exist.
16485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16486
16487 # Whether we need a single -rpath flag with a separated argument.
16488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16489
16490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16491 # resulting binary.
16492 hardcode_direct=$hardcode_direct_F77
16493
16494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16495 # resulting binary.
16496 hardcode_minus_L=$hardcode_minus_L_F77
16497
16498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16499 # the resulting binary.
16500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16501
16502 # Set to yes if building a shared library automatically hardcodes DIR into the library
16503 # and all subsequent libraries and executables linked against it.
16504 hardcode_automatic=$hardcode_automatic_F77
16505
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at relink time.
16508 variables_saved_for_relink="$variables_saved_for_relink"
16509
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs_F77
16512
16513 # Compile-time system search path for libraries
16514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16515
16516 # Run-time system search path for libraries
16517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16518
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path="$fix_srcfile_path_F77"
16521
16522 # Set to yes if exported symbols are required.
16523 always_export_symbols=$always_export_symbols_F77
16524
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds_F77
16527
16528 # The commands to extract the exported symbol list from a shared archive.
16529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16530
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms_F77
16533
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms_F77
16536
16537 # ### END LIBTOOL TAG CONFIG: $tagname
16538
16539 __EOF__
16540
16541
16542 else
16543   # If there is no Makefile yet, we rely on a make rule to execute
16544   # `config.status --recheck' to rerun these tests and create the
16545   # libtool script then.
16546   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16547   if test -f "$ltmain_in"; then
16548     test -f Makefile && make "$ltmain"
16549   fi
16550 fi
16551
16552
16553 ac_ext=c
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16558
16559 CC="$lt_save_CC"
16560
16561         else
16562           tagname=""
16563         fi
16564         ;;
16565
16566       GCJ)
16567         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16568
16569
16570
16571 # Source file extension for Java test sources.
16572 ac_ext=java
16573
16574 # Object file extension for compiled Java test sources.
16575 objext=o
16576 objext_GCJ=$objext
16577
16578 # Code to be used in simple compile tests
16579 lt_simple_compile_test_code="class foo {}\n"
16580
16581 # Code to be used in simple link tests
16582 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16583
16584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16585
16586 # If no C compiler was specified, use CC.
16587 LTCC=${LTCC-"$CC"}
16588
16589 # If no C compiler flags were specified, use CFLAGS.
16590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16591
16592 # Allow CC to be a program name with arguments.
16593 compiler=$CC
16594
16595
16596 # save warnings/boilerplate of simple test code
16597 ac_outfile=conftest.$ac_objext
16598 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600 _lt_compiler_boilerplate=`cat conftest.err`
16601 $rm conftest*
16602
16603 ac_outfile=conftest.$ac_objext
16604 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16606 _lt_linker_boilerplate=`cat conftest.err`
16607 $rm conftest*
16608
16609
16610 # Allow CC to be a program name with arguments.
16611 lt_save_CC="$CC"
16612 CC=${GCJ-"gcj"}
16613 compiler=$CC
16614 compiler_GCJ=$CC
16615 for cc_temp in $compiler""; do
16616   case $cc_temp in
16617     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16618     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16619     \-*) ;;
16620     *) break;;
16621   esac
16622 done
16623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16624
16625
16626 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16627 archive_cmds_need_lc_GCJ=no
16628
16629 old_archive_cmds_GCJ=$old_archive_cmds
16630
16631
16632 lt_prog_compiler_no_builtin_flag_GCJ=
16633
16634 if test "$GCC" = yes; then
16635   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16636
16637
16638 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16639 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   lt_cv_prog_compiler_rtti_exceptions=no
16644   ac_outfile=conftest.$ac_objext
16645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646    lt_compiler_flag="-fno-rtti -fno-exceptions"
16647    # Insert the option either (1) after the last *FLAGS variable, or
16648    # (2) before a word containing "conftest.", or (3) at the end.
16649    # Note that $ac_compile itself does not contain backslashes and begins
16650    # with a dollar sign (not a hyphen), so the echo should work correctly.
16651    # The option is referenced via a variable to avoid confusing sed.
16652    lt_compile=`echo "$ac_compile" | $SED \
16653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655    -e 's:$: $lt_compiler_flag:'`
16656    (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657    (eval "$lt_compile" 2>conftest.err)
16658    ac_status=$?
16659    cat conftest.err >&5
16660    echo "$as_me:16660: \$? = $ac_status" >&5
16661    if (exit $ac_status) && test -s "$ac_outfile"; then
16662      # The compiler can only warn and ignore the option if not recognized
16663      # So say no if there are warnings other than the usual output.
16664      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16667        lt_cv_prog_compiler_rtti_exceptions=yes
16668      fi
16669    fi
16670    $rm conftest*
16671
16672 fi
16673 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16674 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16675
16676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16677     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16678 else
16679     :
16680 fi
16681
16682 fi
16683
16684 lt_prog_compiler_wl_GCJ=
16685 lt_prog_compiler_pic_GCJ=
16686 lt_prog_compiler_static_GCJ=
16687
16688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16690
16691   if test "$GCC" = yes; then
16692     lt_prog_compiler_wl_GCJ='-Wl,'
16693     lt_prog_compiler_static_GCJ='-static'
16694
16695     case $host_os in
16696       aix*)
16697       # All AIX code is PIC.
16698       if test "$host_cpu" = ia64; then
16699         # AIX 5 now supports IA64 processor
16700         lt_prog_compiler_static_GCJ='-Bstatic'
16701       fi
16702       ;;
16703
16704     amigaos*)
16705       # FIXME: we need at least 68020 code to build shared libraries, but
16706       # adding the `-m68020' flag to GCC prevents building anything better,
16707       # like `-m68040'.
16708       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16709       ;;
16710
16711     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16712       # PIC is the default for these OSes.
16713       ;;
16714
16715     mingw* | pw32* | os2*)
16716       # This hack is so that the source file can tell whether it is being
16717       # built for inclusion in a dll (and should export symbols for example).
16718       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16719       ;;
16720
16721     darwin* | rhapsody*)
16722       # PIC is the default on this platform
16723       # Common symbols not allowed in MH_DYLIB files
16724       lt_prog_compiler_pic_GCJ='-fno-common'
16725       ;;
16726
16727     interix3*)
16728       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16729       # Instead, we relocate shared libraries at runtime.
16730       ;;
16731
16732     msdosdjgpp*)
16733       # Just because we use GCC doesn't mean we suddenly get shared libraries
16734       # on systems that don't support them.
16735       lt_prog_compiler_can_build_shared_GCJ=no
16736       enable_shared=no
16737       ;;
16738
16739     sysv4*MP*)
16740       if test -d /usr/nec; then
16741         lt_prog_compiler_pic_GCJ=-Kconform_pic
16742       fi
16743       ;;
16744
16745     hpux*)
16746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16747       # not for PA HP-UX.
16748       case $host_cpu in
16749       hppa*64*|ia64*)
16750         # +Z the default
16751         ;;
16752       *)
16753         lt_prog_compiler_pic_GCJ='-fPIC'
16754         ;;
16755       esac
16756       ;;
16757
16758     *)
16759       lt_prog_compiler_pic_GCJ='-fPIC'
16760       ;;
16761     esac
16762   else
16763     # PORTME Check for flag to pass linker flags through the system compiler.
16764     case $host_os in
16765     aix*)
16766       lt_prog_compiler_wl_GCJ='-Wl,'
16767       if test "$host_cpu" = ia64; then
16768         # AIX 5 now supports IA64 processor
16769         lt_prog_compiler_static_GCJ='-Bstatic'
16770       else
16771         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16772       fi
16773       ;;
16774       darwin*)
16775         # PIC is the default on this platform
16776         # Common symbols not allowed in MH_DYLIB files
16777        case $cc_basename in
16778          xlc*)
16779          lt_prog_compiler_pic_GCJ='-qnocommon'
16780          lt_prog_compiler_wl_GCJ='-Wl,'
16781          ;;
16782        esac
16783        ;;
16784
16785     mingw* | pw32* | os2*)
16786       # This hack is so that the source file can tell whether it is being
16787       # built for inclusion in a dll (and should export symbols for example).
16788       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16789       ;;
16790
16791     hpux9* | hpux10* | hpux11*)
16792       lt_prog_compiler_wl_GCJ='-Wl,'
16793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794       # not for PA HP-UX.
16795       case $host_cpu in
16796       hppa*64*|ia64*)
16797         # +Z the default
16798         ;;
16799       *)
16800         lt_prog_compiler_pic_GCJ='+Z'
16801         ;;
16802       esac
16803       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16804       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16805       ;;
16806
16807     irix5* | irix6* | nonstopux*)
16808       lt_prog_compiler_wl_GCJ='-Wl,'
16809       # PIC (with -KPIC) is the default.
16810       lt_prog_compiler_static_GCJ='-non_shared'
16811       ;;
16812
16813     newsos6)
16814       lt_prog_compiler_pic_GCJ='-KPIC'
16815       lt_prog_compiler_static_GCJ='-Bstatic'
16816       ;;
16817
16818     linux* | k*bsd*-gnu)
16819       case $cc_basename in
16820       icc* | ecc*)
16821         lt_prog_compiler_wl_GCJ='-Wl,'
16822         lt_prog_compiler_pic_GCJ='-KPIC'
16823         lt_prog_compiler_static_GCJ='-static'
16824         ;;
16825       pgcc* | pgf77* | pgf90* | pgf95*)
16826         # Portland Group compilers (*not* the Pentium gcc compiler,
16827         # which looks to be a dead project)
16828         lt_prog_compiler_wl_GCJ='-Wl,'
16829         lt_prog_compiler_pic_GCJ='-fpic'
16830         lt_prog_compiler_static_GCJ='-Bstatic'
16831         ;;
16832       ccc*)
16833         lt_prog_compiler_wl_GCJ='-Wl,'
16834         # All Alpha code is PIC.
16835         lt_prog_compiler_static_GCJ='-non_shared'
16836         ;;
16837       esac
16838       ;;
16839
16840     osf3* | osf4* | osf5*)
16841       lt_prog_compiler_wl_GCJ='-Wl,'
16842       # All OSF/1 code is PIC.
16843       lt_prog_compiler_static_GCJ='-non_shared'
16844       ;;
16845
16846     solaris*)
16847       lt_prog_compiler_pic_GCJ='-KPIC'
16848       lt_prog_compiler_static_GCJ='-Bstatic'
16849       case $cc_basename in
16850       f77* | f90* | f95*)
16851         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16852       *)
16853         lt_prog_compiler_wl_GCJ='-Wl,';;
16854       esac
16855       ;;
16856
16857     sunos4*)
16858       lt_prog_compiler_wl_GCJ='-Qoption ld '
16859       lt_prog_compiler_pic_GCJ='-PIC'
16860       lt_prog_compiler_static_GCJ='-Bstatic'
16861       ;;
16862
16863     sysv4 | sysv4.2uw2* | sysv4.3*)
16864       lt_prog_compiler_wl_GCJ='-Wl,'
16865       lt_prog_compiler_pic_GCJ='-KPIC'
16866       lt_prog_compiler_static_GCJ='-Bstatic'
16867       ;;
16868
16869     sysv4*MP*)
16870       if test -d /usr/nec ;then
16871         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16872         lt_prog_compiler_static_GCJ='-Bstatic'
16873       fi
16874       ;;
16875
16876     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16877       lt_prog_compiler_wl_GCJ='-Wl,'
16878       lt_prog_compiler_pic_GCJ='-KPIC'
16879       lt_prog_compiler_static_GCJ='-Bstatic'
16880       ;;
16881
16882     unicos*)
16883       lt_prog_compiler_wl_GCJ='-Wl,'
16884       lt_prog_compiler_can_build_shared_GCJ=no
16885       ;;
16886
16887     uts4*)
16888       lt_prog_compiler_pic_GCJ='-pic'
16889       lt_prog_compiler_static_GCJ='-Bstatic'
16890       ;;
16891
16892     *)
16893       lt_prog_compiler_can_build_shared_GCJ=no
16894       ;;
16895     esac
16896   fi
16897
16898 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16899 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16900
16901 #
16902 # Check to make sure the PIC flag actually works.
16903 #
16904 if test -n "$lt_prog_compiler_pic_GCJ"; then
16905
16906 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16907 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16908 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   lt_prog_compiler_pic_works_GCJ=no
16912   ac_outfile=conftest.$ac_objext
16913    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16914    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16915    # Insert the option either (1) after the last *FLAGS variable, or
16916    # (2) before a word containing "conftest.", or (3) at the end.
16917    # Note that $ac_compile itself does not contain backslashes and begins
16918    # with a dollar sign (not a hyphen), so the echo should work correctly.
16919    # The option is referenced via a variable to avoid confusing sed.
16920    lt_compile=`echo "$ac_compile" | $SED \
16921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923    -e 's:$: $lt_compiler_flag:'`
16924    (eval echo "\"\$as_me:16924: $lt_compile\"" >&5)
16925    (eval "$lt_compile" 2>conftest.err)
16926    ac_status=$?
16927    cat conftest.err >&5
16928    echo "$as_me:16928: \$? = $ac_status" >&5
16929    if (exit $ac_status) && test -s "$ac_outfile"; then
16930      # The compiler can only warn and ignore the option if not recognized
16931      # So say no if there are warnings other than the usual output.
16932      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16933      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935        lt_prog_compiler_pic_works_GCJ=yes
16936      fi
16937    fi
16938    $rm conftest*
16939
16940 fi
16941 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16942 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16943
16944 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16945     case $lt_prog_compiler_pic_GCJ in
16946      "" | " "*) ;;
16947      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16948      esac
16949 else
16950     lt_prog_compiler_pic_GCJ=
16951      lt_prog_compiler_can_build_shared_GCJ=no
16952 fi
16953
16954 fi
16955 case $host_os in
16956   # For platforms which do not support PIC, -DPIC is meaningless:
16957   *djgpp*)
16958     lt_prog_compiler_pic_GCJ=
16959     ;;
16960   *)
16961     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16962     ;;
16963 esac
16964
16965 #
16966 # Check to make sure the static flag actually works.
16967 #
16968 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16969 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16970 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16971 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   lt_prog_compiler_static_works_GCJ=no
16975    save_LDFLAGS="$LDFLAGS"
16976    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16977    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16978    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16979      # The linker can only warn and ignore the option if not recognized
16980      # So say no if there are warnings
16981      if test -s conftest.err; then
16982        # Append any errors to the config.log.
16983        cat conftest.err 1>&5
16984        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16985        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16986        if diff conftest.exp conftest.er2 >/dev/null; then
16987          lt_prog_compiler_static_works_GCJ=yes
16988        fi
16989      else
16990        lt_prog_compiler_static_works_GCJ=yes
16991      fi
16992    fi
16993    $rm conftest*
16994    LDFLAGS="$save_LDFLAGS"
16995
16996 fi
16997 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16998 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16999
17000 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17001     :
17002 else
17003     lt_prog_compiler_static_GCJ=
17004 fi
17005
17006
17007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17009 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   lt_cv_prog_compiler_c_o_GCJ=no
17013    $rm -r conftest 2>/dev/null
17014    mkdir conftest
17015    cd conftest
17016    mkdir out
17017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17018
17019    lt_compiler_flag="-o out/conftest2.$ac_objext"
17020    # Insert the option either (1) after the last *FLAGS variable, or
17021    # (2) before a word containing "conftest.", or (3) at the end.
17022    # Note that $ac_compile itself does not contain backslashes and begins
17023    # with a dollar sign (not a hyphen), so the echo should work correctly.
17024    lt_compile=`echo "$ac_compile" | $SED \
17025    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027    -e 's:$: $lt_compiler_flag:'`
17028    (eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029    (eval "$lt_compile" 2>out/conftest.err)
17030    ac_status=$?
17031    cat out/conftest.err >&5
17032    echo "$as_me:17032: \$? = $ac_status" >&5
17033    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17034    then
17035      # The compiler can only warn and ignore the option if not recognized
17036      # So say no if there are warnings
17037      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17038      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17039      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17040        lt_cv_prog_compiler_c_o_GCJ=yes
17041      fi
17042    fi
17043    chmod u+w . 2>&5
17044    $rm conftest*
17045    # SGI C++ compiler will create directory out/ii_files/ for
17046    # template instantiation
17047    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17048    $rm out/* && rmdir out
17049    cd ..
17050    rmdir conftest
17051    $rm conftest*
17052
17053 fi
17054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17056
17057
17058 hard_links="nottested"
17059 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17060   # do not overwrite the value of need_locks provided by the user
17061   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17063   hard_links=yes
17064   $rm conftest*
17065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17066   touch conftest.a
17067   ln conftest.a conftest.b 2>&5 || hard_links=no
17068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17069   echo "$as_me:$LINENO: result: $hard_links" >&5
17070 echo "${ECHO_T}$hard_links" >&6
17071   if test "$hard_links" = no; then
17072     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17074     need_locks=warn
17075   fi
17076 else
17077   need_locks=no
17078 fi
17079
17080 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17082
17083   runpath_var=
17084   allow_undefined_flag_GCJ=
17085   enable_shared_with_static_runtimes_GCJ=no
17086   archive_cmds_GCJ=
17087   archive_expsym_cmds_GCJ=
17088   old_archive_From_new_cmds_GCJ=
17089   old_archive_from_expsyms_cmds_GCJ=
17090   export_dynamic_flag_spec_GCJ=
17091   whole_archive_flag_spec_GCJ=
17092   thread_safe_flag_spec_GCJ=
17093   hardcode_libdir_flag_spec_GCJ=
17094   hardcode_libdir_flag_spec_ld_GCJ=
17095   hardcode_libdir_separator_GCJ=
17096   hardcode_direct_GCJ=no
17097   hardcode_minus_L_GCJ=no
17098   hardcode_shlibpath_var_GCJ=unsupported
17099   link_all_deplibs_GCJ=unknown
17100   hardcode_automatic_GCJ=no
17101   module_cmds_GCJ=
17102   module_expsym_cmds_GCJ=
17103   always_export_symbols_GCJ=no
17104   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17105   # include_expsyms should be a list of space-separated symbols to be *always*
17106   # included in the symbol list
17107   include_expsyms_GCJ=
17108   # exclude_expsyms can be an extended regexp of symbols to exclude
17109   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17110   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17111   # as well as any symbol that contains `d'.
17112   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17113   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17114   # platforms (ab)use it in PIC code, but their linkers get confused if
17115   # the symbol is explicitly referenced.  Since portable code cannot
17116   # rely on this symbol name, it's probably fine to never include it in
17117   # preloaded symbol tables.
17118   extract_expsyms_cmds=
17119   # Just being paranoid about ensuring that cc_basename is set.
17120   for cc_temp in $compiler""; do
17121   case $cc_temp in
17122     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17123     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17124     \-*) ;;
17125     *) break;;
17126   esac
17127 done
17128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17129
17130   case $host_os in
17131   cygwin* | mingw* | pw32*)
17132     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17133     # When not using gcc, we currently assume that we are using
17134     # Microsoft Visual C++.
17135     if test "$GCC" != yes; then
17136       with_gnu_ld=no
17137     fi
17138     ;;
17139   interix*)
17140     # we just hope/assume this is gcc and not c89 (= MSVC++)
17141     with_gnu_ld=yes
17142     ;;
17143   openbsd*)
17144     with_gnu_ld=no
17145     ;;
17146   esac
17147
17148   ld_shlibs_GCJ=yes
17149   if test "$with_gnu_ld" = yes; then
17150     # If archive_cmds runs LD, not CC, wlarc should be empty
17151     wlarc='${wl}'
17152
17153     # Set some defaults for GNU ld with shared library support. These
17154     # are reset later if shared libraries are not supported. Putting them
17155     # here allows them to be overridden if necessary.
17156     runpath_var=LD_RUN_PATH
17157     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17158     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17159     # ancient GNU ld didn't support --whole-archive et. al.
17160     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17161         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17162       else
17163         whole_archive_flag_spec_GCJ=
17164     fi
17165     supports_anon_versioning=no
17166     case `$LD -v 2>/dev/null` in
17167       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17168       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17169       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17170       *\ 2.11.*) ;; # other 2.11 versions
17171       *) supports_anon_versioning=yes ;;
17172     esac
17173
17174     # See if GNU ld supports shared libraries.
17175     case $host_os in
17176     aix3* | aix4* | aix5*)
17177       # On AIX/PPC, the GNU linker is very broken
17178       if test "$host_cpu" != ia64; then
17179         ld_shlibs_GCJ=no
17180         cat <<EOF 1>&2
17181
17182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17183 *** to be unable to reliably create shared libraries on AIX.
17184 *** Therefore, libtool is disabling shared libraries support.  If you
17185 *** really care for shared libraries, you may want to modify your PATH
17186 *** so that a non-GNU linker is found, and then restart.
17187
17188 EOF
17189       fi
17190       ;;
17191
17192     amigaos*)
17193       archive_cmds_GCJ='$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)'
17194       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17195       hardcode_minus_L_GCJ=yes
17196
17197       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17198       # that the semantics of dynamic libraries on AmigaOS, at least up
17199       # to version 4, is to share data among multiple programs linked
17200       # with the same dynamic library.  Since this doesn't match the
17201       # behavior of shared libraries on other platforms, we can't use
17202       # them.
17203       ld_shlibs_GCJ=no
17204       ;;
17205
17206     beos*)
17207       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17208         allow_undefined_flag_GCJ=unsupported
17209         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17210         # support --undefined.  This deserves some investigation.  FIXME
17211         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17212       else
17213         ld_shlibs_GCJ=no
17214       fi
17215       ;;
17216
17217     cygwin* | mingw* | pw32*)
17218       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17219       # as there is no search path for DLLs.
17220       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221       allow_undefined_flag_GCJ=unsupported
17222       always_export_symbols_GCJ=no
17223       enable_shared_with_static_runtimes_GCJ=yes
17224       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17225
17226       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17227         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17228         # If the export-symbols file already is a .def file (1st line
17229         # is EXPORTS), use it as is; otherwise, prepend...
17230         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17231           cp $export_symbols $output_objdir/$soname.def;
17232         else
17233           echo EXPORTS > $output_objdir/$soname.def;
17234           cat $export_symbols >> $output_objdir/$soname.def;
17235         fi~
17236         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17237       else
17238         ld_shlibs_GCJ=no
17239       fi
17240       ;;
17241
17242     interix3*)
17243       hardcode_direct_GCJ=no
17244       hardcode_shlibpath_var_GCJ=no
17245       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17246       export_dynamic_flag_spec_GCJ='${wl}-E'
17247       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17248       # Instead, shared libraries are loaded at an image base (0x10000000 by
17249       # default) and relocated if they conflict, which is a slow very memory
17250       # consuming and fragmenting process.  To avoid this, we pick a random,
17251       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17252       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17253       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17254       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17255       ;;
17256
17257     linux* | k*bsd*-gnu)
17258       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17259         tmp_addflag=
17260         case $cc_basename,$host_cpu in
17261         pgcc*)                          # Portland Group C compiler
17262           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17263           tmp_addflag=' $pic_flag'
17264           ;;
17265         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17266           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17267           tmp_addflag=' $pic_flag -Mnomain' ;;
17268         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17269           tmp_addflag=' -i_dynamic' ;;
17270         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17271           tmp_addflag=' -i_dynamic -nofor_main' ;;
17272         ifc* | ifort*)                  # Intel Fortran compiler
17273           tmp_addflag=' -nofor_main' ;;
17274         esac
17275         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17276
17277         if test $supports_anon_versioning = yes; then
17278           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17279   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17280   $echo "local: *; };" >> $output_objdir/$libname.ver~
17281           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17282         fi
17283         link_all_deplibs_GCJ=no
17284       else
17285         ld_shlibs_GCJ=no
17286       fi
17287       ;;
17288
17289     netbsd* | netbsdelf*-gnu)
17290       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17292         wlarc=
17293       else
17294         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17295         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17296       fi
17297       ;;
17298
17299     solaris*)
17300       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17301         ld_shlibs_GCJ=no
17302         cat <<EOF 1>&2
17303
17304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17305 *** create shared libraries on Solaris systems.  Therefore, libtool
17306 *** is disabling shared libraries support.  We urge you to upgrade GNU
17307 *** binutils to release 2.9.1 or newer.  Another option is to modify
17308 *** your PATH or compiler configuration so that the native linker is
17309 *** used, and then restart.
17310
17311 EOF
17312       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17313         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17315       else
17316         ld_shlibs_GCJ=no
17317       fi
17318       ;;
17319
17320     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17321       case `$LD -v 2>&1` in
17322         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17323         ld_shlibs_GCJ=no
17324         cat <<_LT_EOF 1>&2
17325
17326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17327 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17328 *** is disabling shared libraries support.  We urge you to upgrade GNU
17329 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17330 *** your PATH or compiler configuration so that the native linker is
17331 *** used, and then restart.
17332
17333 _LT_EOF
17334         ;;
17335         *)
17336           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17338             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17339             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17340           else
17341             ld_shlibs_GCJ=no
17342           fi
17343         ;;
17344       esac
17345       ;;
17346
17347     sunos4*)
17348       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349       wlarc=
17350       hardcode_direct_GCJ=yes
17351       hardcode_shlibpath_var_GCJ=no
17352       ;;
17353
17354     *)
17355       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17358       else
17359         ld_shlibs_GCJ=no
17360       fi
17361       ;;
17362     esac
17363
17364     if test "$ld_shlibs_GCJ" = no; then
17365       runpath_var=
17366       hardcode_libdir_flag_spec_GCJ=
17367       export_dynamic_flag_spec_GCJ=
17368       whole_archive_flag_spec_GCJ=
17369     fi
17370   else
17371     # PORTME fill in a description of your system's linker (not GNU ld)
17372     case $host_os in
17373     aix3*)
17374       allow_undefined_flag_GCJ=unsupported
17375       always_export_symbols_GCJ=yes
17376       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17377       # Note: this linker hardcodes the directories in LIBPATH if there
17378       # are no directories specified by -L.
17379       hardcode_minus_L_GCJ=yes
17380       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17381         # Neither direct hardcoding nor static linking is supported with a
17382         # broken collect2.
17383         hardcode_direct_GCJ=unsupported
17384       fi
17385       ;;
17386
17387     aix4* | aix5*)
17388       if test "$host_cpu" = ia64; then
17389         # On IA64, the linker does run time linking by default, so we don't
17390         # have to do anything special.
17391         aix_use_runtimelinking=no
17392         exp_sym_flag='-Bexport'
17393         no_entry_flag=""
17394       else
17395         # If we're using GNU nm, then we don't want the "-C" option.
17396         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17397         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17398           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17399         else
17400           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17401         fi
17402         aix_use_runtimelinking=no
17403
17404         # Test if we are trying to use run time linking or normal
17405         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17406         # need to do runtime linking.
17407         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17408           for ld_flag in $LDFLAGS; do
17409           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17410             aix_use_runtimelinking=yes
17411             break
17412           fi
17413           done
17414           ;;
17415         esac
17416
17417         exp_sym_flag='-bexport'
17418         no_entry_flag='-bnoentry'
17419       fi
17420
17421       # When large executables or shared objects are built, AIX ld can
17422       # have problems creating the table of contents.  If linking a library
17423       # or program results in "error TOC overflow" add -mminimal-toc to
17424       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17425       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17426
17427       archive_cmds_GCJ=''
17428       hardcode_direct_GCJ=yes
17429       hardcode_libdir_separator_GCJ=':'
17430       link_all_deplibs_GCJ=yes
17431
17432       if test "$GCC" = yes; then
17433         case $host_os in aix4.[012]|aix4.[012].*)
17434         # We only want to do this on AIX 4.2 and lower, the check
17435         # below for broken collect2 doesn't work under 4.3+
17436           collect2name=`${CC} -print-prog-name=collect2`
17437           if test -f "$collect2name" && \
17438            strings "$collect2name" | grep resolve_lib_name >/dev/null
17439           then
17440           # We have reworked collect2
17441           hardcode_direct_GCJ=yes
17442           else
17443           # We have old collect2
17444           hardcode_direct_GCJ=unsupported
17445           # It fails to find uninstalled libraries when the uninstalled
17446           # path is not listed in the libpath.  Setting hardcode_minus_L
17447           # to unsupported forces relinking
17448           hardcode_minus_L_GCJ=yes
17449           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450           hardcode_libdir_separator_GCJ=
17451           fi
17452           ;;
17453         esac
17454         shared_flag='-shared'
17455         if test "$aix_use_runtimelinking" = yes; then
17456           shared_flag="$shared_flag "'${wl}-G'
17457         fi
17458       else
17459         # not using gcc
17460         if test "$host_cpu" = ia64; then
17461         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17462         # chokes on -Wl,-G. The following line is correct:
17463           shared_flag='-G'
17464         else
17465           if test "$aix_use_runtimelinking" = yes; then
17466             shared_flag='${wl}-G'
17467           else
17468             shared_flag='${wl}-bM:SRE'
17469           fi
17470         fi
17471       fi
17472
17473       # It seems that -bexpall does not export symbols beginning with
17474       # underscore (_), so it is better to generate a list of symbols to export.
17475       always_export_symbols_GCJ=yes
17476       if test "$aix_use_runtimelinking" = yes; then
17477         # Warning - without using the other runtime loading flags (-brtl),
17478         # -berok will link without error, but may produce a broken library.
17479         allow_undefined_flag_GCJ='-berok'
17480        # Determine the default libpath from the value encoded in an empty executable.
17481        cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487
17488 int
17489 main ()
17490 {
17491
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498   (eval $ac_link) 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest$ac_exeext'
17512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513   (eval $ac_try) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517
17518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17519 }'`
17520 # Check for a 64-bit object if we didn't find anything.
17521 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17522 }'`; fi
17523 else
17524   echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527 fi
17528 rm -f conftest.err conftest.$ac_objext \
17529       conftest$ac_exeext conftest.$ac_ext
17530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17531
17532        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17533         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17534        else
17535         if test "$host_cpu" = ia64; then
17536           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17537           allow_undefined_flag_GCJ="-z nodefs"
17538           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17539         else
17540          # Determine the default libpath from the value encoded in an empty executable.
17541          cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547
17548 int
17549 main ()
17550 {
17551
17552   ;
17553   return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558   (eval $ac_link) 2>conftest.er1
17559   ac_status=$?
17560   grep -v '^ *+' conftest.er1 >conftest.err
17561   rm -f conftest.er1
17562   cat conftest.err >&5
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } &&
17565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; } &&
17571          { ac_try='test -s conftest$ac_exeext'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577
17578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17579 }'`
17580 # Check for a 64-bit object if we didn't find anything.
17581 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17582 }'`; fi
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 fi
17588 rm -f conftest.err conftest.$ac_objext \
17589       conftest$ac_exeext conftest.$ac_ext
17590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17591
17592          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17593           # Warning - without using the other run time loading flags,
17594           # -berok will link without error, but may produce a broken library.
17595           no_undefined_flag_GCJ=' ${wl}-bernotok'
17596           allow_undefined_flag_GCJ=' ${wl}-berok'
17597           # Exported symbols can be pulled into shared objects from archives
17598           whole_archive_flag_spec_GCJ='$convenience'
17599           archive_cmds_need_lc_GCJ=yes
17600           # This is similar to how AIX traditionally builds its shared libraries.
17601           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17602         fi
17603       fi
17604       ;;
17605
17606     amigaos*)
17607       archive_cmds_GCJ='$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)'
17608       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17609       hardcode_minus_L_GCJ=yes
17610       # see comment about different semantics on the GNU ld section
17611       ld_shlibs_GCJ=no
17612       ;;
17613
17614     bsdi[45]*)
17615       export_dynamic_flag_spec_GCJ=-rdynamic
17616       ;;
17617
17618     cygwin* | mingw* | pw32*)
17619       # When not using gcc, we currently assume that we are using
17620       # Microsoft Visual C++.
17621       # hardcode_libdir_flag_spec is actually meaningless, as there is
17622       # no search path for DLLs.
17623       hardcode_libdir_flag_spec_GCJ=' '
17624       allow_undefined_flag_GCJ=unsupported
17625       # Tell ltmain to make .lib files, not .a files.
17626       libext=lib
17627       # Tell ltmain to make .dll files, not .so files.
17628       shrext_cmds=".dll"
17629       # FIXME: Setting linknames here is a bad hack.
17630       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17631       # The linker will automatically build a .lib file if we build a DLL.
17632       old_archive_From_new_cmds_GCJ='true'
17633       # FIXME: Should let the user specify the lib program.
17634       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17635       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17636       enable_shared_with_static_runtimes_GCJ=yes
17637       ;;
17638
17639     darwin* | rhapsody*)
17640       case $host_os in
17641         rhapsody* | darwin1.[012])
17642          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17643          ;;
17644        *) # Darwin 1.3 on
17645          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17646            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17647          else
17648            case ${MACOSX_DEPLOYMENT_TARGET} in
17649              10.[012])
17650                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17651                ;;
17652              10.*)
17653                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17654                ;;
17655            esac
17656          fi
17657          ;;
17658       esac
17659       archive_cmds_need_lc_GCJ=no
17660       hardcode_direct_GCJ=no
17661       hardcode_automatic_GCJ=yes
17662       hardcode_shlibpath_var_GCJ=unsupported
17663       whole_archive_flag_spec_GCJ=''
17664       link_all_deplibs_GCJ=yes
17665     if test "$GCC" = yes ; then
17666         output_verbose_link_cmd='echo'
17667         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17668       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17669       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17670       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17671       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17672     else
17673       case $cc_basename in
17674         xlc*)
17675          output_verbose_link_cmd='echo'
17676          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17677          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17678           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17679          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17680           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17681           ;;
17682        *)
17683          ld_shlibs_GCJ=no
17684           ;;
17685       esac
17686     fi
17687       ;;
17688
17689     dgux*)
17690       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692       hardcode_shlibpath_var_GCJ=no
17693       ;;
17694
17695     freebsd1*)
17696       ld_shlibs_GCJ=no
17697       ;;
17698
17699     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17700     # support.  Future versions do this automatically, but an explicit c++rt0.o
17701     # does not break anything, and helps significantly (at the cost of a little
17702     # extra space).
17703     freebsd2.2*)
17704       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17705       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17706       hardcode_direct_GCJ=yes
17707       hardcode_shlibpath_var_GCJ=no
17708       ;;
17709
17710     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17711     freebsd2*)
17712       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17713       hardcode_direct_GCJ=yes
17714       hardcode_minus_L_GCJ=yes
17715       hardcode_shlibpath_var_GCJ=no
17716       ;;
17717
17718     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17719     freebsd* | dragonfly*)
17720       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17721       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17722       hardcode_direct_GCJ=yes
17723       hardcode_shlibpath_var_GCJ=no
17724       ;;
17725
17726     hpux9*)
17727       if test "$GCC" = yes; then
17728         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17729       else
17730         archive_cmds_GCJ='$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'
17731       fi
17732       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17733       hardcode_libdir_separator_GCJ=:
17734       hardcode_direct_GCJ=yes
17735
17736       # hardcode_minus_L: Not really in the search PATH,
17737       # but as the default location of the library.
17738       hardcode_minus_L_GCJ=yes
17739       export_dynamic_flag_spec_GCJ='${wl}-E'
17740       ;;
17741
17742     hpux10*)
17743       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17744         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17745       else
17746         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17747       fi
17748       if test "$with_gnu_ld" = no; then
17749         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750         hardcode_libdir_separator_GCJ=:
17751
17752         hardcode_direct_GCJ=yes
17753         export_dynamic_flag_spec_GCJ='${wl}-E'
17754
17755         # hardcode_minus_L: Not really in the search PATH,
17756         # but as the default location of the library.
17757         hardcode_minus_L_GCJ=yes
17758       fi
17759       ;;
17760
17761     hpux11*)
17762       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17763         case $host_cpu in
17764         hppa*64*)
17765           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17766           ;;
17767         ia64*)
17768           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17769           ;;
17770         *)
17771           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17772           ;;
17773         esac
17774       else
17775         case $host_cpu in
17776         hppa*64*)
17777           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17778           ;;
17779         ia64*)
17780           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17781           ;;
17782         *)
17783           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17784           ;;
17785         esac
17786       fi
17787       if test "$with_gnu_ld" = no; then
17788         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17789         hardcode_libdir_separator_GCJ=:
17790
17791         case $host_cpu in
17792         hppa*64*|ia64*)
17793           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17794           hardcode_direct_GCJ=no
17795           hardcode_shlibpath_var_GCJ=no
17796           ;;
17797         *)
17798           hardcode_direct_GCJ=yes
17799           export_dynamic_flag_spec_GCJ='${wl}-E'
17800
17801           # hardcode_minus_L: Not really in the search PATH,
17802           # but as the default location of the library.
17803           hardcode_minus_L_GCJ=yes
17804           ;;
17805         esac
17806       fi
17807       ;;
17808
17809     irix5* | irix6* | nonstopux*)
17810       if test "$GCC" = yes; then
17811         archive_cmds_GCJ='$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'
17812       else
17813         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17814         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17815       fi
17816       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17817       hardcode_libdir_separator_GCJ=:
17818       link_all_deplibs_GCJ=yes
17819       ;;
17820
17821     netbsd* | netbsdelf*-gnu)
17822       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17823         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17824       else
17825         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17826       fi
17827       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17828       hardcode_direct_GCJ=yes
17829       hardcode_shlibpath_var_GCJ=no
17830       ;;
17831
17832     newsos6)
17833       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17834       hardcode_direct_GCJ=yes
17835       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17836       hardcode_libdir_separator_GCJ=:
17837       hardcode_shlibpath_var_GCJ=no
17838       ;;
17839
17840     openbsd*)
17841       hardcode_direct_GCJ=yes
17842       hardcode_shlibpath_var_GCJ=no
17843       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17844         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17845         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17846         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17847         export_dynamic_flag_spec_GCJ='${wl}-E'
17848       else
17849        case $host_os in
17850          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17851            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17852            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17853            ;;
17854          *)
17855            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17856            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17857            ;;
17858        esac
17859       fi
17860       ;;
17861
17862     os2*)
17863       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17864       hardcode_minus_L_GCJ=yes
17865       allow_undefined_flag_GCJ=unsupported
17866       archive_cmds_GCJ='$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'
17867       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17868       ;;
17869
17870     osf3*)
17871       if test "$GCC" = yes; then
17872         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17873         archive_cmds_GCJ='$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'
17874       else
17875         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17876         archive_cmds_GCJ='$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'
17877       fi
17878       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17879       hardcode_libdir_separator_GCJ=:
17880       ;;
17881
17882     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17883       if test "$GCC" = yes; then
17884         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17885         archive_cmds_GCJ='$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'
17886         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17887       else
17888         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17889         archive_cmds_GCJ='$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'
17890         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17891         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17892
17893         # Both c and cxx compiler support -rpath directly
17894         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17895       fi
17896       hardcode_libdir_separator_GCJ=:
17897       ;;
17898
17899     solaris*)
17900       no_undefined_flag_GCJ=' -z text'
17901       if test "$GCC" = yes; then
17902         wlarc='${wl}'
17903         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17905           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17906       else
17907         wlarc=''
17908         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17910         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17911       fi
17912       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913       hardcode_shlibpath_var_GCJ=no
17914       case $host_os in
17915       solaris2.[0-5] | solaris2.[0-5].*) ;;
17916       *)
17917         # The compiler driver will combine linker options so we
17918         # cannot just pass the convience library names through
17919         # without $wl, iff we do not link with $LD.
17920         # Luckily, gcc supports the same syntax we need for Sun Studio.
17921         # Supported since Solaris 2.6 (maybe 2.5.1?)
17922         case $wlarc in
17923         '')
17924           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17925         *)
17926           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17927         esac ;;
17928       esac
17929       link_all_deplibs_GCJ=yes
17930       ;;
17931
17932     sunos4*)
17933       if test "x$host_vendor" = xsequent; then
17934         # Use $CC to link under sequent, because it throws in some extra .o
17935         # files that make .init and .fini sections work.
17936         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17937       else
17938         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17939       fi
17940       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17941       hardcode_direct_GCJ=yes
17942       hardcode_minus_L_GCJ=yes
17943       hardcode_shlibpath_var_GCJ=no
17944       ;;
17945
17946     sysv4)
17947       case $host_vendor in
17948         sni)
17949           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950           hardcode_direct_GCJ=yes # is this really true???
17951         ;;
17952         siemens)
17953           ## LD is ld it makes a PLAMLIB
17954           ## CC just makes a GrossModule.
17955           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17956           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17957           hardcode_direct_GCJ=no
17958         ;;
17959         motorola)
17960           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17962         ;;
17963       esac
17964       runpath_var='LD_RUN_PATH'
17965       hardcode_shlibpath_var_GCJ=no
17966       ;;
17967
17968     sysv4.3*)
17969       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970       hardcode_shlibpath_var_GCJ=no
17971       export_dynamic_flag_spec_GCJ='-Bexport'
17972       ;;
17973
17974     sysv4*MP*)
17975       if test -d /usr/nec; then
17976         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977         hardcode_shlibpath_var_GCJ=no
17978         runpath_var=LD_RUN_PATH
17979         hardcode_runpath_var=yes
17980         ld_shlibs_GCJ=yes
17981       fi
17982       ;;
17983
17984     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17985       no_undefined_flag_GCJ='${wl}-z,text'
17986       archive_cmds_need_lc_GCJ=no
17987       hardcode_shlibpath_var_GCJ=no
17988       runpath_var='LD_RUN_PATH'
17989
17990       if test "$GCC" = yes; then
17991         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17992         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17993       else
17994         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17995         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17996       fi
17997       ;;
17998
17999     sysv5* | sco3.2v5* | sco5v6*)
18000       # Note: We can NOT use -z defs as we might desire, because we do not
18001       # link with -lc, and that would cause any symbols used from libc to
18002       # always be unresolved, which means just about no library would
18003       # ever link correctly.  If we're not using GNU ld we use -z text
18004       # though, which does catch some bad symbols but isn't as heavy-handed
18005       # as -z defs.
18006       no_undefined_flag_GCJ='${wl}-z,text'
18007       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18008       archive_cmds_need_lc_GCJ=no
18009       hardcode_shlibpath_var_GCJ=no
18010       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18011       hardcode_libdir_separator_GCJ=':'
18012       link_all_deplibs_GCJ=yes
18013       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18014       runpath_var='LD_RUN_PATH'
18015
18016       if test "$GCC" = yes; then
18017         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18019       else
18020         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18021         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18022       fi
18023       ;;
18024
18025     uts4*)
18026       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028       hardcode_shlibpath_var_GCJ=no
18029       ;;
18030
18031     *)
18032       ld_shlibs_GCJ=no
18033       ;;
18034     esac
18035   fi
18036
18037 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18038 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18039 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18040
18041 #
18042 # Do we need to explicitly link libc?
18043 #
18044 case "x$archive_cmds_need_lc_GCJ" in
18045 x|xyes)
18046   # Assume -lc should be added
18047   archive_cmds_need_lc_GCJ=yes
18048
18049   if test "$enable_shared" = yes && test "$GCC" = yes; then
18050     case $archive_cmds_GCJ in
18051     *'~'*)
18052       # FIXME: we may have to deal with multi-command sequences.
18053       ;;
18054     '$CC '*)
18055       # Test whether the compiler implicitly links with -lc since on some
18056       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18057       # to ld, don't add -lc before -lgcc.
18058       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18060       $rm conftest*
18061       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18062
18063       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064   (eval $ac_compile) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } 2>conftest.err; then
18068         soname=conftest
18069         lib=conftest
18070         libobjs=conftest.$ac_objext
18071         deplibs=
18072         wl=$lt_prog_compiler_wl_GCJ
18073         pic_flag=$lt_prog_compiler_pic_GCJ
18074         compiler_flags=-v
18075         linker_flags=-v
18076         verstring=
18077         output_objdir=.
18078         libname=conftest
18079         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18080         allow_undefined_flag_GCJ=
18081         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18082   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }
18086         then
18087           archive_cmds_need_lc_GCJ=no
18088         else
18089           archive_cmds_need_lc_GCJ=yes
18090         fi
18091         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18092       else
18093         cat conftest.err 1>&5
18094       fi
18095       $rm conftest*
18096       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18097 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18098       ;;
18099     esac
18100   fi
18101   ;;
18102 esac
18103
18104 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18106 library_names_spec=
18107 libname_spec='lib$name'
18108 soname_spec=
18109 shrext_cmds=".so"
18110 postinstall_cmds=
18111 postuninstall_cmds=
18112 finish_cmds=
18113 finish_eval=
18114 shlibpath_var=
18115 shlibpath_overrides_runpath=unknown
18116 version_type=none
18117 dynamic_linker="$host_os ld.so"
18118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18119 if test "$GCC" = yes; then
18120   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18121   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18122     # if the path contains ";" then we assume it to be the separator
18123     # otherwise default to the standard path separator (i.e. ":") - it is
18124     # assumed that no part of a normal pathname contains ";" but that should
18125     # okay in the real world where ";" in dirpaths is itself problematic.
18126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18127   else
18128     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18129   fi
18130 else
18131   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18132 fi
18133 need_lib_prefix=unknown
18134 hardcode_into_libs=no
18135
18136 # when you set need_version to no, make sure it does not cause -set_version
18137 # flags to be left without arguments
18138 need_version=unknown
18139
18140 case $host_os in
18141 aix3*)
18142   version_type=linux
18143   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18144   shlibpath_var=LIBPATH
18145
18146   # AIX 3 has no versioning support, so we append a major version to the name.
18147   soname_spec='${libname}${release}${shared_ext}$major'
18148   ;;
18149
18150 aix4* | aix5*)
18151   version_type=linux
18152   need_lib_prefix=no
18153   need_version=no
18154   hardcode_into_libs=yes
18155   if test "$host_cpu" = ia64; then
18156     # AIX 5 supports IA64
18157     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18158     shlibpath_var=LD_LIBRARY_PATH
18159   else
18160     # With GCC up to 2.95.x, collect2 would create an import file
18161     # for dependence libraries.  The import file would start with
18162     # the line `#! .'.  This would cause the generated library to
18163     # depend on `.', always an invalid library.  This was fixed in
18164     # development snapshots of GCC prior to 3.0.
18165     case $host_os in
18166       aix4 | aix4.[01] | aix4.[01].*)
18167       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18168            echo ' yes '
18169            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18170         :
18171       else
18172         can_build_shared=no
18173       fi
18174       ;;
18175     esac
18176     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18177     # soname into executable. Probably we can add versioning support to
18178     # collect2, so additional links can be useful in future.
18179     if test "$aix_use_runtimelinking" = yes; then
18180       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18181       # instead of lib<name>.a to let people know that these are not
18182       # typical AIX shared libraries.
18183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184     else
18185       # We preserve .a as extension for shared libraries through AIX4.2
18186       # and later when we are not doing run time linking.
18187       library_names_spec='${libname}${release}.a $libname.a'
18188       soname_spec='${libname}${release}${shared_ext}$major'
18189     fi
18190     shlibpath_var=LIBPATH
18191   fi
18192   ;;
18193
18194 amigaos*)
18195   library_names_spec='$libname.ixlibrary $libname.a'
18196   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18197   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'
18198   ;;
18199
18200 beos*)
18201   library_names_spec='${libname}${shared_ext}'
18202   dynamic_linker="$host_os ld.so"
18203   shlibpath_var=LIBRARY_PATH
18204   ;;
18205
18206 bsdi[45]*)
18207   version_type=linux
18208   need_version=no
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210   soname_spec='${libname}${release}${shared_ext}$major'
18211   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18212   shlibpath_var=LD_LIBRARY_PATH
18213   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18214   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18215   # the default ld.so.conf also contains /usr/contrib/lib and
18216   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18217   # libtool to hard-code these into programs
18218   ;;
18219
18220 cygwin* | mingw* | pw32*)
18221   version_type=windows
18222   shrext_cmds=".dll"
18223   need_version=no
18224   need_lib_prefix=no
18225
18226   case $GCC,$host_os in
18227   yes,cygwin* | yes,mingw* | yes,pw32*)
18228     library_names_spec='$libname.dll.a'
18229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18230     postinstall_cmds='base_file=`basename \${file}`~
18231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18232       dldir=$destdir/`dirname \$dlpath`~
18233       test -d \$dldir || mkdir -p \$dldir~
18234       $install_prog $dir/$dlname \$dldir/$dlname~
18235       chmod a+x \$dldir/$dlname'
18236     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18237       dlpath=$dir/\$dldll~
18238        $rm \$dlpath'
18239     shlibpath_overrides_runpath=yes
18240
18241     case $host_os in
18242     cygwin*)
18243       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18244       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18245       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18246       ;;
18247     mingw*)
18248       # MinGW DLLs use traditional 'lib' prefix
18249       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18250       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18251       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18252         # It is most probably a Windows format PATH printed by
18253         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18254         # path with ; separators, and with drive letters. We can handle the
18255         # drive letters (cygwin fileutils understands them), so leave them,
18256         # especially as we might pass files found there to a mingw objdump,
18257         # which wouldn't understand a cygwinified path. Ahh.
18258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18259       else
18260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18261       fi
18262       ;;
18263     pw32*)
18264       # pw32 DLLs use 'pw' prefix rather than 'lib'
18265       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18266       ;;
18267     esac
18268     ;;
18269
18270   *)
18271     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18272     ;;
18273   esac
18274   dynamic_linker='Win32 ld.exe'
18275   # FIXME: first we should search . and the directory the executable is in
18276   shlibpath_var=PATH
18277   ;;
18278
18279 darwin* | rhapsody*)
18280   dynamic_linker="$host_os dyld"
18281   version_type=darwin
18282   need_lib_prefix=no
18283   need_version=no
18284   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18285   soname_spec='${libname}${release}${major}$shared_ext'
18286   shlibpath_overrides_runpath=yes
18287   shlibpath_var=DYLD_LIBRARY_PATH
18288   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18289   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18290   if test "$GCC" = yes; then
18291     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18292   else
18293     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18294   fi
18295   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18296   ;;
18297
18298 dgux*)
18299   version_type=linux
18300   need_lib_prefix=no
18301   need_version=no
18302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18303   soname_spec='${libname}${release}${shared_ext}$major'
18304   shlibpath_var=LD_LIBRARY_PATH
18305   ;;
18306
18307 freebsd1*)
18308   dynamic_linker=no
18309   ;;
18310
18311 freebsd* | dragonfly*)
18312   # DragonFly does not have aout.  When/if they implement a new
18313   # versioning mechanism, adjust this.
18314   if test -x /usr/bin/objformat; then
18315     objformat=`/usr/bin/objformat`
18316   else
18317     case $host_os in
18318     freebsd[123]*) objformat=aout ;;
18319     *) objformat=elf ;;
18320     esac
18321   fi
18322   version_type=freebsd-$objformat
18323   case $version_type in
18324     freebsd-elf*)
18325       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18326       need_version=no
18327       need_lib_prefix=no
18328       ;;
18329     freebsd-*)
18330       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18331       need_version=yes
18332       ;;
18333   esac
18334   shlibpath_var=LD_LIBRARY_PATH
18335   case $host_os in
18336   freebsd2*)
18337     shlibpath_overrides_runpath=yes
18338     ;;
18339   freebsd3.[01]* | freebsdelf3.[01]*)
18340     shlibpath_overrides_runpath=yes
18341     hardcode_into_libs=yes
18342     ;;
18343   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18344   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18345     shlibpath_overrides_runpath=no
18346     hardcode_into_libs=yes
18347     ;;
18348   freebsd*) # from 4.6 on
18349     shlibpath_overrides_runpath=yes
18350     hardcode_into_libs=yes
18351     ;;
18352   esac
18353   ;;
18354
18355 gnu*)
18356   version_type=linux
18357   need_lib_prefix=no
18358   need_version=no
18359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18360   soname_spec='${libname}${release}${shared_ext}$major'
18361   shlibpath_var=LD_LIBRARY_PATH
18362   hardcode_into_libs=yes
18363   ;;
18364
18365 hpux9* | hpux10* | hpux11*)
18366   # Give a soname corresponding to the major version so that dld.sl refuses to
18367   # link against other versions.
18368   version_type=sunos
18369   need_lib_prefix=no
18370   need_version=no
18371   case $host_cpu in
18372   ia64*)
18373     shrext_cmds='.so'
18374     hardcode_into_libs=yes
18375     dynamic_linker="$host_os dld.so"
18376     shlibpath_var=LD_LIBRARY_PATH
18377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379     soname_spec='${libname}${release}${shared_ext}$major'
18380     if test "X$HPUX_IA64_MODE" = X32; then
18381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18382     else
18383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18384     fi
18385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18386     ;;
18387    hppa*64*)
18388      shrext_cmds='.sl'
18389      hardcode_into_libs=yes
18390      dynamic_linker="$host_os dld.sl"
18391      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18392      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394      soname_spec='${libname}${release}${shared_ext}$major'
18395      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18396      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18397      ;;
18398    *)
18399     shrext_cmds='.sl'
18400     dynamic_linker="$host_os dld.sl"
18401     shlibpath_var=SHLIB_PATH
18402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404     soname_spec='${libname}${release}${shared_ext}$major'
18405     ;;
18406   esac
18407   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18408   postinstall_cmds='chmod 555 $lib'
18409   ;;
18410
18411 interix3*)
18412   version_type=linux
18413   need_lib_prefix=no
18414   need_version=no
18415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18416   soname_spec='${libname}${release}${shared_ext}$major'
18417   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18418   shlibpath_var=LD_LIBRARY_PATH
18419   shlibpath_overrides_runpath=no
18420   hardcode_into_libs=yes
18421   ;;
18422
18423 irix5* | irix6* | nonstopux*)
18424   case $host_os in
18425     nonstopux*) version_type=nonstopux ;;
18426     *)
18427         if test "$lt_cv_prog_gnu_ld" = yes; then
18428                 version_type=linux
18429         else
18430                 version_type=irix
18431         fi ;;
18432   esac
18433   need_lib_prefix=no
18434   need_version=no
18435   soname_spec='${libname}${release}${shared_ext}$major'
18436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18437   case $host_os in
18438   irix5* | nonstopux*)
18439     libsuff= shlibsuff=
18440     ;;
18441   *)
18442     case $LD in # libtool.m4 will add one of these switches to LD
18443     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18444       libsuff= shlibsuff= libmagic=32-bit;;
18445     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18446       libsuff=32 shlibsuff=N32 libmagic=N32;;
18447     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18448       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18449     *) libsuff= shlibsuff= libmagic=never-match;;
18450     esac
18451     ;;
18452   esac
18453   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18454   shlibpath_overrides_runpath=no
18455   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18456   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18457   hardcode_into_libs=yes
18458   ;;
18459
18460 # No shared lib support for Linux oldld, aout, or coff.
18461 linux*oldld* | linux*aout* | linux*coff*)
18462   dynamic_linker=no
18463   ;;
18464
18465 # This must be Linux ELF.
18466 linux* | k*bsd*-gnu)
18467   version_type=linux
18468   need_lib_prefix=no
18469   need_version=no
18470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471   soname_spec='${libname}${release}${shared_ext}$major'
18472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18473   shlibpath_var=LD_LIBRARY_PATH
18474   shlibpath_overrides_runpath=no
18475   # This implies no fast_install, which is unacceptable.
18476   # Some rework will be needed to allow for fast_install
18477   # before this can be enabled.
18478   hardcode_into_libs=yes
18479
18480   # Append ld.so.conf contents to the search path
18481   if test -f /etc/ld.so.conf; then
18482     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18483     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18484   fi
18485
18486   # We used to test for /lib/ld.so.1 and disable shared libraries on
18487   # powerpc, because MkLinux only supported shared libraries with the
18488   # GNU dynamic linker.  Since this was broken with cross compilers,
18489   # most powerpc-linux boxes support dynamic linking these days and
18490   # people can always --disable-shared, the test was removed, and we
18491   # assume the GNU/Linux dynamic linker is in use.
18492   dynamic_linker='GNU/Linux ld.so'
18493   ;;
18494
18495 netbsdelf*-gnu)
18496   version_type=linux
18497   need_lib_prefix=no
18498   need_version=no
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500   soname_spec='${libname}${release}${shared_ext}$major'
18501   shlibpath_var=LD_LIBRARY_PATH
18502   shlibpath_overrides_runpath=no
18503   hardcode_into_libs=yes
18504   dynamic_linker='NetBSD ld.elf_so'
18505   ;;
18506
18507 netbsd*)
18508   version_type=sunos
18509   need_lib_prefix=no
18510   need_version=no
18511   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18513     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18514     dynamic_linker='NetBSD (a.out) ld.so'
18515   else
18516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517     soname_spec='${libname}${release}${shared_ext}$major'
18518     dynamic_linker='NetBSD ld.elf_so'
18519   fi
18520   shlibpath_var=LD_LIBRARY_PATH
18521   shlibpath_overrides_runpath=yes
18522   hardcode_into_libs=yes
18523   ;;
18524
18525 newsos6)
18526   version_type=linux
18527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18528   shlibpath_var=LD_LIBRARY_PATH
18529   shlibpath_overrides_runpath=yes
18530   ;;
18531
18532 nto-qnx*)
18533   version_type=linux
18534   need_lib_prefix=no
18535   need_version=no
18536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537   soname_spec='${libname}${release}${shared_ext}$major'
18538   shlibpath_var=LD_LIBRARY_PATH
18539   shlibpath_overrides_runpath=yes
18540   ;;
18541
18542 openbsd*)
18543   version_type=sunos
18544   sys_lib_dlsearch_path_spec="/usr/lib"
18545   need_lib_prefix=no
18546   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18547   case $host_os in
18548     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18549     *)                         need_version=no  ;;
18550   esac
18551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18553   shlibpath_var=LD_LIBRARY_PATH
18554   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18555     case $host_os in
18556       openbsd2.[89] | openbsd2.[89].*)
18557         shlibpath_overrides_runpath=no
18558         ;;
18559       *)
18560         shlibpath_overrides_runpath=yes
18561         ;;
18562       esac
18563   else
18564     shlibpath_overrides_runpath=yes
18565   fi
18566   ;;
18567
18568 os2*)
18569   libname_spec='$name'
18570   shrext_cmds=".dll"
18571   need_lib_prefix=no
18572   library_names_spec='$libname${shared_ext} $libname.a'
18573   dynamic_linker='OS/2 ld.exe'
18574   shlibpath_var=LIBPATH
18575   ;;
18576
18577 osf3* | osf4* | osf5*)
18578   version_type=osf
18579   need_lib_prefix=no
18580   need_version=no
18581   soname_spec='${libname}${release}${shared_ext}$major'
18582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583   shlibpath_var=LD_LIBRARY_PATH
18584   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18585   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18586   ;;
18587
18588 solaris*)
18589   version_type=linux
18590   need_lib_prefix=no
18591   need_version=no
18592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593   soname_spec='${libname}${release}${shared_ext}$major'
18594   shlibpath_var=LD_LIBRARY_PATH
18595   shlibpath_overrides_runpath=yes
18596   hardcode_into_libs=yes
18597   # ldd complains unless libraries are executable
18598   postinstall_cmds='chmod +x $lib'
18599   ;;
18600
18601 sunos4*)
18602   version_type=sunos
18603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18605   shlibpath_var=LD_LIBRARY_PATH
18606   shlibpath_overrides_runpath=yes
18607   if test "$with_gnu_ld" = yes; then
18608     need_lib_prefix=no
18609   fi
18610   need_version=yes
18611   ;;
18612
18613 sysv4 | sysv4.3*)
18614   version_type=linux
18615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616   soname_spec='${libname}${release}${shared_ext}$major'
18617   shlibpath_var=LD_LIBRARY_PATH
18618   case $host_vendor in
18619     sni)
18620       shlibpath_overrides_runpath=no
18621       need_lib_prefix=no
18622       export_dynamic_flag_spec='${wl}-Blargedynsym'
18623       runpath_var=LD_RUN_PATH
18624       ;;
18625     siemens)
18626       need_lib_prefix=no
18627       ;;
18628     motorola)
18629       need_lib_prefix=no
18630       need_version=no
18631       shlibpath_overrides_runpath=no
18632       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18633       ;;
18634   esac
18635   ;;
18636
18637 sysv4*MP*)
18638   if test -d /usr/nec ;then
18639     version_type=linux
18640     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18641     soname_spec='$libname${shared_ext}.$major'
18642     shlibpath_var=LD_LIBRARY_PATH
18643   fi
18644   ;;
18645
18646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18647   version_type=freebsd-elf
18648   need_lib_prefix=no
18649   need_version=no
18650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18651   soname_spec='${libname}${release}${shared_ext}$major'
18652   shlibpath_var=LD_LIBRARY_PATH
18653   hardcode_into_libs=yes
18654   if test "$with_gnu_ld" = yes; then
18655     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18656     shlibpath_overrides_runpath=no
18657   else
18658     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18659     shlibpath_overrides_runpath=yes
18660     case $host_os in
18661       sco3.2v5*)
18662         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18663         ;;
18664     esac
18665   fi
18666   sys_lib_dlsearch_path_spec='/usr/lib'
18667   ;;
18668
18669 uts4*)
18670   version_type=linux
18671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672   soname_spec='${libname}${release}${shared_ext}$major'
18673   shlibpath_var=LD_LIBRARY_PATH
18674   ;;
18675
18676 *)
18677   dynamic_linker=no
18678   ;;
18679 esac
18680 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18681 echo "${ECHO_T}$dynamic_linker" >&6
18682 test "$dynamic_linker" = no && can_build_shared=no
18683
18684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18685 if test "$GCC" = yes; then
18686   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18687 fi
18688
18689 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18690 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18691 hardcode_action_GCJ=
18692 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18693    test -n "$runpath_var_GCJ" || \
18694    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18695
18696   # We can hardcode non-existant directories.
18697   if test "$hardcode_direct_GCJ" != no &&
18698      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18699      # have to relink, otherwise we might link with an installed library
18700      # when we should be linking with a yet-to-be-installed one
18701      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18702      test "$hardcode_minus_L_GCJ" != no; then
18703     # Linking always hardcodes the temporary library directory.
18704     hardcode_action_GCJ=relink
18705   else
18706     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18707     hardcode_action_GCJ=immediate
18708   fi
18709 else
18710   # We cannot hardcode anything, or else we can only hardcode existing
18711   # directories.
18712   hardcode_action_GCJ=unsupported
18713 fi
18714 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18715 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18716
18717 if test "$hardcode_action_GCJ" = relink; then
18718   # Fast installation is not supported
18719   enable_fast_install=no
18720 elif test "$shlibpath_overrides_runpath" = yes ||
18721      test "$enable_shared" = no; then
18722   # Fast installation is not necessary
18723   enable_fast_install=needless
18724 fi
18725
18726
18727 # The else clause should only fire when bootstrapping the
18728 # libtool distribution, otherwise you forgot to ship ltmain.sh
18729 # with your package, and you will get complaints that there are
18730 # no rules to generate ltmain.sh.
18731 if test -f "$ltmain"; then
18732   # See if we are running on zsh, and set the options which allow our commands through
18733   # without removal of \ escapes.
18734   if test -n "${ZSH_VERSION+set}" ; then
18735     setopt NO_GLOB_SUBST
18736   fi
18737   # Now quote all the things that may contain metacharacters while being
18738   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18739   # variables and quote the copies for generation of the libtool script.
18740   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18741     SED SHELL STRIP \
18742     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744     deplibs_check_method reload_flag reload_cmds need_locks \
18745     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746     lt_cv_sys_global_symbol_to_c_name_address \
18747     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748     old_postinstall_cmds old_postuninstall_cmds \
18749     compiler_GCJ \
18750     CC_GCJ \
18751     LD_GCJ \
18752     lt_prog_compiler_wl_GCJ \
18753     lt_prog_compiler_pic_GCJ \
18754     lt_prog_compiler_static_GCJ \
18755     lt_prog_compiler_no_builtin_flag_GCJ \
18756     export_dynamic_flag_spec_GCJ \
18757     thread_safe_flag_spec_GCJ \
18758     whole_archive_flag_spec_GCJ \
18759     enable_shared_with_static_runtimes_GCJ \
18760     old_archive_cmds_GCJ \
18761     old_archive_from_new_cmds_GCJ \
18762     predep_objects_GCJ \
18763     postdep_objects_GCJ \
18764     predeps_GCJ \
18765     postdeps_GCJ \
18766     compiler_lib_search_path_GCJ \
18767     archive_cmds_GCJ \
18768     archive_expsym_cmds_GCJ \
18769     postinstall_cmds_GCJ \
18770     postuninstall_cmds_GCJ \
18771     old_archive_from_expsyms_cmds_GCJ \
18772     allow_undefined_flag_GCJ \
18773     no_undefined_flag_GCJ \
18774     export_symbols_cmds_GCJ \
18775     hardcode_libdir_flag_spec_GCJ \
18776     hardcode_libdir_flag_spec_ld_GCJ \
18777     hardcode_libdir_separator_GCJ \
18778     hardcode_automatic_GCJ \
18779     module_cmds_GCJ \
18780     module_expsym_cmds_GCJ \
18781     lt_cv_prog_compiler_c_o_GCJ \
18782     exclude_expsyms_GCJ \
18783     include_expsyms_GCJ; do
18784
18785     case $var in
18786     old_archive_cmds_GCJ | \
18787     old_archive_from_new_cmds_GCJ | \
18788     archive_cmds_GCJ | \
18789     archive_expsym_cmds_GCJ | \
18790     module_cmds_GCJ | \
18791     module_expsym_cmds_GCJ | \
18792     old_archive_from_expsyms_cmds_GCJ | \
18793     export_symbols_cmds_GCJ | \
18794     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795     postinstall_cmds | postuninstall_cmds | \
18796     old_postinstall_cmds | old_postuninstall_cmds | \
18797     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798       # Double-quote double-evaled strings.
18799       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18800       ;;
18801     *)
18802       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18803       ;;
18804     esac
18805   done
18806
18807   case $lt_echo in
18808   *'\$0 --fallback-echo"')
18809     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18810     ;;
18811   esac
18812
18813 cfgfile="$ofile"
18814
18815   cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18817
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18819
18820 # Shell to use when invoking shell scripts.
18821 SHELL=$lt_SHELL
18822
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18825
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18828
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18831
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18834
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18837
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18841 host_os=$host_os
18842
18843 # The build system.
18844 build_alias=$build_alias
18845 build=$build
18846 build_os=$build_os
18847
18848 # An echo program that does not interpret backslashes.
18849 echo=$lt_echo
18850
18851 # The archiver.
18852 AR=$lt_AR
18853 AR_FLAGS=$lt_AR_FLAGS
18854
18855 # A C compiler.
18856 LTCC=$lt_LTCC
18857
18858 # LTCC compiler flags.
18859 LTCFLAGS=$lt_LTCFLAGS
18860
18861 # A language-specific compiler.
18862 CC=$lt_compiler_GCJ
18863
18864 # Is the compiler the GNU C compiler?
18865 with_gcc=$GCC_GCJ
18866
18867 # An ERE matcher.
18868 EGREP=$lt_EGREP
18869
18870 # The linker used to build libraries.
18871 LD=$lt_LD_GCJ
18872
18873 # Whether we need hard or soft links.
18874 LN_S=$lt_LN_S
18875
18876 # A BSD-compatible nm program.
18877 NM=$lt_NM
18878
18879 # A symbol stripping program
18880 STRIP=$lt_STRIP
18881
18882 # Used to examine libraries when file_magic_cmd begins "file"
18883 MAGIC_CMD=$MAGIC_CMD
18884
18885 # Used on cygwin: DLL creation program.
18886 DLLTOOL="$DLLTOOL"
18887
18888 # Used on cygwin: object dumper.
18889 OBJDUMP="$OBJDUMP"
18890
18891 # Used on cygwin: assembler.
18892 AS="$AS"
18893
18894 # The name of the directory that contains temporary libtool files.
18895 objdir=$objdir
18896
18897 # How to create reloadable object files.
18898 reload_flag=$lt_reload_flag
18899 reload_cmds=$lt_reload_cmds
18900
18901 # How to pass a linker flag through the compiler.
18902 wl=$lt_lt_prog_compiler_wl_GCJ
18903
18904 # Object file suffix (normally "o").
18905 objext="$ac_objext"
18906
18907 # Old archive suffix (normally "a").
18908 libext="$libext"
18909
18910 # Shared library suffix (normally ".so").
18911 shrext_cmds='$shrext_cmds'
18912
18913 # Executable file suffix (normally "").
18914 exeext="$exeext"
18915
18916 # Additional compiler flags for building library objects.
18917 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18918 pic_mode=$pic_mode
18919
18920 # What is the maximum length of a command?
18921 max_cmd_len=$lt_cv_sys_max_cmd_len
18922
18923 # Does compiler simultaneously support -c and -o options?
18924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18925
18926 # Must we lock files when doing compilation?
18927 need_locks=$lt_need_locks
18928
18929 # Do we need the lib prefix for modules?
18930 need_lib_prefix=$need_lib_prefix
18931
18932 # Do we need a version for libraries?
18933 need_version=$need_version
18934
18935 # Whether dlopen is supported.
18936 dlopen_support=$enable_dlopen
18937
18938 # Whether dlopen of programs is supported.
18939 dlopen_self=$enable_dlopen_self
18940
18941 # Whether dlopen of statically linked programs is supported.
18942 dlopen_self_static=$enable_dlopen_self_static
18943
18944 # Compiler flag to prevent dynamic linking.
18945 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18946
18947 # Compiler flag to turn off builtin functions.
18948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18949
18950 # Compiler flag to allow reflexive dlopens.
18951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18952
18953 # Compiler flag to generate shared objects directly from archives.
18954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18955
18956 # Compiler flag to generate thread-safe objects.
18957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18958
18959 # Library versioning type.
18960 version_type=$version_type
18961
18962 # Format of library name prefix.
18963 libname_spec=$lt_libname_spec
18964
18965 # List of archive names.  First name is the real one, the rest are links.
18966 # The last name is the one that the linker finds with -lNAME.
18967 library_names_spec=$lt_library_names_spec
18968
18969 # The coded name of the library, if different from the real name.
18970 soname_spec=$lt_soname_spec
18971
18972 # Commands used to build and install an old-style archive.
18973 RANLIB=$lt_RANLIB
18974 old_archive_cmds=$lt_old_archive_cmds_GCJ
18975 old_postinstall_cmds=$lt_old_postinstall_cmds
18976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18977
18978 # Create an old-style archive from a shared archive.
18979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18980
18981 # Create a temporary old-style archive to link instead of a shared archive.
18982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18983
18984 # Commands used to build and install a shared archive.
18985 archive_cmds=$lt_archive_cmds_GCJ
18986 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18987 postinstall_cmds=$lt_postinstall_cmds
18988 postuninstall_cmds=$lt_postuninstall_cmds
18989
18990 # Commands used to build a loadable module (assumed same as above if empty)
18991 module_cmds=$lt_module_cmds_GCJ
18992 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18993
18994 # Commands to strip libraries.
18995 old_striplib=$lt_old_striplib
18996 striplib=$lt_striplib
18997
18998 # Dependencies to place before the objects being linked to create a
18999 # shared library.
19000 predep_objects=$lt_predep_objects_GCJ
19001
19002 # Dependencies to place after the objects being linked to create a
19003 # shared library.
19004 postdep_objects=$lt_postdep_objects_GCJ
19005
19006 # Dependencies to place before the objects being linked to create a
19007 # shared library.
19008 predeps=$lt_predeps_GCJ
19009
19010 # Dependencies to place after the objects being linked to create a
19011 # shared library.
19012 postdeps=$lt_postdeps_GCJ
19013
19014 # The library search path used internally by the compiler when linking
19015 # a shared library.
19016 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19017
19018 # Method to check whether dependent libraries are shared objects.
19019 deplibs_check_method=$lt_deplibs_check_method
19020
19021 # Command to use when deplibs_check_method == file_magic.
19022 file_magic_cmd=$lt_file_magic_cmd
19023
19024 # Flag that allows shared libraries with undefined symbols to be built.
19025 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19026
19027 # Flag that forces no undefined symbols.
19028 no_undefined_flag=$lt_no_undefined_flag_GCJ
19029
19030 # Commands used to finish a libtool library installation in a directory.
19031 finish_cmds=$lt_finish_cmds
19032
19033 # Same as above, but a single script fragment to be evaled but not shown.
19034 finish_eval=$lt_finish_eval
19035
19036 # Take the output of nm and produce a listing of raw symbols and C names.
19037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19038
19039 # Transform the output of nm in a proper C declaration
19040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19041
19042 # Transform the output of nm in a C name address pair
19043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19044
19045 # This is the shared library runtime path variable.
19046 runpath_var=$runpath_var
19047
19048 # This is the shared library path variable.
19049 shlibpath_var=$shlibpath_var
19050
19051 # Is shlibpath searched before the hard-coded library search path?
19052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19053
19054 # How to hardcode a shared library path into an executable.
19055 hardcode_action=$hardcode_action_GCJ
19056
19057 # Whether we should hardcode library paths into libraries.
19058 hardcode_into_libs=$hardcode_into_libs
19059
19060 # Flag to hardcode \$libdir into a binary during linking.
19061 # This must work even if \$libdir does not exist.
19062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19063
19064 # If ld is used when linking, flag to hardcode \$libdir into
19065 # a binary during linking. This must work even if \$libdir does
19066 # not exist.
19067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19068
19069 # Whether we need a single -rpath flag with a separated argument.
19070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19071
19072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19073 # resulting binary.
19074 hardcode_direct=$hardcode_direct_GCJ
19075
19076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19077 # resulting binary.
19078 hardcode_minus_L=$hardcode_minus_L_GCJ
19079
19080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19081 # the resulting binary.
19082 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19083
19084 # Set to yes if building a shared library automatically hardcodes DIR into the library
19085 # and all subsequent libraries and executables linked against it.
19086 hardcode_automatic=$hardcode_automatic_GCJ
19087
19088 # Variables whose values should be saved in libtool wrapper scripts and
19089 # restored at relink time.
19090 variables_saved_for_relink="$variables_saved_for_relink"
19091
19092 # Whether libtool must link a program against all its dependency libraries.
19093 link_all_deplibs=$link_all_deplibs_GCJ
19094
19095 # Compile-time system search path for libraries
19096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19097
19098 # Run-time system search path for libraries
19099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19100
19101 # Fix the shell variable \$srcfile for the compiler.
19102 fix_srcfile_path="$fix_srcfile_path_GCJ"
19103
19104 # Set to yes if exported symbols are required.
19105 always_export_symbols=$always_export_symbols_GCJ
19106
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19109
19110 # The commands to extract the exported symbol list from a shared archive.
19111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19112
19113 # Symbols that should not be listed in the preloaded symbols.
19114 exclude_expsyms=$lt_exclude_expsyms_GCJ
19115
19116 # Symbols that must always be exported.
19117 include_expsyms=$lt_include_expsyms_GCJ
19118
19119 # ### END LIBTOOL TAG CONFIG: $tagname
19120
19121 __EOF__
19122
19123
19124 else
19125   # If there is no Makefile yet, we rely on a make rule to execute
19126   # `config.status --recheck' to rerun these tests and create the
19127   # libtool script then.
19128   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19129   if test -f "$ltmain_in"; then
19130     test -f Makefile && make "$ltmain"
19131   fi
19132 fi
19133
19134
19135 ac_ext=c
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141 CC="$lt_save_CC"
19142
19143         else
19144           tagname=""
19145         fi
19146         ;;
19147
19148       RC)
19149
19150
19151
19152 # Source file extension for RC test sources.
19153 ac_ext=rc
19154
19155 # Object file extension for compiled RC test sources.
19156 objext=o
19157 objext_RC=$objext
19158
19159 # Code to be used in simple compile tests
19160 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19161
19162 # Code to be used in simple link tests
19163 lt_simple_link_test_code="$lt_simple_compile_test_code"
19164
19165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19166
19167 # If no C compiler was specified, use CC.
19168 LTCC=${LTCC-"$CC"}
19169
19170 # If no C compiler flags were specified, use CFLAGS.
19171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19172
19173 # Allow CC to be a program name with arguments.
19174 compiler=$CC
19175
19176
19177 # save warnings/boilerplate of simple test code
19178 ac_outfile=conftest.$ac_objext
19179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19181 _lt_compiler_boilerplate=`cat conftest.err`
19182 $rm conftest*
19183
19184 ac_outfile=conftest.$ac_objext
19185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187 _lt_linker_boilerplate=`cat conftest.err`
19188 $rm conftest*
19189
19190
19191 # Allow CC to be a program name with arguments.
19192 lt_save_CC="$CC"
19193 CC=${RC-"windres"}
19194 compiler=$CC
19195 compiler_RC=$CC
19196 for cc_temp in $compiler""; do
19197   case $cc_temp in
19198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19200     \-*) ;;
19201     *) break;;
19202   esac
19203 done
19204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19205
19206 lt_cv_prog_compiler_c_o_RC=yes
19207
19208 # The else clause should only fire when bootstrapping the
19209 # libtool distribution, otherwise you forgot to ship ltmain.sh
19210 # with your package, and you will get complaints that there are
19211 # no rules to generate ltmain.sh.
19212 if test -f "$ltmain"; then
19213   # See if we are running on zsh, and set the options which allow our commands through
19214   # without removal of \ escapes.
19215   if test -n "${ZSH_VERSION+set}" ; then
19216     setopt NO_GLOB_SUBST
19217   fi
19218   # Now quote all the things that may contain metacharacters while being
19219   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19220   # variables and quote the copies for generation of the libtool script.
19221   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19222     SED SHELL STRIP \
19223     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19224     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19225     deplibs_check_method reload_flag reload_cmds need_locks \
19226     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19227     lt_cv_sys_global_symbol_to_c_name_address \
19228     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19229     old_postinstall_cmds old_postuninstall_cmds \
19230     compiler_RC \
19231     CC_RC \
19232     LD_RC \
19233     lt_prog_compiler_wl_RC \
19234     lt_prog_compiler_pic_RC \
19235     lt_prog_compiler_static_RC \
19236     lt_prog_compiler_no_builtin_flag_RC \
19237     export_dynamic_flag_spec_RC \
19238     thread_safe_flag_spec_RC \
19239     whole_archive_flag_spec_RC \
19240     enable_shared_with_static_runtimes_RC \
19241     old_archive_cmds_RC \
19242     old_archive_from_new_cmds_RC \
19243     predep_objects_RC \
19244     postdep_objects_RC \
19245     predeps_RC \
19246     postdeps_RC \
19247     compiler_lib_search_path_RC \
19248     archive_cmds_RC \
19249     archive_expsym_cmds_RC \
19250     postinstall_cmds_RC \
19251     postuninstall_cmds_RC \
19252     old_archive_from_expsyms_cmds_RC \
19253     allow_undefined_flag_RC \
19254     no_undefined_flag_RC \
19255     export_symbols_cmds_RC \
19256     hardcode_libdir_flag_spec_RC \
19257     hardcode_libdir_flag_spec_ld_RC \
19258     hardcode_libdir_separator_RC \
19259     hardcode_automatic_RC \
19260     module_cmds_RC \
19261     module_expsym_cmds_RC \
19262     lt_cv_prog_compiler_c_o_RC \
19263     exclude_expsyms_RC \
19264     include_expsyms_RC; do
19265
19266     case $var in
19267     old_archive_cmds_RC | \
19268     old_archive_from_new_cmds_RC | \
19269     archive_cmds_RC | \
19270     archive_expsym_cmds_RC | \
19271     module_cmds_RC | \
19272     module_expsym_cmds_RC | \
19273     old_archive_from_expsyms_cmds_RC | \
19274     export_symbols_cmds_RC | \
19275     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19276     postinstall_cmds | postuninstall_cmds | \
19277     old_postinstall_cmds | old_postuninstall_cmds | \
19278     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19279       # Double-quote double-evaled strings.
19280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19281       ;;
19282     *)
19283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19284       ;;
19285     esac
19286   done
19287
19288   case $lt_echo in
19289   *'\$0 --fallback-echo"')
19290     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19291     ;;
19292   esac
19293
19294 cfgfile="$ofile"
19295
19296   cat <<__EOF__ >> "$cfgfile"
19297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19298
19299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19300
19301 # Shell to use when invoking shell scripts.
19302 SHELL=$lt_SHELL
19303
19304 # Whether or not to build shared libraries.
19305 build_libtool_libs=$enable_shared
19306
19307 # Whether or not to build static libraries.
19308 build_old_libs=$enable_static
19309
19310 # Whether or not to add -lc for building shared libraries.
19311 build_libtool_need_lc=$archive_cmds_need_lc_RC
19312
19313 # Whether or not to disallow shared libs when runtime libs are static
19314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19315
19316 # Whether or not to optimize for fast installation.
19317 fast_install=$enable_fast_install
19318
19319 # The host system.
19320 host_alias=$host_alias
19321 host=$host
19322 host_os=$host_os
19323
19324 # The build system.
19325 build_alias=$build_alias
19326 build=$build
19327 build_os=$build_os
19328
19329 # An echo program that does not interpret backslashes.
19330 echo=$lt_echo
19331
19332 # The archiver.
19333 AR=$lt_AR
19334 AR_FLAGS=$lt_AR_FLAGS
19335
19336 # A C compiler.
19337 LTCC=$lt_LTCC
19338
19339 # LTCC compiler flags.
19340 LTCFLAGS=$lt_LTCFLAGS
19341
19342 # A language-specific compiler.
19343 CC=$lt_compiler_RC
19344
19345 # Is the compiler the GNU C compiler?
19346 with_gcc=$GCC_RC
19347
19348 # An ERE matcher.
19349 EGREP=$lt_EGREP
19350
19351 # The linker used to build libraries.
19352 LD=$lt_LD_RC
19353
19354 # Whether we need hard or soft links.
19355 LN_S=$lt_LN_S
19356
19357 # A BSD-compatible nm program.
19358 NM=$lt_NM
19359
19360 # A symbol stripping program
19361 STRIP=$lt_STRIP
19362
19363 # Used to examine libraries when file_magic_cmd begins "file"
19364 MAGIC_CMD=$MAGIC_CMD
19365
19366 # Used on cygwin: DLL creation program.
19367 DLLTOOL="$DLLTOOL"
19368
19369 # Used on cygwin: object dumper.
19370 OBJDUMP="$OBJDUMP"
19371
19372 # Used on cygwin: assembler.
19373 AS="$AS"
19374
19375 # The name of the directory that contains temporary libtool files.
19376 objdir=$objdir
19377
19378 # How to create reloadable object files.
19379 reload_flag=$lt_reload_flag
19380 reload_cmds=$lt_reload_cmds
19381
19382 # How to pass a linker flag through the compiler.
19383 wl=$lt_lt_prog_compiler_wl_RC
19384
19385 # Object file suffix (normally "o").
19386 objext="$ac_objext"
19387
19388 # Old archive suffix (normally "a").
19389 libext="$libext"
19390
19391 # Shared library suffix (normally ".so").
19392 shrext_cmds='$shrext_cmds'
19393
19394 # Executable file suffix (normally "").
19395 exeext="$exeext"
19396
19397 # Additional compiler flags for building library objects.
19398 pic_flag=$lt_lt_prog_compiler_pic_RC
19399 pic_mode=$pic_mode
19400
19401 # What is the maximum length of a command?
19402 max_cmd_len=$lt_cv_sys_max_cmd_len
19403
19404 # Does compiler simultaneously support -c and -o options?
19405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19406
19407 # Must we lock files when doing compilation?
19408 need_locks=$lt_need_locks
19409
19410 # Do we need the lib prefix for modules?
19411 need_lib_prefix=$need_lib_prefix
19412
19413 # Do we need a version for libraries?
19414 need_version=$need_version
19415
19416 # Whether dlopen is supported.
19417 dlopen_support=$enable_dlopen
19418
19419 # Whether dlopen of programs is supported.
19420 dlopen_self=$enable_dlopen_self
19421
19422 # Whether dlopen of statically linked programs is supported.
19423 dlopen_self_static=$enable_dlopen_self_static
19424
19425 # Compiler flag to prevent dynamic linking.
19426 link_static_flag=$lt_lt_prog_compiler_static_RC
19427
19428 # Compiler flag to turn off builtin functions.
19429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19430
19431 # Compiler flag to allow reflexive dlopens.
19432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19433
19434 # Compiler flag to generate shared objects directly from archives.
19435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19436
19437 # Compiler flag to generate thread-safe objects.
19438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19439
19440 # Library versioning type.
19441 version_type=$version_type
19442
19443 # Format of library name prefix.
19444 libname_spec=$lt_libname_spec
19445
19446 # List of archive names.  First name is the real one, the rest are links.
19447 # The last name is the one that the linker finds with -lNAME.
19448 library_names_spec=$lt_library_names_spec
19449
19450 # The coded name of the library, if different from the real name.
19451 soname_spec=$lt_soname_spec
19452
19453 # Commands used to build and install an old-style archive.
19454 RANLIB=$lt_RANLIB
19455 old_archive_cmds=$lt_old_archive_cmds_RC
19456 old_postinstall_cmds=$lt_old_postinstall_cmds
19457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19458
19459 # Create an old-style archive from a shared archive.
19460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19461
19462 # Create a temporary old-style archive to link instead of a shared archive.
19463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19464
19465 # Commands used to build and install a shared archive.
19466 archive_cmds=$lt_archive_cmds_RC
19467 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19468 postinstall_cmds=$lt_postinstall_cmds
19469 postuninstall_cmds=$lt_postuninstall_cmds
19470
19471 # Commands used to build a loadable module (assumed same as above if empty)
19472 module_cmds=$lt_module_cmds_RC
19473 module_expsym_cmds=$lt_module_expsym_cmds_RC
19474
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19478
19479 # Dependencies to place before the objects being linked to create a
19480 # shared library.
19481 predep_objects=$lt_predep_objects_RC
19482
19483 # Dependencies to place after the objects being linked to create a
19484 # shared library.
19485 postdep_objects=$lt_postdep_objects_RC
19486
19487 # Dependencies to place before the objects being linked to create a
19488 # shared library.
19489 predeps=$lt_predeps_RC
19490
19491 # Dependencies to place after the objects being linked to create a
19492 # shared library.
19493 postdeps=$lt_postdeps_RC
19494
19495 # The library search path used internally by the compiler when linking
19496 # a shared library.
19497 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19498
19499 # Method to check whether dependent libraries are shared objects.
19500 deplibs_check_method=$lt_deplibs_check_method
19501
19502 # Command to use when deplibs_check_method == file_magic.
19503 file_magic_cmd=$lt_file_magic_cmd
19504
19505 # Flag that allows shared libraries with undefined symbols to be built.
19506 allow_undefined_flag=$lt_allow_undefined_flag_RC
19507
19508 # Flag that forces no undefined symbols.
19509 no_undefined_flag=$lt_no_undefined_flag_RC
19510
19511 # Commands used to finish a libtool library installation in a directory.
19512 finish_cmds=$lt_finish_cmds
19513
19514 # Same as above, but a single script fragment to be evaled but not shown.
19515 finish_eval=$lt_finish_eval
19516
19517 # Take the output of nm and produce a listing of raw symbols and C names.
19518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19519
19520 # Transform the output of nm in a proper C declaration
19521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19522
19523 # Transform the output of nm in a C name address pair
19524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19525
19526 # This is the shared library runtime path variable.
19527 runpath_var=$runpath_var
19528
19529 # This is the shared library path variable.
19530 shlibpath_var=$shlibpath_var
19531
19532 # Is shlibpath searched before the hard-coded library search path?
19533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19534
19535 # How to hardcode a shared library path into an executable.
19536 hardcode_action=$hardcode_action_RC
19537
19538 # Whether we should hardcode library paths into libraries.
19539 hardcode_into_libs=$hardcode_into_libs
19540
19541 # Flag to hardcode \$libdir into a binary during linking.
19542 # This must work even if \$libdir does not exist.
19543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19544
19545 # If ld is used when linking, flag to hardcode \$libdir into
19546 # a binary during linking. This must work even if \$libdir does
19547 # not exist.
19548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19549
19550 # Whether we need a single -rpath flag with a separated argument.
19551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19552
19553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_direct=$hardcode_direct_RC
19556
19557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19558 # resulting binary.
19559 hardcode_minus_L=$hardcode_minus_L_RC
19560
19561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19562 # the resulting binary.
19563 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19564
19565 # Set to yes if building a shared library automatically hardcodes DIR into the library
19566 # and all subsequent libraries and executables linked against it.
19567 hardcode_automatic=$hardcode_automatic_RC
19568
19569 # Variables whose values should be saved in libtool wrapper scripts and
19570 # restored at relink time.
19571 variables_saved_for_relink="$variables_saved_for_relink"
19572
19573 # Whether libtool must link a program against all its dependency libraries.
19574 link_all_deplibs=$link_all_deplibs_RC
19575
19576 # Compile-time system search path for libraries
19577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19578
19579 # Run-time system search path for libraries
19580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19581
19582 # Fix the shell variable \$srcfile for the compiler.
19583 fix_srcfile_path="$fix_srcfile_path_RC"
19584
19585 # Set to yes if exported symbols are required.
19586 always_export_symbols=$always_export_symbols_RC
19587
19588 # The commands to list exported symbols.
19589 export_symbols_cmds=$lt_export_symbols_cmds_RC
19590
19591 # The commands to extract the exported symbol list from a shared archive.
19592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19593
19594 # Symbols that should not be listed in the preloaded symbols.
19595 exclude_expsyms=$lt_exclude_expsyms_RC
19596
19597 # Symbols that must always be exported.
19598 include_expsyms=$lt_include_expsyms_RC
19599
19600 # ### END LIBTOOL TAG CONFIG: $tagname
19601
19602 __EOF__
19603
19604
19605 else
19606   # If there is no Makefile yet, we rely on a make rule to execute
19607   # `config.status --recheck' to rerun these tests and create the
19608   # libtool script then.
19609   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19610   if test -f "$ltmain_in"; then
19611     test -f Makefile && make "$ltmain"
19612   fi
19613 fi
19614
19615
19616 ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622 CC="$lt_save_CC"
19623
19624         ;;
19625
19626       *)
19627         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19628 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19629    { (exit 1); exit 1; }; }
19630         ;;
19631       esac
19632
19633       # Append the new tag name to the list of available tags.
19634       if test -n "$tagname" ; then
19635       available_tags="$available_tags $tagname"
19636     fi
19637     fi
19638   done
19639   IFS="$lt_save_ifs"
19640
19641   # Now substitute the updated list of available tags.
19642   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19643     mv "${ofile}T" "$ofile"
19644     chmod +x "$ofile"
19645   else
19646     rm -f "${ofile}T"
19647     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19648 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19649    { (exit 1); exit 1; }; }
19650   fi
19651 fi
19652
19653
19654
19655 # This can be used to rebuild libtool when needed
19656 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19657
19658 # Always use our own libtool.
19659 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19660
19661 # Prevent multiple expansion
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683 if test "x$cross_compiling" = "xno"; then
19684         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19685 else
19686         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19687 fi
19688
19689
19690
19691 if test -n "$ac_tool_prefix"; then
19692   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19693 set dummy ${ac_tool_prefix}ar; ac_word=$2
19694 echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19696 if test "${ac_cv_prog_AR+set}" = set; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   if test -n "$AR"; then
19700   ac_cv_prog_AR="$AR" # Let the user override the test.
19701 else
19702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703 for as_dir in $PATH
19704 do
19705   IFS=$as_save_IFS
19706   test -z "$as_dir" && as_dir=.
19707   for ac_exec_ext in '' $ac_executable_extensions; do
19708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19709     ac_cv_prog_AR="${ac_tool_prefix}ar"
19710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19711     break 2
19712   fi
19713 done
19714 done
19715
19716 fi
19717 fi
19718 AR=$ac_cv_prog_AR
19719 if test -n "$AR"; then
19720   echo "$as_me:$LINENO: result: $AR" >&5
19721 echo "${ECHO_T}$AR" >&6
19722 else
19723   echo "$as_me:$LINENO: result: no" >&5
19724 echo "${ECHO_T}no" >&6
19725 fi
19726
19727 fi
19728 if test -z "$ac_cv_prog_AR"; then
19729   ac_ct_AR=$AR
19730   # Extract the first word of "ar", so it can be a program name with args.
19731 set dummy ar; ac_word=$2
19732 echo "$as_me:$LINENO: checking for $ac_word" >&5
19733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19734 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19735   echo $ECHO_N "(cached) $ECHO_C" >&6
19736 else
19737   if test -n "$ac_ct_AR"; then
19738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19739 else
19740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 for as_dir in $PATH
19742 do
19743   IFS=$as_save_IFS
19744   test -z "$as_dir" && as_dir=.
19745   for ac_exec_ext in '' $ac_executable_extensions; do
19746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19747     ac_cv_prog_ac_ct_AR="ar"
19748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19749     break 2
19750   fi
19751 done
19752 done
19753
19754 fi
19755 fi
19756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19757 if test -n "$ac_ct_AR"; then
19758   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19759 echo "${ECHO_T}$ac_ct_AR" >&6
19760 else
19761   echo "$as_me:$LINENO: result: no" >&5
19762 echo "${ECHO_T}no" >&6
19763 fi
19764
19765   AR=$ac_ct_AR
19766 else
19767   AR="$ac_cv_prog_AR"
19768 fi
19769
19770 if test -n "$ac_tool_prefix"; then
19771   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19772 set dummy ${ac_tool_prefix}ld; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_prog_LD+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   if test -n "$LD"; then
19779   ac_cv_prog_LD="$LD" # Let the user override the test.
19780 else
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in $PATH
19783 do
19784   IFS=$as_save_IFS
19785   test -z "$as_dir" && as_dir=.
19786   for ac_exec_ext in '' $ac_executable_extensions; do
19787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19788     ac_cv_prog_LD="${ac_tool_prefix}ld"
19789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19790     break 2
19791   fi
19792 done
19793 done
19794
19795 fi
19796 fi
19797 LD=$ac_cv_prog_LD
19798 if test -n "$LD"; then
19799   echo "$as_me:$LINENO: result: $LD" >&5
19800 echo "${ECHO_T}$LD" >&6
19801 else
19802   echo "$as_me:$LINENO: result: no" >&5
19803 echo "${ECHO_T}no" >&6
19804 fi
19805
19806 fi
19807 if test -z "$ac_cv_prog_LD"; then
19808   ac_ct_LD=$LD
19809   # Extract the first word of "ld", so it can be a program name with args.
19810 set dummy ld; ac_word=$2
19811 echo "$as_me:$LINENO: checking for $ac_word" >&5
19812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19813 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   if test -n "$ac_ct_LD"; then
19817   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19818 else
19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19821 do
19822   IFS=$as_save_IFS
19823   test -z "$as_dir" && as_dir=.
19824   for ac_exec_ext in '' $ac_executable_extensions; do
19825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19826     ac_cv_prog_ac_ct_LD="ld"
19827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19828     break 2
19829   fi
19830 done
19831 done
19832
19833 fi
19834 fi
19835 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19836 if test -n "$ac_ct_LD"; then
19837   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19838 echo "${ECHO_T}$ac_ct_LD" >&6
19839 else
19840   echo "$as_me:$LINENO: result: no" >&5
19841 echo "${ECHO_T}no" >&6
19842 fi
19843
19844   LD=$ac_ct_LD
19845 else
19846   LD="$ac_cv_prog_LD"
19847 fi
19848
19849
19850 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19852 if test "${ac_cv_header_stdc+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 #include <stdlib.h>
19862 #include <stdarg.h>
19863 #include <string.h>
19864 #include <float.h>
19865
19866 int
19867 main ()
19868 {
19869
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876   (eval $ac_compile) 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885   (eval $ac_try) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; } &&
19889          { ac_try='test -s conftest.$ac_objext'
19890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891   (eval $ac_try) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }; }; then
19895   ac_cv_header_stdc=yes
19896 else
19897   echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 ac_cv_header_stdc=no
19901 fi
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19903
19904 if test $ac_cv_header_stdc = yes; then
19905   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 #include <string.h>
19913
19914 _ACEOF
19915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19916   $EGREP "memchr" >/dev/null 2>&1; then
19917   :
19918 else
19919   ac_cv_header_stdc=no
19920 fi
19921 rm -f conftest*
19922
19923 fi
19924
19925 if test $ac_cv_header_stdc = yes; then
19926   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 #include <stdlib.h>
19934
19935 _ACEOF
19936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19937   $EGREP "free" >/dev/null 2>&1; then
19938   :
19939 else
19940   ac_cv_header_stdc=no
19941 fi
19942 rm -f conftest*
19943
19944 fi
19945
19946 if test $ac_cv_header_stdc = yes; then
19947   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19948   if test "$cross_compiling" = yes; then
19949   :
19950 else
19951   cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957 #include <ctype.h>
19958 #if ((' ' & 0x0FF) == 0x020)
19959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19961 #else
19962 # define ISLOWER(c) \
19963                    (('a' <= (c) && (c) <= 'i') \
19964                      || ('j' <= (c) && (c) <= 'r') \
19965                      || ('s' <= (c) && (c) <= 'z'))
19966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19967 #endif
19968
19969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19970 int
19971 main ()
19972 {
19973   int i;
19974   for (i = 0; i < 256; i++)
19975     if (XOR (islower (i), ISLOWER (i))
19976         || toupper (i) != TOUPPER (i))
19977       exit(2);
19978   exit (0);
19979 }
19980 _ACEOF
19981 rm -f conftest$ac_exeext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19983   (eval $ac_link) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988   (eval $ac_try) 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; }; then
19992   :
19993 else
19994   echo "$as_me: program exited with status $ac_status" >&5
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ( exit $ac_status )
19999 ac_cv_header_stdc=no
20000 fi
20001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 fi
20004 fi
20005 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20006 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20007 if test $ac_cv_header_stdc = yes; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define STDC_HEADERS 1
20011 _ACEOF
20012
20013 fi
20014
20015
20016   echo "$as_me:$LINENO: checking for GNU libc2" >&5
20017 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20018   if test "${knfsd_cv_glibc2+set}" = set; then
20019   echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021   cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028       #include <features.h>
20029       #if !defined(__GLIBC__)
20030       # error Nope
20031       #endif
20032
20033 _ACEOF
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } >/dev/null; then
20042   if test -s conftest.err; then
20043     ac_cpp_err=$ac_c_preproc_warn_flag
20044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20045   else
20046     ac_cpp_err=
20047   fi
20048 else
20049   ac_cpp_err=yes
20050 fi
20051 if test -z "$ac_cpp_err"; then
20052   knfsd_cv_glibc2=yes
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057   knfsd_cv_glibc2=no
20058 fi
20059 rm -f conftest.err conftest.$ac_ext
20060 fi
20061
20062   echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20063 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20064   if test $knfsd_cv_glibc2 = yes; then
20065     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20066     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20067   fi
20068
20069
20070   echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20071 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20072   if test "${knfsd_cv_bsd_signals+set}" = set; then
20073   echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075   if test "$cross_compiling" = yes; then
20076   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20077 See \`config.log' for more details." >&5
20078 echo "$as_me: error: cannot run test program while cross compiling
20079 See \`config.log' for more details." >&2;}
20080    { (exit 1); exit 1; }; }
20081 else
20082   cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089         #include <signal.h>
20090         #include <unistd.h>
20091         #include <sys/wait.h>
20092
20093         static int counter = 0;
20094         static RETSIGTYPE handler(int num) { counter++; }
20095
20096         int main()
20097         {
20098                 int     s;
20099                 if ((s = fork()) < 0) return 1;
20100                 if (s != 0) {
20101                         if (wait(&s) < 0) return 1;
20102                         return WIFSIGNALED(s)? 1 : 0;
20103                 }
20104
20105                 signal(SIGHUP, handler);
20106                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20107                 return (counter == 2)? 0 : 1;
20108         }
20109
20110 _ACEOF
20111 rm -f conftest$ac_exeext
20112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20113   (eval $ac_link) 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118   (eval $ac_try) 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; }; then
20122   knfsd_cv_bsd_signals=yes
20123 else
20124   echo "$as_me: program exited with status $ac_status" >&5
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 ( exit $ac_status )
20129 knfsd_cv_bsd_signals=no
20130 fi
20131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20132 fi
20133 fi
20134      echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20135 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20136     test $knfsd_cv_bsd_signals = yes &&
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_BSD_SIGNALS 1
20139 _ACEOF
20140
20141
20142
20143 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20144 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20145 if test "${ac_cv_lib_socket_main+set}" = set; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lsocket  $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156
20157
20158 int
20159 main ()
20160 {
20161 main ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168   (eval $ac_link) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; } &&
20181          { ac_try='test -s conftest$ac_exeext'
20182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183   (eval $ac_try) 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); }; }; then
20187   ac_cv_lib_socket_main=yes
20188 else
20189   echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192 ac_cv_lib_socket_main=no
20193 fi
20194 rm -f conftest.err conftest.$ac_objext \
20195       conftest$ac_exeext conftest.$ac_ext
20196 LIBS=$ac_check_lib_save_LIBS
20197 fi
20198 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20199 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20200 if test $ac_cv_lib_socket_main = yes; then
20201   LIBSOCKET="-lnsl"
20202 fi
20203
20204 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20205 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20206 if test "${ac_cv_lib_nsl_main+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   ac_check_lib_save_LIBS=$LIBS
20210 LIBS="-lnsl  $LIBS"
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217
20218
20219 int
20220 main ()
20221 {
20222 main ();
20223   ;
20224   return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20229   (eval $ac_link) 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } &&
20236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238   (eval $ac_try) 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; } &&
20242          { ac_try='test -s conftest$ac_exeext'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_cv_lib_nsl_main=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253 ac_cv_lib_nsl_main=no
20254 fi
20255 rm -f conftest.err conftest.$ac_objext \
20256       conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20258 fi
20259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20260 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20261 if test $ac_cv_lib_nsl_main = yes; then
20262   LIBNSL="-lnsl"
20263 fi
20264
20265 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20266 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20267 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270   ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lcrypt  $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278
20279 /* Override any gcc2 internal prototype to avoid an error.  */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 /* We use char because int might match the return type of a gcc2
20284    builtin and then its argument prototype would still apply.  */
20285 char crypt ();
20286 int
20287 main ()
20288 {
20289 crypt ();
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296   (eval $ac_link) 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } &&
20303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; } &&
20309          { ac_try='test -s conftest$ac_exeext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   ac_cv_lib_crypt_crypt=yes
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ac_cv_lib_crypt_crypt=no
20321 fi
20322 rm -f conftest.err conftest.$ac_objext \
20323       conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20325 fi
20326 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20327 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20328 if test $ac_cv_lib_crypt_crypt = yes; then
20329   LIBCRYPT="-lcrypt"
20330 fi
20331
20332 if test "$enable_nfsv4" = yes; then
20333     echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20334 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20335 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338   ac_check_lib_save_LIBS=$LIBS
20339 LIBS="-levent  $LIBS"
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346
20347 /* Override any gcc2 internal prototype to avoid an error.  */
20348 #ifdef __cplusplus
20349 extern "C"
20350 #endif
20351 /* We use char because int might match the return type of a gcc2
20352    builtin and then its argument prototype would still apply.  */
20353 char event_dispatch ();
20354 int
20355 main ()
20356 {
20357 event_dispatch ();
20358   ;
20359   return 0;
20360 }
20361 _ACEOF
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20364   (eval $ac_link) 2>conftest.er1
20365   ac_status=$?
20366   grep -v '^ *+' conftest.er1 >conftest.err
20367   rm -f conftest.er1
20368   cat conftest.err >&5
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } &&
20371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; } &&
20377          { ac_try='test -s conftest$ac_exeext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_cv_lib_event_event_dispatch=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ac_cv_lib_event_event_dispatch=no
20389 fi
20390 rm -f conftest.err conftest.$ac_objext \
20391       conftest$ac_exeext conftest.$ac_ext
20392 LIBS=$ac_check_lib_save_LIBS
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20395 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20396 if test $ac_cv_lib_event_event_dispatch = yes; then
20397   libevent=1
20398 else
20399   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20400 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20401    { (exit 1); exit 1; }; }
20402 fi
20403
20404     echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20405 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20406 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lnfsidmap  $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 /* Override any gcc2 internal prototype to avoid an error.  */
20419 #ifdef __cplusplus
20420 extern "C"
20421 #endif
20422 /* We use char because int might match the return type of a gcc2
20423    builtin and then its argument prototype would still apply.  */
20424 char nfs4_init_name_mapping ();
20425 int
20426 main ()
20427 {
20428 nfs4_init_name_mapping ();
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435   (eval $ac_link) 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } &&
20442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444   (eval $ac_try) 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; } &&
20448          { ac_try='test -s conftest$ac_exeext'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; }; then
20454   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20460 fi
20461 rm -f conftest.err conftest.$ac_objext \
20462       conftest$ac_exeext conftest.$ac_ext
20463 LIBS=$ac_check_lib_save_LIBS
20464 fi
20465 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20466 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20467 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20468   libnfsidmap=1
20469 else
20470   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20471 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20472    { (exit 1); exit 1; }; }
20473 fi
20474
20475
20476 for ac_header in event.h
20477 do
20478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480   echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 fi
20485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20487 else
20488   # Is the header compilable?
20489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 $ac_includes_default
20498 #include <$ac_header>
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502   (eval $ac_compile) 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } &&
20509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; } &&
20515          { ac_try='test -s conftest.$ac_objext'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; }; then
20521   ac_header_compiler=yes
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_header_compiler=no
20527 fi
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6
20531
20532 # Is the header present?
20533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <$ac_header>
20542 _ACEOF
20543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } >/dev/null; then
20551   if test -s conftest.err; then
20552     ac_cpp_err=$ac_c_preproc_warn_flag
20553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20554   else
20555     ac_cpp_err=
20556   fi
20557 else
20558   ac_cpp_err=yes
20559 fi
20560 if test -z "$ac_cpp_err"; then
20561   ac_header_preproc=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566   ac_header_preproc=no
20567 fi
20568 rm -f conftest.err conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20570 echo "${ECHO_T}$ac_header_preproc" >&6
20571
20572 # So?  What about this header?
20573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20574   yes:no: )
20575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20579     ac_header_preproc=yes
20580     ;;
20581   no:yes:* )
20582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20594     (
20595       cat <<\_ASBOX
20596 ## ------------------------------- ##
20597 ## Report this to nfs@lists.sf.net ##
20598 ## ------------------------------- ##
20599 _ASBOX
20600     ) |
20601       sed "s/^/$as_me: WARNING:     /" >&2
20602     ;;
20603 esac
20604 echo "$as_me:$LINENO: checking for $ac_header" >&5
20605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609   eval "$as_ac_Header=\$ac_header_preproc"
20610 fi
20611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20613
20614 fi
20615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20616   cat >>confdefs.h <<_ACEOF
20617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20618 _ACEOF
20619
20620 else
20621   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20622 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20623    { (exit 1); exit 1; }; }
20624 fi
20625
20626 done
20627
20628
20629 for ac_header in nfsidmap.h
20630 do
20631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20633   echo "$as_me:$LINENO: checking for $ac_header" >&5
20634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 fi
20638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20640 else
20641   # Is the header compilable?
20642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 $ac_includes_default
20651 #include <$ac_header>
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655   (eval $ac_compile) 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } &&
20662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664   (eval $ac_try) 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; } &&
20668          { ac_try='test -s conftest.$ac_objext'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_header_compiler=yes
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_header_compiler=no
20680 fi
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20683 echo "${ECHO_T}$ac_header_compiler" >&6
20684
20685 # Is the header present?
20686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 #include <$ac_header>
20695 _ACEOF
20696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20698   ac_status=$?
20699   grep -v '^ *+' conftest.er1 >conftest.err
20700   rm -f conftest.er1
20701   cat conftest.err >&5
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } >/dev/null; then
20704   if test -s conftest.err; then
20705     ac_cpp_err=$ac_c_preproc_warn_flag
20706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20707   else
20708     ac_cpp_err=
20709   fi
20710 else
20711   ac_cpp_err=yes
20712 fi
20713 if test -z "$ac_cpp_err"; then
20714   ac_header_preproc=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719   ac_header_preproc=no
20720 fi
20721 rm -f conftest.err conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20723 echo "${ECHO_T}$ac_header_preproc" >&6
20724
20725 # So?  What about this header?
20726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20727   yes:no: )
20728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20732     ac_header_preproc=yes
20733     ;;
20734   no:yes:* )
20735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20747     (
20748       cat <<\_ASBOX
20749 ## ------------------------------- ##
20750 ## Report this to nfs@lists.sf.net ##
20751 ## ------------------------------- ##
20752 _ASBOX
20753     ) |
20754       sed "s/^/$as_me: WARNING:     /" >&2
20755     ;;
20756 esac
20757 echo "$as_me:$LINENO: checking for $ac_header" >&5
20758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20760   echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762   eval "$as_ac_Header=\$ac_header_preproc"
20763 fi
20764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20766
20767 fi
20768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20769   cat >>confdefs.h <<_ACEOF
20770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20771 _ACEOF
20772
20773 else
20774   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20775 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20776    { (exit 1); exit 1; }; }
20777 fi
20778
20779 done
20780
20781 fi
20782 if test "$knfsd_cv_glibc2" = no; then
20783     echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20784 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
20785 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20786   echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788   ac_check_lib_save_LIBS=$LIBS
20789 LIBS="-lbsd  $LIBS"
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796
20797 /* Override any gcc2 internal prototype to avoid an error.  */
20798 #ifdef __cplusplus
20799 extern "C"
20800 #endif
20801 /* We use char because int might match the return type of a gcc2
20802    builtin and then its argument prototype would still apply.  */
20803 char daemon ();
20804 int
20805 main ()
20806 {
20807 daemon ();
20808   ;
20809   return 0;
20810 }
20811 _ACEOF
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20814   (eval $ac_link) 2>conftest.er1
20815   ac_status=$?
20816   grep -v '^ *+' conftest.er1 >conftest.err
20817   rm -f conftest.er1
20818   cat conftest.err >&5
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } &&
20821          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823   (eval $ac_try) 2>&5
20824   ac_status=$?
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); }; } &&
20827          { ac_try='test -s conftest$ac_exeext'
20828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829   (eval $ac_try) 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); }; }; then
20833   ac_cv_lib_bsd_daemon=yes
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838 ac_cv_lib_bsd_daemon=no
20839 fi
20840 rm -f conftest.err conftest.$ac_objext \
20841       conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20843 fi
20844 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
20845 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
20846 if test $ac_cv_lib_bsd_daemon = yes; then
20847   LIBBSD="-lbsd"
20848 fi
20849
20850 fi
20851
20852
20853
20854
20855
20856 if test "$enable_gss" = yes; then
20857
20858 for ac_header in nfsidmap.h
20859 do
20860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20862   echo "$as_me:$LINENO: checking for $ac_header" >&5
20863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 fi
20867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20869 else
20870   # Is the header compilable?
20871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879 $ac_includes_default
20880 #include <$ac_header>
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20884   (eval $ac_compile) 2>conftest.er1
20885   ac_status=$?
20886   grep -v '^ *+' conftest.er1 >conftest.err
20887   rm -f conftest.er1
20888   cat conftest.err >&5
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } &&
20891          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893   (eval $ac_try) 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; } &&
20897          { ac_try='test -s conftest.$ac_objext'
20898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   ac_header_compiler=yes
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 ac_header_compiler=no
20909 fi
20910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20912 echo "${ECHO_T}$ac_header_compiler" >&6
20913
20914 # Is the header present?
20915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h.  */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h.  */
20923 #include <$ac_header>
20924 _ACEOF
20925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20926   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } >/dev/null; then
20933   if test -s conftest.err; then
20934     ac_cpp_err=$ac_c_preproc_warn_flag
20935     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20936   else
20937     ac_cpp_err=
20938   fi
20939 else
20940   ac_cpp_err=yes
20941 fi
20942 if test -z "$ac_cpp_err"; then
20943   ac_header_preproc=yes
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948   ac_header_preproc=no
20949 fi
20950 rm -f conftest.err conftest.$ac_ext
20951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20952 echo "${ECHO_T}$ac_header_preproc" >&6
20953
20954 # So?  What about this header?
20955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20956   yes:no: )
20957     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20961     ac_header_preproc=yes
20962     ;;
20963   no:yes:* )
20964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20966     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20967 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20968     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20970     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20971 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20974     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20976     (
20977       cat <<\_ASBOX
20978 ## ------------------------------- ##
20979 ## Report this to nfs@lists.sf.net ##
20980 ## ------------------------------- ##
20981 _ASBOX
20982     ) |
20983       sed "s/^/$as_me: WARNING:     /" >&2
20984     ;;
20985 esac
20986 echo "$as_me:$LINENO: checking for $ac_header" >&5
20987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20989   echo $ECHO_N "(cached) $ECHO_C" >&6
20990 else
20991   eval "$as_ac_Header=\$ac_header_preproc"
20992 fi
20993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20995
20996 fi
20997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20998   cat >>confdefs.h <<_ACEOF
20999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21000 _ACEOF
21001
21002 else
21003   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21004 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21005    { (exit 1); exit 1; }; }
21006 fi
21007
21008 done
21009
21010
21011 for ac_header in spkm3.h
21012 do
21013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21015   echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21018   echo $ECHO_N "(cached) $ECHO_C" >&6
21019 fi
21020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21022 else
21023   # Is the header compilable?
21024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h.  */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h.  */
21032 $ac_includes_default
21033 #include <$ac_header>
21034 _ACEOF
21035 rm -f conftest.$ac_objext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21037   (eval $ac_compile) 2>conftest.er1
21038   ac_status=$?
21039   grep -v '^ *+' conftest.er1 >conftest.err
21040   rm -f conftest.er1
21041   cat conftest.err >&5
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } &&
21044          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046   (eval $ac_try) 2>&5
21047   ac_status=$?
21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049   (exit $ac_status); }; } &&
21050          { ac_try='test -s conftest.$ac_objext'
21051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052   (eval $ac_try) 2>&5
21053   ac_status=$?
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); }; }; then
21056   ac_header_compiler=yes
21057 else
21058   echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21060
21061 ac_header_compiler=no
21062 fi
21063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21065 echo "${ECHO_T}$ac_header_compiler" >&6
21066
21067 # Is the header present?
21068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076 #include <$ac_header>
21077 _ACEOF
21078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } >/dev/null; then
21086   if test -s conftest.err; then
21087     ac_cpp_err=$ac_c_preproc_warn_flag
21088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21089   else
21090     ac_cpp_err=
21091   fi
21092 else
21093   ac_cpp_err=yes
21094 fi
21095 if test -z "$ac_cpp_err"; then
21096   ac_header_preproc=yes
21097 else
21098   echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101   ac_header_preproc=no
21102 fi
21103 rm -f conftest.err conftest.$ac_ext
21104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21105 echo "${ECHO_T}$ac_header_preproc" >&6
21106
21107 # So?  What about this header?
21108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21109   yes:no: )
21110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21114     ac_header_preproc=yes
21115     ;;
21116   no:yes:* )
21117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21129     (
21130       cat <<\_ASBOX
21131 ## ------------------------------- ##
21132 ## Report this to nfs@lists.sf.net ##
21133 ## ------------------------------- ##
21134 _ASBOX
21135     ) |
21136       sed "s/^/$as_me: WARNING:     /" >&2
21137     ;;
21138 esac
21139 echo "$as_me:$LINENO: checking for $ac_header" >&5
21140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21142   echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144   eval "$as_ac_Header=\$ac_header_preproc"
21145 fi
21146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21148
21149 fi
21150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21151   cat >>confdefs.h <<_ACEOF
21152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21153 _ACEOF
21154
21155 else
21156   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21157 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21158 fi
21159
21160 done
21161
21162
21163
21164   echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21165 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21166
21167 # Check whether --with-krb5 or --without-krb5 was given.
21168 if test "${with_krb5+set}" = set; then
21169   withval="$with_krb5"
21170    case "$withval" in
21171     yes|no)
21172        krb5_with=""
21173        ;;
21174     *)
21175        krb5_with="$withval"
21176        ;;
21177     esac
21178
21179 fi;
21180
21181   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21182              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21183             K5CONFIG=""
21184     if test -f $dir/bin/krb5-config; then
21185       K5CONFIG=$dir/bin/krb5-config
21186     elif test -f "/usr/kerberos/bin/krb5-config"; then
21187       K5CONFIG="/usr/kerberos/bin/krb5-config"
21188     elif test -f "/usr/lib/mit/bin/krb5-config"; then
21189       K5CONFIG="/usr/lib/mit/bin/krb5-config"
21190     fi
21191     if test "$K5CONFIG" != ""; then
21192       KRBCFLAGS=`$K5CONFIG --cflags`
21193       KRBLIBS=`$K5CONFIG --libs gssapi`
21194       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21195
21196 cat >>confdefs.h <<_ACEOF
21197 #define KRB5_VERSION $K5VERS
21198 _ACEOF
21199
21200       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21201                 \( -f $dir/lib/libgssapi_krb5.a -o \
21202                    -f $dir/lib/libgssapi_krb5.so \) ; then
21203
21204 cat >>confdefs.h <<\_ACEOF
21205 #define HAVE_KRB5 1
21206 _ACEOF
21207
21208          KRBDIR="$dir"
21209                      if test $K5VERS -le 131; then
21210
21211 cat >>confdefs.h <<\_ACEOF
21212 #define USE_GSS_KRB5_CCACHE_NAME 1
21213 _ACEOF
21214
21215          fi
21216          gssapi_lib=gssapi_krb5
21217          break
21218                   elif test \( -f $dir/include/heim_err.h -o\
21219                  -f $dir/include/heimdal/heim_err.h \) -a \
21220                 -f $dir/lib/libroken.a; then
21221
21222 cat >>confdefs.h <<\_ACEOF
21223 #define HAVE_HEIMDAL 1
21224 _ACEOF
21225
21226          KRBDIR="$dir"
21227          gssapi_lib=gssapi
21228         break
21229       fi
21230     fi
21231   done
21232     if test "x$KRBDIR" = "x"; then
21233     if test "x$krb5_with" = "x"; then
21234       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21235 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21236    { (exit 1); exit 1; }; }
21237     else
21238       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21239 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21240    { (exit 1); exit 1; }; }
21241     fi
21242   fi
21243   echo "$as_me:$LINENO: result: $KRBDIR" >&5
21244 echo "${ECHO_T}$KRBDIR" >&6
21245
21246     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21247 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21248 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21249 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21250   echo $ECHO_N "(cached) $ECHO_C" >&6
21251 else
21252   ac_check_lib_save_LIBS=$LIBS
21253 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260
21261 /* Override any gcc2 internal prototype to avoid an error.  */
21262 #ifdef __cplusplus
21263 extern "C"
21264 #endif
21265 /* We use char because int might match the return type of a gcc2
21266    builtin and then its argument prototype would still apply.  */
21267 char gss_krb5_export_lucid_sec_context ();
21268 int
21269 main ()
21270 {
21271 gss_krb5_export_lucid_sec_context ();
21272   ;
21273   return 0;
21274 }
21275 _ACEOF
21276 rm -f conftest.$ac_objext conftest$ac_exeext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21278   (eval $ac_link) 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } &&
21285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287   (eval $ac_try) 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); }; } &&
21291          { ac_try='test -s conftest$ac_exeext'
21292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293   (eval $ac_try) 2>&5
21294   ac_status=$?
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); }; }; then
21297   eval "$as_ac_Lib=yes"
21298 else
21299   echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 eval "$as_ac_Lib=no"
21303 fi
21304 rm -f conftest.err conftest.$ac_objext \
21305       conftest$ac_exeext conftest.$ac_ext
21306 LIBS=$ac_check_lib_save_LIBS
21307 fi
21308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21309 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21310 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21311
21312 cat >>confdefs.h <<\_ACEOF
21313 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21314 _ACEOF
21315
21316 fi
21317
21318   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21319 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21320 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21321 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324   ac_check_lib_save_LIBS=$LIBS
21325 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h.  */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h.  */
21332
21333 /* Override any gcc2 internal prototype to avoid an error.  */
21334 #ifdef __cplusplus
21335 extern "C"
21336 #endif
21337 /* We use char because int might match the return type of a gcc2
21338    builtin and then its argument prototype would still apply.  */
21339 char gss_krb5_set_allowable_enctypes ();
21340 int
21341 main ()
21342 {
21343 gss_krb5_set_allowable_enctypes ();
21344   ;
21345   return 0;
21346 }
21347 _ACEOF
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21350   (eval $ac_link) 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } &&
21357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359   (eval $ac_try) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; } &&
21363          { ac_try='test -s conftest$ac_exeext'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   eval "$as_ac_Lib=yes"
21370 else
21371   echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21373
21374 eval "$as_ac_Lib=no"
21375 fi
21376 rm -f conftest.err conftest.$ac_objext \
21377       conftest$ac_exeext conftest.$ac_ext
21378 LIBS=$ac_check_lib_save_LIBS
21379 fi
21380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21381 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21382 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21383
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21386 _ACEOF
21387
21388 fi
21389
21390   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21391 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21392 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21393 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21394   echo $ECHO_N "(cached) $ECHO_C" >&6
21395 else
21396   ac_check_lib_save_LIBS=$LIBS
21397 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404
21405 /* Override any gcc2 internal prototype to avoid an error.  */
21406 #ifdef __cplusplus
21407 extern "C"
21408 #endif
21409 /* We use char because int might match the return type of a gcc2
21410    builtin and then its argument prototype would still apply.  */
21411 char gss_krb5_ccache_name ();
21412 int
21413 main ()
21414 {
21415 gss_krb5_ccache_name ();
21416   ;
21417   return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext conftest$ac_exeext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21422   (eval $ac_link) 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } &&
21429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431   (eval $ac_try) 2>&5
21432   ac_status=$?
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); }; } &&
21435          { ac_try='test -s conftest$ac_exeext'
21436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437   (eval $ac_try) 2>&5
21438   ac_status=$?
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); }; }; then
21441   eval "$as_ac_Lib=yes"
21442 else
21443   echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446 eval "$as_ac_Lib=no"
21447 fi
21448 rm -f conftest.err conftest.$ac_objext \
21449       conftest$ac_exeext conftest.$ac_ext
21450 LIBS=$ac_check_lib_save_LIBS
21451 fi
21452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21453 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21454 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21455
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21458 _ACEOF
21459
21460 fi
21461
21462
21463     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21464     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21465 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21466   fi
21467
21468
21469
21470
21471
21472
21473
21474
21475       echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21476 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21477 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   ac_check_lib_save_LIBS=$LIBS
21481 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488
21489 /* Override any gcc2 internal prototype to avoid an error.  */
21490 #ifdef __cplusplus
21491 extern "C"
21492 #endif
21493 /* We use char because int might match the return type of a gcc2
21494    builtin and then its argument prototype would still apply.  */
21495 char authgss_create_default ();
21496 int
21497 main ()
21498 {
21499 authgss_create_default ();
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506   (eval $ac_link) 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } &&
21513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515   (eval $ac_try) 2>&5
21516   ac_status=$?
21517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518   (exit $ac_status); }; } &&
21519          { ac_try='test -s conftest$ac_exeext'
21520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521   (eval $ac_try) 2>&5
21522   ac_status=$?
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); }; }; then
21525   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21526 else
21527   echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 ac_cv_lib_rpcsecgss_authgss_create_default=no
21531 fi
21532 rm -f conftest.err conftest.$ac_objext \
21533       conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21535 fi
21536 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21537 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21538 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21539   librpcsecgss=1
21540 else
21541   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21542 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21543    { (exit 1); exit 1; }; }
21544 fi
21545
21546   echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21547 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21548 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21549   echo $ECHO_N "(cached) $ECHO_C" >&6
21550 else
21551   ac_check_lib_save_LIBS=$LIBS
21552 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559
21560 /* Override any gcc2 internal prototype to avoid an error.  */
21561 #ifdef __cplusplus
21562 extern "C"
21563 #endif
21564 /* We use char because int might match the return type of a gcc2
21565    builtin and then its argument prototype would still apply.  */
21566 char authgss_set_debug_level ();
21567 int
21568 main ()
21569 {
21570 authgss_set_debug_level ();
21571   ;
21572   return 0;
21573 }
21574 _ACEOF
21575 rm -f conftest.$ac_objext conftest$ac_exeext
21576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21577   (eval $ac_link) 2>conftest.er1
21578   ac_status=$?
21579   grep -v '^ *+' conftest.er1 >conftest.err
21580   rm -f conftest.er1
21581   cat conftest.err >&5
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); } &&
21584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586   (eval $ac_try) 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); }; } &&
21590          { ac_try='test -s conftest$ac_exeext'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; }; then
21596   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21597 else
21598   echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21602 fi
21603 rm -f conftest.err conftest.$ac_objext \
21604       conftest$ac_exeext conftest.$ac_ext
21605 LIBS=$ac_check_lib_save_LIBS
21606 fi
21607 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21608 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21609 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21610
21611 cat >>confdefs.h <<\_ACEOF
21612 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21613 _ACEOF
21614
21615 fi
21616
21617
21618 fi
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21643                  malloc.h memory.h netdb.h netinet/in.h paths.h \
21644                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21645                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21646                  syslog.h unistd.h com_err.h et/com_err.h
21647 do
21648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650   echo "$as_me:$LINENO: checking for $ac_header" >&5
21651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 fi
21655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21657 else
21658   # Is the header compilable?
21659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 $ac_includes_default
21668 #include <$ac_header>
21669 _ACEOF
21670 rm -f conftest.$ac_objext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672   (eval $ac_compile) 2>conftest.er1
21673   ac_status=$?
21674   grep -v '^ *+' conftest.er1 >conftest.err
21675   rm -f conftest.er1
21676   cat conftest.err >&5
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); } &&
21679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681   (eval $ac_try) 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); }; } &&
21685          { ac_try='test -s conftest.$ac_objext'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }; then
21691   ac_header_compiler=yes
21692 else
21693   echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696 ac_header_compiler=no
21697 fi
21698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700 echo "${ECHO_T}$ac_header_compiler" >&6
21701
21702 # Is the header present?
21703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <$ac_header>
21712 _ACEOF
21713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21715   ac_status=$?
21716   grep -v '^ *+' conftest.er1 >conftest.err
21717   rm -f conftest.er1
21718   cat conftest.err >&5
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } >/dev/null; then
21721   if test -s conftest.err; then
21722     ac_cpp_err=$ac_c_preproc_warn_flag
21723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21724   else
21725     ac_cpp_err=
21726   fi
21727 else
21728   ac_cpp_err=yes
21729 fi
21730 if test -z "$ac_cpp_err"; then
21731   ac_header_preproc=yes
21732 else
21733   echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736   ac_header_preproc=no
21737 fi
21738 rm -f conftest.err conftest.$ac_ext
21739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6
21741
21742 # So?  What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21744   yes:no: )
21745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21749     ac_header_preproc=yes
21750     ;;
21751   no:yes:* )
21752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21764     (
21765       cat <<\_ASBOX
21766 ## ------------------------------- ##
21767 ## Report this to nfs@lists.sf.net ##
21768 ## ------------------------------- ##
21769 _ASBOX
21770     ) |
21771       sed "s/^/$as_me: WARNING:     /" >&2
21772     ;;
21773 esac
21774 echo "$as_me:$LINENO: checking for $ac_header" >&5
21775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21777   echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779   eval "$as_ac_Header=\$ac_header_preproc"
21780 fi
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21783
21784 fi
21785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21786   cat >>confdefs.h <<_ACEOF
21787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21788 _ACEOF
21789
21790 fi
21791
21792 done
21793
21794
21795 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21796 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21797 if test "${ac_cv_c_const+set}" = set; then
21798   echo $ECHO_N "(cached) $ECHO_C" >&6
21799 else
21800   cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806
21807 int
21808 main ()
21809 {
21810 /* FIXME: Include the comments suggested by Paul. */
21811 #ifndef __cplusplus
21812   /* Ultrix mips cc rejects this.  */
21813   typedef int charset[2];
21814   const charset x;
21815   /* SunOS 4.1.1 cc rejects this.  */
21816   char const *const *ccp;
21817   char **p;
21818   /* NEC SVR4.0.2 mips cc rejects this.  */
21819   struct point {int x, y;};
21820   static struct point const zero = {0,0};
21821   /* AIX XL C 1.02.0.0 rejects this.
21822      It does not let you subtract one const X* pointer from another in
21823      an arm of an if-expression whose if-part is not a constant
21824      expression */
21825   const char *g = "string";
21826   ccp = &g + (g ? g-g : 0);
21827   /* HPUX 7.0 cc rejects these. */
21828   ++ccp;
21829   p = (char**) ccp;
21830   ccp = (char const *const *) p;
21831   { /* SCO 3.2v4 cc rejects this.  */
21832     char *t;
21833     char const *s = 0 ? (char *) 0 : (char const *) 0;
21834
21835     *t++ = 0;
21836   }
21837   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21838     int x[] = {25, 17};
21839     const int *foo = &x[0];
21840     ++foo;
21841   }
21842   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21843     typedef const int *iptr;
21844     iptr p = 0;
21845     ++p;
21846   }
21847   { /* AIX XL C 1.02.0.0 rejects this saying
21848        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21849     struct s { int j; const int *ap[3]; };
21850     struct s *b; b->j = 5;
21851   }
21852   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21853     const int foo = 10;
21854   }
21855 #endif
21856
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21863   (eval $ac_compile) 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } &&
21870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; } &&
21876          { ac_try='test -s conftest.$ac_objext'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882   ac_cv_c_const=yes
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887 ac_cv_c_const=no
21888 fi
21889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21890 fi
21891 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21892 echo "${ECHO_T}$ac_cv_c_const" >&6
21893 if test $ac_cv_c_const = no; then
21894
21895 cat >>confdefs.h <<\_ACEOF
21896 #define const
21897 _ACEOF
21898
21899 fi
21900
21901 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21902 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21903 if test "${ac_cv_type_uid_t+set}" = set; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 else
21906   cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <sys/types.h>
21913
21914 _ACEOF
21915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21916   $EGREP "uid_t" >/dev/null 2>&1; then
21917   ac_cv_type_uid_t=yes
21918 else
21919   ac_cv_type_uid_t=no
21920 fi
21921 rm -f conftest*
21922
21923 fi
21924 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21925 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21926 if test $ac_cv_type_uid_t = no; then
21927
21928 cat >>confdefs.h <<\_ACEOF
21929 #define uid_t int
21930 _ACEOF
21931
21932
21933 cat >>confdefs.h <<\_ACEOF
21934 #define gid_t int
21935 _ACEOF
21936
21937 fi
21938
21939 echo "$as_me:$LINENO: checking for inline" >&5
21940 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21941 if test "${ac_cv_c_inline+set}" = set; then
21942   echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944   ac_cv_c_inline=no
21945 for ac_kw in inline __inline__ __inline; do
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #ifndef __cplusplus
21953 typedef int foo_t;
21954 static $ac_kw foo_t static_foo () {return 0; }
21955 $ac_kw foo_t foo () {return 0; }
21956 #endif
21957
21958 _ACEOF
21959 rm -f conftest.$ac_objext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21961   (eval $ac_compile) 2>conftest.er1
21962   ac_status=$?
21963   grep -v '^ *+' conftest.er1 >conftest.err
21964   rm -f conftest.er1
21965   cat conftest.err >&5
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); } &&
21968          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970   (eval $ac_try) 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); }; } &&
21974          { ac_try='test -s conftest.$ac_objext'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; }; then
21980   ac_cv_c_inline=$ac_kw; break
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985 fi
21986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21987 done
21988
21989 fi
21990 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21991 echo "${ECHO_T}$ac_cv_c_inline" >&6
21992
21993
21994 case $ac_cv_c_inline in
21995   inline | yes) ;;
21996   *)
21997     case $ac_cv_c_inline in
21998       no) ac_val=;;
21999       *) ac_val=$ac_cv_c_inline;;
22000     esac
22001     cat >>confdefs.h <<_ACEOF
22002 #ifndef __cplusplus
22003 #define inline $ac_val
22004 #endif
22005 _ACEOF
22006     ;;
22007 esac
22008
22009 echo "$as_me:$LINENO: checking for off_t" >&5
22010 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22011 if test "${ac_cv_type_off_t+set}" = set; then
22012   echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014   cat >conftest.$ac_ext <<_ACEOF
22015 /* confdefs.h.  */
22016 _ACEOF
22017 cat confdefs.h >>conftest.$ac_ext
22018 cat >>conftest.$ac_ext <<_ACEOF
22019 /* end confdefs.h.  */
22020 $ac_includes_default
22021 int
22022 main ()
22023 {
22024 if ((off_t *) 0)
22025   return 0;
22026 if (sizeof (off_t))
22027   return 0;
22028   ;
22029   return 0;
22030 }
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22034   (eval $ac_compile) 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; } &&
22047          { ac_try='test -s conftest.$ac_objext'
22048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; }; then
22053   ac_cv_type_off_t=yes
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 ac_cv_type_off_t=no
22059 fi
22060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22061 fi
22062 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22063 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22064 if test $ac_cv_type_off_t = yes; then
22065   :
22066 else
22067
22068 cat >>confdefs.h <<_ACEOF
22069 #define off_t long
22070 _ACEOF
22071
22072 fi
22073
22074 echo "$as_me:$LINENO: checking for pid_t" >&5
22075 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22076 if test "${ac_cv_type_pid_t+set}" = set; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079   cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085 $ac_includes_default
22086 int
22087 main ()
22088 {
22089 if ((pid_t *) 0)
22090   return 0;
22091 if (sizeof (pid_t))
22092   return 0;
22093   ;
22094   return 0;
22095 }
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099   (eval $ac_compile) 2>conftest.er1
22100   ac_status=$?
22101   grep -v '^ *+' conftest.er1 >conftest.err
22102   rm -f conftest.er1
22103   cat conftest.err >&5
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } &&
22106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108   (eval $ac_try) 2>&5
22109   ac_status=$?
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); }; } &&
22112          { ac_try='test -s conftest.$ac_objext'
22113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114   (eval $ac_try) 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); }; }; then
22118   ac_cv_type_pid_t=yes
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123 ac_cv_type_pid_t=no
22124 fi
22125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126 fi
22127 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22128 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22129 if test $ac_cv_type_pid_t = yes; then
22130   :
22131 else
22132
22133 cat >>confdefs.h <<_ACEOF
22134 #define pid_t int
22135 _ACEOF
22136
22137 fi
22138
22139 echo "$as_me:$LINENO: checking for size_t" >&5
22140 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22141 if test "${ac_cv_type_size_t+set}" = set; then
22142   echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 $ac_includes_default
22151 int
22152 main ()
22153 {
22154 if ((size_t *) 0)
22155   return 0;
22156 if (sizeof (size_t))
22157   return 0;
22158   ;
22159   return 0;
22160 }
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22164   (eval $ac_compile) 2>conftest.er1
22165   ac_status=$?
22166   grep -v '^ *+' conftest.er1 >conftest.err
22167   rm -f conftest.er1
22168   cat conftest.err >&5
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } &&
22171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173   (eval $ac_try) 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; } &&
22177          { ac_try='test -s conftest.$ac_objext'
22178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179   (eval $ac_try) 2>&5
22180   ac_status=$?
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); }; }; then
22183   ac_cv_type_size_t=yes
22184 else
22185   echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188 ac_cv_type_size_t=no
22189 fi
22190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22191 fi
22192 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22193 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22194 if test $ac_cv_type_size_t = yes; then
22195   :
22196 else
22197
22198 cat >>confdefs.h <<_ACEOF
22199 #define size_t unsigned
22200 _ACEOF
22201
22202 fi
22203
22204 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22205 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22206 if test "${ac_cv_header_time+set}" = set; then
22207   echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209   cat >conftest.$ac_ext <<_ACEOF
22210 /* confdefs.h.  */
22211 _ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h.  */
22215 #include <sys/types.h>
22216 #include <sys/time.h>
22217 #include <time.h>
22218
22219 int
22220 main ()
22221 {
22222 if ((struct tm *) 0)
22223 return 0;
22224   ;
22225   return 0;
22226 }
22227 _ACEOF
22228 rm -f conftest.$ac_objext
22229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22230   (eval $ac_compile) 2>conftest.er1
22231   ac_status=$?
22232   grep -v '^ *+' conftest.er1 >conftest.err
22233   rm -f conftest.er1
22234   cat conftest.err >&5
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); } &&
22237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239   (eval $ac_try) 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); }; } &&
22243          { ac_try='test -s conftest.$ac_objext'
22244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245   (eval $ac_try) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); }; }; then
22249   ac_cv_header_time=yes
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254 ac_cv_header_time=no
22255 fi
22256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22257 fi
22258 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22259 echo "${ECHO_T}$ac_cv_header_time" >&6
22260 if test $ac_cv_header_time = yes; then
22261
22262 cat >>confdefs.h <<\_ACEOF
22263 #define TIME_WITH_SYS_TIME 1
22264 _ACEOF
22265
22266 fi
22267
22268 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22269 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22270 if test "${ac_cv_struct_tm+set}" = set; then
22271   echo $ECHO_N "(cached) $ECHO_C" >&6
22272 else
22273   cat >conftest.$ac_ext <<_ACEOF
22274 /* confdefs.h.  */
22275 _ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h.  */
22279 #include <sys/types.h>
22280 #include <time.h>
22281
22282 int
22283 main ()
22284 {
22285 struct tm *tp; tp->tm_sec;
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22292   (eval $ac_compile) 2>conftest.er1
22293   ac_status=$?
22294   grep -v '^ *+' conftest.er1 >conftest.err
22295   rm -f conftest.er1
22296   cat conftest.err >&5
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); } &&
22299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301   (eval $ac_try) 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); }; } &&
22305          { ac_try='test -s conftest.$ac_objext'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; }; then
22311   ac_cv_struct_tm=time.h
22312 else
22313   echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ac_cv_struct_tm=sys/time.h
22317 fi
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319 fi
22320 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22321 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22322 if test $ac_cv_struct_tm = sys/time.h; then
22323
22324 cat >>confdefs.h <<\_ACEOF
22325 #define TM_IN_SYS_TIME 1
22326 _ACEOF
22327
22328 fi
22329
22330
22331 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22332 # for constant arguments.  Useless!
22333 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22334 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22335 if test "${ac_cv_working_alloca_h+set}" = set; then
22336   echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338   cat >conftest.$ac_ext <<_ACEOF
22339 /* confdefs.h.  */
22340 _ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h.  */
22344 #include <alloca.h>
22345 int
22346 main ()
22347 {
22348 char *p = (char *) alloca (2 * sizeof (int));
22349   ;
22350   return 0;
22351 }
22352 _ACEOF
22353 rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22355   (eval $ac_link) 2>conftest.er1
22356   ac_status=$?
22357   grep -v '^ *+' conftest.er1 >conftest.err
22358   rm -f conftest.er1
22359   cat conftest.err >&5
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } &&
22362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22364   (eval $ac_try) 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); }; } &&
22368          { ac_try='test -s conftest$ac_exeext'
22369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370   (eval $ac_try) 2>&5
22371   ac_status=$?
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); }; }; then
22374   ac_cv_working_alloca_h=yes
22375 else
22376   echo "$as_me: failed program was:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22378
22379 ac_cv_working_alloca_h=no
22380 fi
22381 rm -f conftest.err conftest.$ac_objext \
22382       conftest$ac_exeext conftest.$ac_ext
22383 fi
22384 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22385 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22386 if test $ac_cv_working_alloca_h = yes; then
22387
22388 cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_ALLOCA_H 1
22390 _ACEOF
22391
22392 fi
22393
22394 echo "$as_me:$LINENO: checking for alloca" >&5
22395 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22396 if test "${ac_cv_func_alloca_works+set}" = set; then
22397   echo $ECHO_N "(cached) $ECHO_C" >&6
22398 else
22399   cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h.  */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h.  */
22405 #ifdef __GNUC__
22406 # define alloca __builtin_alloca
22407 #else
22408 # ifdef _MSC_VER
22409 #  include <malloc.h>
22410 #  define alloca _alloca
22411 # else
22412 #  if HAVE_ALLOCA_H
22413 #   include <alloca.h>
22414 #  else
22415 #   ifdef _AIX
22416  #pragma alloca
22417 #   else
22418 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22419 char *alloca ();
22420 #    endif
22421 #   endif
22422 #  endif
22423 # endif
22424 #endif
22425
22426 int
22427 main ()
22428 {
22429 char *p = (char *) alloca (1);
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436   (eval $ac_link) 2>conftest.er1
22437   ac_status=$?
22438   grep -v '^ *+' conftest.er1 >conftest.err
22439   rm -f conftest.er1
22440   cat conftest.err >&5
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } &&
22443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445   (eval $ac_try) 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; } &&
22449          { ac_try='test -s conftest$ac_exeext'
22450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451   (eval $ac_try) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; }; then
22455   ac_cv_func_alloca_works=yes
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 ac_cv_func_alloca_works=no
22461 fi
22462 rm -f conftest.err conftest.$ac_objext \
22463       conftest$ac_exeext conftest.$ac_ext
22464 fi
22465 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22466 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22467
22468 if test $ac_cv_func_alloca_works = yes; then
22469
22470 cat >>confdefs.h <<\_ACEOF
22471 #define HAVE_ALLOCA 1
22472 _ACEOF
22473
22474 else
22475   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22476 # that cause trouble.  Some versions do not even contain alloca or
22477 # contain a buggy version.  If you still want to use their alloca,
22478 # use ar to extract alloca.o from them instead of compiling alloca.c.
22479
22480 ALLOCA=alloca.$ac_objext
22481
22482 cat >>confdefs.h <<\_ACEOF
22483 #define C_ALLOCA 1
22484 _ACEOF
22485
22486
22487 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22488 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22489 if test "${ac_cv_os_cray+set}" = set; then
22490   echo $ECHO_N "(cached) $ECHO_C" >&6
22491 else
22492   cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h.  */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h.  */
22498 #if defined(CRAY) && ! defined(CRAY2)
22499 webecray
22500 #else
22501 wenotbecray
22502 #endif
22503
22504 _ACEOF
22505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22506   $EGREP "webecray" >/dev/null 2>&1; then
22507   ac_cv_os_cray=yes
22508 else
22509   ac_cv_os_cray=no
22510 fi
22511 rm -f conftest*
22512
22513 fi
22514 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22515 echo "${ECHO_T}$ac_cv_os_cray" >&6
22516 if test $ac_cv_os_cray = yes; then
22517   for ac_func in _getb67 GETB67 getb67; do
22518     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22519 echo "$as_me:$LINENO: checking for $ac_func" >&5
22520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22521 if eval "test \"\${$as_ac_var+set}\" = set"; then
22522   echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
22524   cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h.  */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h.  */
22530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22532 #define $ac_func innocuous_$ac_func
22533
22534 /* System header to define __stub macros and hopefully few prototypes,
22535     which can conflict with char $ac_func (); below.
22536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537     <limits.h> exists even on freestanding compilers.  */
22538
22539 #ifdef __STDC__
22540 # include <limits.h>
22541 #else
22542 # include <assert.h>
22543 #endif
22544
22545 #undef $ac_func
22546
22547 /* Override any gcc2 internal prototype to avoid an error.  */
22548 #ifdef __cplusplus
22549 extern "C"
22550 {
22551 #endif
22552 /* We use char because int might match the return type of a gcc2
22553    builtin and then its argument prototype would still apply.  */
22554 char $ac_func ();
22555 /* The GNU C library defines this for functions which it implements
22556     to always fail with ENOSYS.  Some functions are actually named
22557     something starting with __ and the normal name is an alias.  */
22558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22559 choke me
22560 #else
22561 char (*f) () = $ac_func;
22562 #endif
22563 #ifdef __cplusplus
22564 }
22565 #endif
22566
22567 int
22568 main ()
22569 {
22570 return f != $ac_func;
22571   ;
22572   return 0;
22573 }
22574 _ACEOF
22575 rm -f conftest.$ac_objext conftest$ac_exeext
22576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22577   (eval $ac_link) 2>conftest.er1
22578   ac_status=$?
22579   grep -v '^ *+' conftest.er1 >conftest.err
22580   rm -f conftest.er1
22581   cat conftest.err >&5
22582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583   (exit $ac_status); } &&
22584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586   (eval $ac_try) 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); }; } &&
22590          { ac_try='test -s conftest$ac_exeext'
22591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592   (eval $ac_try) 2>&5
22593   ac_status=$?
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); }; }; then
22596   eval "$as_ac_var=yes"
22597 else
22598   echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22600
22601 eval "$as_ac_var=no"
22602 fi
22603 rm -f conftest.err conftest.$ac_objext \
22604       conftest$ac_exeext conftest.$ac_ext
22605 fi
22606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22608 if test `eval echo '${'$as_ac_var'}'` = yes; then
22609
22610 cat >>confdefs.h <<_ACEOF
22611 #define CRAY_STACKSEG_END $ac_func
22612 _ACEOF
22613
22614     break
22615 fi
22616
22617   done
22618 fi
22619
22620 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22621 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22622 if test "${ac_cv_c_stack_direction+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   if test "$cross_compiling" = yes; then
22626   ac_cv_c_stack_direction=0
22627 else
22628   cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634 int
22635 find_stack_direction ()
22636 {
22637   static char *addr = 0;
22638   auto char dummy;
22639   if (addr == 0)
22640     {
22641       addr = &dummy;
22642       return find_stack_direction ();
22643     }
22644   else
22645     return (&dummy > addr) ? 1 : -1;
22646 }
22647
22648 int
22649 main ()
22650 {
22651   exit (find_stack_direction () < 0);
22652 }
22653 _ACEOF
22654 rm -f conftest$ac_exeext
22655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22656   (eval $ac_link) 2>&5
22657   ac_status=$?
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661   (eval $ac_try) 2>&5
22662   ac_status=$?
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); }; }; then
22665   ac_cv_c_stack_direction=1
22666 else
22667   echo "$as_me: program exited with status $ac_status" >&5
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671 ( exit $ac_status )
22672 ac_cv_c_stack_direction=-1
22673 fi
22674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22675 fi
22676 fi
22677 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22678 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22679
22680 cat >>confdefs.h <<_ACEOF
22681 #define STACK_DIRECTION $ac_cv_c_stack_direction
22682 _ACEOF
22683
22684
22685 fi
22686
22687
22688
22689
22690
22691
22692 ac_header_dirent=no
22693 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22694   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22695 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22696 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22698   echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700   cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h.  */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h.  */
22706 #include <sys/types.h>
22707 #include <$ac_hdr>
22708
22709 int
22710 main ()
22711 {
22712 if ((DIR *) 0)
22713 return 0;
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext
22719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22720   (eval $ac_compile) 2>conftest.er1
22721   ac_status=$?
22722   grep -v '^ *+' conftest.er1 >conftest.err
22723   rm -f conftest.er1
22724   cat conftest.err >&5
22725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726   (exit $ac_status); } &&
22727          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729   (eval $ac_try) 2>&5
22730   ac_status=$?
22731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732   (exit $ac_status); }; } &&
22733          { ac_try='test -s conftest.$ac_objext'
22734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735   (eval $ac_try) 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); }; }; then
22739   eval "$as_ac_Header=yes"
22740 else
22741   echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22743
22744 eval "$as_ac_Header=no"
22745 fi
22746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22747 fi
22748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22751   cat >>confdefs.h <<_ACEOF
22752 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22753 _ACEOF
22754
22755 ac_header_dirent=$ac_hdr; break
22756 fi
22757
22758 done
22759 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22760 if test $ac_header_dirent = dirent.h; then
22761   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22762 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22763 if test "${ac_cv_search_opendir+set}" = set; then
22764   echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766   ac_func_search_save_LIBS=$LIBS
22767 ac_cv_search_opendir=no
22768 cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774
22775 /* Override any gcc2 internal prototype to avoid an error.  */
22776 #ifdef __cplusplus
22777 extern "C"
22778 #endif
22779 /* We use char because int might match the return type of a gcc2
22780    builtin and then its argument prototype would still apply.  */
22781 char opendir ();
22782 int
22783 main ()
22784 {
22785 opendir ();
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22792   (eval $ac_link) 2>conftest.er1
22793   ac_status=$?
22794   grep -v '^ *+' conftest.er1 >conftest.err
22795   rm -f conftest.er1
22796   cat conftest.err >&5
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } &&
22799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801   (eval $ac_try) 2>&5
22802   ac_status=$?
22803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804   (exit $ac_status); }; } &&
22805          { ac_try='test -s conftest$ac_exeext'
22806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807   (eval $ac_try) 2>&5
22808   ac_status=$?
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); }; }; then
22811   ac_cv_search_opendir="none required"
22812 else
22813   echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816 fi
22817 rm -f conftest.err conftest.$ac_objext \
22818       conftest$ac_exeext conftest.$ac_ext
22819 if test "$ac_cv_search_opendir" = no; then
22820   for ac_lib in dir; do
22821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22822     cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828
22829 /* Override any gcc2 internal prototype to avoid an error.  */
22830 #ifdef __cplusplus
22831 extern "C"
22832 #endif
22833 /* We use char because int might match the return type of a gcc2
22834    builtin and then its argument prototype would still apply.  */
22835 char opendir ();
22836 int
22837 main ()
22838 {
22839 opendir ();
22840   ;
22841   return 0;
22842 }
22843 _ACEOF
22844 rm -f conftest.$ac_objext conftest$ac_exeext
22845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22846   (eval $ac_link) 2>conftest.er1
22847   ac_status=$?
22848   grep -v '^ *+' conftest.er1 >conftest.err
22849   rm -f conftest.er1
22850   cat conftest.err >&5
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); } &&
22853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855   (eval $ac_try) 2>&5
22856   ac_status=$?
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); }; } &&
22859          { ac_try='test -s conftest$ac_exeext'
22860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861   (eval $ac_try) 2>&5
22862   ac_status=$?
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); }; }; then
22865   ac_cv_search_opendir="-l$ac_lib"
22866 break
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 fi
22872 rm -f conftest.err conftest.$ac_objext \
22873       conftest$ac_exeext conftest.$ac_ext
22874   done
22875 fi
22876 LIBS=$ac_func_search_save_LIBS
22877 fi
22878 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22879 echo "${ECHO_T}$ac_cv_search_opendir" >&6
22880 if test "$ac_cv_search_opendir" != no; then
22881   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22882
22883 fi
22884
22885 else
22886   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22887 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22888 if test "${ac_cv_search_opendir+set}" = set; then
22889   echo $ECHO_N "(cached) $ECHO_C" >&6
22890 else
22891   ac_func_search_save_LIBS=$LIBS
22892 ac_cv_search_opendir=no
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h.  */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h.  */
22899
22900 /* Override any gcc2 internal prototype to avoid an error.  */
22901 #ifdef __cplusplus
22902 extern "C"
22903 #endif
22904 /* We use char because int might match the return type of a gcc2
22905    builtin and then its argument prototype would still apply.  */
22906 char opendir ();
22907 int
22908 main ()
22909 {
22910 opendir ();
22911   ;
22912   return 0;
22913 }
22914 _ACEOF
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917   (eval $ac_link) 2>conftest.er1
22918   ac_status=$?
22919   grep -v '^ *+' conftest.er1 >conftest.err
22920   rm -f conftest.er1
22921   cat conftest.err >&5
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } &&
22924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; } &&
22930          { ac_try='test -s conftest$ac_exeext'
22931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932   (eval $ac_try) 2>&5
22933   ac_status=$?
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); }; }; then
22936   ac_cv_search_opendir="none required"
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941 fi
22942 rm -f conftest.err conftest.$ac_objext \
22943       conftest$ac_exeext conftest.$ac_ext
22944 if test "$ac_cv_search_opendir" = no; then
22945   for ac_lib in x; do
22946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22947     cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953
22954 /* Override any gcc2 internal prototype to avoid an error.  */
22955 #ifdef __cplusplus
22956 extern "C"
22957 #endif
22958 /* We use char because int might match the return type of a gcc2
22959    builtin and then its argument prototype would still apply.  */
22960 char opendir ();
22961 int
22962 main ()
22963 {
22964 opendir ();
22965   ;
22966   return 0;
22967 }
22968 _ACEOF
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22971   (eval $ac_link) 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } &&
22978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980   (eval $ac_try) 2>&5
22981   ac_status=$?
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); }; } &&
22984          { ac_try='test -s conftest$ac_exeext'
22985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986   (eval $ac_try) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; }; then
22990   ac_cv_search_opendir="-l$ac_lib"
22991 break
22992 else
22993   echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22995
22996 fi
22997 rm -f conftest.err conftest.$ac_objext \
22998       conftest$ac_exeext conftest.$ac_ext
22999   done
23000 fi
23001 LIBS=$ac_func_search_save_LIBS
23002 fi
23003 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23004 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23005 if test "$ac_cv_search_opendir" != no; then
23006   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23007
23008 fi
23009
23010 fi
23011
23012 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23013 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23014 if test "${ac_cv_func_closedir_void+set}" = set; then
23015   echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017   if test "$cross_compiling" = yes; then
23018   ac_cv_func_closedir_void=yes
23019 else
23020   cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 $ac_includes_default
23027 #include <$ac_header_dirent>
23028 #ifndef __cplusplus
23029 int closedir ();
23030 #endif
23031
23032 int
23033 main ()
23034 {
23035 exit (closedir (opendir (".")) != 0);
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 rm -f conftest$ac_exeext
23041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23042   (eval $ac_link) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047   (eval $ac_try) 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; }; then
23051   ac_cv_func_closedir_void=no
23052 else
23053   echo "$as_me: program exited with status $ac_status" >&5
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 ( exit $ac_status )
23058 ac_cv_func_closedir_void=yes
23059 fi
23060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23061 fi
23062 fi
23063 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23064 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23065 if test $ac_cv_func_closedir_void = yes; then
23066
23067 cat >>confdefs.h <<\_ACEOF
23068 #define CLOSEDIR_VOID 1
23069 _ACEOF
23070
23071 fi
23072
23073 echo "$as_me:$LINENO: checking for error_at_line" >&5
23074 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23075 if test "${ac_cv_lib_error_at_line+set}" = set; then
23076   echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078   cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h.  */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h.  */
23084 $ac_includes_default
23085 int
23086 main ()
23087 {
23088 error_at_line (0, 0, "", 0, "");
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 rm -f conftest.$ac_objext conftest$ac_exeext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23095   (eval $ac_link) 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } &&
23102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104   (eval $ac_try) 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; } &&
23108          { ac_try='test -s conftest$ac_exeext'
23109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110   (eval $ac_try) 2>&5
23111   ac_status=$?
23112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113   (exit $ac_status); }; }; then
23114   ac_cv_lib_error_at_line=yes
23115 else
23116   echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23118
23119 ac_cv_lib_error_at_line=no
23120 fi
23121 rm -f conftest.err conftest.$ac_objext \
23122       conftest$ac_exeext conftest.$ac_ext
23123 fi
23124 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23125 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23126 if test $ac_cv_lib_error_at_line = no; then
23127   case $LIBOBJS in
23128     "error.$ac_objext"   | \
23129   *" error.$ac_objext"   | \
23130     "error.$ac_objext "* | \
23131   *" error.$ac_objext "* ) ;;
23132   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23133 esac
23134
23135 fi
23136
23137
23138
23139 for ac_header in unistd.h vfork.h
23140 do
23141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23143   echo "$as_me:$LINENO: checking for $ac_header" >&5
23144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23146   echo $ECHO_N "(cached) $ECHO_C" >&6
23147 fi
23148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23150 else
23151   # Is the header compilable?
23152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160 $ac_includes_default
23161 #include <$ac_header>
23162 _ACEOF
23163 rm -f conftest.$ac_objext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23165   (eval $ac_compile) 2>conftest.er1
23166   ac_status=$?
23167   grep -v '^ *+' conftest.er1 >conftest.err
23168   rm -f conftest.er1
23169   cat conftest.err >&5
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); } &&
23172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174   (eval $ac_try) 2>&5
23175   ac_status=$?
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); }; } &&
23178          { ac_try='test -s conftest.$ac_objext'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; }; then
23184   ac_header_compiler=yes
23185 else
23186   echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_header_compiler=no
23190 fi
23191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23193 echo "${ECHO_T}$ac_header_compiler" >&6
23194
23195 # Is the header present?
23196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23198 cat >conftest.$ac_ext <<_ACEOF
23199 /* confdefs.h.  */
23200 _ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h.  */
23204 #include <$ac_header>
23205 _ACEOF
23206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23208   ac_status=$?
23209   grep -v '^ *+' conftest.er1 >conftest.err
23210   rm -f conftest.er1
23211   cat conftest.err >&5
23212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213   (exit $ac_status); } >/dev/null; then
23214   if test -s conftest.err; then
23215     ac_cpp_err=$ac_c_preproc_warn_flag
23216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23217   else
23218     ac_cpp_err=
23219   fi
23220 else
23221   ac_cpp_err=yes
23222 fi
23223 if test -z "$ac_cpp_err"; then
23224   ac_header_preproc=yes
23225 else
23226   echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229   ac_header_preproc=no
23230 fi
23231 rm -f conftest.err conftest.$ac_ext
23232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23233 echo "${ECHO_T}$ac_header_preproc" >&6
23234
23235 # So?  What about this header?
23236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23237   yes:no: )
23238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23242     ac_header_preproc=yes
23243     ;;
23244   no:yes:* )
23245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23257     (
23258       cat <<\_ASBOX
23259 ## ------------------------------- ##
23260 ## Report this to nfs@lists.sf.net ##
23261 ## ------------------------------- ##
23262 _ASBOX
23263     ) |
23264       sed "s/^/$as_me: WARNING:     /" >&2
23265     ;;
23266 esac
23267 echo "$as_me:$LINENO: checking for $ac_header" >&5
23268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   eval "$as_ac_Header=\$ac_header_preproc"
23273 fi
23274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23276
23277 fi
23278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23279   cat >>confdefs.h <<_ACEOF
23280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23281 _ACEOF
23282
23283 fi
23284
23285 done
23286
23287
23288
23289 for ac_func in fork vfork
23290 do
23291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23292 echo "$as_me:$LINENO: checking for $ac_func" >&5
23293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23294 if eval "test \"\${$as_ac_var+set}\" = set"; then
23295   echo $ECHO_N "(cached) $ECHO_C" >&6
23296 else
23297   cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23305 #define $ac_func innocuous_$ac_func
23306
23307 /* System header to define __stub macros and hopefully few prototypes,
23308     which can conflict with char $ac_func (); below.
23309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23310     <limits.h> exists even on freestanding compilers.  */
23311
23312 #ifdef __STDC__
23313 # include <limits.h>
23314 #else
23315 # include <assert.h>
23316 #endif
23317
23318 #undef $ac_func
23319
23320 /* Override any gcc2 internal prototype to avoid an error.  */
23321 #ifdef __cplusplus
23322 extern "C"
23323 {
23324 #endif
23325 /* We use char because int might match the return type of a gcc2
23326    builtin and then its argument prototype would still apply.  */
23327 char $ac_func ();
23328 /* The GNU C library defines this for functions which it implements
23329     to always fail with ENOSYS.  Some functions are actually named
23330     something starting with __ and the normal name is an alias.  */
23331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23332 choke me
23333 #else
23334 char (*f) () = $ac_func;
23335 #endif
23336 #ifdef __cplusplus
23337 }
23338 #endif
23339
23340 int
23341 main ()
23342 {
23343 return f != $ac_func;
23344   ;
23345   return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext conftest$ac_exeext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23350   (eval $ac_link) 2>conftest.er1
23351   ac_status=$?
23352   grep -v '^ *+' conftest.er1 >conftest.err
23353   rm -f conftest.er1
23354   cat conftest.err >&5
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); } &&
23357          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; } &&
23363          { ac_try='test -s conftest$ac_exeext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   eval "$as_ac_var=yes"
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 eval "$as_ac_var=no"
23375 fi
23376 rm -f conftest.err conftest.$ac_objext \
23377       conftest$ac_exeext conftest.$ac_ext
23378 fi
23379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23381 if test `eval echo '${'$as_ac_var'}'` = yes; then
23382   cat >>confdefs.h <<_ACEOF
23383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23384 _ACEOF
23385
23386 fi
23387 done
23388
23389 if test "x$ac_cv_func_fork" = xyes; then
23390   echo "$as_me:$LINENO: checking for working fork" >&5
23391 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23392 if test "${ac_cv_func_fork_works+set}" = set; then
23393   echo $ECHO_N "(cached) $ECHO_C" >&6
23394 else
23395   if test "$cross_compiling" = yes; then
23396   ac_cv_func_fork_works=cross
23397 else
23398   cat >conftest.$ac_ext <<_ACEOF
23399 /* confdefs.h.  */
23400 _ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h.  */
23404 $ac_includes_default
23405 int
23406 main ()
23407 {
23408
23409           /* By Ruediger Kuhlmann. */
23410           if (fork() < 0)
23411             exit (1);
23412           exit (0);
23413
23414   ;
23415   return 0;
23416 }
23417 _ACEOF
23418 rm -f conftest$ac_exeext
23419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420   (eval $ac_link) 2>&5
23421   ac_status=$?
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425   (eval $ac_try) 2>&5
23426   ac_status=$?
23427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428   (exit $ac_status); }; }; then
23429   ac_cv_func_fork_works=yes
23430 else
23431   echo "$as_me: program exited with status $ac_status" >&5
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435 ( exit $ac_status )
23436 ac_cv_func_fork_works=no
23437 fi
23438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23439 fi
23440 fi
23441 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23442 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23443
23444 else
23445   ac_cv_func_fork_works=$ac_cv_func_fork
23446 fi
23447 if test "x$ac_cv_func_fork_works" = xcross; then
23448   case $host in
23449     *-*-amigaos* | *-*-msdosdjgpp*)
23450       # Override, as these systems have only a dummy fork() stub
23451       ac_cv_func_fork_works=no
23452       ;;
23453     *)
23454       ac_cv_func_fork_works=yes
23455       ;;
23456   esac
23457   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23458 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23459 fi
23460 ac_cv_func_vfork_works=$ac_cv_func_vfork
23461 if test "x$ac_cv_func_vfork" = xyes; then
23462   echo "$as_me:$LINENO: checking for working vfork" >&5
23463 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23464 if test "${ac_cv_func_vfork_works+set}" = set; then
23465   echo $ECHO_N "(cached) $ECHO_C" >&6
23466 else
23467   if test "$cross_compiling" = yes; then
23468   ac_cv_func_vfork_works=cross
23469 else
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476 /* Thanks to Paul Eggert for this test.  */
23477 #include <stdio.h>
23478 #include <stdlib.h>
23479 #include <sys/types.h>
23480 #include <sys/stat.h>
23481 #include <sys/wait.h>
23482 #if HAVE_UNISTD_H
23483 # include <unistd.h>
23484 #endif
23485 #if HAVE_VFORK_H
23486 # include <vfork.h>
23487 #endif
23488 /* On some sparc systems, changes by the child to local and incoming
23489    argument registers are propagated back to the parent.  The compiler
23490    is told about this with #include <vfork.h>, but some compilers
23491    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23492    static variable whose address is put into a register that is
23493    clobbered by the vfork.  */
23494 static void
23495 #ifdef __cplusplus
23496 sparc_address_test (int arg)
23497 # else
23498 sparc_address_test (arg) int arg;
23499 #endif
23500 {
23501   static pid_t child;
23502   if (!child) {
23503     child = vfork ();
23504     if (child < 0) {
23505       perror ("vfork");
23506       _exit(2);
23507     }
23508     if (!child) {
23509       arg = getpid();
23510       write(-1, "", 0);
23511       _exit (arg);
23512     }
23513   }
23514 }
23515
23516 int
23517 main ()
23518 {
23519   pid_t parent = getpid ();
23520   pid_t child;
23521
23522   sparc_address_test (0);
23523
23524   child = vfork ();
23525
23526   if (child == 0) {
23527     /* Here is another test for sparc vfork register problems.  This
23528        test uses lots of local variables, at least as many local
23529        variables as main has allocated so far including compiler
23530        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23531        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23532        reuse the register of parent for one of the local variables,
23533        since it will think that parent can't possibly be used any more
23534        in this routine.  Assigning to the local variable will thus
23535        munge parent in the parent process.  */
23536     pid_t
23537       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23538       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23539     /* Convince the compiler that p..p7 are live; otherwise, it might
23540        use the same hardware register for all 8 local variables.  */
23541     if (p != p1 || p != p2 || p != p3 || p != p4
23542         || p != p5 || p != p6 || p != p7)
23543       _exit(1);
23544
23545     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23546        from child file descriptors.  If the child closes a descriptor
23547        before it execs or exits, this munges the parent's descriptor
23548        as well.  Test for this by closing stdout in the child.  */
23549     _exit(close(fileno(stdout)) != 0);
23550   } else {
23551     int status;
23552     struct stat st;
23553
23554     while (wait(&status) != child)
23555       ;
23556     exit(
23557          /* Was there some problem with vforking?  */
23558          child < 0
23559
23560          /* Did the child fail?  (This shouldn't happen.)  */
23561          || status
23562
23563          /* Did the vfork/compiler bug occur?  */
23564          || parent != getpid()
23565
23566          /* Did the file descriptor bug occur?  */
23567          || fstat(fileno(stdout), &st) != 0
23568          );
23569   }
23570 }
23571 _ACEOF
23572 rm -f conftest$ac_exeext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23574   (eval $ac_link) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579   (eval $ac_try) 2>&5
23580   ac_status=$?
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); }; }; then
23583   ac_cv_func_vfork_works=yes
23584 else
23585   echo "$as_me: program exited with status $ac_status" >&5
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589 ( exit $ac_status )
23590 ac_cv_func_vfork_works=no
23591 fi
23592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23593 fi
23594 fi
23595 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23596 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23597
23598 fi;
23599 if test "x$ac_cv_func_fork_works" = xcross; then
23600   ac_cv_func_vfork_works=$ac_cv_func_vfork
23601   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23602 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23603 fi
23604
23605 if test "x$ac_cv_func_vfork_works" = xyes; then
23606
23607 cat >>confdefs.h <<\_ACEOF
23608 #define HAVE_WORKING_VFORK 1
23609 _ACEOF
23610
23611 else
23612
23613 cat >>confdefs.h <<\_ACEOF
23614 #define vfork fork
23615 _ACEOF
23616
23617 fi
23618 if test "x$ac_cv_func_fork_works" = xyes; then
23619
23620 cat >>confdefs.h <<\_ACEOF
23621 #define HAVE_WORKING_FORK 1
23622 _ACEOF
23623
23624 fi
23625
23626 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23627 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23628 if test "${ac_cv_type_getgroups+set}" = set; then
23629   echo $ECHO_N "(cached) $ECHO_C" >&6
23630 else
23631   if test "$cross_compiling" = yes; then
23632   ac_cv_type_getgroups=cross
23633 else
23634   cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640 /* Thanks to Mike Rendell for this test.  */
23641 #include <sys/types.h>
23642 #define NGID 256
23643 #undef MAX
23644 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23645
23646 int
23647 main ()
23648 {
23649   gid_t gidset[NGID];
23650   int i, n;
23651   union { gid_t gval; long lval; }  val;
23652
23653   val.lval = -1;
23654   for (i = 0; i < NGID; i++)
23655     gidset[i] = val.gval;
23656   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23657                  gidset);
23658   /* Exit non-zero if getgroups seems to require an array of ints.  This
23659      happens when gid_t is short but getgroups modifies an array of ints.  */
23660   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23661 }
23662 _ACEOF
23663 rm -f conftest$ac_exeext
23664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23665   (eval $ac_link) 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23670   (eval $ac_try) 2>&5
23671   ac_status=$?
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); }; }; then
23674   ac_cv_type_getgroups=gid_t
23675 else
23676   echo "$as_me: program exited with status $ac_status" >&5
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23679
23680 ( exit $ac_status )
23681 ac_cv_type_getgroups=int
23682 fi
23683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23684 fi
23685 if test $ac_cv_type_getgroups = cross; then
23686         cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h.  */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h.  */
23692 #include <unistd.h>
23693
23694 _ACEOF
23695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23696   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23697   ac_cv_type_getgroups=gid_t
23698 else
23699   ac_cv_type_getgroups=int
23700 fi
23701 rm -f conftest*
23702
23703 fi
23704 fi
23705 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23706 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23707
23708 cat >>confdefs.h <<_ACEOF
23709 #define GETGROUPS_T $ac_cv_type_getgroups
23710 _ACEOF
23711
23712
23713 echo "$as_me:$LINENO: checking for getgroups" >&5
23714 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23715 if test "${ac_cv_func_getgroups+set}" = set; then
23716   echo $ECHO_N "(cached) $ECHO_C" >&6
23717 else
23718   cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h.  */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h.  */
23724 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23726 #define getgroups innocuous_getgroups
23727
23728 /* System header to define __stub macros and hopefully few prototypes,
23729     which can conflict with char getgroups (); below.
23730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23731     <limits.h> exists even on freestanding compilers.  */
23732
23733 #ifdef __STDC__
23734 # include <limits.h>
23735 #else
23736 # include <assert.h>
23737 #endif
23738
23739 #undef getgroups
23740
23741 /* Override any gcc2 internal prototype to avoid an error.  */
23742 #ifdef __cplusplus
23743 extern "C"
23744 {
23745 #endif
23746 /* We use char because int might match the return type of a gcc2
23747    builtin and then its argument prototype would still apply.  */
23748 char getgroups ();
23749 /* The GNU C library defines this for functions which it implements
23750     to always fail with ENOSYS.  Some functions are actually named
23751     something starting with __ and the normal name is an alias.  */
23752 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23753 choke me
23754 #else
23755 char (*f) () = getgroups;
23756 #endif
23757 #ifdef __cplusplus
23758 }
23759 #endif
23760
23761 int
23762 main ()
23763 {
23764 return f != getgroups;
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 rm -f conftest.$ac_objext conftest$ac_exeext
23770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23771   (eval $ac_link) 2>conftest.er1
23772   ac_status=$?
23773   grep -v '^ *+' conftest.er1 >conftest.err
23774   rm -f conftest.er1
23775   cat conftest.err >&5
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } &&
23778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780   (eval $ac_try) 2>&5
23781   ac_status=$?
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); }; } &&
23784          { ac_try='test -s conftest$ac_exeext'
23785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786   (eval $ac_try) 2>&5
23787   ac_status=$?
23788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); }; }; then
23790   ac_cv_func_getgroups=yes
23791 else
23792   echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23794
23795 ac_cv_func_getgroups=no
23796 fi
23797 rm -f conftest.err conftest.$ac_objext \
23798       conftest$ac_exeext conftest.$ac_ext
23799 fi
23800 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23801 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
23802
23803
23804 # If we don't yet have getgroups, see if it's in -lbsd.
23805 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23806 ac_save_LIBS=$LIBS
23807 if test $ac_cv_func_getgroups = no; then
23808   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23809 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
23810 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23811   echo $ECHO_N "(cached) $ECHO_C" >&6
23812 else
23813   ac_check_lib_save_LIBS=$LIBS
23814 LIBS="-lbsd  $LIBS"
23815 cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h.  */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h.  */
23821
23822 /* Override any gcc2 internal prototype to avoid an error.  */
23823 #ifdef __cplusplus
23824 extern "C"
23825 #endif
23826 /* We use char because int might match the return type of a gcc2
23827    builtin and then its argument prototype would still apply.  */
23828 char getgroups ();
23829 int
23830 main ()
23831 {
23832 getgroups ();
23833   ;
23834   return 0;
23835 }
23836 _ACEOF
23837 rm -f conftest.$ac_objext conftest$ac_exeext
23838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23839   (eval $ac_link) 2>conftest.er1
23840   ac_status=$?
23841   grep -v '^ *+' conftest.er1 >conftest.err
23842   rm -f conftest.er1
23843   cat conftest.err >&5
23844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845   (exit $ac_status); } &&
23846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848   (eval $ac_try) 2>&5
23849   ac_status=$?
23850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851   (exit $ac_status); }; } &&
23852          { ac_try='test -s conftest$ac_exeext'
23853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); }; }; then
23858   ac_cv_lib_bsd_getgroups=yes
23859 else
23860   echo "$as_me: failed program was:" >&5
23861 sed 's/^/| /' conftest.$ac_ext >&5
23862
23863 ac_cv_lib_bsd_getgroups=no
23864 fi
23865 rm -f conftest.err conftest.$ac_objext \
23866       conftest$ac_exeext conftest.$ac_ext
23867 LIBS=$ac_check_lib_save_LIBS
23868 fi
23869 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23870 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
23871 if test $ac_cv_lib_bsd_getgroups = yes; then
23872   GETGROUPS_LIB=-lbsd
23873 fi
23874
23875 fi
23876
23877 # Run the program to test the functionality of the system-supplied
23878 # getgroups function only if there is such a function.
23879 if test $ac_cv_func_getgroups = yes; then
23880   echo "$as_me:$LINENO: checking for working getgroups" >&5
23881 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
23882 if test "${ac_cv_func_getgroups_works+set}" = set; then
23883   echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23885   if test "$cross_compiling" = yes; then
23886   ac_cv_func_getgroups_works=no
23887 else
23888   cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895 int
23896 main ()
23897 {
23898 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
23899        exit (getgroups (0, 0) == -1 ? 1 : 0);
23900   ;
23901   return 0;
23902 }
23903 _ACEOF
23904 rm -f conftest$ac_exeext
23905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23906   (eval $ac_link) 2>&5
23907   ac_status=$?
23908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); }; }; then
23915   ac_cv_func_getgroups_works=yes
23916 else
23917   echo "$as_me: program exited with status $ac_status" >&5
23918 echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23920
23921 ( exit $ac_status )
23922 ac_cv_func_getgroups_works=no
23923 fi
23924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23925 fi
23926
23927 fi
23928 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
23929 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
23930   if test $ac_cv_func_getgroups_works = yes; then
23931
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_GETGROUPS 1
23934 _ACEOF
23935
23936   fi
23937 fi
23938 LIBS=$ac_save_LIBS
23939
23940 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
23941 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
23942 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
23943 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946   ac_check_lib_save_LIBS=$LIBS
23947 LIBS="-lsun  $LIBS"
23948 cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954
23955 /* Override any gcc2 internal prototype to avoid an error.  */
23956 #ifdef __cplusplus
23957 extern "C"
23958 #endif
23959 /* We use char because int might match the return type of a gcc2
23960    builtin and then its argument prototype would still apply.  */
23961 char getmntent ();
23962 int
23963 main ()
23964 {
23965 getmntent ();
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23972   (eval $ac_link) 2>conftest.er1
23973   ac_status=$?
23974   grep -v '^ *+' conftest.er1 >conftest.err
23975   rm -f conftest.er1
23976   cat conftest.err >&5
23977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978   (exit $ac_status); } &&
23979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981   (eval $ac_try) 2>&5
23982   ac_status=$?
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); }; } &&
23985          { ac_try='test -s conftest$ac_exeext'
23986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987   (eval $ac_try) 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); }; }; then
23991   ac_cv_lib_sun_getmntent=yes
23992 else
23993   echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23995
23996 ac_cv_lib_sun_getmntent=no
23997 fi
23998 rm -f conftest.err conftest.$ac_objext \
23999       conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24001 fi
24002 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24003 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24004 if test $ac_cv_lib_sun_getmntent = yes; then
24005   LIBS="-lsun $LIBS"
24006 else
24007   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24008 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24009 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24010   echo $ECHO_N "(cached) $ECHO_C" >&6
24011 else
24012   ac_check_lib_save_LIBS=$LIBS
24013 LIBS="-lseq  $LIBS"
24014 cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020
24021 /* Override any gcc2 internal prototype to avoid an error.  */
24022 #ifdef __cplusplus
24023 extern "C"
24024 #endif
24025 /* We use char because int might match the return type of a gcc2
24026    builtin and then its argument prototype would still apply.  */
24027 char getmntent ();
24028 int
24029 main ()
24030 {
24031 getmntent ();
24032   ;
24033   return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext conftest$ac_exeext
24037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24038   (eval $ac_link) 2>conftest.er1
24039   ac_status=$?
24040   grep -v '^ *+' conftest.er1 >conftest.err
24041   rm -f conftest.er1
24042   cat conftest.err >&5
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } &&
24045          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047   (eval $ac_try) 2>&5
24048   ac_status=$?
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }; } &&
24051          { ac_try='test -s conftest$ac_exeext'
24052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053   (eval $ac_try) 2>&5
24054   ac_status=$?
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); }; }; then
24057   ac_cv_lib_seq_getmntent=yes
24058 else
24059   echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 ac_cv_lib_seq_getmntent=no
24063 fi
24064 rm -f conftest.err conftest.$ac_objext \
24065       conftest$ac_exeext conftest.$ac_ext
24066 LIBS=$ac_check_lib_save_LIBS
24067 fi
24068 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24069 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24070 if test $ac_cv_lib_seq_getmntent = yes; then
24071   LIBS="-lseq $LIBS"
24072 else
24073   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24074 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24075 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24076   echo $ECHO_N "(cached) $ECHO_C" >&6
24077 else
24078   ac_check_lib_save_LIBS=$LIBS
24079 LIBS="-lgen  $LIBS"
24080 cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086
24087 /* Override any gcc2 internal prototype to avoid an error.  */
24088 #ifdef __cplusplus
24089 extern "C"
24090 #endif
24091 /* We use char because int might match the return type of a gcc2
24092    builtin and then its argument prototype would still apply.  */
24093 char getmntent ();
24094 int
24095 main ()
24096 {
24097 getmntent ();
24098   ;
24099   return 0;
24100 }
24101 _ACEOF
24102 rm -f conftest.$ac_objext conftest$ac_exeext
24103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24104   (eval $ac_link) 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } &&
24111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113   (eval $ac_try) 2>&5
24114   ac_status=$?
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); }; } &&
24117          { ac_try='test -s conftest$ac_exeext'
24118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119   (eval $ac_try) 2>&5
24120   ac_status=$?
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); }; }; then
24123   ac_cv_lib_gen_getmntent=yes
24124 else
24125   echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.$ac_ext >&5
24127
24128 ac_cv_lib_gen_getmntent=no
24129 fi
24130 rm -f conftest.err conftest.$ac_objext \
24131       conftest$ac_exeext conftest.$ac_ext
24132 LIBS=$ac_check_lib_save_LIBS
24133 fi
24134 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24135 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24136 if test $ac_cv_lib_gen_getmntent = yes; then
24137   LIBS="-lgen $LIBS"
24138 fi
24139
24140 fi
24141
24142 fi
24143
24144
24145 for ac_func in getmntent
24146 do
24147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24148 echo "$as_me:$LINENO: checking for $ac_func" >&5
24149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24150 if eval "test \"\${$as_ac_var+set}\" = set"; then
24151   echo $ECHO_N "(cached) $ECHO_C" >&6
24152 else
24153   cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h.  */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h.  */
24159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24161 #define $ac_func innocuous_$ac_func
24162
24163 /* System header to define __stub macros and hopefully few prototypes,
24164     which can conflict with char $ac_func (); below.
24165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24166     <limits.h> exists even on freestanding compilers.  */
24167
24168 #ifdef __STDC__
24169 # include <limits.h>
24170 #else
24171 # include <assert.h>
24172 #endif
24173
24174 #undef $ac_func
24175
24176 /* Override any gcc2 internal prototype to avoid an error.  */
24177 #ifdef __cplusplus
24178 extern "C"
24179 {
24180 #endif
24181 /* We use char because int might match the return type of a gcc2
24182    builtin and then its argument prototype would still apply.  */
24183 char $ac_func ();
24184 /* The GNU C library defines this for functions which it implements
24185     to always fail with ENOSYS.  Some functions are actually named
24186     something starting with __ and the normal name is an alias.  */
24187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24188 choke me
24189 #else
24190 char (*f) () = $ac_func;
24191 #endif
24192 #ifdef __cplusplus
24193 }
24194 #endif
24195
24196 int
24197 main ()
24198 {
24199 return f != $ac_func;
24200   ;
24201   return 0;
24202 }
24203 _ACEOF
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24206   (eval $ac_link) 2>conftest.er1
24207   ac_status=$?
24208   grep -v '^ *+' conftest.er1 >conftest.err
24209   rm -f conftest.er1
24210   cat conftest.err >&5
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); } &&
24213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215   (eval $ac_try) 2>&5
24216   ac_status=$?
24217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218   (exit $ac_status); }; } &&
24219          { ac_try='test -s conftest$ac_exeext'
24220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221   (eval $ac_try) 2>&5
24222   ac_status=$?
24223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224   (exit $ac_status); }; }; then
24225   eval "$as_ac_var=yes"
24226 else
24227   echo "$as_me: failed program was:" >&5
24228 sed 's/^/| /' conftest.$ac_ext >&5
24229
24230 eval "$as_ac_var=no"
24231 fi
24232 rm -f conftest.err conftest.$ac_objext \
24233       conftest$ac_exeext conftest.$ac_ext
24234 fi
24235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24237 if test `eval echo '${'$as_ac_var'}'` = yes; then
24238   cat >>confdefs.h <<_ACEOF
24239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24240 _ACEOF
24241
24242 fi
24243 done
24244
24245
24246 if test $ac_cv_c_compiler_gnu = yes; then
24247     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24248 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24249 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24250   echo $ECHO_N "(cached) $ECHO_C" >&6
24251 else
24252     ac_pattern="Autoconf.*'x'"
24253   cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h.  */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h.  */
24259 #include <sgtty.h>
24260 Autoconf TIOCGETP
24261 _ACEOF
24262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24263   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24264   ac_cv_prog_gcc_traditional=yes
24265 else
24266   ac_cv_prog_gcc_traditional=no
24267 fi
24268 rm -f conftest*
24269
24270
24271   if test $ac_cv_prog_gcc_traditional = no; then
24272     cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h.  */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h.  */
24278 #include <termio.h>
24279 Autoconf TCGETA
24280 _ACEOF
24281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24282   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24283   ac_cv_prog_gcc_traditional=yes
24284 fi
24285 rm -f conftest*
24286
24287   fi
24288 fi
24289 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24290 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24291   if test $ac_cv_prog_gcc_traditional = yes; then
24292     CC="$CC -traditional"
24293   fi
24294 fi
24295
24296 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24297 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24298 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24299   echo $ECHO_N "(cached) $ECHO_C" >&6
24300 else
24301   rm -f conftest.sym conftest.file
24302 echo >conftest.file
24303 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24304   if test "$cross_compiling" = yes; then
24305   ac_cv_func_lstat_dereferences_slashed_symlink=no
24306 else
24307   cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h.  */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h.  */
24313 $ac_includes_default
24314 int
24315 main ()
24316 {
24317 struct stat sbuf;
24318      /* Linux will dereference the symlink and fail.
24319         That is better in the sense that it means we will not
24320         have to compile and use the lstat wrapper.  */
24321      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24322   ;
24323   return 0;
24324 }
24325 _ACEOF
24326 rm -f conftest$ac_exeext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24328   (eval $ac_link) 2>&5
24329   ac_status=$?
24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24333   (eval $ac_try) 2>&5
24334   ac_status=$?
24335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336   (exit $ac_status); }; }; then
24337   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24338 else
24339   echo "$as_me: program exited with status $ac_status" >&5
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24342
24343 ( exit $ac_status )
24344 ac_cv_func_lstat_dereferences_slashed_symlink=no
24345 fi
24346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24347 fi
24348 else
24349   # If the `ln -s' command failed, then we probably don't even
24350   # have an lstat function.
24351   ac_cv_func_lstat_dereferences_slashed_symlink=no
24352 fi
24353 rm -f conftest.sym conftest.file
24354
24355 fi
24356 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24357 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24358
24359 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24360
24361 cat >>confdefs.h <<_ACEOF
24362 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24363 _ACEOF
24364
24365
24366 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24367   case $LIBOBJS in
24368     "lstat.$ac_objext"   | \
24369   *" lstat.$ac_objext"   | \
24370     "lstat.$ac_objext "* | \
24371   *" lstat.$ac_objext "* ) ;;
24372   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24373 esac
24374
24375 fi
24376
24377 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24378 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24379 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24380   echo $ECHO_N "(cached) $ECHO_C" >&6
24381 else
24382   if test "$cross_compiling" = yes; then
24383   ac_cv_func_lstat_empty_string_bug=yes
24384 else
24385   cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h.  */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h.  */
24391 $ac_includes_default
24392 int
24393 main ()
24394 {
24395 struct stat sbuf;
24396   exit (lstat ("", &sbuf) ? 1 : 0);
24397   ;
24398   return 0;
24399 }
24400 _ACEOF
24401 rm -f conftest$ac_exeext
24402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24403   (eval $ac_link) 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408   (eval $ac_try) 2>&5
24409   ac_status=$?
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); }; }; then
24412   ac_cv_func_lstat_empty_string_bug=yes
24413 else
24414   echo "$as_me: program exited with status $ac_status" >&5
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ( exit $ac_status )
24419 ac_cv_func_lstat_empty_string_bug=no
24420 fi
24421 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24422 fi
24423 fi
24424 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24425 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24426 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24427   case $LIBOBJS in
24428     "lstat.$ac_objext"   | \
24429   *" lstat.$ac_objext"   | \
24430     "lstat.$ac_objext "* | \
24431   *" lstat.$ac_objext "* ) ;;
24432   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24433 esac
24434
24435
24436 cat >>confdefs.h <<_ACEOF
24437 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24438 _ACEOF
24439
24440 fi
24441
24442 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24443 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24444 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24445   echo $ECHO_N "(cached) $ECHO_C" >&6
24446 else
24447   rm -f conftest.sym conftest.file
24448 echo >conftest.file
24449 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24450   if test "$cross_compiling" = yes; then
24451   ac_cv_func_lstat_dereferences_slashed_symlink=no
24452 else
24453   cat >conftest.$ac_ext <<_ACEOF
24454 /* confdefs.h.  */
24455 _ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h.  */
24459 $ac_includes_default
24460 int
24461 main ()
24462 {
24463 struct stat sbuf;
24464      /* Linux will dereference the symlink and fail.
24465         That is better in the sense that it means we will not
24466         have to compile and use the lstat wrapper.  */
24467      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24468   ;
24469   return 0;
24470 }
24471 _ACEOF
24472 rm -f conftest$ac_exeext
24473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24474   (eval $ac_link) 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; }; then
24483   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24484 else
24485   echo "$as_me: program exited with status $ac_status" >&5
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ( exit $ac_status )
24490 ac_cv_func_lstat_dereferences_slashed_symlink=no
24491 fi
24492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24493 fi
24494 else
24495   # If the `ln -s' command failed, then we probably don't even
24496   # have an lstat function.
24497   ac_cv_func_lstat_dereferences_slashed_symlink=no
24498 fi
24499 rm -f conftest.sym conftest.file
24500
24501 fi
24502 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24503 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24504
24505 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24506
24507 cat >>confdefs.h <<_ACEOF
24508 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24509 _ACEOF
24510
24511
24512 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24513   case $LIBOBJS in
24514     "lstat.$ac_objext"   | \
24515   *" lstat.$ac_objext"   | \
24516     "lstat.$ac_objext "* | \
24517   *" lstat.$ac_objext "* ) ;;
24518   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24519 esac
24520
24521 fi
24522
24523 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24524 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24525 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24526   echo $ECHO_N "(cached) $ECHO_C" >&6
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <sys/types.h>
24535 int
24536 main ()
24537 {
24538 return makedev(0, 0);
24539   ;
24540   return 0;
24541 }
24542 _ACEOF
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24545   (eval $ac_link) 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } &&
24552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554   (eval $ac_try) 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; } &&
24558          { ac_try='test -s conftest$ac_exeext'
24559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24560   (eval $ac_try) 2>&5
24561   ac_status=$?
24562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563   (exit $ac_status); }; }; then
24564   ac_cv_header_sys_types_h_makedev=yes
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569 ac_cv_header_sys_types_h_makedev=no
24570 fi
24571 rm -f conftest.err conftest.$ac_objext \
24572       conftest$ac_exeext conftest.$ac_ext
24573
24574 fi
24575 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24576 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24577
24578 if test $ac_cv_header_sys_types_h_makedev = no; then
24579 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24580   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24581 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24582 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24583   echo $ECHO_N "(cached) $ECHO_C" >&6
24584 fi
24585 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24586 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24587 else
24588   # Is the header compilable?
24589 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24590 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24591 cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h.  */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h.  */
24597 $ac_includes_default
24598 #include <sys/mkdev.h>
24599 _ACEOF
24600 rm -f conftest.$ac_objext
24601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24602   (eval $ac_compile) 2>conftest.er1
24603   ac_status=$?
24604   grep -v '^ *+' conftest.er1 >conftest.err
24605   rm -f conftest.er1
24606   cat conftest.err >&5
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } &&
24609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611   (eval $ac_try) 2>&5
24612   ac_status=$?
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; } &&
24615          { ac_try='test -s conftest.$ac_objext'
24616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617   (eval $ac_try) 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); }; }; then
24621   ac_header_compiler=yes
24622 else
24623   echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.$ac_ext >&5
24625
24626 ac_header_compiler=no
24627 fi
24628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24630 echo "${ECHO_T}$ac_header_compiler" >&6
24631
24632 # Is the header present?
24633 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24634 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24635 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641 #include <sys/mkdev.h>
24642 _ACEOF
24643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24644   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24645   ac_status=$?
24646   grep -v '^ *+' conftest.er1 >conftest.err
24647   rm -f conftest.er1
24648   cat conftest.err >&5
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } >/dev/null; then
24651   if test -s conftest.err; then
24652     ac_cpp_err=$ac_c_preproc_warn_flag
24653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24654   else
24655     ac_cpp_err=
24656   fi
24657 else
24658   ac_cpp_err=yes
24659 fi
24660 if test -z "$ac_cpp_err"; then
24661   ac_header_preproc=yes
24662 else
24663   echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24665
24666   ac_header_preproc=no
24667 fi
24668 rm -f conftest.err conftest.$ac_ext
24669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24670 echo "${ECHO_T}$ac_header_preproc" >&6
24671
24672 # So?  What about this header?
24673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24674   yes:no: )
24675     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24676 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24677     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24678 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24679     ac_header_preproc=yes
24680     ;;
24681   no:yes:* )
24682     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24683 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24684     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24685 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24686     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24687 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24688     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24689 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24690     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24691 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24692     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24693 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24694     (
24695       cat <<\_ASBOX
24696 ## ------------------------------- ##
24697 ## Report this to nfs@lists.sf.net ##
24698 ## ------------------------------- ##
24699 _ASBOX
24700     ) |
24701       sed "s/^/$as_me: WARNING:     /" >&2
24702     ;;
24703 esac
24704 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24705 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24706 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24707   echo $ECHO_N "(cached) $ECHO_C" >&6
24708 else
24709   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24710 fi
24711 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24712 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24713
24714 fi
24715 if test $ac_cv_header_sys_mkdev_h = yes; then
24716
24717 cat >>confdefs.h <<\_ACEOF
24718 #define MAJOR_IN_MKDEV 1
24719 _ACEOF
24720
24721 fi
24722
24723
24724
24725   if test $ac_cv_header_sys_mkdev_h = no; then
24726     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24727   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24728 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24729 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24730   echo $ECHO_N "(cached) $ECHO_C" >&6
24731 fi
24732 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24733 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24734 else
24735   # Is the header compilable?
24736 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24737 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h.  */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h.  */
24744 $ac_includes_default
24745 #include <sys/sysmacros.h>
24746 _ACEOF
24747 rm -f conftest.$ac_objext
24748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24749   (eval $ac_compile) 2>conftest.er1
24750   ac_status=$?
24751   grep -v '^ *+' conftest.er1 >conftest.err
24752   rm -f conftest.er1
24753   cat conftest.err >&5
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); } &&
24756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758   (eval $ac_try) 2>&5
24759   ac_status=$?
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); }; } &&
24762          { ac_try='test -s conftest.$ac_objext'
24763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764   (eval $ac_try) 2>&5
24765   ac_status=$?
24766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); }; }; then
24768   ac_header_compiler=yes
24769 else
24770   echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24772
24773 ac_header_compiler=no
24774 fi
24775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24777 echo "${ECHO_T}$ac_header_compiler" >&6
24778
24779 # Is the header present?
24780 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24781 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
24782 cat >conftest.$ac_ext <<_ACEOF
24783 /* confdefs.h.  */
24784 _ACEOF
24785 cat confdefs.h >>conftest.$ac_ext
24786 cat >>conftest.$ac_ext <<_ACEOF
24787 /* end confdefs.h.  */
24788 #include <sys/sysmacros.h>
24789 _ACEOF
24790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } >/dev/null; then
24798   if test -s conftest.err; then
24799     ac_cpp_err=$ac_c_preproc_warn_flag
24800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24801   else
24802     ac_cpp_err=
24803   fi
24804 else
24805   ac_cpp_err=yes
24806 fi
24807 if test -z "$ac_cpp_err"; then
24808   ac_header_preproc=yes
24809 else
24810   echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24812
24813   ac_header_preproc=no
24814 fi
24815 rm -f conftest.err conftest.$ac_ext
24816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24817 echo "${ECHO_T}$ac_header_preproc" >&6
24818
24819 # So?  What about this header?
24820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24821   yes:no: )
24822     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24823 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24824     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24825 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24826     ac_header_preproc=yes
24827     ;;
24828   no:yes:* )
24829     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24830 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24831     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
24832 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
24833     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24834 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24835     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
24836 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24837     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24838 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24839     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24840 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24841     (
24842       cat <<\_ASBOX
24843 ## ------------------------------- ##
24844 ## Report this to nfs@lists.sf.net ##
24845 ## ------------------------------- ##
24846 _ASBOX
24847     ) |
24848       sed "s/^/$as_me: WARNING:     /" >&2
24849     ;;
24850 esac
24851 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24852 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24853 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24854   echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24857 fi
24858 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24859 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24860
24861 fi
24862 if test $ac_cv_header_sys_sysmacros_h = yes; then
24863
24864 cat >>confdefs.h <<\_ACEOF
24865 #define MAJOR_IN_SYSMACROS 1
24866 _ACEOF
24867
24868 fi
24869
24870
24871   fi
24872 fi
24873
24874 #AC_FUNC_MALLOC
24875 echo "$as_me:$LINENO: checking for working memcmp" >&5
24876 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
24877 if test "${ac_cv_func_memcmp_working+set}" = set; then
24878   echo $ECHO_N "(cached) $ECHO_C" >&6
24879 else
24880   if test "$cross_compiling" = yes; then
24881   ac_cv_func_memcmp_working=no
24882 else
24883   cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h.  */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h.  */
24889 $ac_includes_default
24890 int
24891 main ()
24892 {
24893
24894   /* Some versions of memcmp are not 8-bit clean.  */
24895   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
24896   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24897     exit (1);
24898
24899   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24900      or more and with at least one buffer not starting on a 4-byte boundary.
24901      William Lewis provided this test program.   */
24902   {
24903     char foo[21];
24904     char bar[21];
24905     int i;
24906     for (i = 0; i < 4; i++)
24907       {
24908         char *a = foo + i;
24909         char *b = bar + i;
24910         strcpy (a, "--------01111111");
24911         strcpy (b, "--------10000000");
24912         if (memcmp (a, b, 16) >= 0)
24913           exit (1);
24914       }
24915     exit (0);
24916   }
24917
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 rm -f conftest$ac_exeext
24923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24924   (eval $ac_link) 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929   (eval $ac_try) 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; }; then
24933   ac_cv_func_memcmp_working=yes
24934 else
24935   echo "$as_me: program exited with status $ac_status" >&5
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24938
24939 ( exit $ac_status )
24940 ac_cv_func_memcmp_working=no
24941 fi
24942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24943 fi
24944 fi
24945 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24946 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
24947 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
24948     "memcmp.$ac_objext"   | \
24949   *" memcmp.$ac_objext"   | \
24950     "memcmp.$ac_objext "* | \
24951   *" memcmp.$ac_objext "* ) ;;
24952   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
24953 esac
24954
24955
24956 #AC_FUNC_REALLOC
24957
24958
24959 for ac_header in sys/select.h sys/socket.h
24960 do
24961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24963   echo "$as_me:$LINENO: checking for $ac_header" >&5
24964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24966   echo $ECHO_N "(cached) $ECHO_C" >&6
24967 fi
24968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24970 else
24971   # Is the header compilable?
24972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24974 cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980 $ac_includes_default
24981 #include <$ac_header>
24982 _ACEOF
24983 rm -f conftest.$ac_objext
24984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24985   (eval $ac_compile) 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } &&
24992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994   (eval $ac_try) 2>&5
24995   ac_status=$?
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); }; } &&
24998          { ac_try='test -s conftest.$ac_objext'
24999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000   (eval $ac_try) 2>&5
25001   ac_status=$?
25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003   (exit $ac_status); }; }; then
25004   ac_header_compiler=yes
25005 else
25006   echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.$ac_ext >&5
25008
25009 ac_header_compiler=no
25010 fi
25011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25013 echo "${ECHO_T}$ac_header_compiler" >&6
25014
25015 # Is the header present?
25016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25018 cat >conftest.$ac_ext <<_ACEOF
25019 /* confdefs.h.  */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h.  */
25024 #include <$ac_header>
25025 _ACEOF
25026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } >/dev/null; then
25034   if test -s conftest.err; then
25035     ac_cpp_err=$ac_c_preproc_warn_flag
25036     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25037   else
25038     ac_cpp_err=
25039   fi
25040 else
25041   ac_cpp_err=yes
25042 fi
25043 if test -z "$ac_cpp_err"; then
25044   ac_header_preproc=yes
25045 else
25046   echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25048
25049   ac_header_preproc=no
25050 fi
25051 rm -f conftest.err conftest.$ac_ext
25052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25053 echo "${ECHO_T}$ac_header_preproc" >&6
25054
25055 # So?  What about this header?
25056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25057   yes:no: )
25058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25062     ac_header_preproc=yes
25063     ;;
25064   no:yes:* )
25065     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25067     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25068 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25069     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25071     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25072 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25075     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25077     (
25078       cat <<\_ASBOX
25079 ## ------------------------------- ##
25080 ## Report this to nfs@lists.sf.net ##
25081 ## ------------------------------- ##
25082 _ASBOX
25083     ) |
25084       sed "s/^/$as_me: WARNING:     /" >&2
25085     ;;
25086 esac
25087 echo "$as_me:$LINENO: checking for $ac_header" >&5
25088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092   eval "$as_ac_Header=\$ac_header_preproc"
25093 fi
25094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25096
25097 fi
25098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25099   cat >>confdefs.h <<_ACEOF
25100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25101 _ACEOF
25102
25103 fi
25104
25105 done
25106
25107 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25108 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25109 if test "${ac_cv_func_select_args+set}" = set; then
25110   echo $ECHO_N "(cached) $ECHO_C" >&6
25111 else
25112   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25113  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25114   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25115    cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121 $ac_includes_default
25122 #if HAVE_SYS_SELECT_H
25123 # include <sys/select.h>
25124 #endif
25125 #if HAVE_SYS_SOCKET_H
25126 # include <sys/socket.h>
25127 #endif
25128
25129 int
25130 main ()
25131 {
25132 extern int select ($ac_arg1,
25133                                             $ac_arg234, $ac_arg234, $ac_arg234,
25134                                             $ac_arg5);
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 rm -f conftest.$ac_objext
25140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25141   (eval $ac_compile) 2>conftest.er1
25142   ac_status=$?
25143   grep -v '^ *+' conftest.er1 >conftest.err
25144   rm -f conftest.er1
25145   cat conftest.err >&5
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); } &&
25148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25150   (eval $ac_try) 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); }; } &&
25154          { ac_try='test -s conftest.$ac_objext'
25155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25156   (eval $ac_try) 2>&5
25157   ac_status=$?
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); }; }; then
25160   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25161 else
25162   echo "$as_me: failed program was:" >&5
25163 sed 's/^/| /' conftest.$ac_ext >&5
25164
25165 fi
25166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25167   done
25168  done
25169 done
25170 # Provide a safe default value.
25171 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25172
25173 fi
25174 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25175 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25176 ac_save_IFS=$IFS; IFS=','
25177 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25178 IFS=$ac_save_IFS
25179 shift
25180
25181 cat >>confdefs.h <<_ACEOF
25182 #define SELECT_TYPE_ARG1 $1
25183 _ACEOF
25184
25185
25186 cat >>confdefs.h <<_ACEOF
25187 #define SELECT_TYPE_ARG234 ($2)
25188 _ACEOF
25189
25190
25191 cat >>confdefs.h <<_ACEOF
25192 #define SELECT_TYPE_ARG5 ($3)
25193 _ACEOF
25194
25195 rm -f conftest*
25196
25197 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25198 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25199 if test "${ac_cv_type_signal+set}" = set; then
25200   echo $ECHO_N "(cached) $ECHO_C" >&6
25201 else
25202   cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h.  */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h.  */
25208 #include <sys/types.h>
25209 #include <signal.h>
25210 #ifdef signal
25211 # undef signal
25212 #endif
25213 #ifdef __cplusplus
25214 extern "C" void (*signal (int, void (*)(int)))(int);
25215 #else
25216 void (*signal ()) ();
25217 #endif
25218
25219 int
25220 main ()
25221 {
25222 int i;
25223   ;
25224   return 0;
25225 }
25226 _ACEOF
25227 rm -f conftest.$ac_objext
25228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25229   (eval $ac_compile) 2>conftest.er1
25230   ac_status=$?
25231   grep -v '^ *+' conftest.er1 >conftest.err
25232   rm -f conftest.er1
25233   cat conftest.err >&5
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); } &&
25236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238   (eval $ac_try) 2>&5
25239   ac_status=$?
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); }; } &&
25242          { ac_try='test -s conftest.$ac_objext'
25243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25244   (eval $ac_try) 2>&5
25245   ac_status=$?
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); }; }; then
25248   ac_cv_type_signal=void
25249 else
25250   echo "$as_me: failed program was:" >&5
25251 sed 's/^/| /' conftest.$ac_ext >&5
25252
25253 ac_cv_type_signal=int
25254 fi
25255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25256 fi
25257 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25258 echo "${ECHO_T}$ac_cv_type_signal" >&6
25259
25260 cat >>confdefs.h <<_ACEOF
25261 #define RETSIGTYPE $ac_cv_type_signal
25262 _ACEOF
25263
25264
25265 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25266 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25267 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25268   echo $ECHO_N "(cached) $ECHO_C" >&6
25269 else
25270   if test "$cross_compiling" = yes; then
25271   ac_cv_func_stat_empty_string_bug=yes
25272 else
25273   cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279 $ac_includes_default
25280 int
25281 main ()
25282 {
25283 struct stat sbuf;
25284   exit (stat ("", &sbuf) ? 1 : 0);
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 rm -f conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291   (eval $ac_link) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296   (eval $ac_try) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }; }; then
25300   ac_cv_func_stat_empty_string_bug=yes
25301 else
25302   echo "$as_me: program exited with status $ac_status" >&5
25303 echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 ( exit $ac_status )
25307 ac_cv_func_stat_empty_string_bug=no
25308 fi
25309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25310 fi
25311 fi
25312 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25313 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25314 if test $ac_cv_func_stat_empty_string_bug = yes; then
25315   case $LIBOBJS in
25316     "stat.$ac_objext"   | \
25317   *" stat.$ac_objext"   | \
25318     "stat.$ac_objext "* | \
25319   *" stat.$ac_objext "* ) ;;
25320   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25321 esac
25322
25323
25324 cat >>confdefs.h <<_ACEOF
25325 #define HAVE_STAT_EMPTY_STRING_BUG 1
25326 _ACEOF
25327
25328 fi
25329
25330
25331 for ac_func in vprintf
25332 do
25333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25334 echo "$as_me:$LINENO: checking for $ac_func" >&5
25335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25336 if eval "test \"\${$as_ac_var+set}\" = set"; then
25337   echo $ECHO_N "(cached) $ECHO_C" >&6
25338 else
25339   cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25347 #define $ac_func innocuous_$ac_func
25348
25349 /* System header to define __stub macros and hopefully few prototypes,
25350     which can conflict with char $ac_func (); below.
25351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25352     <limits.h> exists even on freestanding compilers.  */
25353
25354 #ifdef __STDC__
25355 # include <limits.h>
25356 #else
25357 # include <assert.h>
25358 #endif
25359
25360 #undef $ac_func
25361
25362 /* Override any gcc2 internal prototype to avoid an error.  */
25363 #ifdef __cplusplus
25364 extern "C"
25365 {
25366 #endif
25367 /* We use char because int might match the return type of a gcc2
25368    builtin and then its argument prototype would still apply.  */
25369 char $ac_func ();
25370 /* The GNU C library defines this for functions which it implements
25371     to always fail with ENOSYS.  Some functions are actually named
25372     something starting with __ and the normal name is an alias.  */
25373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25374 choke me
25375 #else
25376 char (*f) () = $ac_func;
25377 #endif
25378 #ifdef __cplusplus
25379 }
25380 #endif
25381
25382 int
25383 main ()
25384 {
25385 return f != $ac_func;
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 rm -f conftest.$ac_objext conftest$ac_exeext
25391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25392   (eval $ac_link) 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } &&
25399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401   (eval $ac_try) 2>&5
25402   ac_status=$?
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); }; } &&
25405          { ac_try='test -s conftest$ac_exeext'
25406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407   (eval $ac_try) 2>&5
25408   ac_status=$?
25409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410   (exit $ac_status); }; }; then
25411   eval "$as_ac_var=yes"
25412 else
25413   echo "$as_me: failed program was:" >&5
25414 sed 's/^/| /' conftest.$ac_ext >&5
25415
25416 eval "$as_ac_var=no"
25417 fi
25418 rm -f conftest.err conftest.$ac_objext \
25419       conftest$ac_exeext conftest.$ac_ext
25420 fi
25421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25423 if test `eval echo '${'$as_ac_var'}'` = yes; then
25424   cat >>confdefs.h <<_ACEOF
25425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25426 _ACEOF
25427
25428 echo "$as_me:$LINENO: checking for _doprnt" >&5
25429 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25430 if test "${ac_cv_func__doprnt+set}" = set; then
25431   echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433   cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25441 #define _doprnt innocuous__doprnt
25442
25443 /* System header to define __stub macros and hopefully few prototypes,
25444     which can conflict with char _doprnt (); below.
25445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25446     <limits.h> exists even on freestanding compilers.  */
25447
25448 #ifdef __STDC__
25449 # include <limits.h>
25450 #else
25451 # include <assert.h>
25452 #endif
25453
25454 #undef _doprnt
25455
25456 /* Override any gcc2 internal prototype to avoid an error.  */
25457 #ifdef __cplusplus
25458 extern "C"
25459 {
25460 #endif
25461 /* We use char because int might match the return type of a gcc2
25462    builtin and then its argument prototype would still apply.  */
25463 char _doprnt ();
25464 /* The GNU C library defines this for functions which it implements
25465     to always fail with ENOSYS.  Some functions are actually named
25466     something starting with __ and the normal name is an alias.  */
25467 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25468 choke me
25469 #else
25470 char (*f) () = _doprnt;
25471 #endif
25472 #ifdef __cplusplus
25473 }
25474 #endif
25475
25476 int
25477 main ()
25478 {
25479 return f != _doprnt;
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext conftest$ac_exeext
25485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25486   (eval $ac_link) 2>conftest.er1
25487   ac_status=$?
25488   grep -v '^ *+' conftest.er1 >conftest.err
25489   rm -f conftest.er1
25490   cat conftest.err >&5
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); } &&
25493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495   (eval $ac_try) 2>&5
25496   ac_status=$?
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); }; } &&
25499          { ac_try='test -s conftest$ac_exeext'
25500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501   (eval $ac_try) 2>&5
25502   ac_status=$?
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); }; }; then
25505   ac_cv_func__doprnt=yes
25506 else
25507   echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510 ac_cv_func__doprnt=no
25511 fi
25512 rm -f conftest.err conftest.$ac_objext \
25513       conftest$ac_exeext conftest.$ac_ext
25514 fi
25515 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25516 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25517 if test $ac_cv_func__doprnt = yes; then
25518
25519 cat >>confdefs.h <<\_ACEOF
25520 #define HAVE_DOPRNT 1
25521 _ACEOF
25522
25523 fi
25524
25525 fi
25526 done
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25557                gethostbyaddr gethostbyname gethostname getmntent \
25558                gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
25559                realpath rmdir select socket strcasecmp strchr strdup \
25560                strerror strrchr strtol strtoul
25561 do
25562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25563 echo "$as_me:$LINENO: checking for $ac_func" >&5
25564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25565 if eval "test \"\${$as_ac_var+set}\" = set"; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568   cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25576 #define $ac_func innocuous_$ac_func
25577
25578 /* System header to define __stub macros and hopefully few prototypes,
25579     which can conflict with char $ac_func (); below.
25580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25581     <limits.h> exists even on freestanding compilers.  */
25582
25583 #ifdef __STDC__
25584 # include <limits.h>
25585 #else
25586 # include <assert.h>
25587 #endif
25588
25589 #undef $ac_func
25590
25591 /* Override any gcc2 internal prototype to avoid an error.  */
25592 #ifdef __cplusplus
25593 extern "C"
25594 {
25595 #endif
25596 /* We use char because int might match the return type of a gcc2
25597    builtin and then its argument prototype would still apply.  */
25598 char $ac_func ();
25599 /* The GNU C library defines this for functions which it implements
25600     to always fail with ENOSYS.  Some functions are actually named
25601     something starting with __ and the normal name is an alias.  */
25602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25603 choke me
25604 #else
25605 char (*f) () = $ac_func;
25606 #endif
25607 #ifdef __cplusplus
25608 }
25609 #endif
25610
25611 int
25612 main ()
25613 {
25614 return f != $ac_func;
25615   ;
25616   return 0;
25617 }
25618 _ACEOF
25619 rm -f conftest.$ac_objext conftest$ac_exeext
25620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25621   (eval $ac_link) 2>conftest.er1
25622   ac_status=$?
25623   grep -v '^ *+' conftest.er1 >conftest.err
25624   rm -f conftest.er1
25625   cat conftest.err >&5
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); } &&
25628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630   (eval $ac_try) 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; } &&
25634          { ac_try='test -s conftest$ac_exeext'
25635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636   (eval $ac_try) 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); }; }; then
25640   eval "$as_ac_var=yes"
25641 else
25642   echo "$as_me: failed program was:" >&5
25643 sed 's/^/| /' conftest.$ac_ext >&5
25644
25645 eval "$as_ac_var=no"
25646 fi
25647 rm -f conftest.err conftest.$ac_objext \
25648       conftest$ac_exeext conftest.$ac_ext
25649 fi
25650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25652 if test `eval echo '${'$as_ac_var'}'` = yes; then
25653   cat >>confdefs.h <<_ACEOF
25654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25655 _ACEOF
25656
25657 fi
25658 done
25659
25660
25661
25662 echo "$as_me:$LINENO: checking for short" >&5
25663 echo $ECHO_N "checking for short... $ECHO_C" >&6
25664 if test "${ac_cv_type_short+set}" = set; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 else
25667   cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673 $ac_includes_default
25674 int
25675 main ()
25676 {
25677 if ((short *) 0)
25678   return 0;
25679 if (sizeof (short))
25680   return 0;
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 rm -f conftest.$ac_objext
25686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25687   (eval $ac_compile) 2>conftest.er1
25688   ac_status=$?
25689   grep -v '^ *+' conftest.er1 >conftest.err
25690   rm -f conftest.er1
25691   cat conftest.err >&5
25692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); } &&
25694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696   (eval $ac_try) 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); }; } &&
25700          { ac_try='test -s conftest.$ac_objext'
25701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702   (eval $ac_try) 2>&5
25703   ac_status=$?
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); }; }; then
25706   ac_cv_type_short=yes
25707 else
25708   echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25710
25711 ac_cv_type_short=no
25712 fi
25713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25714 fi
25715 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25716 echo "${ECHO_T}$ac_cv_type_short" >&6
25717
25718 echo "$as_me:$LINENO: checking size of short" >&5
25719 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25720 if test "${ac_cv_sizeof_short+set}" = set; then
25721   echo $ECHO_N "(cached) $ECHO_C" >&6
25722 else
25723   if test "$ac_cv_type_short" = yes; then
25724   # The cast to unsigned long works around a bug in the HP C Compiler
25725   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25726   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25727   # This bug is HP SR number 8606223364.
25728   if test "$cross_compiling" = yes; then
25729   # Depending upon the size, compute the lo and hi bounds.
25730 cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h.  */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h.  */
25736 $ac_includes_default
25737 int
25738 main ()
25739 {
25740 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25741 test_array [0] = 0
25742
25743   ;
25744   return 0;
25745 }
25746 _ACEOF
25747 rm -f conftest.$ac_objext
25748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25749   (eval $ac_compile) 2>conftest.er1
25750   ac_status=$?
25751   grep -v '^ *+' conftest.er1 >conftest.err
25752   rm -f conftest.er1
25753   cat conftest.err >&5
25754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755   (exit $ac_status); } &&
25756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758   (eval $ac_try) 2>&5
25759   ac_status=$?
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); }; } &&
25762          { ac_try='test -s conftest.$ac_objext'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; }; then
25768   ac_lo=0 ac_mid=0
25769   while :; do
25770     cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 $ac_includes_default
25777 int
25778 main ()
25779 {
25780 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25781 test_array [0] = 0
25782
25783   ;
25784   return 0;
25785 }
25786 _ACEOF
25787 rm -f conftest.$ac_objext
25788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25789   (eval $ac_compile) 2>conftest.er1
25790   ac_status=$?
25791   grep -v '^ *+' conftest.er1 >conftest.err
25792   rm -f conftest.er1
25793   cat conftest.err >&5
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); } &&
25796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; } &&
25802          { ac_try='test -s conftest.$ac_objext'
25803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804   (eval $ac_try) 2>&5
25805   ac_status=$?
25806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807   (exit $ac_status); }; }; then
25808   ac_hi=$ac_mid; break
25809 else
25810   echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 ac_lo=`expr $ac_mid + 1`
25814                     if test $ac_lo -le $ac_mid; then
25815                       ac_lo= ac_hi=
25816                       break
25817                     fi
25818                     ac_mid=`expr 2 '*' $ac_mid + 1`
25819 fi
25820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25821   done
25822 else
25823   echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25825
25826 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832 $ac_includes_default
25833 int
25834 main ()
25835 {
25836 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
25837 test_array [0] = 0
25838
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845   (eval $ac_compile) 2>conftest.er1
25846   ac_status=$?
25847   grep -v '^ *+' conftest.er1 >conftest.err
25848   rm -f conftest.er1
25849   cat conftest.err >&5
25850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851   (exit $ac_status); } &&
25852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854   (eval $ac_try) 2>&5
25855   ac_status=$?
25856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857   (exit $ac_status); }; } &&
25858          { ac_try='test -s conftest.$ac_objext'
25859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860   (eval $ac_try) 2>&5
25861   ac_status=$?
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); }; }; then
25864   ac_hi=-1 ac_mid=-1
25865   while :; do
25866     cat >conftest.$ac_ext <<_ACEOF
25867 /* confdefs.h.  */
25868 _ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h.  */
25872 $ac_includes_default
25873 int
25874 main ()
25875 {
25876 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25877 test_array [0] = 0
25878
25879   ;
25880   return 0;
25881 }
25882 _ACEOF
25883 rm -f conftest.$ac_objext
25884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25885   (eval $ac_compile) 2>conftest.er1
25886   ac_status=$?
25887   grep -v '^ *+' conftest.er1 >conftest.err
25888   rm -f conftest.er1
25889   cat conftest.err >&5
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); } &&
25892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894   (eval $ac_try) 2>&5
25895   ac_status=$?
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); }; } &&
25898          { ac_try='test -s conftest.$ac_objext'
25899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900   (eval $ac_try) 2>&5
25901   ac_status=$?
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); }; }; then
25904   ac_lo=$ac_mid; break
25905 else
25906   echo "$as_me: failed program was:" >&5
25907 sed 's/^/| /' conftest.$ac_ext >&5
25908
25909 ac_hi=`expr '(' $ac_mid ')' - 1`
25910                        if test $ac_mid -le $ac_hi; then
25911                          ac_lo= ac_hi=
25912                          break
25913                        fi
25914                        ac_mid=`expr 2 '*' $ac_mid`
25915 fi
25916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25917   done
25918 else
25919   echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25921
25922 ac_lo= ac_hi=
25923 fi
25924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25925 fi
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927 # Binary search between lo and hi bounds.
25928 while test "x$ac_lo" != "x$ac_hi"; do
25929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25930   cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 $ac_includes_default
25937 int
25938 main ()
25939 {
25940 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25941 test_array [0] = 0
25942
25943   ;
25944   return 0;
25945 }
25946 _ACEOF
25947 rm -f conftest.$ac_objext
25948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949   (eval $ac_compile) 2>conftest.er1
25950   ac_status=$?
25951   grep -v '^ *+' conftest.er1 >conftest.err
25952   rm -f conftest.er1
25953   cat conftest.err >&5
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } &&
25956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958   (eval $ac_try) 2>&5
25959   ac_status=$?
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); }; } &&
25962          { ac_try='test -s conftest.$ac_objext'
25963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964   (eval $ac_try) 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); }; }; then
25968   ac_hi=$ac_mid
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973 ac_lo=`expr '(' $ac_mid ')' + 1`
25974 fi
25975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25976 done
25977 case $ac_lo in
25978 ?*) ac_cv_sizeof_short=$ac_lo;;
25979 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25980 See \`config.log' for more details." >&5
25981 echo "$as_me: error: cannot compute sizeof (short), 77
25982 See \`config.log' for more details." >&2;}
25983    { (exit 1); exit 1; }; } ;;
25984 esac
25985 else
25986   if test "$cross_compiling" = yes; then
25987   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25988 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25989    { (exit 1); exit 1; }; }
25990 else
25991   cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 $ac_includes_default
25998 long longval () { return (long) (sizeof (short)); }
25999 unsigned long ulongval () { return (long) (sizeof (short)); }
26000 #include <stdio.h>
26001 #include <stdlib.h>
26002 int
26003 main ()
26004 {
26005
26006   FILE *f = fopen ("conftest.val", "w");
26007   if (! f)
26008     exit (1);
26009   if (((long) (sizeof (short))) < 0)
26010     {
26011       long i = longval ();
26012       if (i != ((long) (sizeof (short))))
26013         exit (1);
26014       fprintf (f, "%ld\n", i);
26015     }
26016   else
26017     {
26018       unsigned long i = ulongval ();
26019       if (i != ((long) (sizeof (short))))
26020         exit (1);
26021       fprintf (f, "%lu\n", i);
26022     }
26023   exit (ferror (f) || fclose (f) != 0);
26024
26025   ;
26026   return 0;
26027 }
26028 _ACEOF
26029 rm -f conftest$ac_exeext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26031   (eval $ac_link) 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; }; then
26040   ac_cv_sizeof_short=`cat conftest.val`
26041 else
26042   echo "$as_me: program exited with status $ac_status" >&5
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046 ( exit $ac_status )
26047 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26048 See \`config.log' for more details." >&5
26049 echo "$as_me: error: cannot compute sizeof (short), 77
26050 See \`config.log' for more details." >&2;}
26051    { (exit 1); exit 1; }; }
26052 fi
26053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26054 fi
26055 fi
26056 rm -f conftest.val
26057 else
26058   ac_cv_sizeof_short=0
26059 fi
26060 fi
26061 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26062 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26063 cat >>confdefs.h <<_ACEOF
26064 #define SIZEOF_SHORT $ac_cv_sizeof_short
26065 _ACEOF
26066
26067
26068 echo "$as_me:$LINENO: checking for int" >&5
26069 echo $ECHO_N "checking for int... $ECHO_C" >&6
26070 if test "${ac_cv_type_int+set}" = set; then
26071   echo $ECHO_N "(cached) $ECHO_C" >&6
26072 else
26073   cat >conftest.$ac_ext <<_ACEOF
26074 /* confdefs.h.  */
26075 _ACEOF
26076 cat confdefs.h >>conftest.$ac_ext
26077 cat >>conftest.$ac_ext <<_ACEOF
26078 /* end confdefs.h.  */
26079 $ac_includes_default
26080 int
26081 main ()
26082 {
26083 if ((int *) 0)
26084   return 0;
26085 if (sizeof (int))
26086   return 0;
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093   (eval $ac_compile) 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102   (eval $ac_try) 2>&5
26103   ac_status=$?
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; } &&
26106          { ac_try='test -s conftest.$ac_objext'
26107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108   (eval $ac_try) 2>&5
26109   ac_status=$?
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); }; }; then
26112   ac_cv_type_int=yes
26113 else
26114   echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26116
26117 ac_cv_type_int=no
26118 fi
26119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26120 fi
26121 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26122 echo "${ECHO_T}$ac_cv_type_int" >&6
26123
26124 echo "$as_me:$LINENO: checking size of int" >&5
26125 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26126 if test "${ac_cv_sizeof_int+set}" = set; then
26127   echo $ECHO_N "(cached) $ECHO_C" >&6
26128 else
26129   if test "$ac_cv_type_int" = yes; then
26130   # The cast to unsigned long works around a bug in the HP C Compiler
26131   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26132   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26133   # This bug is HP SR number 8606223364.
26134   if test "$cross_compiling" = yes; then
26135   # Depending upon the size, compute the lo and hi bounds.
26136 cat >conftest.$ac_ext <<_ACEOF
26137 /* confdefs.h.  */
26138 _ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h.  */
26142 $ac_includes_default
26143 int
26144 main ()
26145 {
26146 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26147 test_array [0] = 0
26148
26149   ;
26150   return 0;
26151 }
26152 _ACEOF
26153 rm -f conftest.$ac_objext
26154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26155   (eval $ac_compile) 2>conftest.er1
26156   ac_status=$?
26157   grep -v '^ *+' conftest.er1 >conftest.err
26158   rm -f conftest.er1
26159   cat conftest.err >&5
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); } &&
26162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164   (eval $ac_try) 2>&5
26165   ac_status=$?
26166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167   (exit $ac_status); }; } &&
26168          { ac_try='test -s conftest.$ac_objext'
26169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170   (eval $ac_try) 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); }; }; then
26174   ac_lo=0 ac_mid=0
26175   while :; do
26176     cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h.  */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h.  */
26182 $ac_includes_default
26183 int
26184 main ()
26185 {
26186 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26187 test_array [0] = 0
26188
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 rm -f conftest.$ac_objext
26194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26195   (eval $ac_compile) 2>conftest.er1
26196   ac_status=$?
26197   grep -v '^ *+' conftest.er1 >conftest.err
26198   rm -f conftest.er1
26199   cat conftest.err >&5
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); } &&
26202          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204   (eval $ac_try) 2>&5
26205   ac_status=$?
26206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207   (exit $ac_status); }; } &&
26208          { ac_try='test -s conftest.$ac_objext'
26209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210   (eval $ac_try) 2>&5
26211   ac_status=$?
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); }; }; then
26214   ac_hi=$ac_mid; break
26215 else
26216   echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26218
26219 ac_lo=`expr $ac_mid + 1`
26220                     if test $ac_lo -le $ac_mid; then
26221                       ac_lo= ac_hi=
26222                       break
26223                     fi
26224                     ac_mid=`expr 2 '*' $ac_mid + 1`
26225 fi
26226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26227   done
26228 else
26229   echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26231
26232 cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 $ac_includes_default
26239 int
26240 main ()
26241 {
26242 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26243 test_array [0] = 0
26244
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251   (eval $ac_compile) 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } &&
26258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260   (eval $ac_try) 2>&5
26261   ac_status=$?
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); }; } &&
26264          { ac_try='test -s conftest.$ac_objext'
26265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); }; }; then
26270   ac_hi=-1 ac_mid=-1
26271   while :; do
26272     cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h.  */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h.  */
26278 $ac_includes_default
26279 int
26280 main ()
26281 {
26282 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26283 test_array [0] = 0
26284
26285   ;
26286   return 0;
26287 }
26288 _ACEOF
26289 rm -f conftest.$ac_objext
26290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26291   (eval $ac_compile) 2>conftest.er1
26292   ac_status=$?
26293   grep -v '^ *+' conftest.er1 >conftest.err
26294   rm -f conftest.er1
26295   cat conftest.err >&5
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); } &&
26298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; } &&
26304          { ac_try='test -s conftest.$ac_objext'
26305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306   (eval $ac_try) 2>&5
26307   ac_status=$?
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); }; }; then
26310   ac_lo=$ac_mid; break
26311 else
26312   echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_hi=`expr '(' $ac_mid ')' - 1`
26316                        if test $ac_mid -le $ac_hi; then
26317                          ac_lo= ac_hi=
26318                          break
26319                        fi
26320                        ac_mid=`expr 2 '*' $ac_mid`
26321 fi
26322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26323   done
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ac_lo= ac_hi=
26329 fi
26330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26331 fi
26332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26333 # Binary search between lo and hi bounds.
26334 while test "x$ac_lo" != "x$ac_hi"; do
26335   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26336   cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 $ac_includes_default
26343 int
26344 main ()
26345 {
26346 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26347 test_array [0] = 0
26348
26349   ;
26350   return 0;
26351 }
26352 _ACEOF
26353 rm -f conftest.$ac_objext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26355   (eval $ac_compile) 2>conftest.er1
26356   ac_status=$?
26357   grep -v '^ *+' conftest.er1 >conftest.err
26358   rm -f conftest.er1
26359   cat conftest.err >&5
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); } &&
26362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; } &&
26368          { ac_try='test -s conftest.$ac_objext'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; }; then
26374   ac_hi=$ac_mid
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 ac_lo=`expr '(' $ac_mid ')' + 1`
26380 fi
26381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26382 done
26383 case $ac_lo in
26384 ?*) ac_cv_sizeof_int=$ac_lo;;
26385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26386 See \`config.log' for more details." >&5
26387 echo "$as_me: error: cannot compute sizeof (int), 77
26388 See \`config.log' for more details." >&2;}
26389    { (exit 1); exit 1; }; } ;;
26390 esac
26391 else
26392   if test "$cross_compiling" = yes; then
26393   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26394 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26395    { (exit 1); exit 1; }; }
26396 else
26397   cat >conftest.$ac_ext <<_ACEOF
26398 /* confdefs.h.  */
26399 _ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h.  */
26403 $ac_includes_default
26404 long longval () { return (long) (sizeof (int)); }
26405 unsigned long ulongval () { return (long) (sizeof (int)); }
26406 #include <stdio.h>
26407 #include <stdlib.h>
26408 int
26409 main ()
26410 {
26411
26412   FILE *f = fopen ("conftest.val", "w");
26413   if (! f)
26414     exit (1);
26415   if (((long) (sizeof (int))) < 0)
26416     {
26417       long i = longval ();
26418       if (i != ((long) (sizeof (int))))
26419         exit (1);
26420       fprintf (f, "%ld\n", i);
26421     }
26422   else
26423     {
26424       unsigned long i = ulongval ();
26425       if (i != ((long) (sizeof (int))))
26426         exit (1);
26427       fprintf (f, "%lu\n", i);
26428     }
26429   exit (ferror (f) || fclose (f) != 0);
26430
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest$ac_exeext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26437   (eval $ac_link) 2>&5
26438   ac_status=$?
26439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26442   (eval $ac_try) 2>&5
26443   ac_status=$?
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); }; }; then
26446   ac_cv_sizeof_int=`cat conftest.val`
26447 else
26448   echo "$as_me: program exited with status $ac_status" >&5
26449 echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26451
26452 ( exit $ac_status )
26453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26454 See \`config.log' for more details." >&5
26455 echo "$as_me: error: cannot compute sizeof (int), 77
26456 See \`config.log' for more details." >&2;}
26457    { (exit 1); exit 1; }; }
26458 fi
26459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26460 fi
26461 fi
26462 rm -f conftest.val
26463 else
26464   ac_cv_sizeof_int=0
26465 fi
26466 fi
26467 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26468 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26469 cat >>confdefs.h <<_ACEOF
26470 #define SIZEOF_INT $ac_cv_sizeof_int
26471 _ACEOF
26472
26473
26474 echo "$as_me:$LINENO: checking for long" >&5
26475 echo $ECHO_N "checking for long... $ECHO_C" >&6
26476 if test "${ac_cv_type_long+set}" = set; then
26477   echo $ECHO_N "(cached) $ECHO_C" >&6
26478 else
26479   cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h.  */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h.  */
26485 $ac_includes_default
26486 int
26487 main ()
26488 {
26489 if ((long *) 0)
26490   return 0;
26491 if (sizeof (long))
26492   return 0;
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 rm -f conftest.$ac_objext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26499   (eval $ac_compile) 2>conftest.er1
26500   ac_status=$?
26501   grep -v '^ *+' conftest.er1 >conftest.err
26502   rm -f conftest.er1
26503   cat conftest.err >&5
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); } &&
26506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508   (eval $ac_try) 2>&5
26509   ac_status=$?
26510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511   (exit $ac_status); }; } &&
26512          { ac_try='test -s conftest.$ac_objext'
26513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514   (eval $ac_try) 2>&5
26515   ac_status=$?
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); }; }; then
26518   ac_cv_type_long=yes
26519 else
26520   echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26522
26523 ac_cv_type_long=no
26524 fi
26525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26526 fi
26527 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26528 echo "${ECHO_T}$ac_cv_type_long" >&6
26529
26530 echo "$as_me:$LINENO: checking size of long" >&5
26531 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26532 if test "${ac_cv_sizeof_long+set}" = set; then
26533   echo $ECHO_N "(cached) $ECHO_C" >&6
26534 else
26535   if test "$ac_cv_type_long" = yes; then
26536   # The cast to unsigned long works around a bug in the HP C Compiler
26537   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26538   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26539   # This bug is HP SR number 8606223364.
26540   if test "$cross_compiling" = yes; then
26541   # Depending upon the size, compute the lo and hi bounds.
26542 cat >conftest.$ac_ext <<_ACEOF
26543 /* confdefs.h.  */
26544 _ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h.  */
26548 $ac_includes_default
26549 int
26550 main ()
26551 {
26552 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26553 test_array [0] = 0
26554
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext
26560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26561   (eval $ac_compile) 2>conftest.er1
26562   ac_status=$?
26563   grep -v '^ *+' conftest.er1 >conftest.err
26564   rm -f conftest.er1
26565   cat conftest.err >&5
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); } &&
26568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570   (eval $ac_try) 2>&5
26571   ac_status=$?
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); }; } &&
26574          { ac_try='test -s conftest.$ac_objext'
26575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576   (eval $ac_try) 2>&5
26577   ac_status=$?
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); }; }; then
26580   ac_lo=0 ac_mid=0
26581   while :; do
26582     cat >conftest.$ac_ext <<_ACEOF
26583 /* confdefs.h.  */
26584 _ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h.  */
26588 $ac_includes_default
26589 int
26590 main ()
26591 {
26592 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26593 test_array [0] = 0
26594
26595   ;
26596   return 0;
26597 }
26598 _ACEOF
26599 rm -f conftest.$ac_objext
26600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26601   (eval $ac_compile) 2>conftest.er1
26602   ac_status=$?
26603   grep -v '^ *+' conftest.er1 >conftest.err
26604   rm -f conftest.er1
26605   cat conftest.err >&5
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); } &&
26608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610   (eval $ac_try) 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; } &&
26614          { ac_try='test -s conftest.$ac_objext'
26615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616   (eval $ac_try) 2>&5
26617   ac_status=$?
26618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); }; }; then
26620   ac_hi=$ac_mid; break
26621 else
26622   echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26624
26625 ac_lo=`expr $ac_mid + 1`
26626                     if test $ac_lo -le $ac_mid; then
26627                       ac_lo= ac_hi=
26628                       break
26629                     fi
26630                     ac_mid=`expr 2 '*' $ac_mid + 1`
26631 fi
26632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26633   done
26634 else
26635   echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638 cat >conftest.$ac_ext <<_ACEOF
26639 /* confdefs.h.  */
26640 _ACEOF
26641 cat confdefs.h >>conftest.$ac_ext
26642 cat >>conftest.$ac_ext <<_ACEOF
26643 /* end confdefs.h.  */
26644 $ac_includes_default
26645 int
26646 main ()
26647 {
26648 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26649 test_array [0] = 0
26650
26651   ;
26652   return 0;
26653 }
26654 _ACEOF
26655 rm -f conftest.$ac_objext
26656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26657   (eval $ac_compile) 2>conftest.er1
26658   ac_status=$?
26659   grep -v '^ *+' conftest.er1 >conftest.err
26660   rm -f conftest.er1
26661   cat conftest.err >&5
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); } &&
26664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666   (eval $ac_try) 2>&5
26667   ac_status=$?
26668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669   (exit $ac_status); }; } &&
26670          { ac_try='test -s conftest.$ac_objext'
26671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672   (eval $ac_try) 2>&5
26673   ac_status=$?
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); }; }; then
26676   ac_hi=-1 ac_mid=-1
26677   while :; do
26678     cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684 $ac_includes_default
26685 int
26686 main ()
26687 {
26688 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26689 test_array [0] = 0
26690
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 rm -f conftest.$ac_objext
26696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26697   (eval $ac_compile) 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } &&
26704          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26706   (eval $ac_try) 2>&5
26707   ac_status=$?
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); }; } &&
26710          { ac_try='test -s conftest.$ac_objext'
26711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712   (eval $ac_try) 2>&5
26713   ac_status=$?
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); }; }; then
26716   ac_lo=$ac_mid; break
26717 else
26718   echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26720
26721 ac_hi=`expr '(' $ac_mid ')' - 1`
26722                        if test $ac_mid -le $ac_hi; then
26723                          ac_lo= ac_hi=
26724                          break
26725                        fi
26726                        ac_mid=`expr 2 '*' $ac_mid`
26727 fi
26728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26729   done
26730 else
26731   echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734 ac_lo= ac_hi=
26735 fi
26736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737 fi
26738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26739 # Binary search between lo and hi bounds.
26740 while test "x$ac_lo" != "x$ac_hi"; do
26741   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26742   cat >conftest.$ac_ext <<_ACEOF
26743 /* confdefs.h.  */
26744 _ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h.  */
26748 $ac_includes_default
26749 int
26750 main ()
26751 {
26752 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26753 test_array [0] = 0
26754
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761   (eval $ac_compile) 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } &&
26768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770   (eval $ac_try) 2>&5
26771   ac_status=$?
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); }; } &&
26774          { ac_try='test -s conftest.$ac_objext'
26775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776   (eval $ac_try) 2>&5
26777   ac_status=$?
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); }; }; then
26780   ac_hi=$ac_mid
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785 ac_lo=`expr '(' $ac_mid ')' + 1`
26786 fi
26787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26788 done
26789 case $ac_lo in
26790 ?*) ac_cv_sizeof_long=$ac_lo;;
26791 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26792 See \`config.log' for more details." >&5
26793 echo "$as_me: error: cannot compute sizeof (long), 77
26794 See \`config.log' for more details." >&2;}
26795    { (exit 1); exit 1; }; } ;;
26796 esac
26797 else
26798   if test "$cross_compiling" = yes; then
26799   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26800 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26801    { (exit 1); exit 1; }; }
26802 else
26803   cat >conftest.$ac_ext <<_ACEOF
26804 /* confdefs.h.  */
26805 _ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h.  */
26809 $ac_includes_default
26810 long longval () { return (long) (sizeof (long)); }
26811 unsigned long ulongval () { return (long) (sizeof (long)); }
26812 #include <stdio.h>
26813 #include <stdlib.h>
26814 int
26815 main ()
26816 {
26817
26818   FILE *f = fopen ("conftest.val", "w");
26819   if (! f)
26820     exit (1);
26821   if (((long) (sizeof (long))) < 0)
26822     {
26823       long i = longval ();
26824       if (i != ((long) (sizeof (long))))
26825         exit (1);
26826       fprintf (f, "%ld\n", i);
26827     }
26828   else
26829     {
26830       unsigned long i = ulongval ();
26831       if (i != ((long) (sizeof (long))))
26832         exit (1);
26833       fprintf (f, "%lu\n", i);
26834     }
26835   exit (ferror (f) || fclose (f) != 0);
26836
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest$ac_exeext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26843   (eval $ac_link) 2>&5
26844   ac_status=$?
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848   (eval $ac_try) 2>&5
26849   ac_status=$?
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); }; }; then
26852   ac_cv_sizeof_long=`cat conftest.val`
26853 else
26854   echo "$as_me: program exited with status $ac_status" >&5
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858 ( exit $ac_status )
26859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26860 See \`config.log' for more details." >&5
26861 echo "$as_me: error: cannot compute sizeof (long), 77
26862 See \`config.log' for more details." >&2;}
26863    { (exit 1); exit 1; }; }
26864 fi
26865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26866 fi
26867 fi
26868 rm -f conftest.val
26869 else
26870   ac_cv_sizeof_long=0
26871 fi
26872 fi
26873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26874 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26875 cat >>confdefs.h <<_ACEOF
26876 #define SIZEOF_LONG $ac_cv_sizeof_long
26877 _ACEOF
26878
26879
26880 echo "$as_me:$LINENO: checking for size_t" >&5
26881 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26882 if test "${ac_cv_type_size_t+set}" = set; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h.  */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h.  */
26891 $ac_includes_default
26892 int
26893 main ()
26894 {
26895 if ((size_t *) 0)
26896   return 0;
26897 if (sizeof (size_t))
26898   return 0;
26899   ;
26900   return 0;
26901 }
26902 _ACEOF
26903 rm -f conftest.$ac_objext
26904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26905   (eval $ac_compile) 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } &&
26912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; } &&
26918          { ac_try='test -s conftest.$ac_objext'
26919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920   (eval $ac_try) 2>&5
26921   ac_status=$?
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); }; }; then
26924   ac_cv_type_size_t=yes
26925 else
26926   echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929 ac_cv_type_size_t=no
26930 fi
26931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26932 fi
26933 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26934 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26935
26936 echo "$as_me:$LINENO: checking size of size_t" >&5
26937 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26938 if test "${ac_cv_sizeof_size_t+set}" = set; then
26939   echo $ECHO_N "(cached) $ECHO_C" >&6
26940 else
26941   if test "$ac_cv_type_size_t" = yes; then
26942   # The cast to unsigned long works around a bug in the HP C Compiler
26943   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26944   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26945   # This bug is HP SR number 8606223364.
26946   if test "$cross_compiling" = yes; then
26947   # Depending upon the size, compute the lo and hi bounds.
26948 cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26954 $ac_includes_default
26955 int
26956 main ()
26957 {
26958 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26959 test_array [0] = 0
26960
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 rm -f conftest.$ac_objext
26966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26967   (eval $ac_compile) 2>conftest.er1
26968   ac_status=$?
26969   grep -v '^ *+' conftest.er1 >conftest.err
26970   rm -f conftest.er1
26971   cat conftest.err >&5
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); } &&
26974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976   (eval $ac_try) 2>&5
26977   ac_status=$?
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); }; } &&
26980          { ac_try='test -s conftest.$ac_objext'
26981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982   (eval $ac_try) 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); }; }; then
26986   ac_lo=0 ac_mid=0
26987   while :; do
26988     cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994 $ac_includes_default
26995 int
26996 main ()
26997 {
26998 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
26999 test_array [0] = 0
27000
27001   ;
27002   return 0;
27003 }
27004 _ACEOF
27005 rm -f conftest.$ac_objext
27006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27007   (eval $ac_compile) 2>conftest.er1
27008   ac_status=$?
27009   grep -v '^ *+' conftest.er1 >conftest.err
27010   rm -f conftest.er1
27011   cat conftest.err >&5
27012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); } &&
27014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016   (eval $ac_try) 2>&5
27017   ac_status=$?
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); }; } &&
27020          { ac_try='test -s conftest.$ac_objext'
27021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27022   (eval $ac_try) 2>&5
27023   ac_status=$?
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); }; }; then
27026   ac_hi=$ac_mid; break
27027 else
27028   echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031 ac_lo=`expr $ac_mid + 1`
27032                     if test $ac_lo -le $ac_mid; then
27033                       ac_lo= ac_hi=
27034                       break
27035                     fi
27036                     ac_mid=`expr 2 '*' $ac_mid + 1`
27037 fi
27038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27039   done
27040 else
27041   echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044 cat >conftest.$ac_ext <<_ACEOF
27045 /* confdefs.h.  */
27046 _ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h.  */
27050 $ac_includes_default
27051 int
27052 main ()
27053 {
27054 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27055 test_array [0] = 0
27056
27057   ;
27058   return 0;
27059 }
27060 _ACEOF
27061 rm -f conftest.$ac_objext
27062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27063   (eval $ac_compile) 2>conftest.er1
27064   ac_status=$?
27065   grep -v '^ *+' conftest.er1 >conftest.err
27066   rm -f conftest.er1
27067   cat conftest.err >&5
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } &&
27070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072   (eval $ac_try) 2>&5
27073   ac_status=$?
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); }; } &&
27076          { ac_try='test -s conftest.$ac_objext'
27077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078   (eval $ac_try) 2>&5
27079   ac_status=$?
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); }; }; then
27082   ac_hi=-1 ac_mid=-1
27083   while :; do
27084     cat >conftest.$ac_ext <<_ACEOF
27085 /* confdefs.h.  */
27086 _ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h.  */
27090 $ac_includes_default
27091 int
27092 main ()
27093 {
27094 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27095 test_array [0] = 0
27096
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 rm -f conftest.$ac_objext
27102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27103   (eval $ac_compile) 2>conftest.er1
27104   ac_status=$?
27105   grep -v '^ *+' conftest.er1 >conftest.err
27106   rm -f conftest.er1
27107   cat conftest.err >&5
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); } &&
27110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27112   (eval $ac_try) 2>&5
27113   ac_status=$?
27114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); }; } &&
27116          { ac_try='test -s conftest.$ac_objext'
27117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27118   (eval $ac_try) 2>&5
27119   ac_status=$?
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); }; }; then
27122   ac_lo=$ac_mid; break
27123 else
27124   echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27126
27127 ac_hi=`expr '(' $ac_mid ')' - 1`
27128                        if test $ac_mid -le $ac_hi; then
27129                          ac_lo= ac_hi=
27130                          break
27131                        fi
27132                        ac_mid=`expr 2 '*' $ac_mid`
27133 fi
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27135   done
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 ac_lo= ac_hi=
27141 fi
27142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27143 fi
27144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27145 # Binary search between lo and hi bounds.
27146 while test "x$ac_lo" != "x$ac_hi"; do
27147   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27148   cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h.  */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h.  */
27154 $ac_includes_default
27155 int
27156 main ()
27157 {
27158 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27159 test_array [0] = 0
27160
27161   ;
27162   return 0;
27163 }
27164 _ACEOF
27165 rm -f conftest.$ac_objext
27166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27167   (eval $ac_compile) 2>conftest.er1
27168   ac_status=$?
27169   grep -v '^ *+' conftest.er1 >conftest.err
27170   rm -f conftest.er1
27171   cat conftest.err >&5
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); } &&
27174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176   (eval $ac_try) 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; } &&
27180          { ac_try='test -s conftest.$ac_objext'
27181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182   (eval $ac_try) 2>&5
27183   ac_status=$?
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); }; }; then
27186   ac_hi=$ac_mid
27187 else
27188   echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27190
27191 ac_lo=`expr '(' $ac_mid ')' + 1`
27192 fi
27193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27194 done
27195 case $ac_lo in
27196 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27197 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27198 See \`config.log' for more details." >&5
27199 echo "$as_me: error: cannot compute sizeof (size_t), 77
27200 See \`config.log' for more details." >&2;}
27201    { (exit 1); exit 1; }; } ;;
27202 esac
27203 else
27204   if test "$cross_compiling" = yes; then
27205   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27206 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27207    { (exit 1); exit 1; }; }
27208 else
27209   cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 $ac_includes_default
27216 long longval () { return (long) (sizeof (size_t)); }
27217 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27218 #include <stdio.h>
27219 #include <stdlib.h>
27220 int
27221 main ()
27222 {
27223
27224   FILE *f = fopen ("conftest.val", "w");
27225   if (! f)
27226     exit (1);
27227   if (((long) (sizeof (size_t))) < 0)
27228     {
27229       long i = longval ();
27230       if (i != ((long) (sizeof (size_t))))
27231         exit (1);
27232       fprintf (f, "%ld\n", i);
27233     }
27234   else
27235     {
27236       unsigned long i = ulongval ();
27237       if (i != ((long) (sizeof (size_t))))
27238         exit (1);
27239       fprintf (f, "%lu\n", i);
27240     }
27241   exit (ferror (f) || fclose (f) != 0);
27242
27243   ;
27244   return 0;
27245 }
27246 _ACEOF
27247 rm -f conftest$ac_exeext
27248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27249   (eval $ac_link) 2>&5
27250   ac_status=$?
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; }; then
27258   ac_cv_sizeof_size_t=`cat conftest.val`
27259 else
27260   echo "$as_me: program exited with status $ac_status" >&5
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264 ( exit $ac_status )
27265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27266 See \`config.log' for more details." >&5
27267 echo "$as_me: error: cannot compute sizeof (size_t), 77
27268 See \`config.log' for more details." >&2;}
27269    { (exit 1); exit 1; }; }
27270 fi
27271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27272 fi
27273 fi
27274 rm -f conftest.val
27275 else
27276   ac_cv_sizeof_size_t=0
27277 fi
27278 fi
27279 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27280 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27281 cat >>confdefs.h <<_ACEOF
27282 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27283 _ACEOF
27284
27285
27286
27287
27288 cat >>confdefs.h <<_ACEOF
27289 #define NFS_STATEDIR "$statedir"
27290 _ACEOF
27291
27292
27293 if test "x$cross_compiling" = "xno"; then
27294         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27295         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27296         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27297         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27298 else
27299         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27300         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27301         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27302         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27303 fi
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315 case $host in
27316   alpha*)
27317     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27318   *)
27319     ARCHFLAGS="" ;;
27320 esac
27321
27322 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27323
27324 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27325
27326 AM_CFLAGS="$my_am_cflags"
27327
27328
27329 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27330 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27331
27332
27333                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/nhfsstone/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
27334
27335 cat >confcache <<\_ACEOF
27336 # This file is a shell script that caches the results of configure
27337 # tests run on this system so they can be shared between configure
27338 # scripts and configure runs, see configure's option --config-cache.
27339 # It is not useful on other systems.  If it contains results you don't
27340 # want to keep, you may remove or edit it.
27341 #
27342 # config.status only pays attention to the cache file if you give it
27343 # the --recheck option to rerun configure.
27344 #
27345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27347 # following values.
27348
27349 _ACEOF
27350
27351 # The following way of writing the cache mishandles newlines in values,
27352 # but we know of no workaround that is simple, portable, and efficient.
27353 # So, don't put newlines in cache variables' values.
27354 # Ultrix sh set writes to stderr and can't be redirected directly,
27355 # and sets the high bit in the cache file unless we assign to the vars.
27356 {
27357   (set) 2>&1 |
27358     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27359     *ac_space=\ *)
27360       # `set' does not quote correctly, so add quotes (double-quote
27361       # substitution turns \\\\ into \\, and sed turns \\ into \).
27362       sed -n \
27363         "s/'/'\\\\''/g;
27364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27365       ;;
27366     *)
27367       # `set' quotes correctly as required by POSIX, so do not add quotes.
27368       sed -n \
27369         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27370       ;;
27371     esac;
27372 } |
27373   sed '
27374      t clear
27375      : clear
27376      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27377      t end
27378      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27379      : end' >>confcache
27380 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27381   if test -w $cache_file; then
27382     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27383     cat confcache >$cache_file
27384   else
27385     echo "not updating unwritable cache $cache_file"
27386   fi
27387 fi
27388 rm -f confcache
27389
27390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27391 # Let make expand exec_prefix.
27392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27393
27394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27396 # trailing colons and then remove the whole line if VPATH becomes empty
27397 # (actually we leave an empty line to preserve line numbers).
27398 if test "x$srcdir" = x.; then
27399   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27400 s/:*\$(srcdir):*/:/;
27401 s/:*\${srcdir}:*/:/;
27402 s/:*@srcdir@:*/:/;
27403 s/^\([^=]*=[     ]*\):*/\1/;
27404 s/:*$//;
27405 s/^[^=]*=[       ]*$//;
27406 }'
27407 fi
27408
27409 DEFS=-DHAVE_CONFIG_H
27410
27411 ac_libobjs=
27412 ac_ltlibobjs=
27413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27414   # 1. Remove the extension, and $U if already installed.
27415   ac_i=`echo "$ac_i" |
27416          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27417   # 2. Add them.
27418   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27419   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27420 done
27421 LIBOBJS=$ac_libobjs
27422
27423 LTLIBOBJS=$ac_ltlibobjs
27424
27425
27426 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27427   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27428 Usually this means the macro was only invoked conditionally." >&5
27429 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27430 Usually this means the macro was only invoked conditionally." >&2;}
27431    { (exit 1); exit 1; }; }
27432 fi
27433 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27434   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27435 Usually this means the macro was only invoked conditionally." >&5
27436 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27437 Usually this means the macro was only invoked conditionally." >&2;}
27438    { (exit 1); exit 1; }; }
27439 fi
27440 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27441   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27442 Usually this means the macro was only invoked conditionally." >&5
27443 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27444 Usually this means the macro was only invoked conditionally." >&2;}
27445    { (exit 1); exit 1; }; }
27446 fi
27447 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27448   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27449 Usually this means the macro was only invoked conditionally." >&5
27450 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27451 Usually this means the macro was only invoked conditionally." >&2;}
27452    { (exit 1); exit 1; }; }
27453 fi
27454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27455   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27456 Usually this means the macro was only invoked conditionally." >&5
27457 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27458 Usually this means the macro was only invoked conditionally." >&2;}
27459    { (exit 1); exit 1; }; }
27460 fi
27461 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27462   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27463 Usually this means the macro was only invoked conditionally." >&5
27464 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27465 Usually this means the macro was only invoked conditionally." >&2;}
27466    { (exit 1); exit 1; }; }
27467 fi
27468 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27469   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27470 Usually this means the macro was only invoked conditionally." >&5
27471 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27472 Usually this means the macro was only invoked conditionally." >&2;}
27473    { (exit 1); exit 1; }; }
27474 fi
27475
27476 : ${CONFIG_STATUS=./config.status}
27477 ac_clean_files_save=$ac_clean_files
27478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27481 cat >$CONFIG_STATUS <<_ACEOF
27482 #! $SHELL
27483 # Generated by $as_me.
27484 # Run this file to recreate the current configuration.
27485 # Compiler output produced by configure, useful for debugging
27486 # configure, is in config.log if it exists.
27487
27488 debug=false
27489 ac_cs_recheck=false
27490 ac_cs_silent=false
27491 SHELL=\${CONFIG_SHELL-$SHELL}
27492 _ACEOF
27493
27494 cat >>$CONFIG_STATUS <<\_ACEOF
27495 ## --------------------- ##
27496 ## M4sh Initialization.  ##
27497 ## --------------------- ##
27498
27499 # Be Bourne compatible
27500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27501   emulate sh
27502   NULLCMD=:
27503   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27504   # is contrary to our usage.  Disable this feature.
27505   alias -g '${1+"$@"}'='"$@"'
27506 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27507   set -o posix
27508 fi
27509 DUALCASE=1; export DUALCASE # for MKS sh
27510
27511 # Support unset when possible.
27512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27513   as_unset=unset
27514 else
27515   as_unset=false
27516 fi
27517
27518
27519 # Work around bugs in pre-3.0 UWIN ksh.
27520 $as_unset ENV MAIL MAILPATH
27521 PS1='$ '
27522 PS2='> '
27523 PS4='+ '
27524
27525 # NLS nuisances.
27526 for as_var in \
27527   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27528   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27529   LC_TELEPHONE LC_TIME
27530 do
27531   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27532     eval $as_var=C; export $as_var
27533   else
27534     $as_unset $as_var
27535   fi
27536 done
27537
27538 # Required to use basename.
27539 if expr a : '\(a\)' >/dev/null 2>&1; then
27540   as_expr=expr
27541 else
27542   as_expr=false
27543 fi
27544
27545 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27546   as_basename=basename
27547 else
27548   as_basename=false
27549 fi
27550
27551
27552 # Name of the executable.
27553 as_me=`$as_basename "$0" ||
27554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27555          X"$0" : 'X\(//\)$' \| \
27556          X"$0" : 'X\(/\)$' \| \
27557          .     : '\(.\)' 2>/dev/null ||
27558 echo X/"$0" |
27559     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27560           /^X\/\(\/\/\)$/{ s//\1/; q; }
27561           /^X\/\(\/\).*/{ s//\1/; q; }
27562           s/.*/./; q'`
27563
27564
27565 # PATH needs CR, and LINENO needs CR and PATH.
27566 # Avoid depending upon Character Ranges.
27567 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27568 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27569 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27570 as_cr_digits='0123456789'
27571 as_cr_alnum=$as_cr_Letters$as_cr_digits
27572
27573 # The user is always right.
27574 if test "${PATH_SEPARATOR+set}" != set; then
27575   echo "#! /bin/sh" >conf$$.sh
27576   echo  "exit 0"   >>conf$$.sh
27577   chmod +x conf$$.sh
27578   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27579     PATH_SEPARATOR=';'
27580   else
27581     PATH_SEPARATOR=:
27582   fi
27583   rm -f conf$$.sh
27584 fi
27585
27586
27587   as_lineno_1=$LINENO
27588   as_lineno_2=$LINENO
27589   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27590   test "x$as_lineno_1" != "x$as_lineno_2" &&
27591   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27592   # Find who we are.  Look in the path if we contain no path at all
27593   # relative or not.
27594   case $0 in
27595     *[\\/]* ) as_myself=$0 ;;
27596     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597 for as_dir in $PATH
27598 do
27599   IFS=$as_save_IFS
27600   test -z "$as_dir" && as_dir=.
27601   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27602 done
27603
27604        ;;
27605   esac
27606   # We did not find ourselves, most probably we were run as `sh COMMAND'
27607   # in which case we are not to be found in the path.
27608   if test "x$as_myself" = x; then
27609     as_myself=$0
27610   fi
27611   if test ! -f "$as_myself"; then
27612     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27613 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27614    { (exit 1); exit 1; }; }
27615   fi
27616   case $CONFIG_SHELL in
27617   '')
27618     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27619 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27620 do
27621   IFS=$as_save_IFS
27622   test -z "$as_dir" && as_dir=.
27623   for as_base in sh bash ksh sh5; do
27624          case $as_dir in
27625          /*)
27626            if ("$as_dir/$as_base" -c '
27627   as_lineno_1=$LINENO
27628   as_lineno_2=$LINENO
27629   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27630   test "x$as_lineno_1" != "x$as_lineno_2" &&
27631   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27632              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27633              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27634              CONFIG_SHELL=$as_dir/$as_base
27635              export CONFIG_SHELL
27636              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27637            fi;;
27638          esac
27639        done
27640 done
27641 ;;
27642   esac
27643
27644   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27645   # uniformly replaced by the line number.  The first 'sed' inserts a
27646   # line-number line before each line; the second 'sed' does the real
27647   # work.  The second script uses 'N' to pair each line-number line
27648   # with the numbered line, and appends trailing '-' during
27649   # substitution so that $LINENO is not a special case at line end.
27650   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27651   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27652   sed '=' <$as_myself |
27653     sed '
27654       N
27655       s,$,-,
27656       : loop
27657       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27658       t loop
27659       s,-$,,
27660       s,^['$as_cr_digits']*\n,,
27661     ' >$as_me.lineno &&
27662   chmod +x $as_me.lineno ||
27663     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27664 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27665    { (exit 1); exit 1; }; }
27666
27667   # Don't try to exec as it changes $[0], causing all sort of problems
27668   # (the dirname of $[0] is not the place where we might find the
27669   # original and so on.  Autoconf is especially sensible to this).
27670   . ./$as_me.lineno
27671   # Exit status is that of the last command.
27672   exit
27673 }
27674
27675
27676 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27677   *c*,-n*) ECHO_N= ECHO_C='
27678 ' ECHO_T='      ' ;;
27679   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27680   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27681 esac
27682
27683 if expr a : '\(a\)' >/dev/null 2>&1; then
27684   as_expr=expr
27685 else
27686   as_expr=false
27687 fi
27688
27689 rm -f conf$$ conf$$.exe conf$$.file
27690 echo >conf$$.file
27691 if ln -s conf$$.file conf$$ 2>/dev/null; then
27692   # We could just check for DJGPP; but this test a) works b) is more generic
27693   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27694   if test -f conf$$.exe; then
27695     # Don't use ln at all; we don't have any links
27696     as_ln_s='cp -p'
27697   else
27698     as_ln_s='ln -s'
27699   fi
27700 elif ln conf$$.file conf$$ 2>/dev/null; then
27701   as_ln_s=ln
27702 else
27703   as_ln_s='cp -p'
27704 fi
27705 rm -f conf$$ conf$$.exe conf$$.file
27706
27707 if mkdir -p . 2>/dev/null; then
27708   as_mkdir_p=:
27709 else
27710   test -d ./-p && rmdir ./-p
27711   as_mkdir_p=false
27712 fi
27713
27714 as_executable_p="test -f"
27715
27716 # Sed expression to map a string onto a valid CPP name.
27717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27718
27719 # Sed expression to map a string onto a valid variable name.
27720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27721
27722
27723 # IFS
27724 # We need space, tab and new line, in precisely that order.
27725 as_nl='
27726 '
27727 IFS="   $as_nl"
27728
27729 # CDPATH.
27730 $as_unset CDPATH
27731
27732 exec 6>&1
27733
27734 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27735 # report actual input values of CONFIG_FILES etc. instead of their
27736 # values after options handling.  Logging --version etc. is OK.
27737 exec 5>>config.log
27738 {
27739   echo
27740   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27741 ## Running $as_me. ##
27742 _ASBOX
27743 } >&5
27744 cat >&5 <<_CSEOF
27745
27746 This file was extended by linux nfs-utils $as_me 1.0.8-rc3, which was
27747 generated by GNU Autoconf 2.59.  Invocation command line was
27748
27749   CONFIG_FILES    = $CONFIG_FILES
27750   CONFIG_HEADERS  = $CONFIG_HEADERS
27751   CONFIG_LINKS    = $CONFIG_LINKS
27752   CONFIG_COMMANDS = $CONFIG_COMMANDS
27753   $ $0 $@
27754
27755 _CSEOF
27756 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27757 echo >&5
27758 _ACEOF
27759
27760 # Files that config.status was made for.
27761 if test -n "$ac_config_files"; then
27762   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27763 fi
27764
27765 if test -n "$ac_config_headers"; then
27766   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27767 fi
27768
27769 if test -n "$ac_config_links"; then
27770   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27771 fi
27772
27773 if test -n "$ac_config_commands"; then
27774   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27775 fi
27776
27777 cat >>$CONFIG_STATUS <<\_ACEOF
27778
27779 ac_cs_usage="\
27780 \`$as_me' instantiates files from templates according to the
27781 current configuration.
27782
27783 Usage: $0 [OPTIONS] [FILE]...
27784
27785   -h, --help       print this help, then exit
27786   -V, --version    print version number, then exit
27787   -q, --quiet      do not print progress messages
27788   -d, --debug      don't remove temporary files
27789       --recheck    update $as_me by reconfiguring in the same conditions
27790   --file=FILE[:TEMPLATE]
27791                    instantiate the configuration file FILE
27792   --header=FILE[:TEMPLATE]
27793                    instantiate the configuration header FILE
27794
27795 Configuration files:
27796 $config_files
27797
27798 Configuration headers:
27799 $config_headers
27800
27801 Configuration commands:
27802 $config_commands
27803
27804 Report bugs to <bug-autoconf@gnu.org>."
27805 _ACEOF
27806
27807 cat >>$CONFIG_STATUS <<_ACEOF
27808 ac_cs_version="\\
27809 linux nfs-utils config.status 1.0.8-rc3
27810 configured by $0, generated by GNU Autoconf 2.59,
27811   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27812
27813 Copyright (C) 2003 Free Software Foundation, Inc.
27814 This config.status script is free software; the Free Software Foundation
27815 gives unlimited permission to copy, distribute and modify it."
27816 srcdir=$srcdir
27817 INSTALL="$INSTALL"
27818 _ACEOF
27819
27820 cat >>$CONFIG_STATUS <<\_ACEOF
27821 # If no file are specified by the user, then we need to provide default
27822 # value.  By we need to know if files were specified by the user.
27823 ac_need_defaults=:
27824 while test $# != 0
27825 do
27826   case $1 in
27827   --*=*)
27828     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27829     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27830     ac_shift=:
27831     ;;
27832   -*)
27833     ac_option=$1
27834     ac_optarg=$2
27835     ac_shift=shift
27836     ;;
27837   *) # This is not an option, so the user has probably given explicit
27838      # arguments.
27839      ac_option=$1
27840      ac_need_defaults=false;;
27841   esac
27842
27843   case $ac_option in
27844   # Handling of the options.
27845 _ACEOF
27846 cat >>$CONFIG_STATUS <<\_ACEOF
27847   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27848     ac_cs_recheck=: ;;
27849   --version | --vers* | -V )
27850     echo "$ac_cs_version"; exit 0 ;;
27851   --he | --h)
27852     # Conflict between --help and --header
27853     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27854 Try \`$0 --help' for more information." >&5
27855 echo "$as_me: error: ambiguous option: $1
27856 Try \`$0 --help' for more information." >&2;}
27857    { (exit 1); exit 1; }; };;
27858   --help | --hel | -h )
27859     echo "$ac_cs_usage"; exit 0 ;;
27860   --debug | --d* | -d )
27861     debug=: ;;
27862   --file | --fil | --fi | --f )
27863     $ac_shift
27864     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27865     ac_need_defaults=false;;
27866   --header | --heade | --head | --hea )
27867     $ac_shift
27868     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27869     ac_need_defaults=false;;
27870   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27871   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27872     ac_cs_silent=: ;;
27873
27874   # This is an error.
27875   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27876 Try \`$0 --help' for more information." >&5
27877 echo "$as_me: error: unrecognized option: $1
27878 Try \`$0 --help' for more information." >&2;}
27879    { (exit 1); exit 1; }; } ;;
27880
27881   *) ac_config_targets="$ac_config_targets $1" ;;
27882
27883   esac
27884   shift
27885 done
27886
27887 ac_configure_extra_args=
27888
27889 if $ac_cs_silent; then
27890   exec 6>/dev/null
27891   ac_configure_extra_args="$ac_configure_extra_args --silent"
27892 fi
27893
27894 _ACEOF
27895 cat >>$CONFIG_STATUS <<_ACEOF
27896 if \$ac_cs_recheck; then
27897   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27898   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27899 fi
27900
27901 _ACEOF
27902
27903 cat >>$CONFIG_STATUS <<_ACEOF
27904 #
27905 # INIT-COMMANDS section.
27906 #
27907
27908 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27909
27910 _ACEOF
27911
27912
27913
27914 cat >>$CONFIG_STATUS <<\_ACEOF
27915 for ac_config_target in $ac_config_targets
27916 do
27917   case "$ac_config_target" in
27918   # Handling of arguments.
27919   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27920   "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
27921   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27922   "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
27923   "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
27924   "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
27925   "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
27926   "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
27927   "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
27928   "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
27929   "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
27930   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27931   "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
27932   "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
27933   "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
27934   "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
27935   "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
27936   "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
27937   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27938   "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
27939   "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
27940   "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
27941   "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
27942   "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
27943   "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
27944   "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
27945   "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
27946   "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
27947   "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
27948   "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
27949   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27950   "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
27951   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27952 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27953    { (exit 1); exit 1; }; };;
27954   esac
27955 done
27956
27957 # If the user did not use the arguments to specify the items to instantiate,
27958 # then the envvar interface is used.  Set only those that are not.
27959 # We use the long form for the default assignment because of an extremely
27960 # bizarre bug on SunOS 4.1.3.
27961 if $ac_need_defaults; then
27962   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27963   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27964   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27965 fi
27966
27967 # Have a temporary directory for convenience.  Make it in the build tree
27968 # simply because there is no reason to put it here, and in addition,
27969 # creating and moving files from /tmp can sometimes cause problems.
27970 # Create a temporary directory, and hook for its removal unless debugging.
27971 $debug ||
27972 {
27973   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27974   trap '{ (exit 1); exit 1; }' 1 2 13 15
27975 }
27976
27977 # Create a (secure) tmp directory for tmp files.
27978
27979 {
27980   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27981   test -n "$tmp" && test -d "$tmp"
27982 }  ||
27983 {
27984   tmp=./confstat$$-$RANDOM
27985   (umask 077 && mkdir $tmp)
27986 } ||
27987 {
27988    echo "$me: cannot create a temporary directory in ." >&2
27989    { (exit 1); exit 1; }
27990 }
27991
27992 _ACEOF
27993
27994 cat >>$CONFIG_STATUS <<_ACEOF
27995
27996 #
27997 # CONFIG_FILES section.
27998 #
27999
28000 # No need to generate the scripts if there are no CONFIG_FILES.
28001 # This happens for instance when ./config.status config.h
28002 if test -n "\$CONFIG_FILES"; then
28003   # Protect against being on the right side of a sed subst in config.status.
28004   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28005    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28006 s,@SHELL@,$SHELL,;t t
28007 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28008 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28009 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28010 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28011 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28012 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28013 s,@exec_prefix@,$exec_prefix,;t t
28014 s,@prefix@,$prefix,;t t
28015 s,@program_transform_name@,$program_transform_name,;t t
28016 s,@bindir@,$bindir,;t t
28017 s,@sbindir@,$sbindir,;t t
28018 s,@libexecdir@,$libexecdir,;t t
28019 s,@datadir@,$datadir,;t t
28020 s,@sysconfdir@,$sysconfdir,;t t
28021 s,@sharedstatedir@,$sharedstatedir,;t t
28022 s,@localstatedir@,$localstatedir,;t t
28023 s,@libdir@,$libdir,;t t
28024 s,@includedir@,$includedir,;t t
28025 s,@oldincludedir@,$oldincludedir,;t t
28026 s,@infodir@,$infodir,;t t
28027 s,@mandir@,$mandir,;t t
28028 s,@build_alias@,$build_alias,;t t
28029 s,@host_alias@,$host_alias,;t t
28030 s,@target_alias@,$target_alias,;t t
28031 s,@DEFS@,$DEFS,;t t
28032 s,@ECHO_C@,$ECHO_C,;t t
28033 s,@ECHO_N@,$ECHO_N,;t t
28034 s,@ECHO_T@,$ECHO_T,;t t
28035 s,@LIBS@,$LIBS,;t t
28036 s,@build@,$build,;t t
28037 s,@build_cpu@,$build_cpu,;t t
28038 s,@build_vendor@,$build_vendor,;t t
28039 s,@build_os@,$build_os,;t t
28040 s,@host@,$host,;t t
28041 s,@host_cpu@,$host_cpu,;t t
28042 s,@host_vendor@,$host_vendor,;t t
28043 s,@host_os@,$host_os,;t t
28044 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28045 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28046 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28047 s,@CYGPATH_W@,$CYGPATH_W,;t t
28048 s,@PACKAGE@,$PACKAGE,;t t
28049 s,@VERSION@,$VERSION,;t t
28050 s,@ACLOCAL@,$ACLOCAL,;t t
28051 s,@AUTOCONF@,$AUTOCONF,;t t
28052 s,@AUTOMAKE@,$AUTOMAKE,;t t
28053 s,@AUTOHEADER@,$AUTOHEADER,;t t
28054 s,@MAKEINFO@,$MAKEINFO,;t t
28055 s,@install_sh@,$install_sh,;t t
28056 s,@STRIP@,$STRIP,;t t
28057 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28058 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28059 s,@mkdir_p@,$mkdir_p,;t t
28060 s,@AWK@,$AWK,;t t
28061 s,@SET_MAKE@,$SET_MAKE,;t t
28062 s,@am__leading_dot@,$am__leading_dot,;t t
28063 s,@AMTAR@,$AMTAR,;t t
28064 s,@am__tar@,$am__tar,;t t
28065 s,@am__untar@,$am__untar,;t t
28066 s,@RELEASE@,$RELEASE,;t t
28067 s,@statedir@,$statedir,;t t
28068 s,@statduser@,$statduser,;t t
28069 s,@enable_nfsv3@,$enable_nfsv3,;t t
28070 s,@IDMAPD@,$IDMAPD,;t t
28071 s,@enable_nfsv4@,$enable_nfsv4,;t t
28072 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28073 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28074 s,@GSSD@,$GSSD,;t t
28075 s,@SVCGSSD@,$SVCGSSD,;t t
28076 s,@enable_gss@,$enable_gss,;t t
28077 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28078 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28079 s,@kprefix@,$kprefix,;t t
28080 s,@secure_statd@,$secure_statd,;t t
28081 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28082 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28083 s,@CC@,$CC,;t t
28084 s,@CFLAGS@,$CFLAGS,;t t
28085 s,@LDFLAGS@,$LDFLAGS,;t t
28086 s,@CPPFLAGS@,$CPPFLAGS,;t t
28087 s,@ac_ct_CC@,$ac_ct_CC,;t t
28088 s,@EXEEXT@,$EXEEXT,;t t
28089 s,@OBJEXT@,$OBJEXT,;t t
28090 s,@DEPDIR@,$DEPDIR,;t t
28091 s,@am__include@,$am__include,;t t
28092 s,@am__quote@,$am__quote,;t t
28093 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28094 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28095 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28096 s,@CCDEPMODE@,$CCDEPMODE,;t t
28097 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28098 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28099 s,@LIBWRAP@,$LIBWRAP,;t t
28100 s,@CXX@,$CXX,;t t
28101 s,@CXXFLAGS@,$CXXFLAGS,;t t
28102 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28103 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28104 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28105 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28106 s,@CPP@,$CPP,;t t
28107 s,@LN_S@,$LN_S,;t t
28108 s,@EGREP@,$EGREP,;t t
28109 s,@ECHO@,$ECHO,;t t
28110 s,@AR@,$AR,;t t
28111 s,@ac_ct_AR@,$ac_ct_AR,;t t
28112 s,@RANLIB@,$RANLIB,;t t
28113 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28114 s,@CXXCPP@,$CXXCPP,;t t
28115 s,@F77@,$F77,;t t
28116 s,@FFLAGS@,$FFLAGS,;t t
28117 s,@ac_ct_F77@,$ac_ct_F77,;t t
28118 s,@LIBTOOL@,$LIBTOOL,;t t
28119 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28120 s,@LD@,$LD,;t t
28121 s,@ac_ct_LD@,$ac_ct_LD,;t t
28122 s,@LIBSOCKET@,$LIBSOCKET,;t t
28123 s,@LIBNSL@,$LIBNSL,;t t
28124 s,@LIBCRYPT@,$LIBCRYPT,;t t
28125 s,@LIBBSD@,$LIBBSD,;t t
28126 s,@KRBDIR@,$KRBDIR,;t t
28127 s,@KRBLIBS@,$KRBLIBS,;t t
28128 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28129 s,@K5VERS@,$K5VERS,;t t
28130 s,@ALLOCA@,$ALLOCA,;t t
28131 s,@LIBOBJS@,$LIBOBJS,;t t
28132 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28133 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28134 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28135 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28136 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28137 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28138 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28139 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28140 CEOF
28141
28142 _ACEOF
28143
28144   cat >>$CONFIG_STATUS <<\_ACEOF
28145   # Split the substitutions into bite-sized pieces for seds with
28146   # small command number limits, like on Digital OSF/1 and HP-UX.
28147   ac_max_sed_lines=48
28148   ac_sed_frag=1 # Number of current file.
28149   ac_beg=1 # First line for current file.
28150   ac_end=$ac_max_sed_lines # Line after last line for current file.
28151   ac_more_lines=:
28152   ac_sed_cmds=
28153   while $ac_more_lines; do
28154     if test $ac_beg -gt 1; then
28155       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28156     else
28157       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28158     fi
28159     if test ! -s $tmp/subs.frag; then
28160       ac_more_lines=false
28161     else
28162       # The purpose of the label and of the branching condition is to
28163       # speed up the sed processing (if there are no `@' at all, there
28164       # is no need to browse any of the substitutions).
28165       # These are the two extra sed commands mentioned above.
28166       (echo ':t
28167   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28168       if test -z "$ac_sed_cmds"; then
28169         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28170       else
28171         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28172       fi
28173       ac_sed_frag=`expr $ac_sed_frag + 1`
28174       ac_beg=$ac_end
28175       ac_end=`expr $ac_end + $ac_max_sed_lines`
28176     fi
28177   done
28178   if test -z "$ac_sed_cmds"; then
28179     ac_sed_cmds=cat
28180   fi
28181 fi # test -n "$CONFIG_FILES"
28182
28183 _ACEOF
28184 cat >>$CONFIG_STATUS <<\_ACEOF
28185 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28186   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28187   case $ac_file in
28188   - | *:- | *:-:* ) # input from stdin
28189         cat >$tmp/stdin
28190         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28191         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28192   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28193         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28194   * )   ac_file_in=$ac_file.in ;;
28195   esac
28196
28197   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28198   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28200          X"$ac_file" : 'X\(//\)[^/]' \| \
28201          X"$ac_file" : 'X\(//\)$' \| \
28202          X"$ac_file" : 'X\(/\)' \| \
28203          .     : '\(.\)' 2>/dev/null ||
28204 echo X"$ac_file" |
28205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28206           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28207           /^X\(\/\/\)$/{ s//\1/; q; }
28208           /^X\(\/\).*/{ s//\1/; q; }
28209           s/.*/./; q'`
28210   { if $as_mkdir_p; then
28211     mkdir -p "$ac_dir"
28212   else
28213     as_dir="$ac_dir"
28214     as_dirs=
28215     while test ! -d "$as_dir"; do
28216       as_dirs="$as_dir $as_dirs"
28217       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28219          X"$as_dir" : 'X\(//\)[^/]' \| \
28220          X"$as_dir" : 'X\(//\)$' \| \
28221          X"$as_dir" : 'X\(/\)' \| \
28222          .     : '\(.\)' 2>/dev/null ||
28223 echo X"$as_dir" |
28224     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28225           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28226           /^X\(\/\/\)$/{ s//\1/; q; }
28227           /^X\(\/\).*/{ s//\1/; q; }
28228           s/.*/./; q'`
28229     done
28230     test ! -n "$as_dirs" || mkdir $as_dirs
28231   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28232 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28233    { (exit 1); exit 1; }; }; }
28234
28235   ac_builddir=.
28236
28237 if test "$ac_dir" != .; then
28238   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28239   # A "../" for each directory in $ac_dir_suffix.
28240   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28241 else
28242   ac_dir_suffix= ac_top_builddir=
28243 fi
28244
28245 case $srcdir in
28246   .)  # No --srcdir option.  We are building in place.
28247     ac_srcdir=.
28248     if test -z "$ac_top_builddir"; then
28249        ac_top_srcdir=.
28250     else
28251        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28252     fi ;;
28253   [\\/]* | ?:[\\/]* )  # Absolute path.
28254     ac_srcdir=$srcdir$ac_dir_suffix;
28255     ac_top_srcdir=$srcdir ;;
28256   *) # Relative path.
28257     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28258     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28259 esac
28260
28261 # Do not use `cd foo && pwd` to compute absolute paths, because
28262 # the directories may not exist.
28263 case `pwd` in
28264 .) ac_abs_builddir="$ac_dir";;
28265 *)
28266   case "$ac_dir" in
28267   .) ac_abs_builddir=`pwd`;;
28268   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28269   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28270   esac;;
28271 esac
28272 case $ac_abs_builddir in
28273 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28274 *)
28275   case ${ac_top_builddir}. in
28276   .) ac_abs_top_builddir=$ac_abs_builddir;;
28277   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28278   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28279   esac;;
28280 esac
28281 case $ac_abs_builddir in
28282 .) ac_abs_srcdir=$ac_srcdir;;
28283 *)
28284   case $ac_srcdir in
28285   .) ac_abs_srcdir=$ac_abs_builddir;;
28286   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28287   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28288   esac;;
28289 esac
28290 case $ac_abs_builddir in
28291 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28292 *)
28293   case $ac_top_srcdir in
28294   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28295   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28296   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28297   esac;;
28298 esac
28299
28300
28301   case $INSTALL in
28302   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28303   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28304   esac
28305
28306   # Let's still pretend it is `configure' which instantiates (i.e., don't
28307   # use $as_me), people would be surprised to read:
28308   #    /* config.h.  Generated by config.status.  */
28309   if test x"$ac_file" = x-; then
28310     configure_input=
28311   else
28312     configure_input="$ac_file.  "
28313   fi
28314   configure_input=$configure_input"Generated from `echo $ac_file_in |
28315                                      sed 's,.*/,,'` by configure."
28316
28317   # First look for the input files in the build tree, otherwise in the
28318   # src tree.
28319   ac_file_inputs=`IFS=:
28320     for f in $ac_file_in; do
28321       case $f in
28322       -) echo $tmp/stdin ;;
28323       [\\/$]*)
28324          # Absolute (can't be DOS-style, as IFS=:)
28325          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28326 echo "$as_me: error: cannot find input file: $f" >&2;}
28327    { (exit 1); exit 1; }; }
28328          echo "$f";;
28329       *) # Relative
28330          if test -f "$f"; then
28331            # Build tree
28332            echo "$f"
28333          elif test -f "$srcdir/$f"; then
28334            # Source tree
28335            echo "$srcdir/$f"
28336          else
28337            # /dev/null tree
28338            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28339 echo "$as_me: error: cannot find input file: $f" >&2;}
28340    { (exit 1); exit 1; }; }
28341          fi;;
28342       esac
28343     done` || { (exit 1); exit 1; }
28344
28345   if test x"$ac_file" != x-; then
28346     { echo "$as_me:$LINENO: creating $ac_file" >&5
28347 echo "$as_me: creating $ac_file" >&6;}
28348     rm -f "$ac_file"
28349   fi
28350 _ACEOF
28351 cat >>$CONFIG_STATUS <<_ACEOF
28352   sed "$ac_vpsub
28353 $extrasub
28354 _ACEOF
28355 cat >>$CONFIG_STATUS <<\_ACEOF
28356 :t
28357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28358 s,@configure_input@,$configure_input,;t t
28359 s,@srcdir@,$ac_srcdir,;t t
28360 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28361 s,@top_srcdir@,$ac_top_srcdir,;t t
28362 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28363 s,@builddir@,$ac_builddir,;t t
28364 s,@abs_builddir@,$ac_abs_builddir,;t t
28365 s,@top_builddir@,$ac_top_builddir,;t t
28366 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28367 s,@INSTALL@,$ac_INSTALL,;t t
28368 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28369   rm -f $tmp/stdin
28370   if test x"$ac_file" != x-; then
28371     mv $tmp/out $ac_file
28372   else
28373     cat $tmp/out
28374     rm -f $tmp/out
28375   fi
28376
28377 done
28378 _ACEOF
28379 cat >>$CONFIG_STATUS <<\_ACEOF
28380
28381 #
28382 # CONFIG_HEADER section.
28383 #
28384
28385 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28386 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28387 #
28388 # ac_d sets the value in "#define NAME VALUE" lines.
28389 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28390 ac_dB='[         ].*$,\1#\2'
28391 ac_dC=' '
28392 ac_dD=',;t'
28393 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28394 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28395 ac_uB='$,\1#\2define\3'
28396 ac_uC=' '
28397 ac_uD=',;t'
28398
28399 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28400   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28401   case $ac_file in
28402   - | *:- | *:-:* ) # input from stdin
28403         cat >$tmp/stdin
28404         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28405         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28406   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28407         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28408   * )   ac_file_in=$ac_file.in ;;
28409   esac
28410
28411   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28412 echo "$as_me: creating $ac_file" >&6;}
28413
28414   # First look for the input files in the build tree, otherwise in the
28415   # src tree.
28416   ac_file_inputs=`IFS=:
28417     for f in $ac_file_in; do
28418       case $f in
28419       -) echo $tmp/stdin ;;
28420       [\\/$]*)
28421          # Absolute (can't be DOS-style, as IFS=:)
28422          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28423 echo "$as_me: error: cannot find input file: $f" >&2;}
28424    { (exit 1); exit 1; }; }
28425          # Do quote $f, to prevent DOS paths from being IFS'd.
28426          echo "$f";;
28427       *) # Relative
28428          if test -f "$f"; then
28429            # Build tree
28430            echo "$f"
28431          elif test -f "$srcdir/$f"; then
28432            # Source tree
28433            echo "$srcdir/$f"
28434          else
28435            # /dev/null tree
28436            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28437 echo "$as_me: error: cannot find input file: $f" >&2;}
28438    { (exit 1); exit 1; }; }
28439          fi;;
28440       esac
28441     done` || { (exit 1); exit 1; }
28442   # Remove the trailing spaces.
28443   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28444
28445 _ACEOF
28446
28447 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28448 # `conftest.undefs', that substitutes the proper values into
28449 # config.h.in to produce config.h.  The first handles `#define'
28450 # templates, and the second `#undef' templates.
28451 # And first: Protect against being on the right side of a sed subst in
28452 # config.status.  Protect against being in an unquoted here document
28453 # in config.status.
28454 rm -f conftest.defines conftest.undefs
28455 # Using a here document instead of a string reduces the quoting nightmare.
28456 # Putting comments in sed scripts is not portable.
28457 #
28458 # `end' is used to avoid that the second main sed command (meant for
28459 # 0-ary CPP macros) applies to n-ary macro definitions.
28460 # See the Autoconf documentation for `clear'.
28461 cat >confdef2sed.sed <<\_ACEOF
28462 s/[\\&,]/\\&/g
28463 s,[\\$`],\\&,g
28464 t clear
28465 : clear
28466 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28467 t end
28468 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28469 : end
28470 _ACEOF
28471 # If some macros were called several times there might be several times
28472 # the same #defines, which is useless.  Nevertheless, we may not want to
28473 # sort them, since we want the *last* AC-DEFINE to be honored.
28474 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28475 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28476 rm -f confdef2sed.sed
28477
28478 # This sed command replaces #undef with comments.  This is necessary, for
28479 # example, in the case of _POSIX_SOURCE, which is predefined and required
28480 # on some systems where configure will not decide to define it.
28481 cat >>conftest.undefs <<\_ACEOF
28482 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28483 _ACEOF
28484
28485 # Break up conftest.defines because some shells have a limit on the size
28486 # of here documents, and old seds have small limits too (100 cmds).
28487 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28488 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28489 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28490 echo '  :' >>$CONFIG_STATUS
28491 rm -f conftest.tail
28492 while grep . conftest.defines >/dev/null
28493 do
28494   # Write a limited-size here document to $tmp/defines.sed.
28495   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28496   # Speed up: don't consider the non `#define' lines.
28497   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28498   # Work around the forget-to-reset-the-flag bug.
28499   echo 't clr' >>$CONFIG_STATUS
28500   echo ': clr' >>$CONFIG_STATUS
28501   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28502   echo 'CEOF
28503   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28504   rm -f $tmp/in
28505   mv $tmp/out $tmp/in
28506 ' >>$CONFIG_STATUS
28507   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28508   rm -f conftest.defines
28509   mv conftest.tail conftest.defines
28510 done
28511 rm -f conftest.defines
28512 echo '  fi # grep' >>$CONFIG_STATUS
28513 echo >>$CONFIG_STATUS
28514
28515 # Break up conftest.undefs because some shells have a limit on the size
28516 # of here documents, and old seds have small limits too (100 cmds).
28517 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28518 rm -f conftest.tail
28519 while grep . conftest.undefs >/dev/null
28520 do
28521   # Write a limited-size here document to $tmp/undefs.sed.
28522   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28523   # Speed up: don't consider the non `#undef'
28524   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28525   # Work around the forget-to-reset-the-flag bug.
28526   echo 't clr' >>$CONFIG_STATUS
28527   echo ': clr' >>$CONFIG_STATUS
28528   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28529   echo 'CEOF
28530   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28531   rm -f $tmp/in
28532   mv $tmp/out $tmp/in
28533 ' >>$CONFIG_STATUS
28534   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28535   rm -f conftest.undefs
28536   mv conftest.tail conftest.undefs
28537 done
28538 rm -f conftest.undefs
28539
28540 cat >>$CONFIG_STATUS <<\_ACEOF
28541   # Let's still pretend it is `configure' which instantiates (i.e., don't
28542   # use $as_me), people would be surprised to read:
28543   #    /* config.h.  Generated by config.status.  */
28544   if test x"$ac_file" = x-; then
28545     echo "/* Generated by configure.  */" >$tmp/config.h
28546   else
28547     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28548   fi
28549   cat $tmp/in >>$tmp/config.h
28550   rm -f $tmp/in
28551   if test x"$ac_file" != x-; then
28552     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28553       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28554 echo "$as_me: $ac_file is unchanged" >&6;}
28555     else
28556       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28558          X"$ac_file" : 'X\(//\)[^/]' \| \
28559          X"$ac_file" : 'X\(//\)$' \| \
28560          X"$ac_file" : 'X\(/\)' \| \
28561          .     : '\(.\)' 2>/dev/null ||
28562 echo X"$ac_file" |
28563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28565           /^X\(\/\/\)$/{ s//\1/; q; }
28566           /^X\(\/\).*/{ s//\1/; q; }
28567           s/.*/./; q'`
28568       { if $as_mkdir_p; then
28569     mkdir -p "$ac_dir"
28570   else
28571     as_dir="$ac_dir"
28572     as_dirs=
28573     while test ! -d "$as_dir"; do
28574       as_dirs="$as_dir $as_dirs"
28575       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28577          X"$as_dir" : 'X\(//\)[^/]' \| \
28578          X"$as_dir" : 'X\(//\)$' \| \
28579          X"$as_dir" : 'X\(/\)' \| \
28580          .     : '\(.\)' 2>/dev/null ||
28581 echo X"$as_dir" |
28582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28584           /^X\(\/\/\)$/{ s//\1/; q; }
28585           /^X\(\/\).*/{ s//\1/; q; }
28586           s/.*/./; q'`
28587     done
28588     test ! -n "$as_dirs" || mkdir $as_dirs
28589   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28591    { (exit 1); exit 1; }; }; }
28592
28593       rm -f $ac_file
28594       mv $tmp/config.h $ac_file
28595     fi
28596   else
28597     cat $tmp/config.h
28598     rm -f $tmp/config.h
28599   fi
28600 # Compute $ac_file's index in $config_headers.
28601 _am_stamp_count=1
28602 for _am_header in $config_headers :; do
28603   case $_am_header in
28604     $ac_file | $ac_file:* )
28605       break ;;
28606     * )
28607       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28608   esac
28609 done
28610 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28611 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28612          X$ac_file : 'X\(//\)[^/]' \| \
28613          X$ac_file : 'X\(//\)$' \| \
28614          X$ac_file : 'X\(/\)' \| \
28615          .     : '\(.\)' 2>/dev/null ||
28616 echo X$ac_file |
28617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28619           /^X\(\/\/\)$/{ s//\1/; q; }
28620           /^X\(\/\).*/{ s//\1/; q; }
28621           s/.*/./; q'`/stamp-h$_am_stamp_count
28622 done
28623 _ACEOF
28624 cat >>$CONFIG_STATUS <<\_ACEOF
28625
28626 #
28627 # CONFIG_COMMANDS section.
28628 #
28629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28630   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28631   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28632   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28633 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28634          X"$ac_dest" : 'X\(//\)[^/]' \| \
28635          X"$ac_dest" : 'X\(//\)$' \| \
28636          X"$ac_dest" : 'X\(/\)' \| \
28637          .     : '\(.\)' 2>/dev/null ||
28638 echo X"$ac_dest" |
28639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28640           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28641           /^X\(\/\/\)$/{ s//\1/; q; }
28642           /^X\(\/\).*/{ s//\1/; q; }
28643           s/.*/./; q'`
28644   { if $as_mkdir_p; then
28645     mkdir -p "$ac_dir"
28646   else
28647     as_dir="$ac_dir"
28648     as_dirs=
28649     while test ! -d "$as_dir"; do
28650       as_dirs="$as_dir $as_dirs"
28651       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28653          X"$as_dir" : 'X\(//\)[^/]' \| \
28654          X"$as_dir" : 'X\(//\)$' \| \
28655          X"$as_dir" : 'X\(/\)' \| \
28656          .     : '\(.\)' 2>/dev/null ||
28657 echo X"$as_dir" |
28658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28659           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28660           /^X\(\/\/\)$/{ s//\1/; q; }
28661           /^X\(\/\).*/{ s//\1/; q; }
28662           s/.*/./; q'`
28663     done
28664     test ! -n "$as_dirs" || mkdir $as_dirs
28665   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28666 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28667    { (exit 1); exit 1; }; }; }
28668
28669   ac_builddir=.
28670
28671 if test "$ac_dir" != .; then
28672   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28673   # A "../" for each directory in $ac_dir_suffix.
28674   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28675 else
28676   ac_dir_suffix= ac_top_builddir=
28677 fi
28678
28679 case $srcdir in
28680   .)  # No --srcdir option.  We are building in place.
28681     ac_srcdir=.
28682     if test -z "$ac_top_builddir"; then
28683        ac_top_srcdir=.
28684     else
28685        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28686     fi ;;
28687   [\\/]* | ?:[\\/]* )  # Absolute path.
28688     ac_srcdir=$srcdir$ac_dir_suffix;
28689     ac_top_srcdir=$srcdir ;;
28690   *) # Relative path.
28691     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28692     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28693 esac
28694
28695 # Do not use `cd foo && pwd` to compute absolute paths, because
28696 # the directories may not exist.
28697 case `pwd` in
28698 .) ac_abs_builddir="$ac_dir";;
28699 *)
28700   case "$ac_dir" in
28701   .) ac_abs_builddir=`pwd`;;
28702   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28703   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28704   esac;;
28705 esac
28706 case $ac_abs_builddir in
28707 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28708 *)
28709   case ${ac_top_builddir}. in
28710   .) ac_abs_top_builddir=$ac_abs_builddir;;
28711   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28712   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28713   esac;;
28714 esac
28715 case $ac_abs_builddir in
28716 .) ac_abs_srcdir=$ac_srcdir;;
28717 *)
28718   case $ac_srcdir in
28719   .) ac_abs_srcdir=$ac_abs_builddir;;
28720   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28721   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28722   esac;;
28723 esac
28724 case $ac_abs_builddir in
28725 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28726 *)
28727   case $ac_top_srcdir in
28728   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28729   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28730   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28731   esac;;
28732 esac
28733
28734
28735   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28736 echo "$as_me: executing $ac_dest commands" >&6;}
28737   case $ac_dest in
28738     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28739   # Strip MF so we end up with the name of the file.
28740   mf=`echo "$mf" | sed -e 's/:.*$//'`
28741   # Check whether this is an Automake generated Makefile or not.
28742   # We used to match only the files named `Makefile.in', but
28743   # some people rename them; so instead we look at the file content.
28744   # Grep'ing the first line is not enough: some people post-process
28745   # each Makefile.in and add a new line on top of each file to say so.
28746   # So let's grep whole file.
28747   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28748     dirpart=`(dirname "$mf") 2>/dev/null ||
28749 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28750          X"$mf" : 'X\(//\)[^/]' \| \
28751          X"$mf" : 'X\(//\)$' \| \
28752          X"$mf" : 'X\(/\)' \| \
28753          .     : '\(.\)' 2>/dev/null ||
28754 echo X"$mf" |
28755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28757           /^X\(\/\/\)$/{ s//\1/; q; }
28758           /^X\(\/\).*/{ s//\1/; q; }
28759           s/.*/./; q'`
28760   else
28761     continue
28762   fi
28763   # Extract the definition of DEPDIR, am__include, and am__quote
28764   # from the Makefile without running `make'.
28765   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28766   test -z "$DEPDIR" && continue
28767   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28768   test -z "am__include" && continue
28769   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28770   # When using ansi2knr, U may be empty or an underscore; expand it
28771   U=`sed -n 's/^U = //p' < "$mf"`
28772   # Find all dependency output files, they are included files with
28773   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28774   # simplest approach to changing $(DEPDIR) to its actual value in the
28775   # expansion.
28776   for file in `sed -n "
28777     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28778        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28779     # Make sure the directory exists.
28780     test -f "$dirpart/$file" && continue
28781     fdir=`(dirname "$file") 2>/dev/null ||
28782 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28783          X"$file" : 'X\(//\)[^/]' \| \
28784          X"$file" : 'X\(//\)$' \| \
28785          X"$file" : 'X\(/\)' \| \
28786          .     : '\(.\)' 2>/dev/null ||
28787 echo X"$file" |
28788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28789           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28790           /^X\(\/\/\)$/{ s//\1/; q; }
28791           /^X\(\/\).*/{ s//\1/; q; }
28792           s/.*/./; q'`
28793     { if $as_mkdir_p; then
28794     mkdir -p $dirpart/$fdir
28795   else
28796     as_dir=$dirpart/$fdir
28797     as_dirs=
28798     while test ! -d "$as_dir"; do
28799       as_dirs="$as_dir $as_dirs"
28800       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28802          X"$as_dir" : 'X\(//\)[^/]' \| \
28803          X"$as_dir" : 'X\(//\)$' \| \
28804          X"$as_dir" : 'X\(/\)' \| \
28805          .     : '\(.\)' 2>/dev/null ||
28806 echo X"$as_dir" |
28807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28809           /^X\(\/\/\)$/{ s//\1/; q; }
28810           /^X\(\/\).*/{ s//\1/; q; }
28811           s/.*/./; q'`
28812     done
28813     test ! -n "$as_dirs" || mkdir $as_dirs
28814   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28815 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28816    { (exit 1); exit 1; }; }; }
28817
28818     # echo "creating $dirpart/$file"
28819     echo '# dummy' > "$dirpart/$file"
28820   done
28821 done
28822  ;;
28823   esac
28824 done
28825 _ACEOF
28826
28827 cat >>$CONFIG_STATUS <<\_ACEOF
28828
28829 { (exit 0); exit 0; }
28830 _ACEOF
28831 chmod +x $CONFIG_STATUS
28832 ac_clean_files=$ac_clean_files_save
28833
28834
28835 # configure is writing to config.log, and then calls config.status.
28836 # config.status does its own redirection, appending to config.log.
28837 # Unfortunately, on DOS this fails, as config.log is still kept open
28838 # by configure, so config.status won't be able to write to it; its
28839 # output is simply discarded.  So we exec the FD to /dev/null,
28840 # effectively closing config.log, so it can be properly (re)opened and
28841 # appended to by config.status.  When coming back to configure, we
28842 # need to make the FD available again.
28843 if test "$no_create" != yes; then
28844   ac_cs_success=:
28845   ac_config_status_args=
28846   test "$silent" = yes &&
28847     ac_config_status_args="$ac_config_status_args --quiet"
28848   exec 5>/dev/null
28849   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28850   exec 5>>config.log
28851   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28852   # would make configure fail if this is the last instruction.
28853   $ac_cs_success || { (exit 1); exit 1; }
28854 fi
28855
28856