]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
[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-rc4.
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-rc4'
427 PACKAGE_STRING='linux nfs-utils 1.0.8-rc4'
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 HAVE_LIBWRAP HAVE_TCP_WRAPPER 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 PKG_CONFIG ac_pt_PKG_CONFIG RPCSECGSS_CFLAGS RPCSECGSS_LIBS 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 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
954 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
955 ac_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
956 ac_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
957 ac_cv_env_RPCSECGSS_CFLAGS_set=${RPCSECGSS_CFLAGS+set}
958 ac_cv_env_RPCSECGSS_CFLAGS_value=$RPCSECGSS_CFLAGS
959 ac_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
960 ac_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
961 ac_cv_env_RPCSECGSS_LIBS_set=${RPCSECGSS_LIBS+set}
962 ac_cv_env_RPCSECGSS_LIBS_value=$RPCSECGSS_LIBS
963
964 #
965 # Report the --help message.
966 #
967 if test "$ac_init_help" = "long"; then
968   # Omit some internal or obsolete options to make the list less imposing.
969   # This message is too long to be a string in the A/UX 3.1 sh.
970   cat <<_ACEOF
971 \`configure' configures linux nfs-utils 1.0.8-rc4 to adapt to many kinds of systems.
972
973 Usage: $0 [OPTION]... [VAR=VALUE]...
974
975 To assign environment variables (e.g., CC, CFLAGS...), specify them as
976 VAR=VALUE.  See below for descriptions of some of the useful variables.
977
978 Defaults for the options are specified in brackets.
979
980 Configuration:
981   -h, --help              display this help and exit
982       --help=short        display options specific to this package
983       --help=recursive    display the short help of all the included packages
984   -V, --version           display version information and exit
985   -q, --quiet, --silent   do not print \`checking...' messages
986       --cache-file=FILE   cache test results in FILE [disabled]
987   -C, --config-cache      alias for \`--cache-file=config.cache'
988   -n, --no-create         do not create output files
989       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
990
991 _ACEOF
992
993   cat <<_ACEOF
994 Installation directories:
995   --prefix=PREFIX         install architecture-independent files in PREFIX
996                           [$ac_default_prefix]
997   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
998                           [PREFIX]
999
1000 By default, \`make install' will install all the files in
1001 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1002 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1003 for instance \`--prefix=\$HOME'.
1004
1005 For better control, use the options below.
1006
1007 Fine tuning of the installation directories:
1008   --bindir=DIR           user executables [EPREFIX/bin]
1009   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1010   --libexecdir=DIR       program executables [EPREFIX/libexec]
1011   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1012   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1013   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1014   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1015   --libdir=DIR           object code libraries [EPREFIX/lib]
1016   --includedir=DIR       C header files [PREFIX/include]
1017   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1018   --infodir=DIR          info documentation [PREFIX/info]
1019   --mandir=DIR           man documentation [PREFIX/man]
1020 _ACEOF
1021
1022   cat <<\_ACEOF
1023
1024 Program names:
1025   --program-prefix=PREFIX            prepend PREFIX to installed program names
1026   --program-suffix=SUFFIX            append SUFFIX to installed program names
1027   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1028
1029 System types:
1030   --build=BUILD     configure for building on BUILD [guessed]
1031   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1032 _ACEOF
1033 fi
1034
1035 if test -n "$ac_init_help"; then
1036   case $ac_init_help in
1037      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc4:";;
1038    esac
1039   cat <<\_ACEOF
1040
1041 Optional Features:
1042   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1043   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1044   --enable-nfsv3          enable support for NFSv3 [default=yes]
1045   --enable-nfsv4          enable support for NFSv4 [default=yes]
1046   --enable-gss            enable support for rpcsec_gss [default=yes]
1047   --enable-kprefix        install progs as rpc.knfsd etc
1048   --enable-secure-statd   Only lockd can use statd (security)
1049   --enable-rquotad        enable rquotad [default=yes]
1050   --disable-dependency-tracking  speeds up one-time build
1051   --enable-dependency-tracking   do not reject slow dependency extractors
1052   --enable-shared[=PKGS]
1053                           build shared libraries [default=yes]
1054   --enable-static[=PKGS]
1055                           build static libraries [default=yes]
1056   --enable-fast-install[=PKGS]
1057                           optimize for fast installation [default=yes]
1058   --disable-libtool-lock  avoid locking (might break parallel builds)
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-release=XXX      set release to XXX [1]
1064   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1065   --with-statduser=rpcuser
1066                           statd to run under [rpcuser or nobody]
1067   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1068                  (optionally in PATH)
1069   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1070   --with-pic              try to use only PIC/non-PIC objects [default=use
1071                           both]
1072   --with-tags[=TAGS]
1073                           include additional configurations [automatic]
1074   --with-krb5=DIR         use Kerberos v5 installation in DIR
1075
1076 Some influential environment variables:
1077   CC          C compiler command
1078   CFLAGS      C compiler flags
1079   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1080               nonstandard directory <lib dir>
1081   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082               headers in a nonstandard directory <include dir>
1083   CXX         C++ compiler command
1084   CXXFLAGS    C++ compiler flags
1085   CPP         C preprocessor
1086   CXXCPP      C++ preprocessor
1087   F77         Fortran 77 compiler command
1088   FFLAGS      Fortran 77 compiler flags
1089   PKG_CONFIG  path to pkg-config utility
1090   RPCSECGSS_CFLAGS
1091               C compiler flags for RPCSECGSS, overriding pkg-config
1092   RPCSECGSS_LIBS
1093               linker flags for RPCSECGSS, overriding pkg-config
1094
1095 Use these variables to override the choices made by `configure' or to help
1096 it to find libraries and programs with nonstandard names/locations.
1097
1098 Report bugs to <nfs@lists.sf.net>.
1099 _ACEOF
1100 fi
1101
1102 if test "$ac_init_help" = "recursive"; then
1103   # If there are subdirs, report their specific --help.
1104   ac_popdir=`pwd`
1105   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106     test -d $ac_dir || continue
1107     ac_builddir=.
1108
1109 if test "$ac_dir" != .; then
1110   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111   # A "../" for each directory in $ac_dir_suffix.
1112   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113 else
1114   ac_dir_suffix= ac_top_builddir=
1115 fi
1116
1117 case $srcdir in
1118   .)  # No --srcdir option.  We are building in place.
1119     ac_srcdir=.
1120     if test -z "$ac_top_builddir"; then
1121        ac_top_srcdir=.
1122     else
1123        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124     fi ;;
1125   [\\/]* | ?:[\\/]* )  # Absolute path.
1126     ac_srcdir=$srcdir$ac_dir_suffix;
1127     ac_top_srcdir=$srcdir ;;
1128   *) # Relative path.
1129     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131 esac
1132
1133 # Do not use `cd foo && pwd` to compute absolute paths, because
1134 # the directories may not exist.
1135 case `pwd` in
1136 .) ac_abs_builddir="$ac_dir";;
1137 *)
1138   case "$ac_dir" in
1139   .) ac_abs_builddir=`pwd`;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1146 *)
1147   case ${ac_top_builddir}. in
1148   .) ac_abs_top_builddir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151   esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_srcdir=$ac_srcdir;;
1155 *)
1156   case $ac_srcdir in
1157   .) ac_abs_srcdir=$ac_abs_builddir;;
1158   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160   esac;;
1161 esac
1162 case $ac_abs_builddir in
1163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1164 *)
1165   case $ac_top_srcdir in
1166   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169   esac;;
1170 esac
1171
1172     cd $ac_dir
1173     # Check for guested configure; otherwise get Cygnus style configure.
1174     if test -f $ac_srcdir/configure.gnu; then
1175       echo
1176       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1177     elif test -f $ac_srcdir/configure; then
1178       echo
1179       $SHELL $ac_srcdir/configure  --help=recursive
1180     elif test -f $ac_srcdir/configure.ac ||
1181            test -f $ac_srcdir/configure.in; then
1182       echo
1183       $ac_configure --help
1184     else
1185       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186     fi
1187     cd "$ac_popdir"
1188   done
1189 fi
1190
1191 test -n "$ac_init_help" && exit 0
1192 if $ac_init_version; then
1193   cat <<\_ACEOF
1194 linux nfs-utils configure 1.0.8-rc4
1195 generated by GNU Autoconf 2.59
1196
1197 Copyright (C) 2003 Free Software Foundation, Inc.
1198 This configure script is free software; the Free Software Foundation
1199 gives unlimited permission to copy, distribute and modify it.
1200 _ACEOF
1201   exit 0
1202 fi
1203 exec 5>config.log
1204 cat >&5 <<_ACEOF
1205 This file contains any messages produced by compilers while
1206 running configure, to aid debugging if configure makes a mistake.
1207
1208 It was created by linux nfs-utils $as_me 1.0.8-rc4, which was
1209 generated by GNU Autoconf 2.59.  Invocation command line was
1210
1211   $ $0 $@
1212
1213 _ACEOF
1214 {
1215 cat <<_ASUNAME
1216 ## --------- ##
1217 ## Platform. ##
1218 ## --------- ##
1219
1220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1228
1229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1236
1237 _ASUNAME
1238
1239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240 for as_dir in $PATH
1241 do
1242   IFS=$as_save_IFS
1243   test -z "$as_dir" && as_dir=.
1244   echo "PATH: $as_dir"
1245 done
1246
1247 } >&5
1248
1249 cat >&5 <<_ACEOF
1250
1251
1252 ## ----------- ##
1253 ## Core tests. ##
1254 ## ----------- ##
1255
1256 _ACEOF
1257
1258
1259 # Keep a trace of the command line.
1260 # Strip out --no-create and --no-recursion so they do not pile up.
1261 # Strip out --silent because we don't want to record it for future runs.
1262 # Also quote any args containing shell meta-characters.
1263 # Make two passes to allow for proper duplicate-argument suppression.
1264 ac_configure_args=
1265 ac_configure_args0=
1266 ac_configure_args1=
1267 ac_sep=
1268 ac_must_keep_next=false
1269 for ac_pass in 1 2
1270 do
1271   for ac_arg
1272   do
1273     case $ac_arg in
1274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276     | -silent | --silent | --silen | --sile | --sil)
1277       continue ;;
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     esac
1281     case $ac_pass in
1282     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283     2)
1284       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285       if test $ac_must_keep_next = true; then
1286         ac_must_keep_next=false # Got value, back to normal.
1287       else
1288         case $ac_arg in
1289           *=* | --config-cache | -C | -disable-* | --disable-* \
1290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292           | -with-* | --with-* | -without-* | --without-* | --x)
1293             case "$ac_configure_args0 " in
1294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295             esac
1296             ;;
1297           -* ) ac_must_keep_next=true ;;
1298         esac
1299       fi
1300       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301       # Get rid of the leading space.
1302       ac_sep=" "
1303       ;;
1304     esac
1305   done
1306 done
1307 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310 # When interrupted or exit'd, cleanup temporary files, and complete
1311 # config.log.  We remove comments because anyway the quotes in there
1312 # would cause problems or look ugly.
1313 # WARNING: Be sure not to use single quotes in there, as some shells,
1314 # such as our DU 5.0 friend, will then `close' the trap.
1315 trap 'exit_status=$?
1316   # Save into config.log some information that might help in debugging.
1317   {
1318     echo
1319
1320     cat <<\_ASBOX
1321 ## ---------------- ##
1322 ## Cache variables. ##
1323 ## ---------------- ##
1324 _ASBOX
1325     echo
1326     # The following way of writing the cache mishandles newlines in values,
1327 {
1328   (set) 2>&1 |
1329     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330     *ac_space=\ *)
1331       sed -n \
1332         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334       ;;
1335     *)
1336       sed -n \
1337         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1338       ;;
1339     esac;
1340 }
1341     echo
1342
1343     cat <<\_ASBOX
1344 ## ----------------- ##
1345 ## Output variables. ##
1346 ## ----------------- ##
1347 _ASBOX
1348     echo
1349     for ac_var in $ac_subst_vars
1350     do
1351       eval ac_val=$`echo $ac_var`
1352       echo "$ac_var='"'"'$ac_val'"'"'"
1353     done | sort
1354     echo
1355
1356     if test -n "$ac_subst_files"; then
1357       cat <<\_ASBOX
1358 ## ------------- ##
1359 ## Output files. ##
1360 ## ------------- ##
1361 _ASBOX
1362       echo
1363       for ac_var in $ac_subst_files
1364       do
1365         eval ac_val=$`echo $ac_var`
1366         echo "$ac_var='"'"'$ac_val'"'"'"
1367       done | sort
1368       echo
1369     fi
1370
1371     if test -s confdefs.h; then
1372       cat <<\_ASBOX
1373 ## ----------- ##
1374 ## confdefs.h. ##
1375 ## ----------- ##
1376 _ASBOX
1377       echo
1378       sed "/^$/d" confdefs.h | sort
1379       echo
1380     fi
1381     test "$ac_signal" != 0 &&
1382       echo "$as_me: caught signal $ac_signal"
1383     echo "$as_me: exit $exit_status"
1384   } >&5
1385   rm -f core *.core &&
1386   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387     exit $exit_status
1388      ' 0
1389 for ac_signal in 1 2 13 15; do
1390   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391 done
1392 ac_signal=0
1393
1394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1395 rm -rf conftest* confdefs.h
1396 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397 echo >confdefs.h
1398
1399 # Predefined preprocessor variables.
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_NAME "$PACKAGE_NAME"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_STRING "$PACKAGE_STRING"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423 _ACEOF
1424
1425
1426 # Let the site file select an alternate cache file if it wants to.
1427 # Prefer explicitly selected file to automatically selected ones.
1428 if test -z "$CONFIG_SITE"; then
1429   if test "x$prefix" != xNONE; then
1430     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431   else
1432     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433   fi
1434 fi
1435 for ac_site_file in $CONFIG_SITE; do
1436   if test -r "$ac_site_file"; then
1437     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438 echo "$as_me: loading site script $ac_site_file" >&6;}
1439     sed 's/^/| /' "$ac_site_file" >&5
1440     . "$ac_site_file"
1441   fi
1442 done
1443
1444 if test -r "$cache_file"; then
1445   # Some versions of bash will fail to source /dev/null (special
1446   # files actually), so we avoid doing that.
1447   if test -f "$cache_file"; then
1448     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449 echo "$as_me: loading cache $cache_file" >&6;}
1450     case $cache_file in
1451       [\\/]* | ?:[\\/]* ) . $cache_file;;
1452       *)                      . ./$cache_file;;
1453     esac
1454   fi
1455 else
1456   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457 echo "$as_me: creating cache $cache_file" >&6;}
1458   >$cache_file
1459 fi
1460
1461 # Check that the precious variables saved in the cache have kept the same
1462 # value.
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467   eval ac_new_set=\$ac_env_${ac_var}_set
1468   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469   eval ac_new_val="\$ac_env_${ac_var}_value"
1470   case $ac_old_set,$ac_new_set in
1471     set,)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,set)
1476       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478       ac_cache_corrupted=: ;;
1479     ,);;
1480     *)
1481       if test "x$ac_old_val" != "x$ac_new_val"; then
1482         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485 echo "$as_me:   former value:  $ac_old_val" >&2;}
1486         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487 echo "$as_me:   current value: $ac_new_val" >&2;}
1488         ac_cache_corrupted=:
1489       fi;;
1490   esac
1491   # Pass precious variables to config.status.
1492   if test "$ac_new_set" = set; then
1493     case $ac_new_val in
1494     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496     *) ac_arg=$ac_var=$ac_new_val ;;
1497     esac
1498     case " $ac_configure_args " in
1499       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501     esac
1502   fi
1503 done
1504 if $ac_cache_corrupted; then
1505   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544 ac_aux_dir=
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546   if test -f $ac_dir/install-sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install-sh -c"
1549     break
1550   elif test -f $ac_dir/install.sh; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/install.sh -c"
1553     break
1554   elif test -f $ac_dir/shtool; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/shtool install -c"
1557     break
1558   fi
1559 done
1560 if test -z "$ac_aux_dir"; then
1561   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563    { (exit 1); exit 1; }; }
1564 fi
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582   ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586    { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1595 build=$ac_cv_build
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608   ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1617 host=$ac_cv_host
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623
1624 case aclocal in
1625   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
1626   *)                      ac_macro_dir=$srcdir/aclocal ;;
1627 esac
1628 if test -d "$ac_macro_dir"; then :
1629 else
1630   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1631 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1632    { (exit 1); exit 1; }; }
1633 fi
1634
1635 am__api_version="1.9"
1636 # Find a good install program.  We prefer a C program (faster),
1637 # so one script is as good as another.  But avoid the broken or
1638 # incompatible versions:
1639 # SysV /etc/install, /usr/sbin/install
1640 # SunOS /usr/etc/install
1641 # IRIX /sbin/install
1642 # AIX /bin/install
1643 # AmigaOS /C/install, which installs bootblocks on floppy discs
1644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647 # OS/2's system install, which has a completely different semantic
1648 # ./install, which can be erroneously created by make from ./install.sh.
1649 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651 if test -z "$INSTALL"; then
1652 if test "${ac_cv_path_install+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   # Account for people who put trailing slashes in PATH elements.
1661 case $as_dir/ in
1662   ./ | .// | /cC/* | \
1663   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1665   /usr/ucb/* ) ;;
1666   *)
1667     # OSF1 and SCO ODT 3.0 have their own names for install.
1668     # Don't use installbsd from OSF since it installs stuff as root
1669     # by default.
1670     for ac_prog in ginstall scoinst install; do
1671       for ac_exec_ext in '' $ac_executable_extensions; do
1672         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673           if test $ac_prog = install &&
1674             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675             # AIX install.  It has an incompatible calling convention.
1676             :
1677           elif test $ac_prog = install &&
1678             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679             # program-specific install script used by HP pwplus--don't use.
1680             :
1681           else
1682             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1683             break 3
1684           fi
1685         fi
1686       done
1687     done
1688     ;;
1689 esac
1690 done
1691
1692
1693 fi
1694   if test "${ac_cv_path_install+set}" = set; then
1695     INSTALL=$ac_cv_path_install
1696   else
1697     # As a last resort, use the slow shell script.  We don't cache a
1698     # path for INSTALL within a source directory, because that will
1699     # break other packages using the cache if that directory is
1700     # removed, or if the path is relative.
1701     INSTALL=$ac_install_sh
1702   fi
1703 fi
1704 echo "$as_me:$LINENO: result: $INSTALL" >&5
1705 echo "${ECHO_T}$INSTALL" >&6
1706
1707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708 # It thinks the first close brace ends the variable substitution.
1709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710
1711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714
1715 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1717 # Just in case
1718 sleep 1
1719 echo timestamp > conftest.file
1720 # Do `set' in a subshell so we don't clobber the current shell's
1721 # arguments.  Must try -L first in case configure is actually a
1722 # symlink; some systems play weird games with the mod time of symlinks
1723 # (eg FreeBSD returns the mod time of the symlink's containing
1724 # directory).
1725 if (
1726    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727    if test "$*" = "X"; then
1728       # -L didn't work.
1729       set X `ls -t $srcdir/configure conftest.file`
1730    fi
1731    rm -f conftest.file
1732    if test "$*" != "X $srcdir/configure conftest.file" \
1733       && test "$*" != "X conftest.file $srcdir/configure"; then
1734
1735       # If neither matched, then we have a broken ls.  This can happen
1736       # if, for instance, CONFIG_SHELL is bash and it inherits a
1737       # broken ls alias from the environment.  This has actually
1738       # happened.  Such a system could not be considered "sane".
1739       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1740 alias in your environment" >&5
1741 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1742 alias in your environment" >&2;}
1743    { (exit 1); exit 1; }; }
1744    fi
1745
1746    test "$2" = conftest.file
1747    )
1748 then
1749    # Ok.
1750    :
1751 else
1752    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753 Check your system clock" >&5
1754 echo "$as_me: error: newly created file is older than distributed files!
1755 Check your system clock" >&2;}
1756    { (exit 1); exit 1; }; }
1757 fi
1758 echo "$as_me:$LINENO: result: yes" >&5
1759 echo "${ECHO_T}yes" >&6
1760 test "$program_prefix" != NONE &&
1761   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762 # Use a double $ so make ignores it.
1763 test "$program_suffix" != NONE &&
1764   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765 # Double any \ or $.  echo might interpret backslashes.
1766 # By default was `s,x,x', remove it if useless.
1767 cat <<\_ACEOF >conftest.sed
1768 s/[\\$]/&&/g;s/;s,x,x,$//
1769 _ACEOF
1770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1771 rm conftest.sed
1772
1773 # expand $ac_aux_dir to an absolute path
1774 am_aux_dir=`cd $ac_aux_dir && pwd`
1775
1776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777 # Use eval to expand $SHELL
1778 if eval "$MISSING --run true"; then
1779   am_missing_run="$MISSING --run "
1780 else
1781   am_missing_run=
1782   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1784 fi
1785
1786 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787   # We used to keeping the `.' as first argument, in order to
1788   # allow $(mkdir_p) to be used without argument.  As in
1789   #   $(mkdir_p) $(somedir)
1790   # where $(somedir) is conditionally defined.  However this is wrong
1791   # for two reasons:
1792   #  1. if the package is installed by a user who cannot write `.'
1793   #     make install will fail,
1794   #  2. the above comment should most certainly read
1795   #     $(mkdir_p) $(DESTDIR)$(somedir)
1796   #     so it does not work when $(somedir) is undefined and
1797   #     $(DESTDIR) is not.
1798   #  To support the latter case, we have to write
1799   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800   #  so the `.' trick is pointless.
1801   mkdir_p='mkdir -p --'
1802 else
1803   # On NextStep and OpenStep, the `mkdir' command does not
1804   # recognize any option.  It will interpret all options as
1805   # directories to create, and then abort because `.' already
1806   # exists.
1807   for d in ./-p ./--version;
1808   do
1809     test -d $d && rmdir $d
1810   done
1811   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812   if test -f "$ac_aux_dir/mkinstalldirs"; then
1813     mkdir_p='$(mkinstalldirs)'
1814   else
1815     mkdir_p='$(install_sh) -d'
1816   fi
1817 fi
1818
1819 for ac_prog in gawk mawk nawk awk
1820 do
1821   # Extract the first word of "$ac_prog", so it can be a program name with args.
1822 set dummy $ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_AWK+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$AWK"; then
1829   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_AWK="$ac_prog"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 AWK=$ac_cv_prog_AWK
1848 if test -n "$AWK"; then
1849   echo "$as_me:$LINENO: result: $AWK" >&5
1850 echo "${ECHO_T}$AWK" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856   test -n "$AWK" && break
1857 done
1858
1859 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863   echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865   cat >conftest.make <<\_ACEOF
1866 all:
1867         @echo 'ac_maketemp="$(MAKE)"'
1868 _ACEOF
1869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871 if test -n "$ac_maketemp"; then
1872   eval ac_cv_prog_make_${ac_make}_set=yes
1873 else
1874   eval ac_cv_prog_make_${ac_make}_set=no
1875 fi
1876 rm -f conftest.make
1877 fi
1878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879   echo "$as_me:$LINENO: result: yes" >&5
1880 echo "${ECHO_T}yes" >&6
1881   SET_MAKE=
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885   SET_MAKE="MAKE=${MAKE-make}"
1886 fi
1887
1888 rm -rf .tst 2>/dev/null
1889 mkdir .tst 2>/dev/null
1890 if test -d .tst; then
1891   am__leading_dot=.
1892 else
1893   am__leading_dot=_
1894 fi
1895 rmdir .tst 2>/dev/null
1896
1897 # test to see if srcdir already configured
1898 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899    test -f $srcdir/config.status; then
1900   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902    { (exit 1); exit 1; }; }
1903 fi
1904
1905 # test whether we have cygpath
1906 if test -z "$CYGPATH_W"; then
1907   if (cygpath --version) >/dev/null 2>/dev/null; then
1908     CYGPATH_W='cygpath -w'
1909   else
1910     CYGPATH_W=echo
1911   fi
1912 fi
1913
1914
1915 # Define the identity of the package.
1916  PACKAGE='nfs-utils'
1917  VERSION='1.0.8-rc4'
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE "$PACKAGE"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define VERSION "$VERSION"
1927 _ACEOF
1928
1929 # Some tools Automake needs.
1930
1931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1932
1933
1934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1935
1936
1937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1938
1939
1940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1941
1942
1943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1944
1945 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1946
1947 # Installed binaries are usually stripped using `strip' when the user
1948 # run `make install-strip'.  However `strip' might not be the right
1949 # tool to use in cross-compilation environments, therefore Automake
1950 # will honor the `STRIP' environment variable to overrule this program.
1951 if test "$cross_compiling" != no; then
1952   if test -n "$ac_tool_prefix"; then
1953   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}strip; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_STRIP+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test -n "$STRIP"; then
1961   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1962 else
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972     break 2
1973   fi
1974 done
1975 done
1976
1977 fi
1978 fi
1979 STRIP=$ac_cv_prog_STRIP
1980 if test -n "$STRIP"; then
1981   echo "$as_me:$LINENO: result: $STRIP" >&5
1982 echo "${ECHO_T}$STRIP" >&6
1983 else
1984   echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6
1986 fi
1987
1988 fi
1989 if test -z "$ac_cv_prog_STRIP"; then
1990   ac_ct_STRIP=$STRIP
1991   # Extract the first word of "strip", so it can be a program name with args.
1992 set dummy strip; ac_word=$2
1993 echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$ac_ct_STRIP"; then
1999   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008     ac_cv_prog_ac_ct_STRIP="strip"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014
2015   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2016 fi
2017 fi
2018 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019 if test -n "$ac_ct_STRIP"; then
2020   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021 echo "${ECHO_T}$ac_ct_STRIP" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027   STRIP=$ac_ct_STRIP
2028 else
2029   STRIP="$ac_cv_prog_STRIP"
2030 fi
2031
2032 fi
2033 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2034
2035 # We need awk for the "check" target.  The system "awk" is bad on
2036 # some platforms.
2037 # Always define AMTAR for backward compatibility.
2038
2039 AMTAR=${AMTAR-"${am_missing_run}tar"}
2040
2041 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051 # Check whether --with-release or --without-release was given.
2052 if test "${with_release+set}" = set; then
2053   withval="$with_release"
2054   RELEASE=$withval
2055 else
2056   RELEASE=1
2057 fi;
2058
2059
2060 # Check whether --with-statedir or --without-statedir was given.
2061 if test "${with_statedir+set}" = set; then
2062   withval="$with_statedir"
2063   statedir=$withval
2064 else
2065   statedir=/var/lib/nfs
2066 fi;
2067
2068
2069 # Check whether --with-statduser or --without-statduser was given.
2070 if test "${with_statduser+set}" = set; then
2071   withval="$with_statduser"
2072   statduser=$withval
2073 else
2074   if test "x$cross_compiling" = "xno"; then
2075                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2076                         statduser=rpcuser
2077                 else
2078                         statduser=nobody
2079                 fi
2080         else
2081                 statduser=nobody
2082         fi
2083 fi;
2084
2085 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2086 if test "${enable_nfsv3+set}" = set; then
2087   enableval="$enable_nfsv3"
2088   enable_nfsv3=$enableval
2089 else
2090   enable_nfsv3=yes
2091 fi;
2092         if test "$enable_nfsv3" = yes; then
2093
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS3_SUPPORTED 1
2096 _ACEOF
2097
2098         else
2099                 enable_nfsv3=
2100         fi
2101
2102 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2103 if test "${enable_nfsv4+set}" = set; then
2104   enableval="$enable_nfsv4"
2105   enable_nfsv4=$enableval
2106 else
2107   enable_nfsv4=yes
2108 fi;
2109         if test "$enable_nfsv4" = yes; then
2110
2111 cat >>confdefs.h <<\_ACEOF
2112 #define NFS4_SUPPORTED 1
2113 _ACEOF
2114
2115                 IDMAPD=idmapd
2116         else
2117                 enable_nfsv4=
2118                 IDMAPD=
2119         fi
2120
2121
2122
2123
2124 if test "$enable_nfsv4" = "yes"; then
2125   CONFIG_NFSV4_TRUE=
2126   CONFIG_NFSV4_FALSE='#'
2127 else
2128   CONFIG_NFSV4_TRUE='#'
2129   CONFIG_NFSV4_FALSE=
2130 fi
2131
2132 # Check whether --enable-gss or --disable-gss was given.
2133 if test "${enable_gss+set}" = set; then
2134   enableval="$enable_gss"
2135   enable_gss=$enableval
2136 else
2137   enable_gss=yes
2138 fi;
2139         if test "$enable_gss" = yes; then
2140
2141 cat >>confdefs.h <<\_ACEOF
2142 #define GSS_SUPPORTED 1
2143 _ACEOF
2144
2145                 GSSD=gssd
2146                 SVCGSSD=svcgssd
2147         else
2148                 enable_gss=
2149                 GSSD=
2150                 SVCGSSD=
2151         fi
2152
2153
2154
2155
2156
2157 if test "$enable_gss" = "yes"; then
2158   CONFIG_GSS_TRUE=
2159   CONFIG_GSS_FALSE='#'
2160 else
2161   CONFIG_GSS_TRUE='#'
2162   CONFIG_GSS_FALSE=
2163 fi
2164
2165 # Check whether --enable-kprefix or --disable-kprefix was given.
2166 if test "${enable_kprefix+set}" = set; then
2167   enableval="$enable_kprefix"
2168   test "$enableval" = "yes" && kprefix=k
2169 else
2170   kprefix=
2171 fi;
2172
2173 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2174 if test "${enable_secure_statd+set}" = set; then
2175   enableval="$enable_secure_statd"
2176   test "$enableval" = "yes" && secure_statd=yes
2177 else
2178   secure_statd=no
2179 fi;
2180         if test "$secure_statd" = yes; then
2181
2182 cat >>confdefs.h <<\_ACEOF
2183 #define RESTRICTED_STATD 1
2184 _ACEOF
2185
2186         fi
2187
2188 # Check whether --enable-rquotad or --disable-rquotad was given.
2189 if test "${enable_rquotad+set}" = set; then
2190   enableval="$enable_rquotad"
2191   enable_rquotad=$enableval
2192 else
2193   enable_rquotad=yes
2194 fi;
2195         if test "$enable_rquotad" = yes; then
2196                 RQUOTAD=rquotad
2197         else
2198                 RQUOTAD=
2199         fi
2200
2201
2202 if test "$enable_rquotad" = "yes"; then
2203   CONFIG_RQUOTAD_TRUE=
2204   CONFIG_RQUOTAD_FALSE='#'
2205 else
2206   CONFIG_RQUOTAD_TRUE='#'
2207   CONFIG_RQUOTAD_FALSE=
2208 fi
2209
2210
2211 # Check whether user wants TCP wrappers support
2212 DEPDIR="${am__leading_dot}deps"
2213
2214           ac_config_commands="$ac_config_commands depfiles"
2215
2216
2217 am_make=${MAKE-make}
2218 cat > confinc << 'END'
2219 am__doit:
2220         @echo done
2221 .PHONY: am__doit
2222 END
2223 # If we don't find an include directive, just comment out the code.
2224 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2225 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2226 am__include="#"
2227 am__quote=
2228 _am_result=none
2229 # First try GNU make style include.
2230 echo "include confinc" > confmf
2231 # We grep out `Entering directory' and `Leaving directory'
2232 # messages which can occur if `w' ends up in MAKEFLAGS.
2233 # In particular we don't look at `^make:' because GNU make might
2234 # be invoked under some other name (usually "gmake"), in which
2235 # case it prints its new name instead of `make'.
2236 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2237    am__include=include
2238    am__quote=
2239    _am_result=GNU
2240 fi
2241 # Now try BSD make style include.
2242 if test "$am__include" = "#"; then
2243    echo '.include "confinc"' > confmf
2244    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2245       am__include=.include
2246       am__quote="\""
2247       _am_result=BSD
2248    fi
2249 fi
2250
2251
2252 echo "$as_me:$LINENO: result: $_am_result" >&5
2253 echo "${ECHO_T}$_am_result" >&6
2254 rm -f confinc confmf
2255
2256 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2257 if test "${enable_dependency_tracking+set}" = set; then
2258   enableval="$enable_dependency_tracking"
2259
2260 fi;
2261 if test "x$enable_dependency_tracking" != xno; then
2262   am_depcomp="$ac_aux_dir/depcomp"
2263   AMDEPBACKSLASH='\'
2264 fi
2265
2266
2267 if test "x$enable_dependency_tracking" != xno; then
2268   AMDEP_TRUE=
2269   AMDEP_FALSE='#'
2270 else
2271   AMDEP_TRUE='#'
2272   AMDEP_FALSE=
2273 fi
2274
2275
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 if test -n "$ac_tool_prefix"; then
2283   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if test -z "$ac_cv_prog_CC"; then
2320   ac_ct_CC=$CC
2321   # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$ac_ct_CC"; then
2329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338     ac_cv_prog_ac_ct_CC="gcc"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344
2345 fi
2346 fi
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2351 else
2352   echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2354 fi
2355
2356   CC=$ac_ct_CC
2357 else
2358   CC="$ac_cv_prog_CC"
2359 fi
2360
2361 if test -z "$CC"; then
2362   if test -n "$ac_tool_prefix"; then
2363   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2364 set dummy ${ac_tool_prefix}cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_CC="${ac_tool_prefix}cc"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394   echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398 fi
2399 if test -z "$ac_cv_prog_CC"; then
2400   ac_ct_CC=$CC
2401   # Extract the first word of "cc", so it can be a program name with args.
2402 set dummy cc; ac_word=$2
2403 echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2418     ac_cv_prog_ac_ct_CC="cc"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6
2431 else
2432   echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2434 fi
2435
2436   CC=$ac_ct_CC
2437 else
2438   CC="$ac_cv_prog_CC"
2439 fi
2440
2441 fi
2442 if test -z "$CC"; then
2443   # Extract the first word of "cc", so it can be a program name with args.
2444 set dummy cc; ac_word=$2
2445 echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   if test -n "$CC"; then
2451   ac_cv_prog_CC="$CC" # Let the user override the test.
2452 else
2453   ac_prog_rejected=no
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2462        ac_prog_rejected=yes
2463        continue
2464      fi
2465     ac_cv_prog_CC="cc"
2466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467     break 2
2468   fi
2469 done
2470 done
2471
2472 if test $ac_prog_rejected = yes; then
2473   # We found a bogon in the path, so make sure we never use it.
2474   set dummy $ac_cv_prog_CC
2475   shift
2476   if test $# != 0; then
2477     # We chose a different compiler from the bogus one.
2478     # However, it has the same basename, so the bogon will be chosen
2479     # first if we set CC to just the basename; use the full file name.
2480     shift
2481     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482   fi
2483 fi
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6
2490 else
2491   echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2493 fi
2494
2495 fi
2496 if test -z "$CC"; then
2497   if test -n "$ac_tool_prefix"; then
2498   for ac_prog in cl
2499   do
2500     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2502 echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2504 if test "${ac_cv_prog_CC+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test -n "$CC"; then
2508   ac_cv_prog_CC="$CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2517     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519     break 2
2520   fi
2521 done
2522 done
2523
2524 fi
2525 fi
2526 CC=$ac_cv_prog_CC
2527 if test -n "$CC"; then
2528   echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6
2530 else
2531   echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2533 fi
2534
2535     test -n "$CC" && break
2536   done
2537 fi
2538 if test -z "$CC"; then
2539   ac_ct_CC=$CC
2540   for ac_prog in cl
2541 do
2542   # Extract the first word of "$ac_prog", so it can be a program name with args.
2543 set dummy $ac_prog; ac_word=$2
2544 echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2546 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -n "$ac_ct_CC"; then
2550   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557   for ac_exec_ext in '' $ac_executable_extensions; do
2558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_ac_ct_CC="$ac_prog"
2560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564 done
2565
2566 fi
2567 fi
2568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2569 if test -n "$ac_ct_CC"; then
2570   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2571 echo "${ECHO_T}$ac_ct_CC" >&6
2572 else
2573   echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577   test -n "$ac_ct_CC" && break
2578 done
2579
2580   CC=$ac_ct_CC
2581 fi
2582
2583 fi
2584
2585
2586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details." >&2;}
2590    { (exit 1); exit 1; }; }
2591
2592 # Provide some information about the compiler.
2593 echo "$as_me:$LINENO:" \
2594      "checking for C compiler version" >&5
2595 ac_compiler=`set X $ac_compile; echo $2`
2596 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2597   (eval $ac_compiler --version </dev/null >&5) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }
2601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602   (eval $ac_compiler -v </dev/null >&5) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }
2606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607   (eval $ac_compiler -V </dev/null >&5) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }
2611
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 ac_clean_files_save=$ac_clean_files
2628 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2629 # Try to create an executable without -o first, disregard a.out.
2630 # It will help us diagnose broken compilers, and finding out an intuition
2631 # of exeext.
2632 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2633 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2634 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2635 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2636   (eval $ac_link_default) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; then
2640   # Find the output, starting from the most likely.  This scheme is
2641 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2642 # resort.
2643
2644 # Be careful to initialize this variable, since it used to be cached.
2645 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2646 ac_cv_exeext=
2647 # b.out is created by i960 compilers.
2648 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2649 do
2650   test -f "$ac_file" || continue
2651   case $ac_file in
2652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2653         ;;
2654     conftest.$ac_ext )
2655         # This is the source file.
2656         ;;
2657     [ab].out )
2658         # We found the default executable, but exeext='' is most
2659         # certainly right.
2660         break;;
2661     *.* )
2662         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663         # FIXME: I believe we export ac_cv_exeext for Libtool,
2664         # but it would be cool to find out if it's true.  Does anybody
2665         # maintain Libtool? --akim.
2666         export ac_cv_exeext
2667         break;;
2668     * )
2669         break;;
2670   esac
2671 done
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&2;}
2680    { (exit 77); exit 77; }; }
2681 fi
2682
2683 ac_exeext=$ac_cv_exeext
2684 echo "$as_me:$LINENO: result: $ac_file" >&5
2685 echo "${ECHO_T}$ac_file" >&6
2686
2687 # Check the compiler produces executables we can run.  If not, either
2688 # the compiler is broken, or we cross compile.
2689 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2692 # If not cross compiling, check that we can run a simple program.
2693 if test "$cross_compiling" != yes; then
2694   if { ac_try='./$ac_file'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700     cross_compiling=no
2701   else
2702     if test "$cross_compiling" = maybe; then
2703         cross_compiling=yes
2704     else
2705         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \`config.log' for more details." >&5
2708 echo "$as_me: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." >&2;}
2711    { (exit 1); exit 1; }; }
2712     fi
2713   fi
2714 fi
2715 echo "$as_me:$LINENO: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2717
2718 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2719 ac_clean_files=$ac_clean_files_save
2720 # Check the compiler produces executables we can run.  If not, either
2721 # the compiler is broken, or we cross compile.
2722 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2724 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2725 echo "${ECHO_T}$cross_compiling" >&6
2726
2727 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2730   (eval $ac_link) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; then
2734   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2735 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2736 # work properly (i.e., refer to `conftest.exe'), while it won't with
2737 # `rm'.
2738 for ac_file in conftest.exe conftest conftest.*; do
2739   test -f "$ac_file" || continue
2740   case $ac_file in
2741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2742     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743           export ac_cv_exeext
2744           break;;
2745     * ) break;;
2746   esac
2747 done
2748 else
2749   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log' for more details." >&2;}
2753    { (exit 1); exit 1; }; }
2754 fi
2755
2756 rm -f conftest$ac_cv_exeext
2757 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6
2759
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2762 ac_exeext=$EXEEXT
2763 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2765 if test "${ac_cv_objext+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.o conftest.obj
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; then
2789   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2790   case $ac_file in
2791     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2792     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2793        break;;
2794   esac
2795 done
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2801 See \`config.log' for more details." >&5
2802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&2;}
2804    { (exit 1); exit 1; }; }
2805 fi
2806
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2810 echo "${ECHO_T}$ac_cv_objext" >&6
2811 OBJEXT=$ac_cv_objext
2812 ac_objext=$OBJEXT
2813 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828 #ifndef __GNUC__
2829        choke me
2830 #endif
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857   ac_compiler_gnu=yes
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 ac_compiler_gnu=no
2863 fi
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2866
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2869 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2870 GCC=`test $ac_compiler_gnu = yes && echo yes`
2871 ac_test_CFLAGS=${CFLAGS+set}
2872 ac_save_CFLAGS=$CFLAGS
2873 CFLAGS="-g"
2874 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2876 if test "${ac_cv_prog_cc_g+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885
2886 int
2887 main ()
2888 {
2889
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905   (eval $ac_try) 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; } &&
2909          { ac_try='test -s conftest.$ac_objext'
2910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911   (eval $ac_try) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; }; then
2915   ac_cv_prog_cc_g=yes
2916 else
2917   echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 ac_cv_prog_cc_g=no
2921 fi
2922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923 fi
2924 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2925 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2926 if test "$ac_test_CFLAGS" = set; then
2927   CFLAGS=$ac_save_CFLAGS
2928 elif test $ac_cv_prog_cc_g = yes; then
2929   if test "$GCC" = yes; then
2930     CFLAGS="-g -O2"
2931   else
2932     CFLAGS="-g"
2933   fi
2934 else
2935   if test "$GCC" = yes; then
2936     CFLAGS="-O2"
2937   else
2938     CFLAGS=
2939   fi
2940 fi
2941 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2942 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2943 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   ac_cv_prog_cc_stdc=no
2947 ac_save_CC=$CC
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954 #include <stdarg.h>
2955 #include <stdio.h>
2956 #include <sys/types.h>
2957 #include <sys/stat.h>
2958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2959 struct buf { int x; };
2960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2961 static char *e (p, i)
2962      char **p;
2963      int i;
2964 {
2965   return p[i];
2966 }
2967 static char *f (char * (*g) (char **, int), char **p, ...)
2968 {
2969   char *s;
2970   va_list v;
2971   va_start (v,p);
2972   s = g (p, va_arg (v,int));
2973   va_end (v);
2974   return s;
2975 }
2976
2977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2978    function prototypes and stuff, but not '\xHH' hex character constants.
2979    These don't provoke an error unfortunately, instead are silently treated
2980    as 'x'.  The following induces an error, until -std1 is added to get
2981    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2982    array size at least.  It's necessary to write '\x00'==0 to get something
2983    that's true only with -std1.  */
2984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2985
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2990 int argc;
2991 char **argv;
2992 int
2993 main ()
2994 {
2995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 # Don't try gcc -ansi; that turns off useful extensions and
3001 # breaks some systems' header files.
3002 # AIX                   -qlanglvl=ansi
3003 # Ultrix and OSF/1      -std1
3004 # HP-UX 10.20 and later -Ae
3005 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3006 # SVR4                  -Xc -D__EXTENSIONS__
3007 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3008 do
3009   CC="$ac_save_CC $ac_arg"
3010   rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012   (eval $ac_compile) 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021   (eval $ac_try) 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; } &&
3025          { ac_try='test -s conftest.$ac_objext'
3026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027   (eval $ac_try) 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; }; then
3031   ac_cv_prog_cc_stdc=$ac_arg
3032 break
3033 else
3034   echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3036
3037 fi
3038 rm -f conftest.err conftest.$ac_objext
3039 done
3040 rm -f conftest.$ac_ext conftest.$ac_objext
3041 CC=$ac_save_CC
3042
3043 fi
3044
3045 case "x$ac_cv_prog_cc_stdc" in
3046   x|xno)
3047     echo "$as_me:$LINENO: result: none needed" >&5
3048 echo "${ECHO_T}none needed" >&6 ;;
3049   *)
3050     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3052     CC="$CC $ac_cv_prog_cc_stdc" ;;
3053 esac
3054
3055 # Some people use a C++ compiler to compile C.  Since we use `exit',
3056 # in C++ we need to declare it.  In case someone uses the same compiler
3057 # for both compiling C and C++ we need to have the C++ compiler decide
3058 # the declaration of exit, since it's the most demanding environment.
3059 cat >conftest.$ac_ext <<_ACEOF
3060 #ifndef __cplusplus
3061   choke me
3062 #endif
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066   (eval $ac_compile) 2>conftest.er1
3067   ac_status=$?
3068   grep -v '^ *+' conftest.er1 >conftest.err
3069   rm -f conftest.er1
3070   cat conftest.err >&5
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); } &&
3073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075   (eval $ac_try) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }; } &&
3079          { ac_try='test -s conftest.$ac_objext'
3080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081   (eval $ac_try) 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; }; then
3085   for ac_declaration in \
3086    '' \
3087    'extern "C" void std::exit (int) throw (); using std::exit;' \
3088    'extern "C" void std::exit (int); using std::exit;' \
3089    'extern "C" void exit (int) throw ();' \
3090    'extern "C" void exit (int);' \
3091    'void exit (int);'
3092 do
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 $ac_declaration
3100 #include <stdlib.h>
3101 int
3102 main ()
3103 {
3104 exit (42);
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111   (eval $ac_compile) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } &&
3118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   :
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 continue
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 $ac_declaration
3145 int
3146 main ()
3147 {
3148 exit (42);
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164   (eval $ac_try) 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; } &&
3168          { ac_try='test -s conftest.$ac_objext'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; }; then
3174   break
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 fi
3180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3181 done
3182 rm -f conftest*
3183 if test -n "$ac_declaration"; then
3184   echo '#ifdef __cplusplus' >>confdefs.h
3185   echo $ac_declaration      >>confdefs.h
3186   echo '#endif'             >>confdefs.h
3187 fi
3188
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 fi
3194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201 depcc="$CC"   am_compiler_list=
3202
3203 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3205 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3209   # We make a subdir and do the tests there.  Otherwise we can end up
3210   # making bogus files that we don't know about and never remove.  For
3211   # instance it was reported that on HP-UX the gcc test will end up
3212   # making a dummy file named `D' -- because `-MD' means `put the output
3213   # in D'.
3214   mkdir conftest.dir
3215   # Copy depcomp to subdir because otherwise we won't find it if we're
3216   # using a relative directory.
3217   cp "$am_depcomp" conftest.dir
3218   cd conftest.dir
3219   # We will build objects and dependencies in a subdirectory because
3220   # it helps to detect inapplicable dependency modes.  For instance
3221   # both Tru64's cc and ICC support -MD to output dependencies as a
3222   # side effect of compilation, but ICC will put the dependencies in
3223   # the current directory while Tru64 will put them in the object
3224   # directory.
3225   mkdir sub
3226
3227   am_cv_CC_dependencies_compiler_type=none
3228   if test "$am_compiler_list" = ""; then
3229      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3230   fi
3231   for depmode in $am_compiler_list; do
3232     # Setup a source with many dependencies, because some compilers
3233     # like to wrap large dependency lists on column 80 (with \), and
3234     # we should not choose a depcomp mode which is confused by this.
3235     #
3236     # We need to recreate these files for each test, as the compiler may
3237     # overwrite some of them when testing with obscure command lines.
3238     # This happens at least with the AIX C compiler.
3239     : > sub/conftest.c
3240     for i in 1 2 3 4 5 6; do
3241       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3242       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3243       # Solaris 8's {/usr,}/bin/sh.
3244       touch sub/conftst$i.h
3245     done
3246     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3247
3248     case $depmode in
3249     nosideeffect)
3250       # after this tag, mechanisms are not by side-effect, so they'll
3251       # only be used when explicitly requested
3252       if test "x$enable_dependency_tracking" = xyes; then
3253         continue
3254       else
3255         break
3256       fi
3257       ;;
3258     none) break ;;
3259     esac
3260     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3261     # mode.  It turns out that the SunPro C++ compiler does not properly
3262     # handle `-M -o', and we need to detect this.
3263     if depmode=$depmode \
3264        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3265        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3266        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3267          >/dev/null 2>conftest.err &&
3268        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3269        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3270        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3271       # icc doesn't choke on unknown options, it will just issue warnings
3272       # or remarks (even with -Werror).  So we grep stderr for any message
3273       # that says an option was ignored or not supported.
3274       # When given -MP, icc 7.0 and 7.1 complain thusly:
3275       #   icc: Command line warning: ignoring option '-M'; no argument required
3276       # The diagnosis changed in icc 8.0:
3277       #   icc: Command line remark: option '-MP' not supported
3278       if (grep 'ignoring option' conftest.err ||
3279           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3280         am_cv_CC_dependencies_compiler_type=$depmode
3281         break
3282       fi
3283     fi
3284   done
3285
3286   cd ..
3287   rm -rf conftest.dir
3288 else
3289   am_cv_CC_dependencies_compiler_type=none
3290 fi
3291
3292 fi
3293 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3294 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3296
3297
3298
3299 if
3300   test "x$enable_dependency_tracking" != xno \
3301   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3302   am__fastdepCC_TRUE=
3303   am__fastdepCC_FALSE='#'
3304 else
3305   am__fastdepCC_TRUE='#'
3306   am__fastdepCC_FALSE=
3307 fi
3308
3309
3310
3311
3312   TCPW_MSG="no"
3313
3314 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3315 if test "${with_tcp_wrappers+set}" = set; then
3316   withval="$with_tcp_wrappers"
3317
3318         if test "x$withval" != "xno" ; then
3319             saved_LIBS="$LIBS"
3320             saved_LDFLAGS="$LDFLAGS"
3321             saved_CPPFLAGS="$CPPFLAGS"
3322             if test -n "${withval}" -a "${withval}" != "yes"; then
3323                 if test -d "${withval}/lib"; then
3324                     if test -n "${need_dash_r}"; then
3325                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3326                     else
3327                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3328                     fi
3329                 else
3330                     if test -n "${need_dash_r}"; then
3331                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3332                     else
3333                         LDFLAGS="-L${withval} ${LDFLAGS}"
3334                     fi
3335                 fi
3336                 if test -d "${withval}/include"; then
3337                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3338                 else
3339                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3340                 fi
3341             fi
3342             LIBWRAP="-lwrap"
3343             LIBS="$LIBWRAP $LIBS"
3344             echo "$as_me:$LINENO: checking for libwrap" >&5
3345 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3346             cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352
3353                 #include <tcpd.h>
3354                 int deny_severity = 0, allow_severity = 0;
3355
3356 int
3357 main ()
3358 {
3359 hosts_access(0);
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 rm -f conftest.$ac_objext conftest$ac_exeext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3366   (eval $ac_link) 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } &&
3373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest$ac_exeext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385
3386                 echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388
3389
3390 cat >>confdefs.h <<\_ACEOF
3391 #define LIBWRAP 1
3392 _ACEOF
3393
3394
3395 cat >>confdefs.h <<\_ACEOF
3396 #define HAVE_LIBWRAP 1
3397 _ACEOF
3398
3399
3400 cat >>confdefs.h <<\_ACEOF
3401 #define HAVE_TCP_WRAPPER 1
3402 _ACEOF
3403
3404                 TCPW_MSG="yes"
3405
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410
3411                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3412 echo "$as_me: error: *** libwrap missing" >&2;}
3413    { (exit 1); exit 1; }; }
3414
3415
3416 fi
3417 rm -f conftest.err conftest.$ac_objext \
3418       conftest$ac_exeext conftest.$ac_ext
3419             LIBS="$saved_LIBS"
3420         fi
3421
3422
3423 fi;
3424
3425
3426
3427
3428
3429
3430           ac_config_headers="$ac_config_headers support/include/config.h"
3431
3432
3433 # Checks for programs.
3434 ac_ext=cc
3435 ac_cpp='$CXXCPP $CPPFLAGS'
3436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3441   do
3442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_CXX+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -n "$CXX"; then
3450   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457   for ac_exec_ext in '' $ac_executable_extensions; do
3458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464 done
3465
3466 fi
3467 fi
3468 CXX=$ac_cv_prog_CXX
3469 if test -n "$CXX"; then
3470   echo "$as_me:$LINENO: result: $CXX" >&5
3471 echo "${ECHO_T}$CXX" >&6
3472 else
3473   echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3475 fi
3476
3477     test -n "$CXX" && break
3478   done
3479 fi
3480 if test -z "$CXX"; then
3481   ac_ct_CXX=$CXX
3482   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3483 do
3484   # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   if test -n "$ac_ct_CXX"; then
3492   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499   for ac_exec_ext in '' $ac_executable_extensions; do
3500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501     ac_cv_prog_ac_ct_CXX="$ac_prog"
3502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506 done
3507
3508 fi
3509 fi
3510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3511 if test -n "$ac_ct_CXX"; then
3512   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3513 echo "${ECHO_T}$ac_ct_CXX" >&6
3514 else
3515   echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3517 fi
3518
3519   test -n "$ac_ct_CXX" && break
3520 done
3521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3522
3523   CXX=$ac_ct_CXX
3524 fi
3525
3526
3527 # Provide some information about the compiler.
3528 echo "$as_me:$LINENO:" \
3529      "checking for C++ compiler version" >&5
3530 ac_compiler=`set X $ac_compile; echo $2`
3531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3532   (eval $ac_compiler --version </dev/null >&5) 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }
3536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3537   (eval $ac_compiler -v </dev/null >&5) 2>&5
3538   ac_status=$?
3539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540   (exit $ac_status); }
3541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3542   (eval $ac_compiler -V </dev/null >&5) 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }
3546
3547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562 #ifndef __GNUC__
3563        choke me
3564 #endif
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572   (eval $ac_compile) 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; } &&
3585          { ac_try='test -s conftest.$ac_objext'
3586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587   (eval $ac_try) 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; }; then
3591   ac_compiler_gnu=yes
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_compiler_gnu=no
3597 fi
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3600
3601 fi
3602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3604 GXX=`test $ac_compiler_gnu = yes && echo yes`
3605 ac_test_CXXFLAGS=${CXXFLAGS+set}
3606 ac_save_CXXFLAGS=$CXXFLAGS
3607 CXXFLAGS="-g"
3608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3610 if test "${ac_cv_prog_cxx_g+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630   (eval $ac_compile) 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } &&
3637          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639   (eval $ac_try) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; } &&
3643          { ac_try='test -s conftest.$ac_objext'
3644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645   (eval $ac_try) 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; }; then
3649   ac_cv_prog_cxx_g=yes
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 ac_cv_prog_cxx_g=no
3655 fi
3656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3657 fi
3658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3660 if test "$ac_test_CXXFLAGS" = set; then
3661   CXXFLAGS=$ac_save_CXXFLAGS
3662 elif test $ac_cv_prog_cxx_g = yes; then
3663   if test "$GXX" = yes; then
3664     CXXFLAGS="-g -O2"
3665   else
3666     CXXFLAGS="-g"
3667   fi
3668 else
3669   if test "$GXX" = yes; then
3670     CXXFLAGS="-O2"
3671   else
3672     CXXFLAGS=
3673   fi
3674 fi
3675 for ac_declaration in \
3676    '' \
3677    'extern "C" void std::exit (int) throw (); using std::exit;' \
3678    'extern "C" void std::exit (int); using std::exit;' \
3679    'extern "C" void exit (int) throw ();' \
3680    'extern "C" void exit (int);' \
3681    'void exit (int);'
3682 do
3683   cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 $ac_declaration
3690 #include <stdlib.h>
3691 int
3692 main ()
3693 {
3694 exit (42);
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701   (eval $ac_compile) 2>conftest.er1
3702   ac_status=$?
3703   grep -v '^ *+' conftest.er1 >conftest.err
3704   rm -f conftest.er1
3705   cat conftest.err >&5
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } &&
3708          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710   (eval $ac_try) 2>&5
3711   ac_status=$?
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); }; } &&
3714          { ac_try='test -s conftest.$ac_objext'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; }; then
3720   :
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 continue
3726 fi
3727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 $ac_declaration
3735 int
3736 main ()
3737 {
3738 exit (42);
3739   ;
3740   return 0;
3741 }
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745   (eval $ac_compile) 2>conftest.er1
3746   ac_status=$?
3747   grep -v '^ *+' conftest.er1 >conftest.err
3748   rm -f conftest.er1
3749   cat conftest.err >&5
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); } &&
3752          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754   (eval $ac_try) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; } &&
3758          { ac_try='test -s conftest.$ac_objext'
3759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760   (eval $ac_try) 2>&5
3761   ac_status=$?
3762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763   (exit $ac_status); }; }; then
3764   break
3765 else
3766   echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 fi
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771 done
3772 rm -f conftest*
3773 if test -n "$ac_declaration"; then
3774   echo '#ifdef __cplusplus' >>confdefs.h
3775   echo $ac_declaration      >>confdefs.h
3776   echo '#endif'             >>confdefs.h
3777 fi
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785 depcc="$CXX"  am_compiler_list=
3786
3787 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3788 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3789 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793   # We make a subdir and do the tests there.  Otherwise we can end up
3794   # making bogus files that we don't know about and never remove.  For
3795   # instance it was reported that on HP-UX the gcc test will end up
3796   # making a dummy file named `D' -- because `-MD' means `put the output
3797   # in D'.
3798   mkdir conftest.dir
3799   # Copy depcomp to subdir because otherwise we won't find it if we're
3800   # using a relative directory.
3801   cp "$am_depcomp" conftest.dir
3802   cd conftest.dir
3803   # We will build objects and dependencies in a subdirectory because
3804   # it helps to detect inapplicable dependency modes.  For instance
3805   # both Tru64's cc and ICC support -MD to output dependencies as a
3806   # side effect of compilation, but ICC will put the dependencies in
3807   # the current directory while Tru64 will put them in the object
3808   # directory.
3809   mkdir sub
3810
3811   am_cv_CXX_dependencies_compiler_type=none
3812   if test "$am_compiler_list" = ""; then
3813      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814   fi
3815   for depmode in $am_compiler_list; do
3816     # Setup a source with many dependencies, because some compilers
3817     # like to wrap large dependency lists on column 80 (with \), and
3818     # we should not choose a depcomp mode which is confused by this.
3819     #
3820     # We need to recreate these files for each test, as the compiler may
3821     # overwrite some of them when testing with obscure command lines.
3822     # This happens at least with the AIX C compiler.
3823     : > sub/conftest.c
3824     for i in 1 2 3 4 5 6; do
3825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827       # Solaris 8's {/usr,}/bin/sh.
3828       touch sub/conftst$i.h
3829     done
3830     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832     case $depmode in
3833     nosideeffect)
3834       # after this tag, mechanisms are not by side-effect, so they'll
3835       # only be used when explicitly requested
3836       if test "x$enable_dependency_tracking" = xyes; then
3837         continue
3838       else
3839         break
3840       fi
3841       ;;
3842     none) break ;;
3843     esac
3844     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845     # mode.  It turns out that the SunPro C++ compiler does not properly
3846     # handle `-M -o', and we need to detect this.
3847     if depmode=$depmode \
3848        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3849        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3851          >/dev/null 2>conftest.err &&
3852        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3854        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855       # icc doesn't choke on unknown options, it will just issue warnings
3856       # or remarks (even with -Werror).  So we grep stderr for any message
3857       # that says an option was ignored or not supported.
3858       # When given -MP, icc 7.0 and 7.1 complain thusly:
3859       #   icc: Command line warning: ignoring option '-M'; no argument required
3860       # The diagnosis changed in icc 8.0:
3861       #   icc: Command line remark: option '-MP' not supported
3862       if (grep 'ignoring option' conftest.err ||
3863           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864         am_cv_CXX_dependencies_compiler_type=$depmode
3865         break
3866       fi
3867     fi
3868   done
3869
3870   cd ..
3871   rm -rf conftest.dir
3872 else
3873   am_cv_CXX_dependencies_compiler_type=none
3874 fi
3875
3876 fi
3877 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3878 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3879 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3880
3881
3882
3883 if
3884   test "x$enable_dependency_tracking" != xno \
3885   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3886   am__fastdepCXX_TRUE=
3887   am__fastdepCXX_FALSE='#'
3888 else
3889   am__fastdepCXX_TRUE='#'
3890   am__fastdepCXX_FALSE=
3891 fi
3892
3893
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   if test -n "$CC"; then
3908   ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924 fi
3925 fi
3926 CC=$ac_cv_prog_CC
3927 if test -n "$CC"; then
3928   echo "$as_me:$LINENO: result: $CC" >&5
3929 echo "${ECHO_T}$CC" >&6
3930 else
3931   echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 fi
3934
3935 fi
3936 if test -z "$ac_cv_prog_CC"; then
3937   ac_ct_CC=$CC
3938   # Extract the first word of "gcc", so it can be a program name with args.
3939 set dummy gcc; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   if test -n "$ac_ct_CC"; then
3946   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_prog_ac_ct_CC="gcc"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962 fi
3963 fi
3964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3967 echo "${ECHO_T}$ac_ct_CC" >&6
3968 else
3969   echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3971 fi
3972
3973   CC=$ac_ct_CC
3974 else
3975   CC="$ac_cv_prog_CC"
3976 fi
3977
3978 if test -z "$CC"; then
3979   if test -n "$ac_tool_prefix"; then
3980   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}cc; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$CC"; then
3988   ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CC="${ac_tool_prefix}cc"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4010 else
4011   echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015 fi
4016 if test -z "$ac_cv_prog_CC"; then
4017   ac_ct_CC=$CC
4018   # Extract the first word of "cc", so it can be a program name with args.
4019 set dummy cc; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$ac_ct_CC"; then
4026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_prog_ac_ct_CC="cc"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041
4042 fi
4043 fi
4044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4045 if test -n "$ac_ct_CC"; then
4046   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4047 echo "${ECHO_T}$ac_ct_CC" >&6
4048 else
4049   echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4051 fi
4052
4053   CC=$ac_ct_CC
4054 else
4055   CC="$ac_cv_prog_CC"
4056 fi
4057
4058 fi
4059 if test -z "$CC"; then
4060   # Extract the first word of "cc", so it can be a program name with args.
4061 set dummy cc; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_prog_CC+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   if test -n "$CC"; then
4068   ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070   ac_prog_rejected=no
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_exec_ext in '' $ac_executable_extensions; do
4077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4079        ac_prog_rejected=yes
4080        continue
4081      fi
4082     ac_cv_prog_CC="cc"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089 if test $ac_prog_rejected = yes; then
4090   # We found a bogon in the path, so make sure we never use it.
4091   set dummy $ac_cv_prog_CC
4092   shift
4093   if test $# != 0; then
4094     # We chose a different compiler from the bogus one.
4095     # However, it has the same basename, so the bogon will be chosen
4096     # first if we set CC to just the basename; use the full file name.
4097     shift
4098     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4099   fi
4100 fi
4101 fi
4102 fi
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105   echo "$as_me:$LINENO: result: $CC" >&5
4106 echo "${ECHO_T}$CC" >&6
4107 else
4108   echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4110 fi
4111
4112 fi
4113 if test -z "$CC"; then
4114   if test -n "$ac_tool_prefix"; then
4115   for ac_prog in cl
4116   do
4117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_CC+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   if test -n "$CC"; then
4125   ac_cv_prog_CC="$CC" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140
4141 fi
4142 fi
4143 CC=$ac_cv_prog_CC
4144 if test -n "$CC"; then
4145   echo "$as_me:$LINENO: result: $CC" >&5
4146 echo "${ECHO_T}$CC" >&6
4147 else
4148   echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 fi
4151
4152     test -n "$CC" && break
4153   done
4154 fi
4155 if test -z "$CC"; then
4156   ac_ct_CC=$CC
4157   for ac_prog in cl
4158 do
4159   # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4164   echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166   if test -n "$ac_ct_CC"; then
4167   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174   for ac_exec_ext in '' $ac_executable_extensions; do
4175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176     ac_cv_prog_ac_ct_CC="$ac_prog"
4177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178     break 2
4179   fi
4180 done
4181 done
4182
4183 fi
4184 fi
4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186 if test -n "$ac_ct_CC"; then
4187   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4188 echo "${ECHO_T}$ac_ct_CC" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194   test -n "$ac_ct_CC" && break
4195 done
4196
4197   CC=$ac_ct_CC
4198 fi
4199
4200 fi
4201
4202
4203 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4204 See \`config.log' for more details." >&5
4205 echo "$as_me: error: no acceptable C compiler found in \$PATH
4206 See \`config.log' for more details." >&2;}
4207    { (exit 1); exit 1; }; }
4208
4209 # Provide some information about the compiler.
4210 echo "$as_me:$LINENO:" \
4211      "checking for C compiler version" >&5
4212 ac_compiler=`set X $ac_compile; echo $2`
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4214   (eval $ac_compiler --version </dev/null >&5) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }
4218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4219   (eval $ac_compiler -v </dev/null >&5) 2>&5
4220   ac_status=$?
4221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222   (exit $ac_status); }
4223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4224   (eval $ac_compiler -V </dev/null >&5) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }
4228
4229 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4230 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4231 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244 #ifndef __GNUC__
4245        choke me
4246 #endif
4247
4248   ;
4249   return 0;
4250 }
4251 _ACEOF
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254   (eval $ac_compile) 2>conftest.er1
4255   ac_status=$?
4256   grep -v '^ *+' conftest.er1 >conftest.err
4257   rm -f conftest.er1
4258   cat conftest.err >&5
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); } &&
4261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263   (eval $ac_try) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; } &&
4267          { ac_try='test -s conftest.$ac_objext'
4268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269   (eval $ac_try) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; }; then
4273   ac_compiler_gnu=yes
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278 ac_compiler_gnu=no
4279 fi
4280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4282
4283 fi
4284 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4285 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4286 GCC=`test $ac_compiler_gnu = yes && echo yes`
4287 ac_test_CFLAGS=${CFLAGS+set}
4288 ac_save_CFLAGS=$CFLAGS
4289 CFLAGS="-g"
4290 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4291 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4292 if test "${ac_cv_prog_cc_g+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h.  */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h.  */
4301
4302 int
4303 main ()
4304 {
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 rm -f conftest.$ac_objext
4311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4312   (eval $ac_compile) 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; } &&
4325          { ac_try='test -s conftest.$ac_objext'
4326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327   (eval $ac_try) 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; }; then
4331   ac_cv_prog_cc_g=yes
4332 else
4333   echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 ac_cv_prog_cc_g=no
4337 fi
4338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4341 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4342 if test "$ac_test_CFLAGS" = set; then
4343   CFLAGS=$ac_save_CFLAGS
4344 elif test $ac_cv_prog_cc_g = yes; then
4345   if test "$GCC" = yes; then
4346     CFLAGS="-g -O2"
4347   else
4348     CFLAGS="-g"
4349   fi
4350 else
4351   if test "$GCC" = yes; then
4352     CFLAGS="-O2"
4353   else
4354     CFLAGS=
4355   fi
4356 fi
4357 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4358 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4359 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   ac_cv_prog_cc_stdc=no
4363 ac_save_CC=$CC
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #include <stdarg.h>
4371 #include <stdio.h>
4372 #include <sys/types.h>
4373 #include <sys/stat.h>
4374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4375 struct buf { int x; };
4376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4377 static char *e (p, i)
4378      char **p;
4379      int i;
4380 {
4381   return p[i];
4382 }
4383 static char *f (char * (*g) (char **, int), char **p, ...)
4384 {
4385   char *s;
4386   va_list v;
4387   va_start (v,p);
4388   s = g (p, va_arg (v,int));
4389   va_end (v);
4390   return s;
4391 }
4392
4393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4394    function prototypes and stuff, but not '\xHH' hex character constants.
4395    These don't provoke an error unfortunately, instead are silently treated
4396    as 'x'.  The following induces an error, until -std1 is added to get
4397    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4398    array size at least.  It's necessary to write '\x00'==0 to get something
4399    that's true only with -std1.  */
4400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4401
4402 int test (int i, double x);
4403 struct s1 {int (*f) (int a);};
4404 struct s2 {int (*f) (double a);};
4405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4406 int argc;
4407 char **argv;
4408 int
4409 main ()
4410 {
4411 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 # Don't try gcc -ansi; that turns off useful extensions and
4417 # breaks some systems' header files.
4418 # AIX                   -qlanglvl=ansi
4419 # Ultrix and OSF/1      -std1
4420 # HP-UX 10.20 and later -Ae
4421 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4422 # SVR4                  -Xc -D__EXTENSIONS__
4423 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4424 do
4425   CC="$ac_save_CC $ac_arg"
4426   rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428   (eval $ac_compile) 2>conftest.er1
4429   ac_status=$?
4430   grep -v '^ *+' conftest.er1 >conftest.err
4431   rm -f conftest.er1
4432   cat conftest.err >&5
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); } &&
4435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437   (eval $ac_try) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; } &&
4441          { ac_try='test -s conftest.$ac_objext'
4442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443   (eval $ac_try) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   ac_cv_prog_cc_stdc=$ac_arg
4448 break
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 fi
4454 rm -f conftest.err conftest.$ac_objext
4455 done
4456 rm -f conftest.$ac_ext conftest.$ac_objext
4457 CC=$ac_save_CC
4458
4459 fi
4460
4461 case "x$ac_cv_prog_cc_stdc" in
4462   x|xno)
4463     echo "$as_me:$LINENO: result: none needed" >&5
4464 echo "${ECHO_T}none needed" >&6 ;;
4465   *)
4466     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4467 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4468     CC="$CC $ac_cv_prog_cc_stdc" ;;
4469 esac
4470
4471 # Some people use a C++ compiler to compile C.  Since we use `exit',
4472 # in C++ we need to declare it.  In case someone uses the same compiler
4473 # for both compiling C and C++ we need to have the C++ compiler decide
4474 # the declaration of exit, since it's the most demanding environment.
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #ifndef __cplusplus
4477   choke me
4478 #endif
4479 _ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482   (eval $ac_compile) 2>conftest.er1
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
4486   cat conftest.err >&5
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); } &&
4489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491   (eval $ac_try) 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }; } &&
4495          { ac_try='test -s conftest.$ac_objext'
4496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497   (eval $ac_try) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   for ac_declaration in \
4502    '' \
4503    'extern "C" void std::exit (int) throw (); using std::exit;' \
4504    'extern "C" void std::exit (int); using std::exit;' \
4505    'extern "C" void exit (int) throw ();' \
4506    'extern "C" void exit (int);' \
4507    'void exit (int);'
4508 do
4509   cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h.  */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h.  */
4515 $ac_declaration
4516 #include <stdlib.h>
4517 int
4518 main ()
4519 {
4520 exit (42);
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527   (eval $ac_compile) 2>conftest.er1
4528   ac_status=$?
4529   grep -v '^ *+' conftest.er1 >conftest.err
4530   rm -f conftest.er1
4531   cat conftest.err >&5
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } &&
4534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; } &&
4540          { ac_try='test -s conftest.$ac_objext'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   :
4547 else
4548   echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 continue
4552 fi
4553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554   cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h.  */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h.  */
4560 $ac_declaration
4561 int
4562 main ()
4563 {
4564 exit (42);
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571   (eval $ac_compile) 2>conftest.er1
4572   ac_status=$?
4573   grep -v '^ *+' conftest.er1 >conftest.err
4574   rm -f conftest.er1
4575   cat conftest.err >&5
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } &&
4578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; } &&
4584          { ac_try='test -s conftest.$ac_objext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   break
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 fi
4596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4597 done
4598 rm -f conftest*
4599 if test -n "$ac_declaration"; then
4600   echo '#ifdef __cplusplus' >>confdefs.h
4601   echo $ac_declaration      >>confdefs.h
4602   echo '#endif'             >>confdefs.h
4603 fi
4604
4605 else
4606   echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 fi
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_ext=c
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
4617 depcc="$CC"   am_compiler_list=
4618
4619 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4620 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4621 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4625   # We make a subdir and do the tests there.  Otherwise we can end up
4626   # making bogus files that we don't know about and never remove.  For
4627   # instance it was reported that on HP-UX the gcc test will end up
4628   # making a dummy file named `D' -- because `-MD' means `put the output
4629   # in D'.
4630   mkdir conftest.dir
4631   # Copy depcomp to subdir because otherwise we won't find it if we're
4632   # using a relative directory.
4633   cp "$am_depcomp" conftest.dir
4634   cd conftest.dir
4635   # We will build objects and dependencies in a subdirectory because
4636   # it helps to detect inapplicable dependency modes.  For instance
4637   # both Tru64's cc and ICC support -MD to output dependencies as a
4638   # side effect of compilation, but ICC will put the dependencies in
4639   # the current directory while Tru64 will put them in the object
4640   # directory.
4641   mkdir sub
4642
4643   am_cv_CC_dependencies_compiler_type=none
4644   if test "$am_compiler_list" = ""; then
4645      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4646   fi
4647   for depmode in $am_compiler_list; do
4648     # Setup a source with many dependencies, because some compilers
4649     # like to wrap large dependency lists on column 80 (with \), and
4650     # we should not choose a depcomp mode which is confused by this.
4651     #
4652     # We need to recreate these files for each test, as the compiler may
4653     # overwrite some of them when testing with obscure command lines.
4654     # This happens at least with the AIX C compiler.
4655     : > sub/conftest.c
4656     for i in 1 2 3 4 5 6; do
4657       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4658       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4659       # Solaris 8's {/usr,}/bin/sh.
4660       touch sub/conftst$i.h
4661     done
4662     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4663
4664     case $depmode in
4665     nosideeffect)
4666       # after this tag, mechanisms are not by side-effect, so they'll
4667       # only be used when explicitly requested
4668       if test "x$enable_dependency_tracking" = xyes; then
4669         continue
4670       else
4671         break
4672       fi
4673       ;;
4674     none) break ;;
4675     esac
4676     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4677     # mode.  It turns out that the SunPro C++ compiler does not properly
4678     # handle `-M -o', and we need to detect this.
4679     if depmode=$depmode \
4680        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4681        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4683          >/dev/null 2>conftest.err &&
4684        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4685        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4686        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4687       # icc doesn't choke on unknown options, it will just issue warnings
4688       # or remarks (even with -Werror).  So we grep stderr for any message
4689       # that says an option was ignored or not supported.
4690       # When given -MP, icc 7.0 and 7.1 complain thusly:
4691       #   icc: Command line warning: ignoring option '-M'; no argument required
4692       # The diagnosis changed in icc 8.0:
4693       #   icc: Command line remark: option '-MP' not supported
4694       if (grep 'ignoring option' conftest.err ||
4695           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4696         am_cv_CC_dependencies_compiler_type=$depmode
4697         break
4698       fi
4699     fi
4700   done
4701
4702   cd ..
4703   rm -rf conftest.dir
4704 else
4705   am_cv_CC_dependencies_compiler_type=none
4706 fi
4707
4708 fi
4709 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4710 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4711 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4712
4713
4714
4715 if
4716   test "x$enable_dependency_tracking" != xno \
4717   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4718   am__fastdepCC_TRUE=
4719   am__fastdepCC_FALSE='#'
4720 else
4721   am__fastdepCC_TRUE='#'
4722   am__fastdepCC_FALSE=
4723 fi
4724
4725
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4732 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4733 # On Suns, sometimes $CPP names a directory.
4734 if test -n "$CPP" && test -d "$CPP"; then
4735   CPP=
4736 fi
4737 if test -z "$CPP"; then
4738   if test "${ac_cv_prog_CPP+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741       # Double quotes because CPP needs to be expanded
4742     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4743     do
4744       ac_preproc_ok=false
4745 for ac_c_preproc_warn_flag in '' yes
4746 do
4747   # Use a header file that comes with gcc, so configuring glibc
4748   # with a fresh cross-compiler works.
4749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750   # <limits.h> exists even on freestanding compilers.
4751   # On the NeXT, cc -E runs the code through the compiler's parser,
4752   # not just through cpp. "Syntax error" is here to catch this case.
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 #ifdef __STDC__
4760 # include <limits.h>
4761 #else
4762 # include <assert.h>
4763 #endif
4764                      Syntax error
4765 _ACEOF
4766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } >/dev/null; then
4774   if test -s conftest.err; then
4775     ac_cpp_err=$ac_c_preproc_warn_flag
4776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4777   else
4778     ac_cpp_err=
4779   fi
4780 else
4781   ac_cpp_err=yes
4782 fi
4783 if test -z "$ac_cpp_err"; then
4784   :
4785 else
4786   echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789   # Broken: fails on valid input.
4790 continue
4791 fi
4792 rm -f conftest.err conftest.$ac_ext
4793
4794   # OK, works on sane cases.  Now check whether non-existent headers
4795   # can be detected and how.
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 #include <ac_nonexistent.h>
4803 _ACEOF
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4806   ac_status=$?
4807   grep -v '^ *+' conftest.er1 >conftest.err
4808   rm -f conftest.er1
4809   cat conftest.err >&5
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } >/dev/null; then
4812   if test -s conftest.err; then
4813     ac_cpp_err=$ac_c_preproc_warn_flag
4814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4815   else
4816     ac_cpp_err=
4817   fi
4818 else
4819   ac_cpp_err=yes
4820 fi
4821 if test -z "$ac_cpp_err"; then
4822   # Broken: success on invalid input.
4823 continue
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828   # Passes both tests.
4829 ac_preproc_ok=:
4830 break
4831 fi
4832 rm -f conftest.err conftest.$ac_ext
4833
4834 done
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4838   break
4839 fi
4840
4841     done
4842     ac_cv_prog_CPP=$CPP
4843
4844 fi
4845   CPP=$ac_cv_prog_CPP
4846 else
4847   ac_cv_prog_CPP=$CPP
4848 fi
4849 echo "$as_me:$LINENO: result: $CPP" >&5
4850 echo "${ECHO_T}$CPP" >&6
4851 ac_preproc_ok=false
4852 for ac_c_preproc_warn_flag in '' yes
4853 do
4854   # Use a header file that comes with gcc, so configuring glibc
4855   # with a fresh cross-compiler works.
4856   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4857   # <limits.h> exists even on freestanding compilers.
4858   # On the NeXT, cc -E runs the code through the compiler's parser,
4859   # not just through cpp. "Syntax error" is here to catch this case.
4860   cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h.  */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h.  */
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871                      Syntax error
4872 _ACEOF
4873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } >/dev/null; then
4881   if test -s conftest.err; then
4882     ac_cpp_err=$ac_c_preproc_warn_flag
4883     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4884   else
4885     ac_cpp_err=
4886   fi
4887 else
4888   ac_cpp_err=yes
4889 fi
4890 if test -z "$ac_cpp_err"; then
4891   :
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896   # Broken: fails on valid input.
4897 continue
4898 fi
4899 rm -f conftest.err conftest.$ac_ext
4900
4901   # OK, works on sane cases.  Now check whether non-existent headers
4902   # can be detected and how.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 #include <ac_nonexistent.h>
4910 _ACEOF
4911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913   ac_status=$?
4914   grep -v '^ *+' conftest.er1 >conftest.err
4915   rm -f conftest.er1
4916   cat conftest.err >&5
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); } >/dev/null; then
4919   if test -s conftest.err; then
4920     ac_cpp_err=$ac_c_preproc_warn_flag
4921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4922   else
4923     ac_cpp_err=
4924   fi
4925 else
4926   ac_cpp_err=yes
4927 fi
4928 if test -z "$ac_cpp_err"; then
4929   # Broken: success on invalid input.
4930 continue
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935   # Passes both tests.
4936 ac_preproc_ok=:
4937 break
4938 fi
4939 rm -f conftest.err conftest.$ac_ext
4940
4941 done
4942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4943 rm -f conftest.err conftest.$ac_ext
4944 if $ac_preproc_ok; then
4945   :
4946 else
4947   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4948 See \`config.log' for more details." >&5
4949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4950 See \`config.log' for more details." >&2;}
4951    { (exit 1); exit 1; }; }
4952 fi
4953
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959
4960 # Find a good install program.  We prefer a C program (faster),
4961 # so one script is as good as another.  But avoid the broken or
4962 # incompatible versions:
4963 # SysV /etc/install, /usr/sbin/install
4964 # SunOS /usr/etc/install
4965 # IRIX /sbin/install
4966 # AIX /bin/install
4967 # AmigaOS /C/install, which installs bootblocks on floppy discs
4968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4971 # OS/2's system install, which has a completely different semantic
4972 # ./install, which can be erroneously created by make from ./install.sh.
4973 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4974 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4975 if test -z "$INSTALL"; then
4976 if test "${ac_cv_path_install+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984   # Account for people who put trailing slashes in PATH elements.
4985 case $as_dir/ in
4986   ./ | .// | /cC/* | \
4987   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4988   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4989   /usr/ucb/* ) ;;
4990   *)
4991     # OSF1 and SCO ODT 3.0 have their own names for install.
4992     # Don't use installbsd from OSF since it installs stuff as root
4993     # by default.
4994     for ac_prog in ginstall scoinst install; do
4995       for ac_exec_ext in '' $ac_executable_extensions; do
4996         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4997           if test $ac_prog = install &&
4998             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4999             # AIX install.  It has an incompatible calling convention.
5000             :
5001           elif test $ac_prog = install &&
5002             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5003             # program-specific install script used by HP pwplus--don't use.
5004             :
5005           else
5006             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5007             break 3
5008           fi
5009         fi
5010       done
5011     done
5012     ;;
5013 esac
5014 done
5015
5016
5017 fi
5018   if test "${ac_cv_path_install+set}" = set; then
5019     INSTALL=$ac_cv_path_install
5020   else
5021     # As a last resort, use the slow shell script.  We don't cache a
5022     # path for INSTALL within a source directory, because that will
5023     # break other packages using the cache if that directory is
5024     # removed, or if the path is relative.
5025     INSTALL=$ac_install_sh
5026   fi
5027 fi
5028 echo "$as_me:$LINENO: result: $INSTALL" >&5
5029 echo "${ECHO_T}$INSTALL" >&6
5030
5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5032 # It thinks the first close brace ends the variable substitution.
5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5034
5035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5036
5037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5038
5039 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5040 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5041 LN_S=$as_ln_s
5042 if test "$LN_S" = "ln -s"; then
5043   echo "$as_me:$LINENO: result: yes" >&5
5044 echo "${ECHO_T}yes" >&6
5045 else
5046   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5047 echo "${ECHO_T}no, using $LN_S" >&6
5048 fi
5049
5050 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5051 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5052 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5053 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   cat >conftest.make <<\_ACEOF
5057 all:
5058         @echo 'ac_maketemp="$(MAKE)"'
5059 _ACEOF
5060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5061 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5062 if test -n "$ac_maketemp"; then
5063   eval ac_cv_prog_make_${ac_make}_set=yes
5064 else
5065   eval ac_cv_prog_make_${ac_make}_set=no
5066 fi
5067 rm -f conftest.make
5068 fi
5069 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5070   echo "$as_me:$LINENO: result: yes" >&5
5071 echo "${ECHO_T}yes" >&6
5072   SET_MAKE=
5073 else
5074   echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5076   SET_MAKE="MAKE=${MAKE-make}"
5077 fi
5078
5079 # Check whether --enable-shared or --disable-shared was given.
5080 if test "${enable_shared+set}" = set; then
5081   enableval="$enable_shared"
5082   p=${PACKAGE-default}
5083     case $enableval in
5084     yes) enable_shared=yes ;;
5085     no) enable_shared=no ;;
5086     *)
5087       enable_shared=no
5088       # Look at the argument we got.  We use all the common list separators.
5089       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5090       for pkg in $enableval; do
5091         IFS="$lt_save_ifs"
5092         if test "X$pkg" = "X$p"; then
5093           enable_shared=yes
5094         fi
5095       done
5096       IFS="$lt_save_ifs"
5097       ;;
5098     esac
5099 else
5100   enable_shared=yes
5101 fi;
5102
5103 # Check whether --enable-static or --disable-static was given.
5104 if test "${enable_static+set}" = set; then
5105   enableval="$enable_static"
5106   p=${PACKAGE-default}
5107     case $enableval in
5108     yes) enable_static=yes ;;
5109     no) enable_static=no ;;
5110     *)
5111      enable_static=no
5112       # Look at the argument we got.  We use all the common list separators.
5113       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5114       for pkg in $enableval; do
5115         IFS="$lt_save_ifs"
5116         if test "X$pkg" = "X$p"; then
5117           enable_static=yes
5118         fi
5119       done
5120       IFS="$lt_save_ifs"
5121       ;;
5122     esac
5123 else
5124   enable_static=yes
5125 fi;
5126
5127 # Check whether --enable-fast-install or --disable-fast-install was given.
5128 if test "${enable_fast_install+set}" = set; then
5129   enableval="$enable_fast_install"
5130   p=${PACKAGE-default}
5131     case $enableval in
5132     yes) enable_fast_install=yes ;;
5133     no) enable_fast_install=no ;;
5134     *)
5135       enable_fast_install=no
5136       # Look at the argument we got.  We use all the common list separators.
5137       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5138       for pkg in $enableval; do
5139         IFS="$lt_save_ifs"
5140         if test "X$pkg" = "X$p"; then
5141           enable_fast_install=yes
5142         fi
5143       done
5144       IFS="$lt_save_ifs"
5145       ;;
5146     esac
5147 else
5148   enable_fast_install=yes
5149 fi;
5150
5151 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5152 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5153 if test "${lt_cv_path_SED+set}" = set; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156   # Loop through the user's path and test for sed and gsed.
5157 # Then use that list of sed's as ones to test for truncation.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161   IFS=$as_save_IFS
5162   test -z "$as_dir" && as_dir=.
5163   for lt_ac_prog in sed gsed; do
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5166         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5167       fi
5168     done
5169   done
5170 done
5171 lt_ac_max=0
5172 lt_ac_count=0
5173 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5174 # along with /bin/sed that truncates output.
5175 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5176   test ! -f $lt_ac_sed && continue
5177   cat /dev/null > conftest.in
5178   lt_ac_count=0
5179   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5180   # Check for GNU sed and select it if it is found.
5181   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5182     lt_cv_path_SED=$lt_ac_sed
5183     break
5184   fi
5185   while true; do
5186     cat conftest.in conftest.in >conftest.tmp
5187     mv conftest.tmp conftest.in
5188     cp conftest.in conftest.nl
5189     echo >>conftest.nl
5190     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5191     cmp -s conftest.out conftest.nl || break
5192     # 10000 chars as input seems more than enough
5193     test $lt_ac_count -gt 10 && break
5194     lt_ac_count=`expr $lt_ac_count + 1`
5195     if test $lt_ac_count -gt $lt_ac_max; then
5196       lt_ac_max=$lt_ac_count
5197       lt_cv_path_SED=$lt_ac_sed
5198     fi
5199   done
5200 done
5201
5202 fi
5203
5204 SED=$lt_cv_path_SED
5205 echo "$as_me:$LINENO: result: $SED" >&5
5206 echo "${ECHO_T}$SED" >&6
5207
5208 echo "$as_me:$LINENO: checking for egrep" >&5
5209 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5210 if test "${ac_cv_prog_egrep+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5214     then ac_cv_prog_egrep='grep -E'
5215     else ac_cv_prog_egrep='egrep'
5216     fi
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5219 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5220  EGREP=$ac_cv_prog_egrep
5221
5222
5223
5224 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5225 if test "${with_gnu_ld+set}" = set; then
5226   withval="$with_gnu_ld"
5227   test "$withval" = no || with_gnu_ld=yes
5228 else
5229   with_gnu_ld=no
5230 fi;
5231 ac_prog=ld
5232 if test "$GCC" = yes; then
5233   # Check if gcc -print-prog-name=ld gives a path.
5234   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5236   case $host in
5237   *-*-mingw*)
5238     # gcc leaves a trailing carriage return which upsets mingw
5239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5240   *)
5241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5242   esac
5243   case $ac_prog in
5244     # Accept absolute paths.
5245     [\\/]* | ?:[\\/]*)
5246       re_direlt='/[^/][^/]*/\.\./'
5247       # Canonicalize the pathname of ld
5248       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5249       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5250         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5251       done
5252       test -z "$LD" && LD="$ac_prog"
5253       ;;
5254   "")
5255     # If it fails, then pretend we aren't using GCC.
5256     ac_prog=ld
5257     ;;
5258   *)
5259     # If it is relative, then search for the first ld in PATH.
5260     with_gnu_ld=unknown
5261     ;;
5262   esac
5263 elif test "$with_gnu_ld" = yes; then
5264   echo "$as_me:$LINENO: checking for GNU ld" >&5
5265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5266 else
5267   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5269 fi
5270 if test "${lt_cv_path_LD+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if test -z "$LD"; then
5274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5275   for ac_dir in $PATH; do
5276     IFS="$lt_save_ifs"
5277     test -z "$ac_dir" && ac_dir=.
5278     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5279       lt_cv_path_LD="$ac_dir/$ac_prog"
5280       # Check to see if the program is GNU ld.  I'd rather use --version,
5281       # but apparently some variants of GNU ld only accept -v.
5282       # Break only if it was the GNU/non-GNU ld that we prefer.
5283       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5284       *GNU* | *'with BFD'*)
5285         test "$with_gnu_ld" != no && break
5286         ;;
5287       *)
5288         test "$with_gnu_ld" != yes && break
5289         ;;
5290       esac
5291     fi
5292   done
5293   IFS="$lt_save_ifs"
5294 else
5295   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5296 fi
5297 fi
5298
5299 LD="$lt_cv_path_LD"
5300 if test -n "$LD"; then
5301   echo "$as_me:$LINENO: result: $LD" >&5
5302 echo "${ECHO_T}$LD" >&6
5303 else
5304   echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5306 fi
5307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5309    { (exit 1); exit 1; }; }
5310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5316 case `$LD -v 2>&1 </dev/null` in
5317 *GNU* | *'with BFD'*)
5318   lt_cv_prog_gnu_ld=yes
5319   ;;
5320 *)
5321   lt_cv_prog_gnu_ld=no
5322   ;;
5323 esac
5324 fi
5325 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5327 with_gnu_ld=$lt_cv_prog_gnu_ld
5328
5329
5330 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5331 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5332 if test "${lt_cv_ld_reload_flag+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   lt_cv_ld_reload_flag='-r'
5336 fi
5337 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5338 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5339 reload_flag=$lt_cv_ld_reload_flag
5340 case $reload_flag in
5341 "" | " "*) ;;
5342 *) reload_flag=" $reload_flag" ;;
5343 esac
5344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5345 case $host_os in
5346   darwin*)
5347     if test "$GCC" = yes; then
5348       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5349     else
5350       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5351     fi
5352     ;;
5353 esac
5354
5355 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5356 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5357 if test "${lt_cv_path_NM+set}" = set; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360   if test -n "$NM"; then
5361   # Let the user override the test.
5362   lt_cv_path_NM="$NM"
5363 else
5364   lt_nm_to_check="${ac_tool_prefix}nm"
5365   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5366     lt_nm_to_check="$lt_nm_to_check nm"
5367   fi
5368   for lt_tmp_nm in $lt_nm_to_check; do
5369     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5371       IFS="$lt_save_ifs"
5372       test -z "$ac_dir" && ac_dir=.
5373       tmp_nm="$ac_dir/$lt_tmp_nm"
5374       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5375         # Check to see if the nm accepts a BSD-compat flag.
5376         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5377         #   nm: unknown option "B" ignored
5378         # Tru64's nm complains that /dev/null is an invalid object file
5379         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5380         */dev/null* | *'Invalid file or object type'*)
5381           lt_cv_path_NM="$tmp_nm -B"
5382           break
5383           ;;
5384         *)
5385           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5386           */dev/null*)
5387             lt_cv_path_NM="$tmp_nm -p"
5388             break
5389             ;;
5390           *)
5391             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5392             continue # so that we can try to find one that supports BSD flags
5393             ;;
5394           esac
5395           ;;
5396         esac
5397       fi
5398     done
5399     IFS="$lt_save_ifs"
5400   done
5401   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5402 fi
5403 fi
5404 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5405 echo "${ECHO_T}$lt_cv_path_NM" >&6
5406 NM="$lt_cv_path_NM"
5407
5408 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5409 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5410 if test "${lt_cv_deplibs_check_method+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   lt_cv_file_magic_cmd='$MAGIC_CMD'
5414 lt_cv_file_magic_test_file=
5415 lt_cv_deplibs_check_method='unknown'
5416 # Need to set the preceding variable on all platforms that support
5417 # interlibrary dependencies.
5418 # 'none' -- dependencies not supported.
5419 # `unknown' -- same as none, but documents that we really don't know.
5420 # 'pass_all' -- all dependencies passed with no checks.
5421 # 'test_compile' -- check by making test program.
5422 # 'file_magic [[regex]]' -- check by looking for files in library path
5423 # which responds to the $file_magic_cmd with a given extended regex.
5424 # If you have `file' or equivalent on your system and you're not sure
5425 # whether `pass_all' will *always* work, you probably want this one.
5426
5427 case $host_os in
5428 aix4* | aix5*)
5429   lt_cv_deplibs_check_method=pass_all
5430   ;;
5431
5432 beos*)
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 bsdi[45]*)
5437   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5438   lt_cv_file_magic_cmd='/usr/bin/file -L'
5439   lt_cv_file_magic_test_file=/shlib/libc.so
5440   ;;
5441
5442 cygwin*)
5443   # func_win32_libid is a shell function defined in ltmain.sh
5444   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5445   lt_cv_file_magic_cmd='func_win32_libid'
5446   ;;
5447
5448 mingw* | pw32*)
5449   # Base MSYS/MinGW do not provide the 'file' command needed by
5450   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5451   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5452   lt_cv_file_magic_cmd='$OBJDUMP -f'
5453   ;;
5454
5455 darwin* | rhapsody*)
5456   lt_cv_deplibs_check_method=pass_all
5457   ;;
5458
5459 freebsd* | dragonfly*)
5460   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5461     case $host_cpu in
5462     i*86 )
5463       # Not sure whether the presence of OpenBSD here was a mistake.
5464       # Let's accept both of them until this is cleared up.
5465       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5466       lt_cv_file_magic_cmd=/usr/bin/file
5467       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5468       ;;
5469     esac
5470   else
5471     lt_cv_deplibs_check_method=pass_all
5472   fi
5473   ;;
5474
5475 gnu*)
5476   lt_cv_deplibs_check_method=pass_all
5477   ;;
5478
5479 hpux10.20* | hpux11*)
5480   lt_cv_file_magic_cmd=/usr/bin/file
5481   case $host_cpu in
5482   ia64*)
5483     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5484     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5485     ;;
5486   hppa*64*)
5487     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]'
5488     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5489     ;;
5490   *)
5491     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5492     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5493     ;;
5494   esac
5495   ;;
5496
5497 interix3*)
5498   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5499   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5500   ;;
5501
5502 irix5* | irix6* | nonstopux*)
5503   case $LD in
5504   *-32|*"-32 ") libmagic=32-bit;;
5505   *-n32|*"-n32 ") libmagic=N32;;
5506   *-64|*"-64 ") libmagic=64-bit;;
5507   *) libmagic=never-match;;
5508   esac
5509   lt_cv_deplibs_check_method=pass_all
5510   ;;
5511
5512 # This must be Linux ELF.
5513 linux* | k*bsd*-gnu)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 netbsd* | netbsdelf*-gnu)
5518   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5519     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5520   else
5521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5522   fi
5523   ;;
5524
5525 newos6*)
5526   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5527   lt_cv_file_magic_cmd=/usr/bin/file
5528   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5529   ;;
5530
5531 nto-qnx*)
5532   lt_cv_deplibs_check_method=unknown
5533   ;;
5534
5535 openbsd*)
5536   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5537     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5538   else
5539     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540   fi
5541   ;;
5542
5543 osf3* | osf4* | osf5*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 solaris*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 sysv4 | sysv4.3*)
5552   case $host_vendor in
5553   motorola)
5554     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]'
5555     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5556     ;;
5557   ncr)
5558     lt_cv_deplibs_check_method=pass_all
5559     ;;
5560   sequent)
5561     lt_cv_file_magic_cmd='/bin/file'
5562     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5563     ;;
5564   sni)
5565     lt_cv_file_magic_cmd='/bin/file'
5566     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5567     lt_cv_file_magic_test_file=/lib/libc.so
5568     ;;
5569   siemens)
5570     lt_cv_deplibs_check_method=pass_all
5571     ;;
5572   pc)
5573     lt_cv_deplibs_check_method=pass_all
5574     ;;
5575   esac
5576   ;;
5577
5578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581 esac
5582
5583 fi
5584 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5585 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5586 file_magic_cmd=$lt_cv_file_magic_cmd
5587 deplibs_check_method=$lt_cv_deplibs_check_method
5588 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5589
5590
5591
5592
5593 # If no C compiler was specified, use CC.
5594 LTCC=${LTCC-"$CC"}
5595
5596 # If no C compiler flags were specified, use CFLAGS.
5597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5598
5599 # Allow CC to be a program name with arguments.
5600 compiler=$CC
5601
5602 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5603 if test "${enable_libtool_lock+set}" = set; then
5604   enableval="$enable_libtool_lock"
5605
5606 fi;
5607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5608
5609 # Some flags need to be propagated to the compiler or linker for good
5610 # libtool support.
5611 case $host in
5612 ia64-*-hpux*)
5613   # Find out which ABI we are using.
5614   echo 'int i;' > conftest.$ac_ext
5615   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616   (eval $ac_compile) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; then
5620     case `/usr/bin/file conftest.$ac_objext` in
5621     *ELF-32*)
5622       HPUX_IA64_MODE="32"
5623       ;;
5624     *ELF-64*)
5625       HPUX_IA64_MODE="64"
5626       ;;
5627     esac
5628   fi
5629   rm -rf conftest*
5630   ;;
5631 *-*-irix6*)
5632   # Find out which ABI we are using.
5633   echo '#line 5633 "configure"' > conftest.$ac_ext
5634   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635   (eval $ac_compile) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; then
5639    if test "$lt_cv_prog_gnu_ld" = yes; then
5640     case `/usr/bin/file conftest.$ac_objext` in
5641     *32-bit*)
5642       LD="${LD-ld} -melf32bsmip"
5643       ;;
5644     *N32*)
5645       LD="${LD-ld} -melf32bmipn32"
5646       ;;
5647     *64-bit*)
5648       LD="${LD-ld} -melf64bmip"
5649       ;;
5650     esac
5651    else
5652     case `/usr/bin/file conftest.$ac_objext` in
5653     *32-bit*)
5654       LD="${LD-ld} -32"
5655       ;;
5656     *N32*)
5657       LD="${LD-ld} -n32"
5658       ;;
5659     *64-bit*)
5660       LD="${LD-ld} -64"
5661       ;;
5662     esac
5663    fi
5664   fi
5665   rm -rf conftest*
5666   ;;
5667
5668 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5669   # Find out which ABI we are using.
5670   echo 'int i;' > conftest.$ac_ext
5671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; then
5676     case `/usr/bin/file conftest.o` in
5677     *32-bit*)
5678       case $host in
5679         x86_64-*linux*)
5680           LD="${LD-ld} -m elf_i386"
5681           ;;
5682         ppc64-*linux*|powerpc64-*linux*)
5683           LD="${LD-ld} -m elf32ppclinux"
5684           ;;
5685         s390x-*linux*)
5686           LD="${LD-ld} -m elf_s390"
5687           ;;
5688         sparc64-*linux*)
5689           LD="${LD-ld} -m elf32_sparc"
5690           ;;
5691       esac
5692       ;;
5693     *64-bit*)
5694       case $host in
5695         x86_64-*linux*)
5696           LD="${LD-ld} -m elf_x86_64"
5697           ;;
5698         ppc*-*linux*|powerpc*-*linux*)
5699           LD="${LD-ld} -m elf64ppc"
5700           ;;
5701         s390*-*linux*)
5702           LD="${LD-ld} -m elf64_s390"
5703           ;;
5704         sparc*-*linux*)
5705           LD="${LD-ld} -m elf64_sparc"
5706           ;;
5707       esac
5708       ;;
5709     esac
5710   fi
5711   rm -rf conftest*
5712   ;;
5713
5714 *-*-sco3.2v5*)
5715   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5716   SAVE_CFLAGS="$CFLAGS"
5717   CFLAGS="$CFLAGS -belf"
5718   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5719 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5720 if test "${lt_cv_cc_needs_belf+set}" = set; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723   ac_ext=c
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728
5729      cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735
5736 int
5737 main ()
5738 {
5739
5740   ;
5741   return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746   (eval $ac_link) 2>conftest.er1
5747   ac_status=$?
5748   grep -v '^ *+' conftest.er1 >conftest.err
5749   rm -f conftest.er1
5750   cat conftest.err >&5
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } &&
5753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; } &&
5759          { ac_try='test -s conftest$ac_exeext'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; }; then
5765   lt_cv_cc_needs_belf=yes
5766 else
5767   echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770 lt_cv_cc_needs_belf=no
5771 fi
5772 rm -f conftest.err conftest.$ac_objext \
5773       conftest$ac_exeext conftest.$ac_ext
5774      ac_ext=c
5775 ac_cpp='$CPP $CPPFLAGS'
5776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5779
5780 fi
5781 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5782 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5783   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5784     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5785     CFLAGS="$SAVE_CFLAGS"
5786   fi
5787   ;;
5788 sparc*-*solaris*)
5789   # Find out which ABI we are using.
5790   echo 'int i;' > conftest.$ac_ext
5791   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792   (eval $ac_compile) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; then
5796     case `/usr/bin/file conftest.o` in
5797     *64-bit*)
5798       case $lt_cv_prog_gnu_ld in
5799       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5800       *)    LD="${LD-ld} -64" ;;
5801       esac
5802       ;;
5803     esac
5804   fi
5805   rm -rf conftest*
5806   ;;
5807
5808
5809 esac
5810
5811 need_locks="$enable_libtool_lock"
5812
5813
5814
5815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5817 if test "${ac_cv_header_stdc+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826 #include <stdlib.h>
5827 #include <stdarg.h>
5828 #include <string.h>
5829 #include <float.h>
5830
5831 int
5832 main ()
5833 {
5834
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841   (eval $ac_compile) 2>conftest.er1
5842   ac_status=$?
5843   grep -v '^ *+' conftest.er1 >conftest.err
5844   rm -f conftest.er1
5845   cat conftest.err >&5
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); } &&
5848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850   (eval $ac_try) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); }; } &&
5854          { ac_try='test -s conftest.$ac_objext'
5855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856   (eval $ac_try) 2>&5
5857   ac_status=$?
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); }; }; then
5860   ac_cv_header_stdc=yes
5861 else
5862   echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_cv_header_stdc=no
5866 fi
5867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5868
5869 if test $ac_cv_header_stdc = yes; then
5870   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5871   cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h.  */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h.  */
5877 #include <string.h>
5878
5879 _ACEOF
5880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5881   $EGREP "memchr" >/dev/null 2>&1; then
5882   :
5883 else
5884   ac_cv_header_stdc=no
5885 fi
5886 rm -f conftest*
5887
5888 fi
5889
5890 if test $ac_cv_header_stdc = yes; then
5891   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5892   cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h.  */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h.  */
5898 #include <stdlib.h>
5899
5900 _ACEOF
5901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5902   $EGREP "free" >/dev/null 2>&1; then
5903   :
5904 else
5905   ac_cv_header_stdc=no
5906 fi
5907 rm -f conftest*
5908
5909 fi
5910
5911 if test $ac_cv_header_stdc = yes; then
5912   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5913   if test "$cross_compiling" = yes; then
5914   :
5915 else
5916   cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h.  */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h.  */
5922 #include <ctype.h>
5923 #if ((' ' & 0x0FF) == 0x020)
5924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5926 #else
5927 # define ISLOWER(c) \
5928                    (('a' <= (c) && (c) <= 'i') \
5929                      || ('j' <= (c) && (c) <= 'r') \
5930                      || ('s' <= (c) && (c) <= 'z'))
5931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5932 #endif
5933
5934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5935 int
5936 main ()
5937 {
5938   int i;
5939   for (i = 0; i < 256; i++)
5940     if (XOR (islower (i), ISLOWER (i))
5941         || toupper (i) != TOUPPER (i))
5942       exit(2);
5943   exit (0);
5944 }
5945 _ACEOF
5946 rm -f conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948   (eval $ac_link) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953   (eval $ac_try) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); }; }; then
5957   :
5958 else
5959   echo "$as_me: program exited with status $ac_status" >&5
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ( exit $ac_status )
5964 ac_cv_header_stdc=no
5965 fi
5966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5967 fi
5968 fi
5969 fi
5970 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5971 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5972 if test $ac_cv_header_stdc = yes; then
5973
5974 cat >>confdefs.h <<\_ACEOF
5975 #define STDC_HEADERS 1
5976 _ACEOF
5977
5978 fi
5979
5980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5991                   inttypes.h stdint.h unistd.h
5992 do
5993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5994 echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 $ac_includes_default
6006
6007 #include <$ac_header>
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6011   (eval $ac_compile) 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); }; } &&
6024          { ac_try='test -s conftest.$ac_objext'
6025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026   (eval $ac_try) 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }; }; then
6030   eval "$as_ac_Header=yes"
6031 else
6032   echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6034
6035 eval "$as_ac_Header=no"
6036 fi
6037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6042   cat >>confdefs.h <<_ACEOF
6043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6044 _ACEOF
6045
6046 fi
6047
6048 done
6049
6050
6051
6052 for ac_header in dlfcn.h
6053 do
6054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056   echo "$as_me:$LINENO: checking for $ac_header" >&5
6057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 fi
6061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6063 else
6064   # Is the header compilable?
6065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h.  */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h.  */
6073 $ac_includes_default
6074 #include <$ac_header>
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; } &&
6091          { ac_try='test -s conftest.$ac_objext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_header_compiler=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_header_compiler=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6106 echo "${ECHO_T}$ac_header_compiler" >&6
6107
6108 # Is the header present?
6109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 #include <$ac_header>
6118 _ACEOF
6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121   ac_status=$?
6122   grep -v '^ *+' conftest.er1 >conftest.err
6123   rm -f conftest.er1
6124   cat conftest.err >&5
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } >/dev/null; then
6127   if test -s conftest.err; then
6128     ac_cpp_err=$ac_c_preproc_warn_flag
6129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6130   else
6131     ac_cpp_err=
6132   fi
6133 else
6134   ac_cpp_err=yes
6135 fi
6136 if test -z "$ac_cpp_err"; then
6137   ac_header_preproc=yes
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142   ac_header_preproc=no
6143 fi
6144 rm -f conftest.err conftest.$ac_ext
6145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6146 echo "${ECHO_T}$ac_header_preproc" >&6
6147
6148 # So?  What about this header?
6149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6150   yes:no: )
6151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6155     ac_header_preproc=yes
6156     ;;
6157   no:yes:* )
6158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6170     (
6171       cat <<\_ASBOX
6172 ## ------------------------------- ##
6173 ## Report this to nfs@lists.sf.net ##
6174 ## ------------------------------- ##
6175 _ASBOX
6176     ) |
6177       sed "s/^/$as_me: WARNING:     /" >&2
6178     ;;
6179 esac
6180 echo "$as_me:$LINENO: checking for $ac_header" >&5
6181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   eval "$as_ac_Header=\$ac_header_preproc"
6186 fi
6187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6189
6190 fi
6191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6192   cat >>confdefs.h <<_ACEOF
6193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6194 _ACEOF
6195
6196 fi
6197
6198 done
6199
6200
6201
6202 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6203     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6204     (test "X$CXX" != "Xg++"))) ; then
6205   ac_ext=cc
6206 ac_cpp='$CXXCPP $CPPFLAGS'
6207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6210 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6211 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6212 if test -z "$CXXCPP"; then
6213   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216       # Double quotes because CXXCPP needs to be expanded
6217     for CXXCPP in "$CXX -E" "/lib/cpp"
6218     do
6219       ac_preproc_ok=false
6220 for ac_cxx_preproc_warn_flag in '' yes
6221 do
6222   # Use a header file that comes with gcc, so configuring glibc
6223   # with a fresh cross-compiler works.
6224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225   # <limits.h> exists even on freestanding compilers.
6226   # On the NeXT, cc -E runs the code through the compiler's parser,
6227   # not just through cpp. "Syntax error" is here to catch this case.
6228   cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #ifdef __STDC__
6235 # include <limits.h>
6236 #else
6237 # include <assert.h>
6238 #endif
6239                      Syntax error
6240 _ACEOF
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } >/dev/null; then
6249   if test -s conftest.err; then
6250     ac_cpp_err=$ac_cxx_preproc_warn_flag
6251     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6252   else
6253     ac_cpp_err=
6254   fi
6255 else
6256   ac_cpp_err=yes
6257 fi
6258 if test -z "$ac_cpp_err"; then
6259   :
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264   # Broken: fails on valid input.
6265 continue
6266 fi
6267 rm -f conftest.err conftest.$ac_ext
6268
6269   # OK, works on sane cases.  Now check whether non-existent headers
6270   # can be detected and how.
6271   cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h.  */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h.  */
6277 #include <ac_nonexistent.h>
6278 _ACEOF
6279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } >/dev/null; then
6287   if test -s conftest.err; then
6288     ac_cpp_err=$ac_cxx_preproc_warn_flag
6289     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6290   else
6291     ac_cpp_err=
6292   fi
6293 else
6294   ac_cpp_err=yes
6295 fi
6296 if test -z "$ac_cpp_err"; then
6297   # Broken: success on invalid input.
6298 continue
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303   # Passes both tests.
6304 ac_preproc_ok=:
6305 break
6306 fi
6307 rm -f conftest.err conftest.$ac_ext
6308
6309 done
6310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6311 rm -f conftest.err conftest.$ac_ext
6312 if $ac_preproc_ok; then
6313   break
6314 fi
6315
6316     done
6317     ac_cv_prog_CXXCPP=$CXXCPP
6318
6319 fi
6320   CXXCPP=$ac_cv_prog_CXXCPP
6321 else
6322   ac_cv_prog_CXXCPP=$CXXCPP
6323 fi
6324 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6325 echo "${ECHO_T}$CXXCPP" >&6
6326 ac_preproc_ok=false
6327 for ac_cxx_preproc_warn_flag in '' yes
6328 do
6329   # Use a header file that comes with gcc, so configuring glibc
6330   # with a fresh cross-compiler works.
6331   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332   # <limits.h> exists even on freestanding compilers.
6333   # On the NeXT, cc -E runs the code through the compiler's parser,
6334   # not just through cpp. "Syntax error" is here to catch this case.
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 #ifdef __STDC__
6342 # include <limits.h>
6343 #else
6344 # include <assert.h>
6345 #endif
6346                      Syntax error
6347 _ACEOF
6348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } >/dev/null; then
6356   if test -s conftest.err; then
6357     ac_cpp_err=$ac_cxx_preproc_warn_flag
6358     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6359   else
6360     ac_cpp_err=
6361   fi
6362 else
6363   ac_cpp_err=yes
6364 fi
6365 if test -z "$ac_cpp_err"; then
6366   :
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371   # Broken: fails on valid input.
6372 continue
6373 fi
6374 rm -f conftest.err conftest.$ac_ext
6375
6376   # OK, works on sane cases.  Now check whether non-existent headers
6377   # can be detected and how.
6378   cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384 #include <ac_nonexistent.h>
6385 _ACEOF
6386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6388   ac_status=$?
6389   grep -v '^ *+' conftest.er1 >conftest.err
6390   rm -f conftest.er1
6391   cat conftest.err >&5
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); } >/dev/null; then
6394   if test -s conftest.err; then
6395     ac_cpp_err=$ac_cxx_preproc_warn_flag
6396     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6397   else
6398     ac_cpp_err=
6399   fi
6400 else
6401   ac_cpp_err=yes
6402 fi
6403 if test -z "$ac_cpp_err"; then
6404   # Broken: success on invalid input.
6405 continue
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410   # Passes both tests.
6411 ac_preproc_ok=:
6412 break
6413 fi
6414 rm -f conftest.err conftest.$ac_ext
6415
6416 done
6417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6418 rm -f conftest.err conftest.$ac_ext
6419 if $ac_preproc_ok; then
6420   :
6421 else
6422   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6425 See \`config.log' for more details." >&2;}
6426    { (exit 1); exit 1; }; }
6427 fi
6428
6429 ac_ext=cc
6430 ac_cpp='$CXXCPP $CPPFLAGS'
6431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6434
6435 fi
6436
6437
6438 ac_ext=f
6439 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6440 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6441 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6442 if test -n "$ac_tool_prefix"; then
6443   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6444   do
6445     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6447 echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449 if test "${ac_cv_prog_F77+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   if test -n "$F77"; then
6453   ac_cv_prog_F77="$F77" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460   for ac_exec_ext in '' $ac_executable_extensions; do
6461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467 done
6468
6469 fi
6470 fi
6471 F77=$ac_cv_prog_F77
6472 if test -n "$F77"; then
6473   echo "$as_me:$LINENO: result: $F77" >&5
6474 echo "${ECHO_T}$F77" >&6
6475 else
6476   echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6
6478 fi
6479
6480     test -n "$F77" && break
6481   done
6482 fi
6483 if test -z "$F77"; then
6484   ac_ct_F77=$F77
6485   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6486 do
6487   # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   if test -n "$ac_ct_F77"; then
6495   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502   for ac_exec_ext in '' $ac_executable_extensions; do
6503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504     ac_cv_prog_ac_ct_F77="$ac_prog"
6505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509 done
6510
6511 fi
6512 fi
6513 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6514 if test -n "$ac_ct_F77"; then
6515   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6516 echo "${ECHO_T}$ac_ct_F77" >&6
6517 else
6518   echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6
6520 fi
6521
6522   test -n "$ac_ct_F77" && break
6523 done
6524
6525   F77=$ac_ct_F77
6526 fi
6527
6528
6529 # Provide some information about the compiler.
6530 echo "$as_me:6530:" \
6531      "checking for Fortran 77 compiler version" >&5
6532 ac_compiler=`set X $ac_compile; echo $2`
6533 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6534   (eval $ac_compiler --version </dev/null >&5) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }
6538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6539   (eval $ac_compiler -v </dev/null >&5) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }
6543 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6544   (eval $ac_compiler -V </dev/null >&5) 2>&5
6545   ac_status=$?
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); }
6548 rm -f a.out
6549
6550 # If we don't use `.F' as extension, the preprocessor is not run on the
6551 # input file.  (Note that this only needs to work for GNU compilers.)
6552 ac_save_ext=$ac_ext
6553 ac_ext=F
6554 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6555 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6556 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   cat >conftest.$ac_ext <<_ACEOF
6560       program main
6561 #ifndef __GNUC__
6562        choke me
6563 #endif
6564
6565       end
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569   (eval $ac_compile) 2>conftest.er1
6570   ac_status=$?
6571   grep -v '^ *+' conftest.er1 >conftest.err
6572   rm -f conftest.er1
6573   cat conftest.err >&5
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; } &&
6582          { ac_try='test -s conftest.$ac_objext'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; }; then
6588   ac_compiler_gnu=yes
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_compiler_gnu=no
6594 fi
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6597
6598 fi
6599 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6600 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6601 ac_ext=$ac_save_ext
6602 ac_test_FFLAGS=${FFLAGS+set}
6603 ac_save_FFLAGS=$FFLAGS
6604 FFLAGS=
6605 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6606 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6607 if test "${ac_cv_prog_f77_g+set}" = set; then
6608   echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610   FFLAGS=-g
6611 cat >conftest.$ac_ext <<_ACEOF
6612       program main
6613
6614       end
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618   (eval $ac_compile) 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627   (eval $ac_try) 2>&5
6628   ac_status=$?
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; } &&
6631          { ac_try='test -s conftest.$ac_objext'
6632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633   (eval $ac_try) 2>&5
6634   ac_status=$?
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); }; }; then
6637   ac_cv_prog_f77_g=yes
6638 else
6639   echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 ac_cv_prog_f77_g=no
6643 fi
6644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6645
6646 fi
6647 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6648 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6649 if test "$ac_test_FFLAGS" = set; then
6650   FFLAGS=$ac_save_FFLAGS
6651 elif test $ac_cv_prog_f77_g = yes; then
6652   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6653     FFLAGS="-g -O2"
6654   else
6655     FFLAGS="-g"
6656   fi
6657 else
6658   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6659     FFLAGS="-O2"
6660   else
6661     FFLAGS=
6662   fi
6663 fi
6664
6665 G77=`test $ac_compiler_gnu = yes && echo yes`
6666 ac_ext=c
6667 ac_cpp='$CPP $CPPFLAGS'
6668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
6672
6673
6674 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6675
6676 # find the maximum length of command line arguments
6677 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6678 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6679 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682     i=0
6683   teststring="ABCD"
6684
6685   case $build_os in
6686   msdosdjgpp*)
6687     # On DJGPP, this test can blow up pretty badly due to problems in libc
6688     # (any single argument exceeding 2000 bytes causes a buffer overrun
6689     # during glob expansion).  Even if it were fixed, the result of this
6690     # check would be larger than it should be.
6691     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6692     ;;
6693
6694   gnu*)
6695     # Under GNU Hurd, this test is not required because there is
6696     # no limit to the length of command line arguments.
6697     # Libtool will interpret -1 as no limit whatsoever
6698     lt_cv_sys_max_cmd_len=-1;
6699     ;;
6700
6701   cygwin* | mingw*)
6702     # On Win9x/ME, this test blows up -- it succeeds, but takes
6703     # about 5 minutes as the teststring grows exponentially.
6704     # Worse, since 9x/ME are not pre-emptively multitasking,
6705     # you end up with a "frozen" computer, even though with patience
6706     # the test eventually succeeds (with a max line length of 256k).
6707     # Instead, let's just punt: use the minimum linelength reported by
6708     # all of the supported platforms: 8192 (on NT/2K/XP).
6709     lt_cv_sys_max_cmd_len=8192;
6710     ;;
6711
6712   amigaos*)
6713     # On AmigaOS with pdksh, this test takes hours, literally.
6714     # So we just punt and use a minimum line length of 8192.
6715     lt_cv_sys_max_cmd_len=8192;
6716     ;;
6717
6718   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6719     # This has been around since 386BSD, at least.  Likely further.
6720     if test -x /sbin/sysctl; then
6721       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6722     elif test -x /usr/sbin/sysctl; then
6723       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6724     else
6725       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6726     fi
6727     # And add a safety zone
6728     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6729     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6730     ;;
6731
6732   interix*)
6733     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6734     lt_cv_sys_max_cmd_len=196608
6735     ;;
6736
6737   osf*)
6738     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6739     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6740     # nice to cause kernel panics so lets avoid the loop below.
6741     # First set a reasonable default.
6742     lt_cv_sys_max_cmd_len=16384
6743     #
6744     if test -x /sbin/sysconfig; then
6745       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6746         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6747       esac
6748     fi
6749     ;;
6750   sco3.2v5*)
6751     lt_cv_sys_max_cmd_len=102400
6752     ;;
6753   sysv5* | sco5v6* | sysv4.2uw2*)
6754     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6755     if test -n "$kargmax"; then
6756       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6757     else
6758       lt_cv_sys_max_cmd_len=32768
6759     fi
6760     ;;
6761   *)
6762     # If test is not a shell built-in, we'll probably end up computing a
6763     # maximum length that is only half of the actual maximum length, but
6764     # we can't tell.
6765     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6766     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6767                = "XX$teststring") >/dev/null 2>&1 &&
6768             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6769             lt_cv_sys_max_cmd_len=$new_result &&
6770             test $i != 17 # 1/2 MB should be enough
6771     do
6772       i=`expr $i + 1`
6773       teststring=$teststring$teststring
6774     done
6775     teststring=
6776     # Add a significant safety factor because C++ compilers can tack on massive
6777     # amounts of additional arguments before passing them to the linker.
6778     # It appears as though 1/2 is a usable value.
6779     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6780     ;;
6781   esac
6782
6783 fi
6784
6785 if test -n $lt_cv_sys_max_cmd_len ; then
6786   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6787 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6788 else
6789   echo "$as_me:$LINENO: result: none" >&5
6790 echo "${ECHO_T}none" >&6
6791 fi
6792
6793
6794
6795
6796 # Check for command to grab the raw symbol name followed by C symbol from nm.
6797 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6798 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6799 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802
6803 # These are sane defaults that work on at least a few old systems.
6804 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6805
6806 # Character class describing NM global symbol codes.
6807 symcode='[BCDEGRST]'
6808
6809 # Regexp to match symbols that can be accessed directly from C.
6810 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6811
6812 # Transform an extracted symbol line into a proper C declaration
6813 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6814
6815 # Transform an extracted symbol line into symbol name and symbol address
6816 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'"
6817
6818 # Define system-specific variables.
6819 case $host_os in
6820 aix*)
6821   symcode='[BCDT]'
6822   ;;
6823 cygwin* | mingw* | pw32*)
6824   symcode='[ABCDGISTW]'
6825   ;;
6826 hpux*) # Its linker distinguishes data from code symbols
6827   if test "$host_cpu" = ia64; then
6828     symcode='[ABCDEGRST]'
6829   fi
6830   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6831   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'"
6832   ;;
6833 linux* | k*bsd*-gnu)
6834   if test "$host_cpu" = ia64; then
6835     symcode='[ABCDGIRSTW]'
6836     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6837     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'"
6838   fi
6839   ;;
6840 irix* | nonstopux*)
6841   symcode='[BCDEGRST]'
6842   ;;
6843 osf*)
6844   symcode='[BCDEGQRST]'
6845   ;;
6846 solaris*)
6847   symcode='[BDRT]'
6848   ;;
6849 sco3.2v5*)
6850   symcode='[DT]'
6851   ;;
6852 sysv4.2uw2*)
6853   symcode='[DT]'
6854   ;;
6855 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6856   symcode='[ABDT]'
6857   ;;
6858 sysv4)
6859   symcode='[DFNSTU]'
6860   ;;
6861 esac
6862
6863 # Handle CRLF in mingw tool chain
6864 opt_cr=
6865 case $build_os in
6866 mingw*)
6867   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6868   ;;
6869 esac
6870
6871 # If we're using GNU nm, then use its standard symbol codes.
6872 case `$NM -V 2>&1` in
6873 *GNU* | *'with BFD'*)
6874   symcode='[ABCDGIRSTW]' ;;
6875 esac
6876
6877 # Try without a prefix undercore, then with it.
6878 for ac_symprfx in "" "_"; do
6879
6880   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6881   symxfrm="\\1 $ac_symprfx\\2 \\2"
6882
6883   # Write the raw and C identifiers.
6884   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6885
6886   # Check to see that the pipe works correctly.
6887   pipe_works=no
6888
6889   rm -f conftest*
6890   cat > conftest.$ac_ext <<EOF
6891 #ifdef __cplusplus
6892 extern "C" {
6893 #endif
6894 char nm_test_var;
6895 void nm_test_func(){}
6896 #ifdef __cplusplus
6897 }
6898 #endif
6899 int main(){nm_test_var='a';nm_test_func();return(0);}
6900 EOF
6901
6902   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903   (eval $ac_compile) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; then
6907     # Now try to grab the symbols.
6908     nlist=conftest.nm
6909     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6910   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } && test -s "$nlist"; then
6914       # Try sorting and uniquifying the output.
6915       if sort "$nlist" | uniq > "$nlist"T; then
6916         mv -f "$nlist"T "$nlist"
6917       else
6918         rm -f "$nlist"T
6919       fi
6920
6921       # Make sure that we snagged all the symbols we need.
6922       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6923         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6924           cat <<EOF > conftest.$ac_ext
6925 #ifdef __cplusplus
6926 extern "C" {
6927 #endif
6928
6929 EOF
6930           # Now generate the symbol file.
6931           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6932
6933           cat <<EOF >> conftest.$ac_ext
6934 #if defined (__STDC__) && __STDC__
6935 # define lt_ptr_t void *
6936 #else
6937 # define lt_ptr_t char *
6938 # define const
6939 #endif
6940
6941 /* The mapping between symbol names and symbols. */
6942 const struct {
6943   const char *name;
6944   lt_ptr_t address;
6945 }
6946 lt_preloaded_symbols[] =
6947 {
6948 EOF
6949           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6950           cat <<\EOF >> conftest.$ac_ext
6951   {0, (lt_ptr_t) 0}
6952 };
6953
6954 #ifdef __cplusplus
6955 }
6956 #endif
6957 EOF
6958           # Now try linking the two files.
6959           mv conftest.$ac_objext conftstm.$ac_objext
6960           lt_save_LIBS="$LIBS"
6961           lt_save_CFLAGS="$CFLAGS"
6962           LIBS="conftstm.$ac_objext"
6963           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6964           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965   (eval $ac_link) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6969             pipe_works=yes
6970           fi
6971           LIBS="$lt_save_LIBS"
6972           CFLAGS="$lt_save_CFLAGS"
6973         else
6974           echo "cannot find nm_test_func in $nlist" >&5
6975         fi
6976       else
6977         echo "cannot find nm_test_var in $nlist" >&5
6978       fi
6979     else
6980       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6981     fi
6982   else
6983     echo "$progname: failed program was:" >&5
6984     cat conftest.$ac_ext >&5
6985   fi
6986   rm -f conftest* conftst*
6987
6988   # Do not use the global_symbol_pipe unless it works.
6989   if test "$pipe_works" = yes; then
6990     break
6991   else
6992     lt_cv_sys_global_symbol_pipe=
6993   fi
6994 done
6995
6996 fi
6997
6998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6999   lt_cv_sys_global_symbol_to_cdecl=
7000 fi
7001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7002   echo "$as_me:$LINENO: result: failed" >&5
7003 echo "${ECHO_T}failed" >&6
7004 else
7005   echo "$as_me:$LINENO: result: ok" >&5
7006 echo "${ECHO_T}ok" >&6
7007 fi
7008
7009 echo "$as_me:$LINENO: checking for objdir" >&5
7010 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7011 if test "${lt_cv_objdir+set}" = set; then
7012   echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014   rm -f .libs 2>/dev/null
7015 mkdir .libs 2>/dev/null
7016 if test -d .libs; then
7017   lt_cv_objdir=.libs
7018 else
7019   # MS-DOS does not allow filenames that begin with a dot.
7020   lt_cv_objdir=_libs
7021 fi
7022 rmdir .libs 2>/dev/null
7023 fi
7024 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7025 echo "${ECHO_T}$lt_cv_objdir" >&6
7026 objdir=$lt_cv_objdir
7027
7028
7029
7030
7031
7032 case $host_os in
7033 aix3*)
7034   # AIX sometimes has problems with the GCC collect2 program.  For some
7035   # reason, if we set the COLLECT_NAMES environment variable, the problems
7036   # vanish in a puff of smoke.
7037   if test "X${COLLECT_NAMES+set}" != Xset; then
7038     COLLECT_NAMES=
7039     export COLLECT_NAMES
7040   fi
7041   ;;
7042 esac
7043
7044 # Sed substitution that helps us do robust quoting.  It backslashifies
7045 # metacharacters that are still active within double-quoted strings.
7046 Xsed='sed -e 1s/^X//'
7047 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7048
7049 # Same as above, but do not quote variable references.
7050 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7051
7052 # Sed substitution to delay expansion of an escaped shell variable in a
7053 # double_quote_subst'ed string.
7054 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7055
7056 # Sed substitution to avoid accidental globbing in evaled expressions
7057 no_glob_subst='s/\*/\\\*/g'
7058
7059 # Constants:
7060 rm="rm -f"
7061
7062 # Global variables:
7063 default_ofile=libtool
7064 can_build_shared=yes
7065
7066 # All known linkers require a `.a' archive for static linking (except MSVC,
7067 # which needs '.lib').
7068 libext=a
7069 ltmain="$ac_aux_dir/ltmain.sh"
7070 ofile="$default_ofile"
7071 with_gnu_ld="$lt_cv_prog_gnu_ld"
7072
7073 if test -n "$ac_tool_prefix"; then
7074   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}ar; ac_word=$2
7076 echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7078 if test "${ac_cv_prog_AR+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   if test -n "$AR"; then
7082   ac_cv_prog_AR="$AR" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091     ac_cv_prog_AR="${ac_tool_prefix}ar"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097
7098 fi
7099 fi
7100 AR=$ac_cv_prog_AR
7101 if test -n "$AR"; then
7102   echo "$as_me:$LINENO: result: $AR" >&5
7103 echo "${ECHO_T}$AR" >&6
7104 else
7105   echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6
7107 fi
7108
7109 fi
7110 if test -z "$ac_cv_prog_AR"; then
7111   ac_ct_AR=$AR
7112   # Extract the first word of "ar", so it can be a program name with args.
7113 set dummy ar; ac_word=$2
7114 echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7116 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7117   echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119   if test -n "$ac_ct_AR"; then
7120   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127   for ac_exec_ext in '' $ac_executable_extensions; do
7128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129     ac_cv_prog_ac_ct_AR="ar"
7130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134 done
7135
7136   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7137 fi
7138 fi
7139 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7140 if test -n "$ac_ct_AR"; then
7141   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7142 echo "${ECHO_T}$ac_ct_AR" >&6
7143 else
7144   echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6
7146 fi
7147
7148   AR=$ac_ct_AR
7149 else
7150   AR="$ac_cv_prog_AR"
7151 fi
7152
7153 if test -n "$ac_tool_prefix"; then
7154   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7156 echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7158 if test "${ac_cv_prog_RANLIB+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   if test -n "$RANLIB"; then
7162   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169   for ac_exec_ext in '' $ac_executable_extensions; do
7170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176 done
7177
7178 fi
7179 fi
7180 RANLIB=$ac_cv_prog_RANLIB
7181 if test -n "$RANLIB"; then
7182   echo "$as_me:$LINENO: result: $RANLIB" >&5
7183 echo "${ECHO_T}$RANLIB" >&6
7184 else
7185   echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6
7187 fi
7188
7189 fi
7190 if test -z "$ac_cv_prog_RANLIB"; then
7191   ac_ct_RANLIB=$RANLIB
7192   # Extract the first word of "ranlib", so it can be a program name with args.
7193 set dummy ranlib; ac_word=$2
7194 echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7196 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7197   echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199   if test -n "$ac_ct_RANLIB"; then
7200   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209     ac_cv_prog_ac_ct_RANLIB="ranlib"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215
7216   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7217 fi
7218 fi
7219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7220 if test -n "$ac_ct_RANLIB"; then
7221   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7222 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7223 else
7224   echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6
7226 fi
7227
7228   RANLIB=$ac_ct_RANLIB
7229 else
7230   RANLIB="$ac_cv_prog_RANLIB"
7231 fi
7232
7233 if test -n "$ac_tool_prefix"; then
7234   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}strip; ac_word=$2
7236 echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7238 if test "${ac_cv_prog_STRIP+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   if test -n "$STRIP"; then
7242   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249   for ac_exec_ext in '' $ac_executable_extensions; do
7250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256 done
7257
7258 fi
7259 fi
7260 STRIP=$ac_cv_prog_STRIP
7261 if test -n "$STRIP"; then
7262   echo "$as_me:$LINENO: result: $STRIP" >&5
7263 echo "${ECHO_T}$STRIP" >&6
7264 else
7265   echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6
7267 fi
7268
7269 fi
7270 if test -z "$ac_cv_prog_STRIP"; then
7271   ac_ct_STRIP=$STRIP
7272   # Extract the first word of "strip", so it can be a program name with args.
7273 set dummy strip; ac_word=$2
7274 echo "$as_me:$LINENO: checking for $ac_word" >&5
7275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7276 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   if test -n "$ac_ct_STRIP"; then
7280   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287   for ac_exec_ext in '' $ac_executable_extensions; do
7288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_ac_ct_STRIP="strip"
7290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294 done
7295
7296   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7297 fi
7298 fi
7299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7300 if test -n "$ac_ct_STRIP"; then
7301   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7302 echo "${ECHO_T}$ac_ct_STRIP" >&6
7303 else
7304   echo "$as_me:$LINENO: result: no" >&5
7305 echo "${ECHO_T}no" >&6
7306 fi
7307
7308   STRIP=$ac_ct_STRIP
7309 else
7310   STRIP="$ac_cv_prog_STRIP"
7311 fi
7312
7313
7314 old_CC="$CC"
7315 old_CFLAGS="$CFLAGS"
7316
7317 # Set sane defaults for various variables
7318 test -z "$AR" && AR=ar
7319 test -z "$AR_FLAGS" && AR_FLAGS=cru
7320 test -z "$AS" && AS=as
7321 test -z "$CC" && CC=cc
7322 test -z "$LTCC" && LTCC=$CC
7323 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7324 test -z "$DLLTOOL" && DLLTOOL=dlltool
7325 test -z "$LD" && LD=ld
7326 test -z "$LN_S" && LN_S="ln -s"
7327 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7328 test -z "$NM" && NM=nm
7329 test -z "$SED" && SED=sed
7330 test -z "$OBJDUMP" && OBJDUMP=objdump
7331 test -z "$RANLIB" && RANLIB=:
7332 test -z "$STRIP" && STRIP=:
7333 test -z "$ac_objext" && ac_objext=o
7334
7335 # Determine commands to create old-style static archives.
7336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7337 old_postinstall_cmds='chmod 644 $oldlib'
7338 old_postuninstall_cmds=
7339
7340 if test -n "$RANLIB"; then
7341   case $host_os in
7342   openbsd*)
7343     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7344     ;;
7345   *)
7346     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7347     ;;
7348   esac
7349   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7350 fi
7351
7352 for cc_temp in $compiler""; do
7353   case $cc_temp in
7354     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7355     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7356     \-*) ;;
7357     *) break;;
7358   esac
7359 done
7360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7361
7362
7363 # Only perform the check for file, if the check method requires it
7364 case $deplibs_check_method in
7365 file_magic*)
7366   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7367     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7368 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7369 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   case $MAGIC_CMD in
7373 [\\/*] |  ?:[\\/]*)
7374   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7375   ;;
7376 *)
7377   lt_save_MAGIC_CMD="$MAGIC_CMD"
7378   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7379   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7380   for ac_dir in $ac_dummy; do
7381     IFS="$lt_save_ifs"
7382     test -z "$ac_dir" && ac_dir=.
7383     if test -f $ac_dir/${ac_tool_prefix}file; then
7384       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7385       if test -n "$file_magic_test_file"; then
7386         case $deplibs_check_method in
7387         "file_magic "*)
7388           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7389           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7390           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7391             $EGREP "$file_magic_regex" > /dev/null; then
7392             :
7393           else
7394             cat <<EOF 1>&2
7395
7396 *** Warning: the command libtool uses to detect shared libraries,
7397 *** $file_magic_cmd, produces output that libtool cannot recognize.
7398 *** The result is that libtool may fail to recognize shared libraries
7399 *** as such.  This will affect the creation of libtool libraries that
7400 *** depend on shared libraries, but programs linked with such libtool
7401 *** libraries will work regardless of this problem.  Nevertheless, you
7402 *** may want to report the problem to your system manager and/or to
7403 *** bug-libtool@gnu.org
7404
7405 EOF
7406           fi ;;
7407         esac
7408       fi
7409       break
7410     fi
7411   done
7412   IFS="$lt_save_ifs"
7413   MAGIC_CMD="$lt_save_MAGIC_CMD"
7414   ;;
7415 esac
7416 fi
7417
7418 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7419 if test -n "$MAGIC_CMD"; then
7420   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7421 echo "${ECHO_T}$MAGIC_CMD" >&6
7422 else
7423   echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6
7425 fi
7426
7427 if test -z "$lt_cv_path_MAGIC_CMD"; then
7428   if test -n "$ac_tool_prefix"; then
7429     echo "$as_me:$LINENO: checking for file" >&5
7430 echo $ECHO_N "checking for file... $ECHO_C" >&6
7431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   case $MAGIC_CMD in
7435 [\\/*] |  ?:[\\/]*)
7436   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7437   ;;
7438 *)
7439   lt_save_MAGIC_CMD="$MAGIC_CMD"
7440   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7442   for ac_dir in $ac_dummy; do
7443     IFS="$lt_save_ifs"
7444     test -z "$ac_dir" && ac_dir=.
7445     if test -f $ac_dir/file; then
7446       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7447       if test -n "$file_magic_test_file"; then
7448         case $deplibs_check_method in
7449         "file_magic "*)
7450           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7451           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7453             $EGREP "$file_magic_regex" > /dev/null; then
7454             :
7455           else
7456             cat <<EOF 1>&2
7457
7458 *** Warning: the command libtool uses to detect shared libraries,
7459 *** $file_magic_cmd, produces output that libtool cannot recognize.
7460 *** The result is that libtool may fail to recognize shared libraries
7461 *** as such.  This will affect the creation of libtool libraries that
7462 *** depend on shared libraries, but programs linked with such libtool
7463 *** libraries will work regardless of this problem.  Nevertheless, you
7464 *** may want to report the problem to your system manager and/or to
7465 *** bug-libtool@gnu.org
7466
7467 EOF
7468           fi ;;
7469         esac
7470       fi
7471       break
7472     fi
7473   done
7474   IFS="$lt_save_ifs"
7475   MAGIC_CMD="$lt_save_MAGIC_CMD"
7476   ;;
7477 esac
7478 fi
7479
7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481 if test -n "$MAGIC_CMD"; then
7482   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7483 echo "${ECHO_T}$MAGIC_CMD" >&6
7484 else
7485   echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7487 fi
7488
7489   else
7490     MAGIC_CMD=:
7491   fi
7492 fi
7493
7494   fi
7495   ;;
7496 esac
7497
7498 enable_dlopen=no
7499 enable_win32_dll=no
7500
7501 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7502 if test "${enable_libtool_lock+set}" = set; then
7503   enableval="$enable_libtool_lock"
7504
7505 fi;
7506 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7507
7508
7509 # Check whether --with-pic or --without-pic was given.
7510 if test "${with_pic+set}" = set; then
7511   withval="$with_pic"
7512   pic_mode="$withval"
7513 else
7514   pic_mode=default
7515 fi;
7516 test -z "$pic_mode" && pic_mode=default
7517
7518 # Use C for the default configuration in the libtool script
7519 tagname=
7520 lt_save_CC="$CC"
7521 ac_ext=c
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527
7528 # Source file extension for C test sources.
7529 ac_ext=c
7530
7531 # Object file extension for compiled C test sources.
7532 objext=o
7533 objext=$objext
7534
7535 # Code to be used in simple compile tests
7536 lt_simple_compile_test_code="int some_variable = 0;\n"
7537
7538 # Code to be used in simple link tests
7539 lt_simple_link_test_code='int main(){return(0);}\n'
7540
7541
7542 # If no C compiler was specified, use CC.
7543 LTCC=${LTCC-"$CC"}
7544
7545 # If no C compiler flags were specified, use CFLAGS.
7546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7547
7548 # Allow CC to be a program name with arguments.
7549 compiler=$CC
7550
7551
7552 # save warnings/boilerplate of simple test code
7553 ac_outfile=conftest.$ac_objext
7554 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7556 _lt_compiler_boilerplate=`cat conftest.err`
7557 $rm conftest*
7558
7559 ac_outfile=conftest.$ac_objext
7560 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7562 _lt_linker_boilerplate=`cat conftest.err`
7563 $rm conftest*
7564
7565
7566
7567 lt_prog_compiler_no_builtin_flag=
7568
7569 if test "$GCC" = yes; then
7570   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7571
7572
7573 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7574 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578   lt_cv_prog_compiler_rtti_exceptions=no
7579   ac_outfile=conftest.$ac_objext
7580    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7581    lt_compiler_flag="-fno-rtti -fno-exceptions"
7582    # Insert the option either (1) after the last *FLAGS variable, or
7583    # (2) before a word containing "conftest.", or (3) at the end.
7584    # Note that $ac_compile itself does not contain backslashes and begins
7585    # with a dollar sign (not a hyphen), so the echo should work correctly.
7586    # The option is referenced via a variable to avoid confusing sed.
7587    lt_compile=`echo "$ac_compile" | $SED \
7588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7590    -e 's:$: $lt_compiler_flag:'`
7591    (eval echo "\"\$as_me:7591: $lt_compile\"" >&5)
7592    (eval "$lt_compile" 2>conftest.err)
7593    ac_status=$?
7594    cat conftest.err >&5
7595    echo "$as_me:7595: \$? = $ac_status" >&5
7596    if (exit $ac_status) && test -s "$ac_outfile"; then
7597      # The compiler can only warn and ignore the option if not recognized
7598      # So say no if there are warnings other than the usual output.
7599      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7600      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7601      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7602        lt_cv_prog_compiler_rtti_exceptions=yes
7603      fi
7604    fi
7605    $rm conftest*
7606
7607 fi
7608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7609 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7610
7611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7612     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7613 else
7614     :
7615 fi
7616
7617 fi
7618
7619 lt_prog_compiler_wl=
7620 lt_prog_compiler_pic=
7621 lt_prog_compiler_static=
7622
7623 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7624 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7625
7626   if test "$GCC" = yes; then
7627     lt_prog_compiler_wl='-Wl,'
7628     lt_prog_compiler_static='-static'
7629
7630     case $host_os in
7631       aix*)
7632       # All AIX code is PIC.
7633       if test "$host_cpu" = ia64; then
7634         # AIX 5 now supports IA64 processor
7635         lt_prog_compiler_static='-Bstatic'
7636       fi
7637       ;;
7638
7639     amigaos*)
7640       # FIXME: we need at least 68020 code to build shared libraries, but
7641       # adding the `-m68020' flag to GCC prevents building anything better,
7642       # like `-m68040'.
7643       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7644       ;;
7645
7646     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7647       # PIC is the default for these OSes.
7648       ;;
7649
7650     mingw* | pw32* | os2*)
7651       # This hack is so that the source file can tell whether it is being
7652       # built for inclusion in a dll (and should export symbols for example).
7653       lt_prog_compiler_pic='-DDLL_EXPORT'
7654       ;;
7655
7656     darwin* | rhapsody*)
7657       # PIC is the default on this platform
7658       # Common symbols not allowed in MH_DYLIB files
7659       lt_prog_compiler_pic='-fno-common'
7660       ;;
7661
7662     interix3*)
7663       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7664       # Instead, we relocate shared libraries at runtime.
7665       ;;
7666
7667     msdosdjgpp*)
7668       # Just because we use GCC doesn't mean we suddenly get shared libraries
7669       # on systems that don't support them.
7670       lt_prog_compiler_can_build_shared=no
7671       enable_shared=no
7672       ;;
7673
7674     sysv4*MP*)
7675       if test -d /usr/nec; then
7676         lt_prog_compiler_pic=-Kconform_pic
7677       fi
7678       ;;
7679
7680     hpux*)
7681       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7682       # not for PA HP-UX.
7683       case $host_cpu in
7684       hppa*64*|ia64*)
7685         # +Z the default
7686         ;;
7687       *)
7688         lt_prog_compiler_pic='-fPIC'
7689         ;;
7690       esac
7691       ;;
7692
7693     *)
7694       lt_prog_compiler_pic='-fPIC'
7695       ;;
7696     esac
7697   else
7698     # PORTME Check for flag to pass linker flags through the system compiler.
7699     case $host_os in
7700     aix*)
7701       lt_prog_compiler_wl='-Wl,'
7702       if test "$host_cpu" = ia64; then
7703         # AIX 5 now supports IA64 processor
7704         lt_prog_compiler_static='-Bstatic'
7705       else
7706         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7707       fi
7708       ;;
7709       darwin*)
7710         # PIC is the default on this platform
7711         # Common symbols not allowed in MH_DYLIB files
7712        case $cc_basename in
7713          xlc*)
7714          lt_prog_compiler_pic='-qnocommon'
7715          lt_prog_compiler_wl='-Wl,'
7716          ;;
7717        esac
7718        ;;
7719
7720     mingw* | pw32* | os2*)
7721       # This hack is so that the source file can tell whether it is being
7722       # built for inclusion in a dll (and should export symbols for example).
7723       lt_prog_compiler_pic='-DDLL_EXPORT'
7724       ;;
7725
7726     hpux9* | hpux10* | hpux11*)
7727       lt_prog_compiler_wl='-Wl,'
7728       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7729       # not for PA HP-UX.
7730       case $host_cpu in
7731       hppa*64*|ia64*)
7732         # +Z the default
7733         ;;
7734       *)
7735         lt_prog_compiler_pic='+Z'
7736         ;;
7737       esac
7738       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7739       lt_prog_compiler_static='${wl}-a ${wl}archive'
7740       ;;
7741
7742     irix5* | irix6* | nonstopux*)
7743       lt_prog_compiler_wl='-Wl,'
7744       # PIC (with -KPIC) is the default.
7745       lt_prog_compiler_static='-non_shared'
7746       ;;
7747
7748     newsos6)
7749       lt_prog_compiler_pic='-KPIC'
7750       lt_prog_compiler_static='-Bstatic'
7751       ;;
7752
7753     linux* | k*bsd*-gnu)
7754       case $cc_basename in
7755       icc* | ecc*)
7756         lt_prog_compiler_wl='-Wl,'
7757         lt_prog_compiler_pic='-KPIC'
7758         lt_prog_compiler_static='-static'
7759         ;;
7760       pgcc* | pgf77* | pgf90* | pgf95*)
7761         # Portland Group compilers (*not* the Pentium gcc compiler,
7762         # which looks to be a dead project)
7763         lt_prog_compiler_wl='-Wl,'
7764         lt_prog_compiler_pic='-fpic'
7765         lt_prog_compiler_static='-Bstatic'
7766         ;;
7767       ccc*)
7768         lt_prog_compiler_wl='-Wl,'
7769         # All Alpha code is PIC.
7770         lt_prog_compiler_static='-non_shared'
7771         ;;
7772       esac
7773       ;;
7774
7775     osf3* | osf4* | osf5*)
7776       lt_prog_compiler_wl='-Wl,'
7777       # All OSF/1 code is PIC.
7778       lt_prog_compiler_static='-non_shared'
7779       ;;
7780
7781     solaris*)
7782       lt_prog_compiler_pic='-KPIC'
7783       lt_prog_compiler_static='-Bstatic'
7784       case $cc_basename in
7785       f77* | f90* | f95*)
7786         lt_prog_compiler_wl='-Qoption ld ';;
7787       *)
7788         lt_prog_compiler_wl='-Wl,';;
7789       esac
7790       ;;
7791
7792     sunos4*)
7793       lt_prog_compiler_wl='-Qoption ld '
7794       lt_prog_compiler_pic='-PIC'
7795       lt_prog_compiler_static='-Bstatic'
7796       ;;
7797
7798     sysv4 | sysv4.2uw2* | sysv4.3*)
7799       lt_prog_compiler_wl='-Wl,'
7800       lt_prog_compiler_pic='-KPIC'
7801       lt_prog_compiler_static='-Bstatic'
7802       ;;
7803
7804     sysv4*MP*)
7805       if test -d /usr/nec ;then
7806         lt_prog_compiler_pic='-Kconform_pic'
7807         lt_prog_compiler_static='-Bstatic'
7808       fi
7809       ;;
7810
7811     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7812       lt_prog_compiler_wl='-Wl,'
7813       lt_prog_compiler_pic='-KPIC'
7814       lt_prog_compiler_static='-Bstatic'
7815       ;;
7816
7817     unicos*)
7818       lt_prog_compiler_wl='-Wl,'
7819       lt_prog_compiler_can_build_shared=no
7820       ;;
7821
7822     uts4*)
7823       lt_prog_compiler_pic='-pic'
7824       lt_prog_compiler_static='-Bstatic'
7825       ;;
7826
7827     *)
7828       lt_prog_compiler_can_build_shared=no
7829       ;;
7830     esac
7831   fi
7832
7833 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7834 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7835
7836 #
7837 # Check to make sure the PIC flag actually works.
7838 #
7839 if test -n "$lt_prog_compiler_pic"; then
7840
7841 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7842 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7843 if test "${lt_prog_compiler_pic_works+set}" = set; then
7844   echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846   lt_prog_compiler_pic_works=no
7847   ac_outfile=conftest.$ac_objext
7848    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7849    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7850    # Insert the option either (1) after the last *FLAGS variable, or
7851    # (2) before a word containing "conftest.", or (3) at the end.
7852    # Note that $ac_compile itself does not contain backslashes and begins
7853    # with a dollar sign (not a hyphen), so the echo should work correctly.
7854    # The option is referenced via a variable to avoid confusing sed.
7855    lt_compile=`echo "$ac_compile" | $SED \
7856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858    -e 's:$: $lt_compiler_flag:'`
7859    (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860    (eval "$lt_compile" 2>conftest.err)
7861    ac_status=$?
7862    cat conftest.err >&5
7863    echo "$as_me:7863: \$? = $ac_status" >&5
7864    if (exit $ac_status) && test -s "$ac_outfile"; then
7865      # The compiler can only warn and ignore the option if not recognized
7866      # So say no if there are warnings other than the usual output.
7867      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7868      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870        lt_prog_compiler_pic_works=yes
7871      fi
7872    fi
7873    $rm conftest*
7874
7875 fi
7876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7877 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7878
7879 if test x"$lt_prog_compiler_pic_works" = xyes; then
7880     case $lt_prog_compiler_pic in
7881      "" | " "*) ;;
7882      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7883      esac
7884 else
7885     lt_prog_compiler_pic=
7886      lt_prog_compiler_can_build_shared=no
7887 fi
7888
7889 fi
7890 case $host_os in
7891   # For platforms which do not support PIC, -DPIC is meaningless:
7892   *djgpp*)
7893     lt_prog_compiler_pic=
7894     ;;
7895   *)
7896     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7897     ;;
7898 esac
7899
7900 #
7901 # Check to make sure the static flag actually works.
7902 #
7903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7904 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7905 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7906 if test "${lt_prog_compiler_static_works+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   lt_prog_compiler_static_works=no
7910    save_LDFLAGS="$LDFLAGS"
7911    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7912    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7913    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7914      # The linker can only warn and ignore the option if not recognized
7915      # So say no if there are warnings
7916      if test -s conftest.err; then
7917        # Append any errors to the config.log.
7918        cat conftest.err 1>&5
7919        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7920        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7921        if diff conftest.exp conftest.er2 >/dev/null; then
7922          lt_prog_compiler_static_works=yes
7923        fi
7924      else
7925        lt_prog_compiler_static_works=yes
7926      fi
7927    fi
7928    $rm conftest*
7929    LDFLAGS="$save_LDFLAGS"
7930
7931 fi
7932 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7933 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7934
7935 if test x"$lt_prog_compiler_static_works" = xyes; then
7936     :
7937 else
7938     lt_prog_compiler_static=
7939 fi
7940
7941
7942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7944 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   lt_cv_prog_compiler_c_o=no
7948    $rm -r conftest 2>/dev/null
7949    mkdir conftest
7950    cd conftest
7951    mkdir out
7952    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7953
7954    lt_compiler_flag="-o out/conftest2.$ac_objext"
7955    # Insert the option either (1) after the last *FLAGS variable, or
7956    # (2) before a word containing "conftest.", or (3) at the end.
7957    # Note that $ac_compile itself does not contain backslashes and begins
7958    # with a dollar sign (not a hyphen), so the echo should work correctly.
7959    lt_compile=`echo "$ac_compile" | $SED \
7960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962    -e 's:$: $lt_compiler_flag:'`
7963    (eval echo "\"\$as_me:7963: $lt_compile\"" >&5)
7964    (eval "$lt_compile" 2>out/conftest.err)
7965    ac_status=$?
7966    cat out/conftest.err >&5
7967    echo "$as_me:7967: \$? = $ac_status" >&5
7968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7969    then
7970      # The compiler can only warn and ignore the option if not recognized
7971      # So say no if there are warnings
7972      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7975        lt_cv_prog_compiler_c_o=yes
7976      fi
7977    fi
7978    chmod u+w . 2>&5
7979    $rm conftest*
7980    # SGI C++ compiler will create directory out/ii_files/ for
7981    # template instantiation
7982    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7983    $rm out/* && rmdir out
7984    cd ..
7985    rmdir conftest
7986    $rm conftest*
7987
7988 fi
7989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7991
7992
7993 hard_links="nottested"
7994 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7995   # do not overwrite the value of need_locks provided by the user
7996   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7998   hard_links=yes
7999   $rm conftest*
8000   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8001   touch conftest.a
8002   ln conftest.a conftest.b 2>&5 || hard_links=no
8003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8004   echo "$as_me:$LINENO: result: $hard_links" >&5
8005 echo "${ECHO_T}$hard_links" >&6
8006   if test "$hard_links" = no; then
8007     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8009     need_locks=warn
8010   fi
8011 else
8012   need_locks=no
8013 fi
8014
8015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8017
8018   runpath_var=
8019   allow_undefined_flag=
8020   enable_shared_with_static_runtimes=no
8021   archive_cmds=
8022   archive_expsym_cmds=
8023   old_archive_From_new_cmds=
8024   old_archive_from_expsyms_cmds=
8025   export_dynamic_flag_spec=
8026   whole_archive_flag_spec=
8027   thread_safe_flag_spec=
8028   hardcode_libdir_flag_spec=
8029   hardcode_libdir_flag_spec_ld=
8030   hardcode_libdir_separator=
8031   hardcode_direct=no
8032   hardcode_minus_L=no
8033   hardcode_shlibpath_var=unsupported
8034   link_all_deplibs=unknown
8035   hardcode_automatic=no
8036   module_cmds=
8037   module_expsym_cmds=
8038   always_export_symbols=no
8039   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8040   # include_expsyms should be a list of space-separated symbols to be *always*
8041   # included in the symbol list
8042   include_expsyms=
8043   # exclude_expsyms can be an extended regexp of symbols to exclude
8044   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8045   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8046   # as well as any symbol that contains `d'.
8047   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8048   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8049   # platforms (ab)use it in PIC code, but their linkers get confused if
8050   # the symbol is explicitly referenced.  Since portable code cannot
8051   # rely on this symbol name, it's probably fine to never include it in
8052   # preloaded symbol tables.
8053   extract_expsyms_cmds=
8054   # Just being paranoid about ensuring that cc_basename is set.
8055   for cc_temp in $compiler""; do
8056   case $cc_temp in
8057     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8058     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8059     \-*) ;;
8060     *) break;;
8061   esac
8062 done
8063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8064
8065   case $host_os in
8066   cygwin* | mingw* | pw32*)
8067     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8068     # When not using gcc, we currently assume that we are using
8069     # Microsoft Visual C++.
8070     if test "$GCC" != yes; then
8071       with_gnu_ld=no
8072     fi
8073     ;;
8074   interix*)
8075     # we just hope/assume this is gcc and not c89 (= MSVC++)
8076     with_gnu_ld=yes
8077     ;;
8078   openbsd*)
8079     with_gnu_ld=no
8080     ;;
8081   esac
8082
8083   ld_shlibs=yes
8084   if test "$with_gnu_ld" = yes; then
8085     # If archive_cmds runs LD, not CC, wlarc should be empty
8086     wlarc='${wl}'
8087
8088     # Set some defaults for GNU ld with shared library support. These
8089     # are reset later if shared libraries are not supported. Putting them
8090     # here allows them to be overridden if necessary.
8091     runpath_var=LD_RUN_PATH
8092     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8093     export_dynamic_flag_spec='${wl}--export-dynamic'
8094     # ancient GNU ld didn't support --whole-archive et. al.
8095     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8096         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8097       else
8098         whole_archive_flag_spec=
8099     fi
8100     supports_anon_versioning=no
8101     case `$LD -v 2>/dev/null` in
8102       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8103       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8104       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8105       *\ 2.11.*) ;; # other 2.11 versions
8106       *) supports_anon_versioning=yes ;;
8107     esac
8108
8109     # See if GNU ld supports shared libraries.
8110     case $host_os in
8111     aix3* | aix4* | aix5*)
8112       # On AIX/PPC, the GNU linker is very broken
8113       if test "$host_cpu" != ia64; then
8114         ld_shlibs=no
8115         cat <<EOF 1>&2
8116
8117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8118 *** to be unable to reliably create shared libraries on AIX.
8119 *** Therefore, libtool is disabling shared libraries support.  If you
8120 *** really care for shared libraries, you may want to modify your PATH
8121 *** so that a non-GNU linker is found, and then restart.
8122
8123 EOF
8124       fi
8125       ;;
8126
8127     amigaos*)
8128       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)'
8129       hardcode_libdir_flag_spec='-L$libdir'
8130       hardcode_minus_L=yes
8131
8132       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8133       # that the semantics of dynamic libraries on AmigaOS, at least up
8134       # to version 4, is to share data among multiple programs linked
8135       # with the same dynamic library.  Since this doesn't match the
8136       # behavior of shared libraries on other platforms, we can't use
8137       # them.
8138       ld_shlibs=no
8139       ;;
8140
8141     beos*)
8142       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8143         allow_undefined_flag=unsupported
8144         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8145         # support --undefined.  This deserves some investigation.  FIXME
8146         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8147       else
8148         ld_shlibs=no
8149       fi
8150       ;;
8151
8152     cygwin* | mingw* | pw32*)
8153       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8154       # as there is no search path for DLLs.
8155       hardcode_libdir_flag_spec='-L$libdir'
8156       allow_undefined_flag=unsupported
8157       always_export_symbols=no
8158       enable_shared_with_static_runtimes=yes
8159       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8160
8161       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8162         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8163         # If the export-symbols file already is a .def file (1st line
8164         # is EXPORTS), use it as is; otherwise, prepend...
8165         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8166           cp $export_symbols $output_objdir/$soname.def;
8167         else
8168           echo EXPORTS > $output_objdir/$soname.def;
8169           cat $export_symbols >> $output_objdir/$soname.def;
8170         fi~
8171         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8172       else
8173         ld_shlibs=no
8174       fi
8175       ;;
8176
8177     interix3*)
8178       hardcode_direct=no
8179       hardcode_shlibpath_var=no
8180       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8181       export_dynamic_flag_spec='${wl}-E'
8182       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8183       # Instead, shared libraries are loaded at an image base (0x10000000 by
8184       # default) and relocated if they conflict, which is a slow very memory
8185       # consuming and fragmenting process.  To avoid this, we pick a random,
8186       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8187       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8188       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8189       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'
8190       ;;
8191
8192     linux* | k*bsd*-gnu)
8193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8194         tmp_addflag=
8195         case $cc_basename,$host_cpu in
8196         pgcc*)                          # Portland Group C compiler
8197           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'
8198           tmp_addflag=' $pic_flag'
8199           ;;
8200         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8201           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'
8202           tmp_addflag=' $pic_flag -Mnomain' ;;
8203         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8204           tmp_addflag=' -i_dynamic' ;;
8205         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8206           tmp_addflag=' -i_dynamic -nofor_main' ;;
8207         ifc* | ifort*)                  # Intel Fortran compiler
8208           tmp_addflag=' -nofor_main' ;;
8209         esac
8210         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211
8212         if test $supports_anon_versioning = yes; then
8213           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8214   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8215   $echo "local: *; };" >> $output_objdir/$libname.ver~
8216           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8217         fi
8218         link_all_deplibs=no
8219       else
8220         ld_shlibs=no
8221       fi
8222       ;;
8223
8224     netbsd* | netbsdelf*-gnu)
8225       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8226         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8227         wlarc=
8228       else
8229         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231       fi
8232       ;;
8233
8234     solaris*)
8235       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8236         ld_shlibs=no
8237         cat <<EOF 1>&2
8238
8239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240 *** create shared libraries on Solaris systems.  Therefore, libtool
8241 *** is disabling shared libraries support.  We urge you to upgrade GNU
8242 *** binutils to release 2.9.1 or newer.  Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8245
8246 EOF
8247       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8250       else
8251         ld_shlibs=no
8252       fi
8253       ;;
8254
8255     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8256       case `$LD -v 2>&1` in
8257         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8258         ld_shlibs=no
8259         cat <<_LT_EOF 1>&2
8260
8261 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8262 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8263 *** is disabling shared libraries support.  We urge you to upgrade GNU
8264 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8265 *** your PATH or compiler configuration so that the native linker is
8266 *** used, and then restart.
8267
8268 _LT_EOF
8269         ;;
8270         *)
8271           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8272             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8273             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8274             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8275           else
8276             ld_shlibs=no
8277           fi
8278         ;;
8279       esac
8280       ;;
8281
8282     sunos4*)
8283       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8284       wlarc=
8285       hardcode_direct=yes
8286       hardcode_shlibpath_var=no
8287       ;;
8288
8289     *)
8290       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8291         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8292         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8293       else
8294         ld_shlibs=no
8295       fi
8296       ;;
8297     esac
8298
8299     if test "$ld_shlibs" = no; then
8300       runpath_var=
8301       hardcode_libdir_flag_spec=
8302       export_dynamic_flag_spec=
8303       whole_archive_flag_spec=
8304     fi
8305   else
8306     # PORTME fill in a description of your system's linker (not GNU ld)
8307     case $host_os in
8308     aix3*)
8309       allow_undefined_flag=unsupported
8310       always_export_symbols=yes
8311       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'
8312       # Note: this linker hardcodes the directories in LIBPATH if there
8313       # are no directories specified by -L.
8314       hardcode_minus_L=yes
8315       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8316         # Neither direct hardcoding nor static linking is supported with a
8317         # broken collect2.
8318         hardcode_direct=unsupported
8319       fi
8320       ;;
8321
8322     aix4* | aix5*)
8323       if test "$host_cpu" = ia64; then
8324         # On IA64, the linker does run time linking by default, so we don't
8325         # have to do anything special.
8326         aix_use_runtimelinking=no
8327         exp_sym_flag='-Bexport'
8328         no_entry_flag=""
8329       else
8330         # If we're using GNU nm, then we don't want the "-C" option.
8331         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8332         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8333           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'
8334         else
8335           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'
8336         fi
8337         aix_use_runtimelinking=no
8338
8339         # Test if we are trying to use run time linking or normal
8340         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8341         # need to do runtime linking.
8342         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8343           for ld_flag in $LDFLAGS; do
8344           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8345             aix_use_runtimelinking=yes
8346             break
8347           fi
8348           done
8349           ;;
8350         esac
8351
8352         exp_sym_flag='-bexport'
8353         no_entry_flag='-bnoentry'
8354       fi
8355
8356       # When large executables or shared objects are built, AIX ld can
8357       # have problems creating the table of contents.  If linking a library
8358       # or program results in "error TOC overflow" add -mminimal-toc to
8359       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8360       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8361
8362       archive_cmds=''
8363       hardcode_direct=yes
8364       hardcode_libdir_separator=':'
8365       link_all_deplibs=yes
8366
8367       if test "$GCC" = yes; then
8368         case $host_os in aix4.[012]|aix4.[012].*)
8369         # We only want to do this on AIX 4.2 and lower, the check
8370         # below for broken collect2 doesn't work under 4.3+
8371           collect2name=`${CC} -print-prog-name=collect2`
8372           if test -f "$collect2name" && \
8373            strings "$collect2name" | grep resolve_lib_name >/dev/null
8374           then
8375           # We have reworked collect2
8376           hardcode_direct=yes
8377           else
8378           # We have old collect2
8379           hardcode_direct=unsupported
8380           # It fails to find uninstalled libraries when the uninstalled
8381           # path is not listed in the libpath.  Setting hardcode_minus_L
8382           # to unsupported forces relinking
8383           hardcode_minus_L=yes
8384           hardcode_libdir_flag_spec='-L$libdir'
8385           hardcode_libdir_separator=
8386           fi
8387           ;;
8388         esac
8389         shared_flag='-shared'
8390         if test "$aix_use_runtimelinking" = yes; then
8391           shared_flag="$shared_flag "'${wl}-G'
8392         fi
8393       else
8394         # not using gcc
8395         if test "$host_cpu" = ia64; then
8396         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8397         # chokes on -Wl,-G. The following line is correct:
8398           shared_flag='-G'
8399         else
8400           if test "$aix_use_runtimelinking" = yes; then
8401             shared_flag='${wl}-G'
8402           else
8403             shared_flag='${wl}-bM:SRE'
8404           fi
8405         fi
8406       fi
8407
8408       # It seems that -bexpall does not export symbols beginning with
8409       # underscore (_), so it is better to generate a list of symbols to export.
8410       always_export_symbols=yes
8411       if test "$aix_use_runtimelinking" = yes; then
8412         # Warning - without using the other runtime loading flags (-brtl),
8413         # -berok will link without error, but may produce a broken library.
8414         allow_undefined_flag='-berok'
8415        # Determine the default libpath from the value encoded in an empty executable.
8416        cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422
8423 int
8424 main ()
8425 {
8426
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433   (eval $ac_link) 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; } &&
8446          { ac_try='test -s conftest$ac_exeext'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452
8453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8454 }'`
8455 # Check for a 64-bit object if we didn't find anything.
8456 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; }
8457 }'`; fi
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 fi
8463 rm -f conftest.err conftest.$ac_objext \
8464       conftest$ac_exeext conftest.$ac_ext
8465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8466
8467        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8468         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"
8469        else
8470         if test "$host_cpu" = ia64; then
8471           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8472           allow_undefined_flag="-z nodefs"
8473           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"
8474         else
8475          # Determine the default libpath from the value encoded in an empty executable.
8476          cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h.  */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h.  */
8482
8483 int
8484 main ()
8485 {
8486
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493   (eval $ac_link) 2>conftest.er1
8494   ac_status=$?
8495   grep -v '^ *+' conftest.er1 >conftest.err
8496   rm -f conftest.er1
8497   cat conftest.err >&5
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); } &&
8500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; } &&
8506          { ac_try='test -s conftest$ac_exeext'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; }; then
8512
8513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8514 }'`
8515 # Check for a 64-bit object if we didn't find anything.
8516 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; }
8517 }'`; fi
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 fi
8523 rm -f conftest.err conftest.$ac_objext \
8524       conftest$ac_exeext conftest.$ac_ext
8525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8526
8527          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8528           # Warning - without using the other run time loading flags,
8529           # -berok will link without error, but may produce a broken library.
8530           no_undefined_flag=' ${wl}-bernotok'
8531           allow_undefined_flag=' ${wl}-berok'
8532           # Exported symbols can be pulled into shared objects from archives
8533           whole_archive_flag_spec='$convenience'
8534           archive_cmds_need_lc=yes
8535           # This is similar to how AIX traditionally builds its shared libraries.
8536           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'
8537         fi
8538       fi
8539       ;;
8540
8541     amigaos*)
8542       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)'
8543       hardcode_libdir_flag_spec='-L$libdir'
8544       hardcode_minus_L=yes
8545       # see comment about different semantics on the GNU ld section
8546       ld_shlibs=no
8547       ;;
8548
8549     bsdi[45]*)
8550       export_dynamic_flag_spec=-rdynamic
8551       ;;
8552
8553     cygwin* | mingw* | pw32*)
8554       # When not using gcc, we currently assume that we are using
8555       # Microsoft Visual C++.
8556       # hardcode_libdir_flag_spec is actually meaningless, as there is
8557       # no search path for DLLs.
8558       hardcode_libdir_flag_spec=' '
8559       allow_undefined_flag=unsupported
8560       # Tell ltmain to make .lib files, not .a files.
8561       libext=lib
8562       # Tell ltmain to make .dll files, not .so files.
8563       shrext_cmds=".dll"
8564       # FIXME: Setting linknames here is a bad hack.
8565       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8566       # The linker will automatically build a .lib file if we build a DLL.
8567       old_archive_From_new_cmds='true'
8568       # FIXME: Should let the user specify the lib program.
8569       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8570       fix_srcfile_path='`cygpath -w "$srcfile"`'
8571       enable_shared_with_static_runtimes=yes
8572       ;;
8573
8574     darwin* | rhapsody*)
8575       case $host_os in
8576         rhapsody* | darwin1.[012])
8577          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8578          ;;
8579        *) # Darwin 1.3 on
8580          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8581            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8582          else
8583            case ${MACOSX_DEPLOYMENT_TARGET} in
8584              10.[012])
8585                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8586                ;;
8587              10.*)
8588                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8589                ;;
8590            esac
8591          fi
8592          ;;
8593       esac
8594       archive_cmds_need_lc=no
8595       hardcode_direct=no
8596       hardcode_automatic=yes
8597       hardcode_shlibpath_var=unsupported
8598       whole_archive_flag_spec=''
8599       link_all_deplibs=yes
8600     if test "$GCC" = yes ; then
8601         output_verbose_link_cmd='echo'
8602         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8603       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8604       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8605       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}'
8606       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}'
8607     else
8608       case $cc_basename in
8609         xlc*)
8610          output_verbose_link_cmd='echo'
8611          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8612          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8613           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8614          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}'
8615           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}'
8616           ;;
8617        *)
8618          ld_shlibs=no
8619           ;;
8620       esac
8621     fi
8622       ;;
8623
8624     dgux*)
8625       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626       hardcode_libdir_flag_spec='-L$libdir'
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     freebsd1*)
8631       ld_shlibs=no
8632       ;;
8633
8634     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8635     # support.  Future versions do this automatically, but an explicit c++rt0.o
8636     # does not break anything, and helps significantly (at the cost of a little
8637     # extra space).
8638     freebsd2.2*)
8639       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8640       hardcode_libdir_flag_spec='-R$libdir'
8641       hardcode_direct=yes
8642       hardcode_shlibpath_var=no
8643       ;;
8644
8645     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8646     freebsd2*)
8647       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8648       hardcode_direct=yes
8649       hardcode_minus_L=yes
8650       hardcode_shlibpath_var=no
8651       ;;
8652
8653     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8654     freebsd* | dragonfly*)
8655       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8656       hardcode_libdir_flag_spec='-R$libdir'
8657       hardcode_direct=yes
8658       hardcode_shlibpath_var=no
8659       ;;
8660
8661     hpux9*)
8662       if test "$GCC" = yes; then
8663         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'
8664       else
8665         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'
8666       fi
8667       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8668       hardcode_libdir_separator=:
8669       hardcode_direct=yes
8670
8671       # hardcode_minus_L: Not really in the search PATH,
8672       # but as the default location of the library.
8673       hardcode_minus_L=yes
8674       export_dynamic_flag_spec='${wl}-E'
8675       ;;
8676
8677     hpux10*)
8678       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8679         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8680       else
8681         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8682       fi
8683       if test "$with_gnu_ld" = no; then
8684         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685         hardcode_libdir_separator=:
8686
8687         hardcode_direct=yes
8688         export_dynamic_flag_spec='${wl}-E'
8689
8690         # hardcode_minus_L: Not really in the search PATH,
8691         # but as the default location of the library.
8692         hardcode_minus_L=yes
8693       fi
8694       ;;
8695
8696     hpux11*)
8697       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8698         case $host_cpu in
8699         hppa*64*)
8700           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8701           ;;
8702         ia64*)
8703           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8704           ;;
8705         *)
8706           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8707           ;;
8708         esac
8709       else
8710         case $host_cpu in
8711         hppa*64*)
8712           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713           ;;
8714         ia64*)
8715           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8716           ;;
8717         *)
8718           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8719           ;;
8720         esac
8721       fi
8722       if test "$with_gnu_ld" = no; then
8723         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8724         hardcode_libdir_separator=:
8725
8726         case $host_cpu in
8727         hppa*64*|ia64*)
8728           hardcode_libdir_flag_spec_ld='+b $libdir'
8729           hardcode_direct=no
8730           hardcode_shlibpath_var=no
8731           ;;
8732         *)
8733           hardcode_direct=yes
8734           export_dynamic_flag_spec='${wl}-E'
8735
8736           # hardcode_minus_L: Not really in the search PATH,
8737           # but as the default location of the library.
8738           hardcode_minus_L=yes
8739           ;;
8740         esac
8741       fi
8742       ;;
8743
8744     irix5* | irix6* | nonstopux*)
8745       if test "$GCC" = yes; then
8746         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'
8747       else
8748         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'
8749         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8750       fi
8751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8752       hardcode_libdir_separator=:
8753       link_all_deplibs=yes
8754       ;;
8755
8756     netbsd* | netbsdelf*-gnu)
8757       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8758         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8759       else
8760         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8761       fi
8762       hardcode_libdir_flag_spec='-R$libdir'
8763       hardcode_direct=yes
8764       hardcode_shlibpath_var=no
8765       ;;
8766
8767     newsos6)
8768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8769       hardcode_direct=yes
8770       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771       hardcode_libdir_separator=:
8772       hardcode_shlibpath_var=no
8773       ;;
8774
8775     openbsd*)
8776       hardcode_direct=yes
8777       hardcode_shlibpath_var=no
8778       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8779         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8780         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8781         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782         export_dynamic_flag_spec='${wl}-E'
8783       else
8784        case $host_os in
8785          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8786            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787            hardcode_libdir_flag_spec='-R$libdir'
8788            ;;
8789          *)
8790            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8792            ;;
8793        esac
8794       fi
8795       ;;
8796
8797     os2*)
8798       hardcode_libdir_flag_spec='-L$libdir'
8799       hardcode_minus_L=yes
8800       allow_undefined_flag=unsupported
8801       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'
8802       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8803       ;;
8804
8805     osf3*)
8806       if test "$GCC" = yes; then
8807         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8808         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'
8809       else
8810         allow_undefined_flag=' -expect_unresolved \*'
8811         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'
8812       fi
8813       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8814       hardcode_libdir_separator=:
8815       ;;
8816
8817     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8818       if test "$GCC" = yes; then
8819         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8820         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'
8821         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822       else
8823         allow_undefined_flag=' -expect_unresolved \*'
8824         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'
8825         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8826         $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'
8827
8828         # Both c and cxx compiler support -rpath directly
8829         hardcode_libdir_flag_spec='-rpath $libdir'
8830       fi
8831       hardcode_libdir_separator=:
8832       ;;
8833
8834     solaris*)
8835       no_undefined_flag=' -z text'
8836       if test "$GCC" = yes; then
8837         wlarc='${wl}'
8838         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8840           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8841       else
8842         wlarc=''
8843         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8844         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8845         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8846       fi
8847       hardcode_libdir_flag_spec='-R$libdir'
8848       hardcode_shlibpath_var=no
8849       case $host_os in
8850       solaris2.[0-5] | solaris2.[0-5].*) ;;
8851       *)
8852         # The compiler driver will combine linker options so we
8853         # cannot just pass the convience library names through
8854         # without $wl, iff we do not link with $LD.
8855         # Luckily, gcc supports the same syntax we need for Sun Studio.
8856         # Supported since Solaris 2.6 (maybe 2.5.1?)
8857         case $wlarc in
8858         '')
8859           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8860         *)
8861           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' ;;
8862         esac ;;
8863       esac
8864       link_all_deplibs=yes
8865       ;;
8866
8867     sunos4*)
8868       if test "x$host_vendor" = xsequent; then
8869         # Use $CC to link under sequent, because it throws in some extra .o
8870         # files that make .init and .fini sections work.
8871         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8872       else
8873         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8874       fi
8875       hardcode_libdir_flag_spec='-L$libdir'
8876       hardcode_direct=yes
8877       hardcode_minus_L=yes
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     sysv4)
8882       case $host_vendor in
8883         sni)
8884           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885           hardcode_direct=yes # is this really true???
8886         ;;
8887         siemens)
8888           ## LD is ld it makes a PLAMLIB
8889           ## CC just makes a GrossModule.
8890           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8891           reload_cmds='$CC -r -o $output$reload_objs'
8892           hardcode_direct=no
8893         ;;
8894         motorola)
8895           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8896           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8897         ;;
8898       esac
8899       runpath_var='LD_RUN_PATH'
8900       hardcode_shlibpath_var=no
8901       ;;
8902
8903     sysv4.3*)
8904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905       hardcode_shlibpath_var=no
8906       export_dynamic_flag_spec='-Bexport'
8907       ;;
8908
8909     sysv4*MP*)
8910       if test -d /usr/nec; then
8911         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912         hardcode_shlibpath_var=no
8913         runpath_var=LD_RUN_PATH
8914         hardcode_runpath_var=yes
8915         ld_shlibs=yes
8916       fi
8917       ;;
8918
8919     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8920       no_undefined_flag='${wl}-z,text'
8921       archive_cmds_need_lc=no
8922       hardcode_shlibpath_var=no
8923       runpath_var='LD_RUN_PATH'
8924
8925       if test "$GCC" = yes; then
8926         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8928       else
8929         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8931       fi
8932       ;;
8933
8934     sysv5* | sco3.2v5* | sco5v6*)
8935       # Note: We can NOT use -z defs as we might desire, because we do not
8936       # link with -lc, and that would cause any symbols used from libc to
8937       # always be unresolved, which means just about no library would
8938       # ever link correctly.  If we're not using GNU ld we use -z text
8939       # though, which does catch some bad symbols but isn't as heavy-handed
8940       # as -z defs.
8941       no_undefined_flag='${wl}-z,text'
8942       allow_undefined_flag='${wl}-z,nodefs'
8943       archive_cmds_need_lc=no
8944       hardcode_shlibpath_var=no
8945       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8946       hardcode_libdir_separator=':'
8947       link_all_deplibs=yes
8948       export_dynamic_flag_spec='${wl}-Bexport'
8949       runpath_var='LD_RUN_PATH'
8950
8951       if test "$GCC" = yes; then
8952         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954       else
8955         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957       fi
8958       ;;
8959
8960     uts4*)
8961       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962       hardcode_libdir_flag_spec='-L$libdir'
8963       hardcode_shlibpath_var=no
8964       ;;
8965
8966     *)
8967       ld_shlibs=no
8968       ;;
8969     esac
8970   fi
8971
8972 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8973 echo "${ECHO_T}$ld_shlibs" >&6
8974 test "$ld_shlibs" = no && can_build_shared=no
8975
8976 #
8977 # Do we need to explicitly link libc?
8978 #
8979 case "x$archive_cmds_need_lc" in
8980 x|xyes)
8981   # Assume -lc should be added
8982   archive_cmds_need_lc=yes
8983
8984   if test "$enable_shared" = yes && test "$GCC" = yes; then
8985     case $archive_cmds in
8986     *'~'*)
8987       # FIXME: we may have to deal with multi-command sequences.
8988       ;;
8989     '$CC '*)
8990       # Test whether the compiler implicitly links with -lc since on some
8991       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8992       # to ld, don't add -lc before -lgcc.
8993       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8995       $rm conftest*
8996       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8997
8998       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999   (eval $ac_compile) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } 2>conftest.err; then
9003         soname=conftest
9004         lib=conftest
9005         libobjs=conftest.$ac_objext
9006         deplibs=
9007         wl=$lt_prog_compiler_wl
9008         pic_flag=$lt_prog_compiler_pic
9009         compiler_flags=-v
9010         linker_flags=-v
9011         verstring=
9012         output_objdir=.
9013         libname=conftest
9014         lt_save_allow_undefined_flag=$allow_undefined_flag
9015         allow_undefined_flag=
9016         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }
9021         then
9022           archive_cmds_need_lc=no
9023         else
9024           archive_cmds_need_lc=yes
9025         fi
9026         allow_undefined_flag=$lt_save_allow_undefined_flag
9027       else
9028         cat conftest.err 1>&5
9029       fi
9030       $rm conftest*
9031       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9033       ;;
9034     esac
9035   fi
9036   ;;
9037 esac
9038
9039 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9041 library_names_spec=
9042 libname_spec='lib$name'
9043 soname_spec=
9044 shrext_cmds=".so"
9045 postinstall_cmds=
9046 postuninstall_cmds=
9047 finish_cmds=
9048 finish_eval=
9049 shlibpath_var=
9050 shlibpath_overrides_runpath=unknown
9051 version_type=none
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054 if test "$GCC" = yes; then
9055   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9057     # if the path contains ";" then we assume it to be the separator
9058     # otherwise default to the standard path separator (i.e. ":") - it is
9059     # assumed that no part of a normal pathname contains ";" but that should
9060     # okay in the real world where ";" in dirpaths is itself problematic.
9061     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062   else
9063     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9064   fi
9065 else
9066   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9067 fi
9068 need_lib_prefix=unknown
9069 hardcode_into_libs=no
9070
9071 # when you set need_version to no, make sure it does not cause -set_version
9072 # flags to be left without arguments
9073 need_version=unknown
9074
9075 case $host_os in
9076 aix3*)
9077   version_type=linux
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9079   shlibpath_var=LIBPATH
9080
9081   # AIX 3 has no versioning support, so we append a major version to the name.
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   ;;
9084
9085 aix4* | aix5*)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   hardcode_into_libs=yes
9090   if test "$host_cpu" = ia64; then
9091     # AIX 5 supports IA64
9092     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9093     shlibpath_var=LD_LIBRARY_PATH
9094   else
9095     # With GCC up to 2.95.x, collect2 would create an import file
9096     # for dependence libraries.  The import file would start with
9097     # the line `#! .'.  This would cause the generated library to
9098     # depend on `.', always an invalid library.  This was fixed in
9099     # development snapshots of GCC prior to 3.0.
9100     case $host_os in
9101       aix4 | aix4.[01] | aix4.[01].*)
9102       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9103            echo ' yes '
9104            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9105         :
9106       else
9107         can_build_shared=no
9108       fi
9109       ;;
9110     esac
9111     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9112     # soname into executable. Probably we can add versioning support to
9113     # collect2, so additional links can be useful in future.
9114     if test "$aix_use_runtimelinking" = yes; then
9115       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9116       # instead of lib<name>.a to let people know that these are not
9117       # typical AIX shared libraries.
9118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119     else
9120       # We preserve .a as extension for shared libraries through AIX4.2
9121       # and later when we are not doing run time linking.
9122       library_names_spec='${libname}${release}.a $libname.a'
9123       soname_spec='${libname}${release}${shared_ext}$major'
9124     fi
9125     shlibpath_var=LIBPATH
9126   fi
9127   ;;
9128
9129 amigaos*)
9130   library_names_spec='$libname.ixlibrary $libname.a'
9131   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9132   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'
9133   ;;
9134
9135 beos*)
9136   library_names_spec='${libname}${shared_ext}'
9137   dynamic_linker="$host_os ld.so"
9138   shlibpath_var=LIBRARY_PATH
9139   ;;
9140
9141 bsdi[45]*)
9142   version_type=linux
9143   need_version=no
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9149   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9150   # the default ld.so.conf also contains /usr/contrib/lib and
9151   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9152   # libtool to hard-code these into programs
9153   ;;
9154
9155 cygwin* | mingw* | pw32*)
9156   version_type=windows
9157   shrext_cmds=".dll"
9158   need_version=no
9159   need_lib_prefix=no
9160
9161   case $GCC,$host_os in
9162   yes,cygwin* | yes,mingw* | yes,pw32*)
9163     library_names_spec='$libname.dll.a'
9164     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9165     postinstall_cmds='base_file=`basename \${file}`~
9166       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9167       dldir=$destdir/`dirname \$dlpath`~
9168       test -d \$dldir || mkdir -p \$dldir~
9169       $install_prog $dir/$dlname \$dldir/$dlname~
9170       chmod a+x \$dldir/$dlname'
9171     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9172       dlpath=$dir/\$dldll~
9173        $rm \$dlpath'
9174     shlibpath_overrides_runpath=yes
9175
9176     case $host_os in
9177     cygwin*)
9178       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9179       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9181       ;;
9182     mingw*)
9183       # MinGW DLLs use traditional 'lib' prefix
9184       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9187         # It is most probably a Windows format PATH printed by
9188         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9189         # path with ; separators, and with drive letters. We can handle the
9190         # drive letters (cygwin fileutils understands them), so leave them,
9191         # especially as we might pass files found there to a mingw objdump,
9192         # which wouldn't understand a cygwinified path. Ahh.
9193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9194       else
9195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9196       fi
9197       ;;
9198     pw32*)
9199       # pw32 DLLs use 'pw' prefix rather than 'lib'
9200       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201       ;;
9202     esac
9203     ;;
9204
9205   *)
9206     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9207     ;;
9208   esac
9209   dynamic_linker='Win32 ld.exe'
9210   # FIXME: first we should search . and the directory the executable is in
9211   shlibpath_var=PATH
9212   ;;
9213
9214 darwin* | rhapsody*)
9215   dynamic_linker="$host_os dyld"
9216   version_type=darwin
9217   need_lib_prefix=no
9218   need_version=no
9219   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9220   soname_spec='${libname}${release}${major}$shared_ext'
9221   shlibpath_overrides_runpath=yes
9222   shlibpath_var=DYLD_LIBRARY_PATH
9223   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9224   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9225   if test "$GCC" = yes; then
9226     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"`
9227   else
9228     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9229   fi
9230   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9231   ;;
9232
9233 dgux*)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   shlibpath_var=LD_LIBRARY_PATH
9240   ;;
9241
9242 freebsd1*)
9243   dynamic_linker=no
9244   ;;
9245
9246 freebsd* | dragonfly*)
9247   # DragonFly does not have aout.  When/if they implement a new
9248   # versioning mechanism, adjust this.
9249   if test -x /usr/bin/objformat; then
9250     objformat=`/usr/bin/objformat`
9251   else
9252     case $host_os in
9253     freebsd[123]*) objformat=aout ;;
9254     *) objformat=elf ;;
9255     esac
9256   fi
9257   version_type=freebsd-$objformat
9258   case $version_type in
9259     freebsd-elf*)
9260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9261       need_version=no
9262       need_lib_prefix=no
9263       ;;
9264     freebsd-*)
9265       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9266       need_version=yes
9267       ;;
9268   esac
9269   shlibpath_var=LD_LIBRARY_PATH
9270   case $host_os in
9271   freebsd2*)
9272     shlibpath_overrides_runpath=yes
9273     ;;
9274   freebsd3.[01]* | freebsdelf3.[01]*)
9275     shlibpath_overrides_runpath=yes
9276     hardcode_into_libs=yes
9277     ;;
9278   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9279   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9280     shlibpath_overrides_runpath=no
9281     hardcode_into_libs=yes
9282     ;;
9283   freebsd*) # from 4.6 on
9284     shlibpath_overrides_runpath=yes
9285     hardcode_into_libs=yes
9286     ;;
9287   esac
9288   ;;
9289
9290 gnu*)
9291   version_type=linux
9292   need_lib_prefix=no
9293   need_version=no
9294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9295   soname_spec='${libname}${release}${shared_ext}$major'
9296   shlibpath_var=LD_LIBRARY_PATH
9297   hardcode_into_libs=yes
9298   ;;
9299
9300 hpux9* | hpux10* | hpux11*)
9301   # Give a soname corresponding to the major version so that dld.sl refuses to
9302   # link against other versions.
9303   version_type=sunos
9304   need_lib_prefix=no
9305   need_version=no
9306   case $host_cpu in
9307   ia64*)
9308     shrext_cmds='.so'
9309     hardcode_into_libs=yes
9310     dynamic_linker="$host_os dld.so"
9311     shlibpath_var=LD_LIBRARY_PATH
9312     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314     soname_spec='${libname}${release}${shared_ext}$major'
9315     if test "X$HPUX_IA64_MODE" = X32; then
9316       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9317     else
9318       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9319     fi
9320     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9321     ;;
9322    hppa*64*)
9323      shrext_cmds='.sl'
9324      hardcode_into_libs=yes
9325      dynamic_linker="$host_os dld.sl"
9326      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9327      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329      soname_spec='${libname}${release}${shared_ext}$major'
9330      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9331      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9332      ;;
9333    *)
9334     shrext_cmds='.sl'
9335     dynamic_linker="$host_os dld.sl"
9336     shlibpath_var=SHLIB_PATH
9337     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339     soname_spec='${libname}${release}${shared_ext}$major'
9340     ;;
9341   esac
9342   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9343   postinstall_cmds='chmod 555 $lib'
9344   ;;
9345
9346 interix3*)
9347   version_type=linux
9348   need_lib_prefix=no
9349   need_version=no
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9353   shlibpath_var=LD_LIBRARY_PATH
9354   shlibpath_overrides_runpath=no
9355   hardcode_into_libs=yes
9356   ;;
9357
9358 irix5* | irix6* | nonstopux*)
9359   case $host_os in
9360     nonstopux*) version_type=nonstopux ;;
9361     *)
9362         if test "$lt_cv_prog_gnu_ld" = yes; then
9363                 version_type=linux
9364         else
9365                 version_type=irix
9366         fi ;;
9367   esac
9368   need_lib_prefix=no
9369   need_version=no
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9372   case $host_os in
9373   irix5* | nonstopux*)
9374     libsuff= shlibsuff=
9375     ;;
9376   *)
9377     case $LD in # libtool.m4 will add one of these switches to LD
9378     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9379       libsuff= shlibsuff= libmagic=32-bit;;
9380     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9381       libsuff=32 shlibsuff=N32 libmagic=N32;;
9382     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9383       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9384     *) libsuff= shlibsuff= libmagic=never-match;;
9385     esac
9386     ;;
9387   esac
9388   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9389   shlibpath_overrides_runpath=no
9390   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9391   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9392   hardcode_into_libs=yes
9393   ;;
9394
9395 # No shared lib support for Linux oldld, aout, or coff.
9396 linux*oldld* | linux*aout* | linux*coff*)
9397   dynamic_linker=no
9398   ;;
9399
9400 # This must be Linux ELF.
9401 linux* | k*bsd*-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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9408   shlibpath_var=LD_LIBRARY_PATH
9409   shlibpath_overrides_runpath=no
9410   # This implies no fast_install, which is unacceptable.
9411   # Some rework will be needed to allow for fast_install
9412   # before this can be enabled.
9413   hardcode_into_libs=yes
9414
9415   # Append ld.so.conf contents to the search path
9416   if test -f /etc/ld.so.conf; then
9417     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' ' '`
9418     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9419   fi
9420
9421   # We used to test for /lib/ld.so.1 and disable shared libraries on
9422   # powerpc, because MkLinux only supported shared libraries with the
9423   # GNU dynamic linker.  Since this was broken with cross compilers,
9424   # most powerpc-linux boxes support dynamic linking these days and
9425   # people can always --disable-shared, the test was removed, and we
9426   # assume the GNU/Linux dynamic linker is in use.
9427   dynamic_linker='GNU/Linux ld.so'
9428   ;;
9429
9430 netbsdelf*-gnu)
9431   version_type=linux
9432   need_lib_prefix=no
9433   need_version=no
9434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9435   soname_spec='${libname}${release}${shared_ext}$major'
9436   shlibpath_var=LD_LIBRARY_PATH
9437   shlibpath_overrides_runpath=no
9438   hardcode_into_libs=yes
9439   dynamic_linker='NetBSD ld.elf_so'
9440   ;;
9441
9442 netbsd*)
9443   version_type=sunos
9444   need_lib_prefix=no
9445   need_version=no
9446   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9448     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9449     dynamic_linker='NetBSD (a.out) ld.so'
9450   else
9451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9452     soname_spec='${libname}${release}${shared_ext}$major'
9453     dynamic_linker='NetBSD ld.elf_so'
9454   fi
9455   shlibpath_var=LD_LIBRARY_PATH
9456   shlibpath_overrides_runpath=yes
9457   hardcode_into_libs=yes
9458   ;;
9459
9460 newsos6)
9461   version_type=linux
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   shlibpath_overrides_runpath=yes
9465   ;;
9466
9467 nto-qnx*)
9468   version_type=linux
9469   need_lib_prefix=no
9470   need_version=no
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472   soname_spec='${libname}${release}${shared_ext}$major'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   shlibpath_overrides_runpath=yes
9475   ;;
9476
9477 openbsd*)
9478   version_type=sunos
9479   sys_lib_dlsearch_path_spec="/usr/lib"
9480   need_lib_prefix=no
9481   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9482   case $host_os in
9483     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9484     *)                         need_version=no  ;;
9485   esac
9486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9488   shlibpath_var=LD_LIBRARY_PATH
9489   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9490     case $host_os in
9491       openbsd2.[89] | openbsd2.[89].*)
9492         shlibpath_overrides_runpath=no
9493         ;;
9494       *)
9495         shlibpath_overrides_runpath=yes
9496         ;;
9497       esac
9498   else
9499     shlibpath_overrides_runpath=yes
9500   fi
9501   ;;
9502
9503 os2*)
9504   libname_spec='$name'
9505   shrext_cmds=".dll"
9506   need_lib_prefix=no
9507   library_names_spec='$libname${shared_ext} $libname.a'
9508   dynamic_linker='OS/2 ld.exe'
9509   shlibpath_var=LIBPATH
9510   ;;
9511
9512 osf3* | osf4* | osf5*)
9513   version_type=osf
9514   need_lib_prefix=no
9515   need_version=no
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9520   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9521   ;;
9522
9523 solaris*)
9524   version_type=linux
9525   need_lib_prefix=no
9526   need_version=no
9527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528   soname_spec='${libname}${release}${shared_ext}$major'
9529   shlibpath_var=LD_LIBRARY_PATH
9530   shlibpath_overrides_runpath=yes
9531   hardcode_into_libs=yes
9532   # ldd complains unless libraries are executable
9533   postinstall_cmds='chmod +x $lib'
9534   ;;
9535
9536 sunos4*)
9537   version_type=sunos
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9539   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9540   shlibpath_var=LD_LIBRARY_PATH
9541   shlibpath_overrides_runpath=yes
9542   if test "$with_gnu_ld" = yes; then
9543     need_lib_prefix=no
9544   fi
9545   need_version=yes
9546   ;;
9547
9548 sysv4 | sysv4.3*)
9549   version_type=linux
9550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551   soname_spec='${libname}${release}${shared_ext}$major'
9552   shlibpath_var=LD_LIBRARY_PATH
9553   case $host_vendor in
9554     sni)
9555       shlibpath_overrides_runpath=no
9556       need_lib_prefix=no
9557       export_dynamic_flag_spec='${wl}-Blargedynsym'
9558       runpath_var=LD_RUN_PATH
9559       ;;
9560     siemens)
9561       need_lib_prefix=no
9562       ;;
9563     motorola)
9564       need_lib_prefix=no
9565       need_version=no
9566       shlibpath_overrides_runpath=no
9567       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9568       ;;
9569   esac
9570   ;;
9571
9572 sysv4*MP*)
9573   if test -d /usr/nec ;then
9574     version_type=linux
9575     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9576     soname_spec='$libname${shared_ext}.$major'
9577     shlibpath_var=LD_LIBRARY_PATH
9578   fi
9579   ;;
9580
9581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9582   version_type=freebsd-elf
9583   need_lib_prefix=no
9584   need_version=no
9585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9586   soname_spec='${libname}${release}${shared_ext}$major'
9587   shlibpath_var=LD_LIBRARY_PATH
9588   hardcode_into_libs=yes
9589   if test "$with_gnu_ld" = yes; then
9590     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9591     shlibpath_overrides_runpath=no
9592   else
9593     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9594     shlibpath_overrides_runpath=yes
9595     case $host_os in
9596       sco3.2v5*)
9597         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9598         ;;
9599     esac
9600   fi
9601   sys_lib_dlsearch_path_spec='/usr/lib'
9602   ;;
9603
9604 uts4*)
9605   version_type=linux
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   shlibpath_var=LD_LIBRARY_PATH
9609   ;;
9610
9611 *)
9612   dynamic_linker=no
9613   ;;
9614 esac
9615 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9616 echo "${ECHO_T}$dynamic_linker" >&6
9617 test "$dynamic_linker" = no && can_build_shared=no
9618
9619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9620 if test "$GCC" = yes; then
9621   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9622 fi
9623
9624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9626 hardcode_action=
9627 if test -n "$hardcode_libdir_flag_spec" || \
9628    test -n "$runpath_var" || \
9629    test "X$hardcode_automatic" = "Xyes" ; then
9630
9631   # We can hardcode non-existant directories.
9632   if test "$hardcode_direct" != no &&
9633      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9634      # have to relink, otherwise we might link with an installed library
9635      # when we should be linking with a yet-to-be-installed one
9636      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9637      test "$hardcode_minus_L" != no; then
9638     # Linking always hardcodes the temporary library directory.
9639     hardcode_action=relink
9640   else
9641     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9642     hardcode_action=immediate
9643   fi
9644 else
9645   # We cannot hardcode anything, or else we can only hardcode existing
9646   # directories.
9647   hardcode_action=unsupported
9648 fi
9649 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9650 echo "${ECHO_T}$hardcode_action" >&6
9651
9652 if test "$hardcode_action" = relink; then
9653   # Fast installation is not supported
9654   enable_fast_install=no
9655 elif test "$shlibpath_overrides_runpath" = yes ||
9656      test "$enable_shared" = no; then
9657   # Fast installation is not necessary
9658   enable_fast_install=needless
9659 fi
9660
9661 striplib=
9662 old_striplib=
9663 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9664 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9665 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9666   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9667   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9668   echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9670 else
9671 # FIXME - insert some real tests, host_os isn't really good enough
9672   case $host_os in
9673    darwin*)
9674        if test -n "$STRIP" ; then
9675          striplib="$STRIP -x"
9676          echo "$as_me:$LINENO: result: yes" >&5
9677 echo "${ECHO_T}yes" >&6
9678        else
9679   echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9681 fi
9682        ;;
9683    *)
9684   echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9686     ;;
9687   esac
9688 fi
9689
9690 if test "x$enable_dlopen" != xyes; then
9691   enable_dlopen=unknown
9692   enable_dlopen_self=unknown
9693   enable_dlopen_self_static=unknown
9694 else
9695   lt_cv_dlopen=no
9696   lt_cv_dlopen_libs=
9697
9698   case $host_os in
9699   beos*)
9700     lt_cv_dlopen="load_add_on"
9701     lt_cv_dlopen_libs=
9702     lt_cv_dlopen_self=yes
9703     ;;
9704
9705   mingw* | pw32*)
9706     lt_cv_dlopen="LoadLibrary"
9707     lt_cv_dlopen_libs=
9708    ;;
9709
9710   cygwin*)
9711     lt_cv_dlopen="dlopen"
9712     lt_cv_dlopen_libs=
9713    ;;
9714
9715   darwin*)
9716   # if libdl is installed we need to link against it
9717     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ldl  $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 /* Override any gcc2 internal prototype to avoid an error.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 /* We use char because int might match the return type of a gcc2
9736    builtin and then its argument prototype would still apply.  */
9737 char dlopen ();
9738 int
9739 main ()
9740 {
9741 dlopen ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757   (eval $ac_try) 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; } &&
9761          { ac_try='test -s conftest$ac_exeext'
9762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763   (eval $ac_try) 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   ac_cv_lib_dl_dlopen=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ac_cv_lib_dl_dlopen=no
9773 fi
9774 rm -f conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9777 fi
9778 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9780 if test $ac_cv_lib_dl_dlopen = yes; then
9781   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9782 else
9783
9784     lt_cv_dlopen="dyld"
9785     lt_cv_dlopen_libs=
9786     lt_cv_dlopen_self=yes
9787
9788 fi
9789
9790    ;;
9791
9792   *)
9793     echo "$as_me:$LINENO: checking for shl_load" >&5
9794 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9795 if test "${ac_cv_func_shl_load+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9806 #define shl_load innocuous_shl_load
9807
9808 /* System header to define __stub macros and hopefully few prototypes,
9809     which can conflict with char shl_load (); below.
9810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811     <limits.h> exists even on freestanding compilers.  */
9812
9813 #ifdef __STDC__
9814 # include <limits.h>
9815 #else
9816 # include <assert.h>
9817 #endif
9818
9819 #undef shl_load
9820
9821 /* Override any gcc2 internal prototype to avoid an error.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 {
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827    builtin and then its argument prototype would still apply.  */
9828 char shl_load ();
9829 /* The GNU C library defines this for functions which it implements
9830     to always fail with ENOSYS.  Some functions are actually named
9831     something starting with __ and the normal name is an alias.  */
9832 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9833 choke me
9834 #else
9835 char (*f) () = shl_load;
9836 #endif
9837 #ifdef __cplusplus
9838 }
9839 #endif
9840
9841 int
9842 main ()
9843 {
9844 return f != shl_load;
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851   (eval $ac_link) 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest$ac_exeext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_cv_func_shl_load=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_cv_func_shl_load=no
9876 fi
9877 rm -f conftest.err conftest.$ac_objext \
9878       conftest$ac_exeext conftest.$ac_ext
9879 fi
9880 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9881 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9882 if test $ac_cv_func_shl_load = yes; then
9883   lt_cv_dlopen="shl_load"
9884 else
9885   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9886 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   ac_check_lib_save_LIBS=$LIBS
9891 LIBS="-ldld  $LIBS"
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898
9899 /* Override any gcc2 internal prototype to avoid an error.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 /* We use char because int might match the return type of a gcc2
9904    builtin and then its argument prototype would still apply.  */
9905 char shl_load ();
9906 int
9907 main ()
9908 {
9909 shl_load ();
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 rm -f conftest.$ac_objext conftest$ac_exeext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9916   (eval $ac_link) 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } &&
9923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925   (eval $ac_try) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; } &&
9929          { ac_try='test -s conftest$ac_exeext'
9930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; }; then
9935   ac_cv_lib_dld_shl_load=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 ac_cv_lib_dld_shl_load=no
9941 fi
9942 rm -f conftest.err conftest.$ac_objext \
9943       conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9945 fi
9946 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9948 if test $ac_cv_lib_dld_shl_load = yes; then
9949   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9950 else
9951   echo "$as_me:$LINENO: checking for dlopen" >&5
9952 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9953 if test "${ac_cv_func_dlopen+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9964 #define dlopen innocuous_dlopen
9965
9966 /* System header to define __stub macros and hopefully few prototypes,
9967     which can conflict with char dlopen (); below.
9968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9969     <limits.h> exists even on freestanding compilers.  */
9970
9971 #ifdef __STDC__
9972 # include <limits.h>
9973 #else
9974 # include <assert.h>
9975 #endif
9976
9977 #undef dlopen
9978
9979 /* Override any gcc2 internal prototype to avoid an error.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 {
9983 #endif
9984 /* We use char because int might match the return type of a gcc2
9985    builtin and then its argument prototype would still apply.  */
9986 char dlopen ();
9987 /* The GNU C library defines this for functions which it implements
9988     to always fail with ENOSYS.  Some functions are actually named
9989     something starting with __ and the normal name is an alias.  */
9990 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9991 choke me
9992 #else
9993 char (*f) () = dlopen;
9994 #endif
9995 #ifdef __cplusplus
9996 }
9997 #endif
9998
9999 int
10000 main ()
10001 {
10002 return f != dlopen;
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009   (eval $ac_link) 2>conftest.er1
10010   ac_status=$?
10011   grep -v '^ *+' conftest.er1 >conftest.err
10012   rm -f conftest.er1
10013   cat conftest.err >&5
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } &&
10016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018   (eval $ac_try) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; } &&
10022          { ac_try='test -s conftest$ac_exeext'
10023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024   (eval $ac_try) 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; }; then
10028   ac_cv_func_dlopen=yes
10029 else
10030   echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 ac_cv_func_dlopen=no
10034 fi
10035 rm -f conftest.err conftest.$ac_objext \
10036       conftest$ac_exeext conftest.$ac_ext
10037 fi
10038 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10040 if test $ac_cv_func_dlopen = yes; then
10041   lt_cv_dlopen="dlopen"
10042 else
10043   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048   ac_check_lib_save_LIBS=$LIBS
10049 LIBS="-ldl  $LIBS"
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h.  */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h.  */
10056
10057 /* Override any gcc2 internal prototype to avoid an error.  */
10058 #ifdef __cplusplus
10059 extern "C"
10060 #endif
10061 /* We use char because int might match the return type of a gcc2
10062    builtin and then its argument prototype would still apply.  */
10063 char dlopen ();
10064 int
10065 main ()
10066 {
10067 dlopen ();
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074   (eval $ac_link) 2>conftest.er1
10075   ac_status=$?
10076   grep -v '^ *+' conftest.er1 >conftest.err
10077   rm -f conftest.er1
10078   cat conftest.err >&5
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); } &&
10081          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; } &&
10087          { ac_try='test -s conftest$ac_exeext'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; }; then
10093   ac_cv_lib_dl_dlopen=yes
10094 else
10095   echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098 ac_cv_lib_dl_dlopen=no
10099 fi
10100 rm -f conftest.err conftest.$ac_objext \
10101       conftest$ac_exeext conftest.$ac_ext
10102 LIBS=$ac_check_lib_save_LIBS
10103 fi
10104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10106 if test $ac_cv_lib_dl_dlopen = yes; then
10107   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10108 else
10109   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10110 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10111 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lsvld  $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122
10123 /* Override any gcc2 internal prototype to avoid an error.  */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 /* We use char because int might match the return type of a gcc2
10128    builtin and then its argument prototype would still apply.  */
10129 char dlopen ();
10130 int
10131 main ()
10132 {
10133 dlopen ();
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140   (eval $ac_link) 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149   (eval $ac_try) 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; } &&
10153          { ac_try='test -s conftest$ac_exeext'
10154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155   (eval $ac_try) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; }; then
10159   ac_cv_lib_svld_dlopen=yes
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164 ac_cv_lib_svld_dlopen=no
10165 fi
10166 rm -f conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10169 fi
10170 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10171 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10172 if test $ac_cv_lib_svld_dlopen = yes; then
10173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10174 else
10175   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10176 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10177 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-ldld  $LIBS"
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188
10189 /* Override any gcc2 internal prototype to avoid an error.  */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 /* We use char because int might match the return type of a gcc2
10194    builtin and then its argument prototype would still apply.  */
10195 char dld_link ();
10196 int
10197 main ()
10198 {
10199 dld_link ();
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206   (eval $ac_link) 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215   (eval $ac_try) 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); }; } &&
10219          { ac_try='test -s conftest$ac_exeext'
10220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221   (eval $ac_try) 2>&5
10222   ac_status=$?
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); }; }; then
10225   ac_cv_lib_dld_dld_link=yes
10226 else
10227   echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_dld_dld_link=no
10231 fi
10232 rm -f conftest.err conftest.$ac_objext \
10233       conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10235 fi
10236 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10237 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10238 if test $ac_cv_lib_dld_dld_link = yes; then
10239   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10240 fi
10241
10242
10243 fi
10244
10245
10246 fi
10247
10248
10249 fi
10250
10251
10252 fi
10253
10254
10255 fi
10256
10257     ;;
10258   esac
10259
10260   if test "x$lt_cv_dlopen" != xno; then
10261     enable_dlopen=yes
10262   else
10263     enable_dlopen=no
10264   fi
10265
10266   case $lt_cv_dlopen in
10267   dlopen)
10268     save_CPPFLAGS="$CPPFLAGS"
10269     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10270
10271     save_LDFLAGS="$LDFLAGS"
10272     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10273
10274     save_LIBS="$LIBS"
10275     LIBS="$lt_cv_dlopen_libs $LIBS"
10276
10277     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10279 if test "${lt_cv_dlopen_self+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282           if test "$cross_compiling" = yes; then :
10283   lt_cv_dlopen_self=cross
10284 else
10285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286   lt_status=$lt_dlunknown
10287   cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10290
10291 #if HAVE_DLFCN_H
10292 #include <dlfcn.h>
10293 #endif
10294
10295 #include <stdio.h>
10296
10297 #ifdef RTLD_GLOBAL
10298 #  define LT_DLGLOBAL           RTLD_GLOBAL
10299 #else
10300 #  ifdef DL_GLOBAL
10301 #    define LT_DLGLOBAL         DL_GLOBAL
10302 #  else
10303 #    define LT_DLGLOBAL         0
10304 #  endif
10305 #endif
10306
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308    find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10310 #  ifdef RTLD_LAZY
10311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10312 #  else
10313 #    ifdef DL_LAZY
10314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10315 #    else
10316 #      ifdef RTLD_NOW
10317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10318 #      else
10319 #        ifdef DL_NOW
10320 #          define LT_DLLAZY_OR_NOW      DL_NOW
10321 #        else
10322 #          define LT_DLLAZY_OR_NOW      0
10323 #        endif
10324 #      endif
10325 #    endif
10326 #  endif
10327 #endif
10328
10329 #ifdef __cplusplus
10330 extern "C" void exit (int);
10331 #endif
10332
10333 void fnord() { int i=42;}
10334 int main ()
10335 {
10336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337   int status = $lt_dlunknown;
10338
10339   if (self)
10340     {
10341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10342       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343       /* dlclose (self); */
10344     }
10345   else
10346     puts (dlerror ());
10347
10348     exit (status);
10349 }
10350 EOF
10351   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352   (eval $ac_link) 2>&5
10353   ac_status=$?
10354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10356     (./conftest; exit; ) >&5 2>/dev/null
10357     lt_status=$?
10358     case x$lt_status in
10359       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10360       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10361       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10362     esac
10363   else :
10364     # compilation failed
10365     lt_cv_dlopen_self=no
10366   fi
10367 fi
10368 rm -fr conftest*
10369
10370
10371 fi
10372 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10373 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10374
10375     if test "x$lt_cv_dlopen_self" = xyes; then
10376       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10377       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10378 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10379 if test "${lt_cv_dlopen_self_static+set}" = set; then
10380   echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382           if test "$cross_compiling" = yes; then :
10383   lt_cv_dlopen_self_static=cross
10384 else
10385   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10386   lt_status=$lt_dlunknown
10387   cat > conftest.$ac_ext <<EOF
10388 #line 10388 "configure"
10389 #include "confdefs.h"
10390
10391 #if HAVE_DLFCN_H
10392 #include <dlfcn.h>
10393 #endif
10394
10395 #include <stdio.h>
10396
10397 #ifdef RTLD_GLOBAL
10398 #  define LT_DLGLOBAL           RTLD_GLOBAL
10399 #else
10400 #  ifdef DL_GLOBAL
10401 #    define LT_DLGLOBAL         DL_GLOBAL
10402 #  else
10403 #    define LT_DLGLOBAL         0
10404 #  endif
10405 #endif
10406
10407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10408    find out it does not work in some platform. */
10409 #ifndef LT_DLLAZY_OR_NOW
10410 #  ifdef RTLD_LAZY
10411 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10412 #  else
10413 #    ifdef DL_LAZY
10414 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10415 #    else
10416 #      ifdef RTLD_NOW
10417 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10418 #      else
10419 #        ifdef DL_NOW
10420 #          define LT_DLLAZY_OR_NOW      DL_NOW
10421 #        else
10422 #          define LT_DLLAZY_OR_NOW      0
10423 #        endif
10424 #      endif
10425 #    endif
10426 #  endif
10427 #endif
10428
10429 #ifdef __cplusplus
10430 extern "C" void exit (int);
10431 #endif
10432
10433 void fnord() { int i=42;}
10434 int main ()
10435 {
10436   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10437   int status = $lt_dlunknown;
10438
10439   if (self)
10440     {
10441       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10442       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10443       /* dlclose (self); */
10444     }
10445   else
10446     puts (dlerror ());
10447
10448     exit (status);
10449 }
10450 EOF
10451   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452   (eval $ac_link) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10456     (./conftest; exit; ) >&5 2>/dev/null
10457     lt_status=$?
10458     case x$lt_status in
10459       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10460       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10461       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10462     esac
10463   else :
10464     # compilation failed
10465     lt_cv_dlopen_self_static=no
10466   fi
10467 fi
10468 rm -fr conftest*
10469
10470
10471 fi
10472 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10473 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10474     fi
10475
10476     CPPFLAGS="$save_CPPFLAGS"
10477     LDFLAGS="$save_LDFLAGS"
10478     LIBS="$save_LIBS"
10479     ;;
10480   esac
10481
10482   case $lt_cv_dlopen_self in
10483   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10484   *) enable_dlopen_self=unknown ;;
10485   esac
10486
10487   case $lt_cv_dlopen_self_static in
10488   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10489   *) enable_dlopen_self_static=unknown ;;
10490   esac
10491 fi
10492
10493
10494 # Report which library types will actually be built
10495 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10496 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10497 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10498 echo "${ECHO_T}$can_build_shared" >&6
10499
10500 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10501 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10502 test "$can_build_shared" = "no" && enable_shared=no
10503
10504 # On AIX, shared libraries and static libraries use the same namespace, and
10505 # are all built from PIC.
10506 case $host_os in
10507 aix3*)
10508   test "$enable_shared" = yes && enable_static=no
10509   if test -n "$RANLIB"; then
10510     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10511     postinstall_cmds='$RANLIB $lib'
10512   fi
10513   ;;
10514
10515 aix4* | aix5*)
10516   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10517     test "$enable_shared" = yes && enable_static=no
10518   fi
10519     ;;
10520 esac
10521 echo "$as_me:$LINENO: result: $enable_shared" >&5
10522 echo "${ECHO_T}$enable_shared" >&6
10523
10524 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10526 # Make sure either enable_shared or enable_static is yes.
10527 test "$enable_shared" = yes || enable_static=yes
10528 echo "$as_me:$LINENO: result: $enable_static" >&5
10529 echo "${ECHO_T}$enable_static" >&6
10530
10531 # The else clause should only fire when bootstrapping the
10532 # libtool distribution, otherwise you forgot to ship ltmain.sh
10533 # with your package, and you will get complaints that there are
10534 # no rules to generate ltmain.sh.
10535 if test -f "$ltmain"; then
10536   # See if we are running on zsh, and set the options which allow our commands through
10537   # without removal of \ escapes.
10538   if test -n "${ZSH_VERSION+set}" ; then
10539     setopt NO_GLOB_SUBST
10540   fi
10541   # Now quote all the things that may contain metacharacters while being
10542   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10543   # variables and quote the copies for generation of the libtool script.
10544   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10545     SED SHELL STRIP \
10546     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10547     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10548     deplibs_check_method reload_flag reload_cmds need_locks \
10549     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10550     lt_cv_sys_global_symbol_to_c_name_address \
10551     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10552     old_postinstall_cmds old_postuninstall_cmds \
10553     compiler \
10554     CC \
10555     LD \
10556     lt_prog_compiler_wl \
10557     lt_prog_compiler_pic \
10558     lt_prog_compiler_static \
10559     lt_prog_compiler_no_builtin_flag \
10560     export_dynamic_flag_spec \
10561     thread_safe_flag_spec \
10562     whole_archive_flag_spec \
10563     enable_shared_with_static_runtimes \
10564     old_archive_cmds \
10565     old_archive_from_new_cmds \
10566     predep_objects \
10567     postdep_objects \
10568     predeps \
10569     postdeps \
10570     compiler_lib_search_path \
10571     archive_cmds \
10572     archive_expsym_cmds \
10573     postinstall_cmds \
10574     postuninstall_cmds \
10575     old_archive_from_expsyms_cmds \
10576     allow_undefined_flag \
10577     no_undefined_flag \
10578     export_symbols_cmds \
10579     hardcode_libdir_flag_spec \
10580     hardcode_libdir_flag_spec_ld \
10581     hardcode_libdir_separator \
10582     hardcode_automatic \
10583     module_cmds \
10584     module_expsym_cmds \
10585     lt_cv_prog_compiler_c_o \
10586     exclude_expsyms \
10587     include_expsyms; do
10588
10589     case $var in
10590     old_archive_cmds | \
10591     old_archive_from_new_cmds | \
10592     archive_cmds | \
10593     archive_expsym_cmds | \
10594     module_cmds | \
10595     module_expsym_cmds | \
10596     old_archive_from_expsyms_cmds | \
10597     export_symbols_cmds | \
10598     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10599     postinstall_cmds | postuninstall_cmds | \
10600     old_postinstall_cmds | old_postuninstall_cmds | \
10601     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10602       # Double-quote double-evaled strings.
10603       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10604       ;;
10605     *)
10606       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10607       ;;
10608     esac
10609   done
10610
10611   case $lt_echo in
10612   *'\$0 --fallback-echo"')
10613     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10614     ;;
10615   esac
10616
10617 cfgfile="${ofile}T"
10618   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10619   $rm -f "$cfgfile"
10620   { echo "$as_me:$LINENO: creating $ofile" >&5
10621 echo "$as_me: creating $ofile" >&6;}
10622
10623   cat <<__EOF__ >> "$cfgfile"
10624 #! $SHELL
10625
10626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10629 #
10630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10631 # Free Software Foundation, Inc.
10632 #
10633 # This file is part of GNU Libtool:
10634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10635 #
10636 # This program is free software; you can redistribute it and/or modify
10637 # it under the terms of the GNU General Public License as published by
10638 # the Free Software Foundation; either version 2 of the License, or
10639 # (at your option) any later version.
10640 #
10641 # This program is distributed in the hope that it will be useful, but
10642 # WITHOUT ANY WARRANTY; without even the implied warranty of
10643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10644 # General Public License for more details.
10645 #
10646 # You should have received a copy of the GNU General Public License
10647 # along with this program; if not, write to the Free Software
10648 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10649 #
10650 # As a special exception to the GNU General Public License, if you
10651 # distribute this file as part of a program that contains a
10652 # configuration script generated by Autoconf, you may include it under
10653 # the same distribution terms that you use for the rest of that program.
10654
10655 # A sed program that does not truncate output.
10656 SED=$lt_SED
10657
10658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10659 Xsed="$SED -e 1s/^X//"
10660
10661 # The HP-UX ksh and POSIX shell print the target directory to stdout
10662 # if CDPATH is set.
10663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10664
10665 # The names of the tagged configurations supported by this script.
10666 available_tags=
10667
10668 # ### BEGIN LIBTOOL CONFIG
10669
10670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10671
10672 # Shell to use when invoking shell scripts.
10673 SHELL=$lt_SHELL
10674
10675 # Whether or not to build shared libraries.
10676 build_libtool_libs=$enable_shared
10677
10678 # Whether or not to build static libraries.
10679 build_old_libs=$enable_static
10680
10681 # Whether or not to add -lc for building shared libraries.
10682 build_libtool_need_lc=$archive_cmds_need_lc
10683
10684 # Whether or not to disallow shared libs when runtime libs are static
10685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10686
10687 # Whether or not to optimize for fast installation.
10688 fast_install=$enable_fast_install
10689
10690 # The host system.
10691 host_alias=$host_alias
10692 host=$host
10693 host_os=$host_os
10694
10695 # The build system.
10696 build_alias=$build_alias
10697 build=$build
10698 build_os=$build_os
10699
10700 # An echo program that does not interpret backslashes.
10701 echo=$lt_echo
10702
10703 # The archiver.
10704 AR=$lt_AR
10705 AR_FLAGS=$lt_AR_FLAGS
10706
10707 # A C compiler.
10708 LTCC=$lt_LTCC
10709
10710 # LTCC compiler flags.
10711 LTCFLAGS=$lt_LTCFLAGS
10712
10713 # A language-specific compiler.
10714 CC=$lt_compiler
10715
10716 # Is the compiler the GNU C compiler?
10717 with_gcc=$GCC
10718
10719 # An ERE matcher.
10720 EGREP=$lt_EGREP
10721
10722 # The linker used to build libraries.
10723 LD=$lt_LD
10724
10725 # Whether we need hard or soft links.
10726 LN_S=$lt_LN_S
10727
10728 # A BSD-compatible nm program.
10729 NM=$lt_NM
10730
10731 # A symbol stripping program
10732 STRIP=$lt_STRIP
10733
10734 # Used to examine libraries when file_magic_cmd begins "file"
10735 MAGIC_CMD=$MAGIC_CMD
10736
10737 # Used on cygwin: DLL creation program.
10738 DLLTOOL="$DLLTOOL"
10739
10740 # Used on cygwin: object dumper.
10741 OBJDUMP="$OBJDUMP"
10742
10743 # Used on cygwin: assembler.
10744 AS="$AS"
10745
10746 # The name of the directory that contains temporary libtool files.
10747 objdir=$objdir
10748
10749 # How to create reloadable object files.
10750 reload_flag=$lt_reload_flag
10751 reload_cmds=$lt_reload_cmds
10752
10753 # How to pass a linker flag through the compiler.
10754 wl=$lt_lt_prog_compiler_wl
10755
10756 # Object file suffix (normally "o").
10757 objext="$ac_objext"
10758
10759 # Old archive suffix (normally "a").
10760 libext="$libext"
10761
10762 # Shared library suffix (normally ".so").
10763 shrext_cmds='$shrext_cmds'
10764
10765 # Executable file suffix (normally "").
10766 exeext="$exeext"
10767
10768 # Additional compiler flags for building library objects.
10769 pic_flag=$lt_lt_prog_compiler_pic
10770 pic_mode=$pic_mode
10771
10772 # What is the maximum length of a command?
10773 max_cmd_len=$lt_cv_sys_max_cmd_len
10774
10775 # Does compiler simultaneously support -c and -o options?
10776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10777
10778 # Must we lock files when doing compilation?
10779 need_locks=$lt_need_locks
10780
10781 # Do we need the lib prefix for modules?
10782 need_lib_prefix=$need_lib_prefix
10783
10784 # Do we need a version for libraries?
10785 need_version=$need_version
10786
10787 # Whether dlopen is supported.
10788 dlopen_support=$enable_dlopen
10789
10790 # Whether dlopen of programs is supported.
10791 dlopen_self=$enable_dlopen_self
10792
10793 # Whether dlopen of statically linked programs is supported.
10794 dlopen_self_static=$enable_dlopen_self_static
10795
10796 # Compiler flag to prevent dynamic linking.
10797 link_static_flag=$lt_lt_prog_compiler_static
10798
10799 # Compiler flag to turn off builtin functions.
10800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10801
10802 # Compiler flag to allow reflexive dlopens.
10803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10804
10805 # Compiler flag to generate shared objects directly from archives.
10806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10807
10808 # Compiler flag to generate thread-safe objects.
10809 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10810
10811 # Library versioning type.
10812 version_type=$version_type
10813
10814 # Format of library name prefix.
10815 libname_spec=$lt_libname_spec
10816
10817 # List of archive names.  First name is the real one, the rest are links.
10818 # The last name is the one that the linker finds with -lNAME.
10819 library_names_spec=$lt_library_names_spec
10820
10821 # The coded name of the library, if different from the real name.
10822 soname_spec=$lt_soname_spec
10823
10824 # Commands used to build and install an old-style archive.
10825 RANLIB=$lt_RANLIB
10826 old_archive_cmds=$lt_old_archive_cmds
10827 old_postinstall_cmds=$lt_old_postinstall_cmds
10828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10829
10830 # Create an old-style archive from a shared archive.
10831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10832
10833 # Create a temporary old-style archive to link instead of a shared archive.
10834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10835
10836 # Commands used to build and install a shared archive.
10837 archive_cmds=$lt_archive_cmds
10838 archive_expsym_cmds=$lt_archive_expsym_cmds
10839 postinstall_cmds=$lt_postinstall_cmds
10840 postuninstall_cmds=$lt_postuninstall_cmds
10841
10842 # Commands used to build a loadable module (assumed same as above if empty)
10843 module_cmds=$lt_module_cmds
10844 module_expsym_cmds=$lt_module_expsym_cmds
10845
10846 # Commands to strip libraries.
10847 old_striplib=$lt_old_striplib
10848 striplib=$lt_striplib
10849
10850 # Dependencies to place before the objects being linked to create a
10851 # shared library.
10852 predep_objects=$lt_predep_objects
10853
10854 # Dependencies to place after the objects being linked to create a
10855 # shared library.
10856 postdep_objects=$lt_postdep_objects
10857
10858 # Dependencies to place before the objects being linked to create a
10859 # shared library.
10860 predeps=$lt_predeps
10861
10862 # Dependencies to place after the objects being linked to create a
10863 # shared library.
10864 postdeps=$lt_postdeps
10865
10866 # The library search path used internally by the compiler when linking
10867 # a shared library.
10868 compiler_lib_search_path=$lt_compiler_lib_search_path
10869
10870 # Method to check whether dependent libraries are shared objects.
10871 deplibs_check_method=$lt_deplibs_check_method
10872
10873 # Command to use when deplibs_check_method == file_magic.
10874 file_magic_cmd=$lt_file_magic_cmd
10875
10876 # Flag that allows shared libraries with undefined symbols to be built.
10877 allow_undefined_flag=$lt_allow_undefined_flag
10878
10879 # Flag that forces no undefined symbols.
10880 no_undefined_flag=$lt_no_undefined_flag
10881
10882 # Commands used to finish a libtool library installation in a directory.
10883 finish_cmds=$lt_finish_cmds
10884
10885 # Same as above, but a single script fragment to be evaled but not shown.
10886 finish_eval=$lt_finish_eval
10887
10888 # Take the output of nm and produce a listing of raw symbols and C names.
10889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10890
10891 # Transform the output of nm in a proper C declaration
10892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10893
10894 # Transform the output of nm in a C name address pair
10895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10896
10897 # This is the shared library runtime path variable.
10898 runpath_var=$runpath_var
10899
10900 # This is the shared library path variable.
10901 shlibpath_var=$shlibpath_var
10902
10903 # Is shlibpath searched before the hard-coded library search path?
10904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10905
10906 # How to hardcode a shared library path into an executable.
10907 hardcode_action=$hardcode_action
10908
10909 # Whether we should hardcode library paths into libraries.
10910 hardcode_into_libs=$hardcode_into_libs
10911
10912 # Flag to hardcode \$libdir into a binary during linking.
10913 # This must work even if \$libdir does not exist.
10914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10915
10916 # If ld is used when linking, flag to hardcode \$libdir into
10917 # a binary during linking. This must work even if \$libdir does
10918 # not exist.
10919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10920
10921 # Whether we need a single -rpath flag with a separated argument.
10922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10923
10924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10925 # resulting binary.
10926 hardcode_direct=$hardcode_direct
10927
10928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10929 # resulting binary.
10930 hardcode_minus_L=$hardcode_minus_L
10931
10932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10933 # the resulting binary.
10934 hardcode_shlibpath_var=$hardcode_shlibpath_var
10935
10936 # Set to yes if building a shared library automatically hardcodes DIR into the library
10937 # and all subsequent libraries and executables linked against it.
10938 hardcode_automatic=$hardcode_automatic
10939
10940 # Variables whose values should be saved in libtool wrapper scripts and
10941 # restored at relink time.
10942 variables_saved_for_relink="$variables_saved_for_relink"
10943
10944 # Whether libtool must link a program against all its dependency libraries.
10945 link_all_deplibs=$link_all_deplibs
10946
10947 # Compile-time system search path for libraries
10948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10949
10950 # Run-time system search path for libraries
10951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10952
10953 # Fix the shell variable \$srcfile for the compiler.
10954 fix_srcfile_path="$fix_srcfile_path"
10955
10956 # Set to yes if exported symbols are required.
10957 always_export_symbols=$always_export_symbols
10958
10959 # The commands to list exported symbols.
10960 export_symbols_cmds=$lt_export_symbols_cmds
10961
10962 # The commands to extract the exported symbol list from a shared archive.
10963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10964
10965 # Symbols that should not be listed in the preloaded symbols.
10966 exclude_expsyms=$lt_exclude_expsyms
10967
10968 # Symbols that must always be exported.
10969 include_expsyms=$lt_include_expsyms
10970
10971 # ### END LIBTOOL CONFIG
10972
10973 __EOF__
10974
10975
10976   case $host_os in
10977   aix3*)
10978     cat <<\EOF >> "$cfgfile"
10979
10980 # AIX sometimes has problems with the GCC collect2 program.  For some
10981 # reason, if we set the COLLECT_NAMES environment variable, the problems
10982 # vanish in a puff of smoke.
10983 if test "X${COLLECT_NAMES+set}" != Xset; then
10984   COLLECT_NAMES=
10985   export COLLECT_NAMES
10986 fi
10987 EOF
10988     ;;
10989   esac
10990
10991   # We use sed instead of cat because bash on DJGPP gets confused if
10992   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10993   # text mode, it properly converts lines to CR/LF.  This bash problem
10994   # is reportedly fixed, but why not run on old versions too?
10995   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10996
10997   mv -f "$cfgfile" "$ofile" || \
10998     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10999   chmod +x "$ofile"
11000
11001 else
11002   # If there is no Makefile yet, we rely on a make rule to execute
11003   # `config.status --recheck' to rerun these tests and create the
11004   # libtool script then.
11005   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11006   if test -f "$ltmain_in"; then
11007     test -f Makefile && make "$ltmain"
11008   fi
11009 fi
11010
11011
11012 ac_ext=c
11013 ac_cpp='$CPP $CPPFLAGS'
11014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11017
11018 CC="$lt_save_CC"
11019
11020
11021 # Check whether --with-tags or --without-tags was given.
11022 if test "${with_tags+set}" = set; then
11023   withval="$with_tags"
11024   tagnames="$withval"
11025 fi;
11026
11027 if test -f "$ltmain" && test -n "$tagnames"; then
11028   if test ! -f "${ofile}"; then
11029     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11030 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11031   fi
11032
11033   if test -z "$LTCC"; then
11034     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11035     if test -z "$LTCC"; then
11036       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11037 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11038     else
11039       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11040 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11041     fi
11042   fi
11043   if test -z "$LTCFLAGS"; then
11044     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11045   fi
11046
11047   # Extract list of available tagged configurations in $ofile.
11048   # Note that this assumes the entire list is on one line.
11049   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11050
11051   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11052   for tagname in $tagnames; do
11053     IFS="$lt_save_ifs"
11054     # Check whether tagname contains only valid characters
11055     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11056     "") ;;
11057     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11058 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11059    { (exit 1); exit 1; }; }
11060         ;;
11061     esac
11062
11063     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11064     then
11065       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11066 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11067    { (exit 1); exit 1; }; }
11068     fi
11069
11070     # Update the list of available tags.
11071     if test -n "$tagname"; then
11072       echo appending configuration tag \"$tagname\" to $ofile
11073
11074       case $tagname in
11075       CXX)
11076         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11077             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11078             (test "X$CXX" != "Xg++"))) ; then
11079           ac_ext=cc
11080 ac_cpp='$CXXCPP $CPPFLAGS'
11081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11084
11085
11086
11087
11088 archive_cmds_need_lc_CXX=no
11089 allow_undefined_flag_CXX=
11090 always_export_symbols_CXX=no
11091 archive_expsym_cmds_CXX=
11092 export_dynamic_flag_spec_CXX=
11093 hardcode_direct_CXX=no
11094 hardcode_libdir_flag_spec_CXX=
11095 hardcode_libdir_flag_spec_ld_CXX=
11096 hardcode_libdir_separator_CXX=
11097 hardcode_minus_L_CXX=no
11098 hardcode_shlibpath_var_CXX=unsupported
11099 hardcode_automatic_CXX=no
11100 module_cmds_CXX=
11101 module_expsym_cmds_CXX=
11102 link_all_deplibs_CXX=unknown
11103 old_archive_cmds_CXX=$old_archive_cmds
11104 no_undefined_flag_CXX=
11105 whole_archive_flag_spec_CXX=
11106 enable_shared_with_static_runtimes_CXX=no
11107
11108 # Dependencies to place before and after the object being linked:
11109 predep_objects_CXX=
11110 postdep_objects_CXX=
11111 predeps_CXX=
11112 postdeps_CXX=
11113 compiler_lib_search_path_CXX=
11114
11115 # Source file extension for C++ test sources.
11116 ac_ext=cpp
11117
11118 # Object file extension for compiled C++ test sources.
11119 objext=o
11120 objext_CXX=$objext
11121
11122 # Code to be used in simple compile tests
11123 lt_simple_compile_test_code="int some_variable = 0;\n"
11124
11125 # Code to be used in simple link tests
11126 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11127
11128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11129
11130 # If no C compiler was specified, use CC.
11131 LTCC=${LTCC-"$CC"}
11132
11133 # If no C compiler flags were specified, use CFLAGS.
11134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11135
11136 # Allow CC to be a program name with arguments.
11137 compiler=$CC
11138
11139
11140 # save warnings/boilerplate of simple test code
11141 ac_outfile=conftest.$ac_objext
11142 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11143 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11144 _lt_compiler_boilerplate=`cat conftest.err`
11145 $rm conftest*
11146
11147 ac_outfile=conftest.$ac_objext
11148 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11149 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11150 _lt_linker_boilerplate=`cat conftest.err`
11151 $rm conftest*
11152
11153
11154 # Allow CC to be a program name with arguments.
11155 lt_save_CC=$CC
11156 lt_save_LD=$LD
11157 lt_save_GCC=$GCC
11158 GCC=$GXX
11159 lt_save_with_gnu_ld=$with_gnu_ld
11160 lt_save_path_LD=$lt_cv_path_LD
11161 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11162   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11163 else
11164   $as_unset lt_cv_prog_gnu_ld
11165 fi
11166 if test -n "${lt_cv_path_LDCXX+set}"; then
11167   lt_cv_path_LD=$lt_cv_path_LDCXX
11168 else
11169   $as_unset lt_cv_path_LD
11170 fi
11171 test -z "${LDCXX+set}" || LD=$LDCXX
11172 CC=${CXX-"c++"}
11173 compiler=$CC
11174 compiler_CXX=$CC
11175 for cc_temp in $compiler""; do
11176   case $cc_temp in
11177     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11178     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11179     \-*) ;;
11180     *) break;;
11181   esac
11182 done
11183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11184
11185
11186 # We don't want -fno-exception wen compiling C++ code, so set the
11187 # no_builtin_flag separately
11188 if test "$GXX" = yes; then
11189   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11190 else
11191   lt_prog_compiler_no_builtin_flag_CXX=
11192 fi
11193
11194 if test "$GXX" = yes; then
11195   # Set up default GNU C++ configuration
11196
11197
11198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11199 if test "${with_gnu_ld+set}" = set; then
11200   withval="$with_gnu_ld"
11201   test "$withval" = no || with_gnu_ld=yes
11202 else
11203   with_gnu_ld=no
11204 fi;
11205 ac_prog=ld
11206 if test "$GCC" = yes; then
11207   # Check if gcc -print-prog-name=ld gives a path.
11208   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11209 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11210   case $host in
11211   *-*-mingw*)
11212     # gcc leaves a trailing carriage return which upsets mingw
11213     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11214   *)
11215     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11216   esac
11217   case $ac_prog in
11218     # Accept absolute paths.
11219     [\\/]* | ?:[\\/]*)
11220       re_direlt='/[^/][^/]*/\.\./'
11221       # Canonicalize the pathname of ld
11222       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11223       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11224         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11225       done
11226       test -z "$LD" && LD="$ac_prog"
11227       ;;
11228   "")
11229     # If it fails, then pretend we aren't using GCC.
11230     ac_prog=ld
11231     ;;
11232   *)
11233     # If it is relative, then search for the first ld in PATH.
11234     with_gnu_ld=unknown
11235     ;;
11236   esac
11237 elif test "$with_gnu_ld" = yes; then
11238   echo "$as_me:$LINENO: checking for GNU ld" >&5
11239 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11240 else
11241   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11242 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11243 fi
11244 if test "${lt_cv_path_LD+set}" = set; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   if test -z "$LD"; then
11248   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11249   for ac_dir in $PATH; do
11250     IFS="$lt_save_ifs"
11251     test -z "$ac_dir" && ac_dir=.
11252     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11253       lt_cv_path_LD="$ac_dir/$ac_prog"
11254       # Check to see if the program is GNU ld.  I'd rather use --version,
11255       # but apparently some variants of GNU ld only accept -v.
11256       # Break only if it was the GNU/non-GNU ld that we prefer.
11257       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11258       *GNU* | *'with BFD'*)
11259         test "$with_gnu_ld" != no && break
11260         ;;
11261       *)
11262         test "$with_gnu_ld" != yes && break
11263         ;;
11264       esac
11265     fi
11266   done
11267   IFS="$lt_save_ifs"
11268 else
11269   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11270 fi
11271 fi
11272
11273 LD="$lt_cv_path_LD"
11274 if test -n "$LD"; then
11275   echo "$as_me:$LINENO: result: $LD" >&5
11276 echo "${ECHO_T}$LD" >&6
11277 else
11278   echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6
11280 fi
11281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11283    { (exit 1); exit 1; }; }
11284 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11286 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11287   echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11290 case `$LD -v 2>&1 </dev/null` in
11291 *GNU* | *'with BFD'*)
11292   lt_cv_prog_gnu_ld=yes
11293   ;;
11294 *)
11295   lt_cv_prog_gnu_ld=no
11296   ;;
11297 esac
11298 fi
11299 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11300 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11301 with_gnu_ld=$lt_cv_prog_gnu_ld
11302
11303
11304
11305   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11306   # archiving commands below assume that GNU ld is being used.
11307   if test "$with_gnu_ld" = yes; then
11308     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11309     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'
11310
11311     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11312     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11313
11314     # If archive_cmds runs LD, not CC, wlarc should be empty
11315     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11316     #     investigate it a little bit more. (MM)
11317     wlarc='${wl}'
11318
11319     # ancient GNU ld didn't support --whole-archive et. al.
11320     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11321         grep 'no-whole-archive' > /dev/null; then
11322       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11323     else
11324       whole_archive_flag_spec_CXX=
11325     fi
11326   else
11327     with_gnu_ld=no
11328     wlarc=
11329
11330     # A generic and very simple default shared library creation
11331     # command for GNU C++ for the case where it uses the native
11332     # linker, instead of GNU ld.  If possible, this setting should
11333     # overridden to take advantage of the native linker features on
11334     # the platform it is being used on.
11335     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11336   fi
11337
11338   # Commands to make compiler produce verbose output that lists
11339   # what "hidden" libraries, object files and flags are used when
11340   # linking a shared library.
11341   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11342
11343 else
11344   GXX=no
11345   with_gnu_ld=no
11346   wlarc=
11347 fi
11348
11349 # PORTME: fill in a description of your system's C++ link characteristics
11350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11352 ld_shlibs_CXX=yes
11353 case $host_os in
11354   aix3*)
11355     # FIXME: insert proper C++ library support
11356     ld_shlibs_CXX=no
11357     ;;
11358   aix4* | aix5*)
11359     if test "$host_cpu" = ia64; then
11360       # On IA64, the linker does run time linking by default, so we don't
11361       # have to do anything special.
11362       aix_use_runtimelinking=no
11363       exp_sym_flag='-Bexport'
11364       no_entry_flag=""
11365     else
11366       aix_use_runtimelinking=no
11367
11368       # Test if we are trying to use run time linking or normal
11369       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11370       # need to do runtime linking.
11371       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11372         for ld_flag in $LDFLAGS; do
11373           case $ld_flag in
11374           *-brtl*)
11375             aix_use_runtimelinking=yes
11376             break
11377             ;;
11378           esac
11379         done
11380         ;;
11381       esac
11382
11383       exp_sym_flag='-bexport'
11384       no_entry_flag='-bnoentry'
11385     fi
11386
11387     # When large executables or shared objects are built, AIX ld can
11388     # have problems creating the table of contents.  If linking a library
11389     # or program results in "error TOC overflow" add -mminimal-toc to
11390     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11391     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11392
11393     archive_cmds_CXX=''
11394     hardcode_direct_CXX=yes
11395     hardcode_libdir_separator_CXX=':'
11396     link_all_deplibs_CXX=yes
11397
11398     if test "$GXX" = yes; then
11399       case $host_os in aix4.[012]|aix4.[012].*)
11400       # We only want to do this on AIX 4.2 and lower, the check
11401       # below for broken collect2 doesn't work under 4.3+
11402         collect2name=`${CC} -print-prog-name=collect2`
11403         if test -f "$collect2name" && \
11404            strings "$collect2name" | grep resolve_lib_name >/dev/null
11405         then
11406           # We have reworked collect2
11407           hardcode_direct_CXX=yes
11408         else
11409           # We have old collect2
11410           hardcode_direct_CXX=unsupported
11411           # It fails to find uninstalled libraries when the uninstalled
11412           # path is not listed in the libpath.  Setting hardcode_minus_L
11413           # to unsupported forces relinking
11414           hardcode_minus_L_CXX=yes
11415           hardcode_libdir_flag_spec_CXX='-L$libdir'
11416           hardcode_libdir_separator_CXX=
11417         fi
11418         ;;
11419       esac
11420       shared_flag='-shared'
11421       if test "$aix_use_runtimelinking" = yes; then
11422         shared_flag="$shared_flag "'${wl}-G'
11423       fi
11424     else
11425       # not using gcc
11426       if test "$host_cpu" = ia64; then
11427         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11428         # chokes on -Wl,-G. The following line is correct:
11429         shared_flag='-G'
11430       else
11431         if test "$aix_use_runtimelinking" = yes; then
11432           shared_flag='${wl}-G'
11433         else
11434           shared_flag='${wl}-bM:SRE'
11435         fi
11436       fi
11437     fi
11438
11439     # It seems that -bexpall does not export symbols beginning with
11440     # underscore (_), so it is better to generate a list of symbols to export.
11441     always_export_symbols_CXX=yes
11442     if test "$aix_use_runtimelinking" = yes; then
11443       # Warning - without using the other runtime loading flags (-brtl),
11444       # -berok will link without error, but may produce a broken library.
11445       allow_undefined_flag_CXX='-berok'
11446       # Determine the default libpath from the value encoded in an empty executable.
11447       cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453
11454 int
11455 main ()
11456 {
11457
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464   (eval $ac_link) 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } &&
11471          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473   (eval $ac_try) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; } &&
11477          { ac_try='test -s conftest$ac_exeext'
11478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479   (eval $ac_try) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; }; then
11483
11484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11485 }'`
11486 # Check for a 64-bit object if we didn't find anything.
11487 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; }
11488 }'`; fi
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 fi
11494 rm -f conftest.err conftest.$ac_objext \
11495       conftest$ac_exeext conftest.$ac_ext
11496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11497
11498       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11499
11500       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"
11501      else
11502       if test "$host_cpu" = ia64; then
11503         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11504         allow_undefined_flag_CXX="-z nodefs"
11505         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"
11506       else
11507         # Determine the default libpath from the value encoded in an empty executable.
11508         cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514
11515 int
11516 main ()
11517 {
11518
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525   (eval $ac_link) 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534   (eval $ac_try) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest$ac_exeext'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }; then
11544
11545 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11546 }'`
11547 # Check for a 64-bit object if we didn't find anything.
11548 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; }
11549 }'`; fi
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 fi
11555 rm -f conftest.err conftest.$ac_objext \
11556       conftest$ac_exeext conftest.$ac_ext
11557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11558
11559         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11560         # Warning - without using the other run time loading flags,
11561         # -berok will link without error, but may produce a broken library.
11562         no_undefined_flag_CXX=' ${wl}-bernotok'
11563         allow_undefined_flag_CXX=' ${wl}-berok'
11564         # Exported symbols can be pulled into shared objects from archives
11565         whole_archive_flag_spec_CXX='$convenience'
11566         archive_cmds_need_lc_CXX=yes
11567         # This is similar to how AIX traditionally builds its shared libraries.
11568         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'
11569       fi
11570     fi
11571     ;;
11572
11573   beos*)
11574     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11575       allow_undefined_flag_CXX=unsupported
11576       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11577       # support --undefined.  This deserves some investigation.  FIXME
11578       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11579     else
11580       ld_shlibs_CXX=no
11581     fi
11582     ;;
11583
11584   chorus*)
11585     case $cc_basename in
11586       *)
11587         # FIXME: insert proper C++ library support
11588         ld_shlibs_CXX=no
11589         ;;
11590     esac
11591     ;;
11592
11593   cygwin* | mingw* | pw32*)
11594     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11595     # as there is no search path for DLLs.
11596     hardcode_libdir_flag_spec_CXX='-L$libdir'
11597     allow_undefined_flag_CXX=unsupported
11598     always_export_symbols_CXX=no
11599     enable_shared_with_static_runtimes_CXX=yes
11600
11601     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11602       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'
11603       # If the export-symbols file already is a .def file (1st line
11604       # is EXPORTS), use it as is; otherwise, prepend...
11605       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11606         cp $export_symbols $output_objdir/$soname.def;
11607       else
11608         echo EXPORTS > $output_objdir/$soname.def;
11609         cat $export_symbols >> $output_objdir/$soname.def;
11610       fi~
11611       $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'
11612     else
11613       ld_shlibs_CXX=no
11614     fi
11615   ;;
11616       darwin* | rhapsody*)
11617         case $host_os in
11618         rhapsody* | darwin1.[012])
11619          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11620          ;;
11621        *) # Darwin 1.3 on
11622          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11623            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11624          else
11625            case ${MACOSX_DEPLOYMENT_TARGET} in
11626              10.[012])
11627                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11628                ;;
11629              10.*)
11630                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11631                ;;
11632            esac
11633          fi
11634          ;;
11635         esac
11636       archive_cmds_need_lc_CXX=no
11637       hardcode_direct_CXX=no
11638       hardcode_automatic_CXX=yes
11639       hardcode_shlibpath_var_CXX=unsupported
11640       whole_archive_flag_spec_CXX=''
11641       link_all_deplibs_CXX=yes
11642
11643     if test "$GXX" = yes ; then
11644       lt_int_apple_cc_single_mod=no
11645       output_verbose_link_cmd='echo'
11646       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11647        lt_int_apple_cc_single_mod=yes
11648       fi
11649       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11650        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11651       else
11652           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'
11653         fi
11654         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11655         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11656           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11657             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}'
11658           else
11659             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}'
11660           fi
11661             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}'
11662       else
11663       case $cc_basename in
11664         xlc*)
11665          output_verbose_link_cmd='echo'
11666           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'
11667           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11668           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11669           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}'
11670           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}'
11671           ;;
11672        *)
11673          ld_shlibs_CXX=no
11674           ;;
11675       esac
11676       fi
11677         ;;
11678
11679   dgux*)
11680     case $cc_basename in
11681       ec++*)
11682         # FIXME: insert proper C++ library support
11683         ld_shlibs_CXX=no
11684         ;;
11685       ghcx*)
11686         # Green Hills C++ Compiler
11687         # FIXME: insert proper C++ library support
11688         ld_shlibs_CXX=no
11689         ;;
11690       *)
11691         # FIXME: insert proper C++ library support
11692         ld_shlibs_CXX=no
11693         ;;
11694     esac
11695     ;;
11696   freebsd[12]*)
11697     # C++ shared libraries reported to be fairly broken before switch to ELF
11698     ld_shlibs_CXX=no
11699     ;;
11700   freebsd-elf*)
11701     archive_cmds_need_lc_CXX=no
11702     ;;
11703   freebsd* | dragonfly*)
11704     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11705     # conventions
11706     ld_shlibs_CXX=yes
11707     ;;
11708   gnu*)
11709     ;;
11710   hpux9*)
11711     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11712     hardcode_libdir_separator_CXX=:
11713     export_dynamic_flag_spec_CXX='${wl}-E'
11714     hardcode_direct_CXX=yes
11715     hardcode_minus_L_CXX=yes # Not in the search PATH,
11716                                 # but as the default
11717                                 # location of the library.
11718
11719     case $cc_basename in
11720     CC*)
11721       # FIXME: insert proper C++ library support
11722       ld_shlibs_CXX=no
11723       ;;
11724     aCC*)
11725       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'
11726       # Commands to make compiler produce verbose output that lists
11727       # what "hidden" libraries, object files and flags are used when
11728       # linking a shared library.
11729       #
11730       # There doesn't appear to be a way to prevent this compiler from
11731       # explicitly linking system object files so we need to strip them
11732       # from the output so that they don't get included in the library
11733       # dependencies.
11734       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'
11735       ;;
11736     *)
11737       if test "$GXX" = yes; then
11738         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'
11739       else
11740         # FIXME: insert proper C++ library support
11741         ld_shlibs_CXX=no
11742       fi
11743       ;;
11744     esac
11745     ;;
11746   hpux10*|hpux11*)
11747     if test $with_gnu_ld = no; then
11748       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11749       hardcode_libdir_separator_CXX=:
11750
11751       case $host_cpu in
11752       hppa*64*|ia64*)
11753         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11754         ;;
11755       *)
11756         export_dynamic_flag_spec_CXX='${wl}-E'
11757         ;;
11758       esac
11759     fi
11760     case $host_cpu in
11761     hppa*64*|ia64*)
11762       hardcode_direct_CXX=no
11763       hardcode_shlibpath_var_CXX=no
11764       ;;
11765     *)
11766       hardcode_direct_CXX=yes
11767       hardcode_minus_L_CXX=yes # Not in the search PATH,
11768                                               # but as the default
11769                                               # location of the library.
11770       ;;
11771     esac
11772
11773     case $cc_basename in
11774       CC*)
11775         # FIXME: insert proper C++ library support
11776         ld_shlibs_CXX=no
11777         ;;
11778       aCC*)
11779         case $host_cpu in
11780         hppa*64*)
11781           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782           ;;
11783         ia64*)
11784           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11785           ;;
11786         *)
11787           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11788           ;;
11789         esac
11790         # Commands to make compiler produce verbose output that lists
11791         # what "hidden" libraries, object files and flags are used when
11792         # linking a shared library.
11793         #
11794         # There doesn't appear to be a way to prevent this compiler from
11795         # explicitly linking system object files so we need to strip them
11796         # from the output so that they don't get included in the library
11797         # dependencies.
11798         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'
11799         ;;
11800       *)
11801         if test "$GXX" = yes; then
11802           if test $with_gnu_ld = no; then
11803             case $host_cpu in
11804             hppa*64*)
11805               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11806               ;;
11807             ia64*)
11808               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11809               ;;
11810             *)
11811               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'
11812               ;;
11813             esac
11814           fi
11815         else
11816           # FIXME: insert proper C++ library support
11817           ld_shlibs_CXX=no
11818         fi
11819         ;;
11820     esac
11821     ;;
11822   interix3*)
11823     hardcode_direct_CXX=no
11824     hardcode_shlibpath_var_CXX=no
11825     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11826     export_dynamic_flag_spec_CXX='${wl}-E'
11827     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11828     # Instead, shared libraries are loaded at an image base (0x10000000 by
11829     # default) and relocated if they conflict, which is a slow very memory
11830     # consuming and fragmenting process.  To avoid this, we pick a random,
11831     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11832     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11833     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'
11834     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'
11835     ;;
11836   irix5* | irix6*)
11837     case $cc_basename in
11838       CC*)
11839         # SGI C++
11840         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'
11841
11842         # Archives containing C++ object files must be created using
11843         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11844         # necessary to make sure instantiated templates are included
11845         # in the archive.
11846         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11847         ;;
11848       *)
11849         if test "$GXX" = yes; then
11850           if test "$with_gnu_ld" = no; then
11851             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'
11852           else
11853             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'
11854           fi
11855         fi
11856         link_all_deplibs_CXX=yes
11857         ;;
11858     esac
11859     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11860     hardcode_libdir_separator_CXX=:
11861     ;;
11862   linux* | k*bsd*-gnu)
11863     case $cc_basename in
11864       KCC*)
11865         # Kuck and Associates, Inc. (KAI) C++ Compiler
11866
11867         # KCC will only create a shared library if the output file
11868         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11869         # to its proper name (with version) after linking.
11870         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'
11871         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'
11872         # Commands to make compiler produce verbose output that lists
11873         # what "hidden" libraries, object files and flags are used when
11874         # linking a shared library.
11875         #
11876         # There doesn't appear to be a way to prevent this compiler from
11877         # explicitly linking system object files so we need to strip them
11878         # from the output so that they don't get included in the library
11879         # dependencies.
11880         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'
11881
11882         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11883         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11884
11885         # Archives containing C++ object files must be created using
11886         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11887         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11888         ;;
11889       icpc*)
11890         # Intel C++
11891         with_gnu_ld=yes
11892         # version 8.0 and above of icpc choke on multiply defined symbols
11893         # if we add $predep_objects and $postdep_objects, however 7.1 and
11894         # earlier do not add the objects themselves.
11895         case `$CC -V 2>&1` in
11896         *"Version 7."*)
11897           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11898           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'
11899           ;;
11900         *)  # Version 8.0 or newer
11901           tmp_idyn=
11902           case $host_cpu in
11903             ia64*) tmp_idyn=' -i_dynamic';;
11904           esac
11905           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11906           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'
11907           ;;
11908         esac
11909         archive_cmds_need_lc_CXX=no
11910         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11911         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11912         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11913         ;;
11914       pgCC*)
11915         # Portland Group C++ compiler
11916         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11917         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'
11918
11919         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11920         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11921         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'
11922         ;;
11923       cxx*)
11924         # Compaq C++
11925         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11926         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'
11927
11928         runpath_var=LD_RUN_PATH
11929         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11930         hardcode_libdir_separator_CXX=:
11931
11932         # Commands to make compiler produce verbose output that lists
11933         # what "hidden" libraries, object files and flags are used when
11934         # linking a shared library.
11935         #
11936         # There doesn't appear to be a way to prevent this compiler from
11937         # explicitly linking system object files so we need to strip them
11938         # from the output so that they don't get included in the library
11939         # dependencies.
11940         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'
11941         ;;
11942     esac
11943     ;;
11944   lynxos*)
11945     # FIXME: insert proper C++ library support
11946     ld_shlibs_CXX=no
11947     ;;
11948   m88k*)
11949     # FIXME: insert proper C++ library support
11950     ld_shlibs_CXX=no
11951     ;;
11952   mvs*)
11953     case $cc_basename in
11954       cxx*)
11955         # FIXME: insert proper C++ library support
11956         ld_shlibs_CXX=no
11957         ;;
11958       *)
11959         # FIXME: insert proper C++ library support
11960         ld_shlibs_CXX=no
11961         ;;
11962     esac
11963     ;;
11964   netbsd* | netbsdelf*-gnu)
11965     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11966       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11967       wlarc=
11968       hardcode_libdir_flag_spec_CXX='-R$libdir'
11969       hardcode_direct_CXX=yes
11970       hardcode_shlibpath_var_CXX=no
11971     fi
11972     # Workaround some broken pre-1.5 toolchains
11973     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11974     ;;
11975   openbsd2*)
11976     # C++ shared libraries are fairly broken
11977     ld_shlibs_CXX=no
11978     ;;
11979   openbsd*)
11980     hardcode_direct_CXX=yes
11981     hardcode_shlibpath_var_CXX=no
11982     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11983     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11985       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11986       export_dynamic_flag_spec_CXX='${wl}-E'
11987       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11988     fi
11989     output_verbose_link_cmd='echo'
11990     ;;
11991   osf3*)
11992     case $cc_basename in
11993       KCC*)
11994         # Kuck and Associates, Inc. (KAI) C++ Compiler
11995
11996         # KCC will only create a shared library if the output file
11997         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11998         # to its proper name (with version) after linking.
11999         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'
12000
12001         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002         hardcode_libdir_separator_CXX=:
12003
12004         # Archives containing C++ object files must be created using
12005         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12006         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12007
12008         ;;
12009       RCC*)
12010         # Rational C++ 2.4.1
12011         # FIXME: insert proper C++ library support
12012         ld_shlibs_CXX=no
12013         ;;
12014       cxx*)
12015         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016         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'
12017
12018         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019         hardcode_libdir_separator_CXX=:
12020
12021         # Commands to make compiler produce verbose output that lists
12022         # what "hidden" libraries, object files and flags are used when
12023         # linking a shared library.
12024         #
12025         # There doesn't appear to be a way to prevent this compiler from
12026         # explicitly linking system object files so we need to strip them
12027         # from the output so that they don't get included in the library
12028         # dependencies.
12029         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'
12030         ;;
12031       *)
12032         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12033           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12034           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'
12035
12036           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12037           hardcode_libdir_separator_CXX=:
12038
12039           # Commands to make compiler produce verbose output that lists
12040           # what "hidden" libraries, object files and flags are used when
12041           # linking a shared library.
12042           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12043
12044         else
12045           # FIXME: insert proper C++ library support
12046           ld_shlibs_CXX=no
12047         fi
12048         ;;
12049     esac
12050     ;;
12051   osf4* | osf5*)
12052     case $cc_basename in
12053       KCC*)
12054         # Kuck and Associates, Inc. (KAI) C++ Compiler
12055
12056         # KCC will only create a shared library if the output file
12057         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12058         # to its proper name (with version) after linking.
12059         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'
12060
12061         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12062         hardcode_libdir_separator_CXX=:
12063
12064         # Archives containing C++ object files must be created using
12065         # the KAI C++ compiler.
12066         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12067         ;;
12068       RCC*)
12069         # Rational C++ 2.4.1
12070         # FIXME: insert proper C++ library support
12071         ld_shlibs_CXX=no
12072         ;;
12073       cxx*)
12074         allow_undefined_flag_CXX=' -expect_unresolved \*'
12075         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'
12076         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12077           echo "-hidden">> $lib.exp~
12078           $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~
12079           $rm $lib.exp'
12080
12081         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12082         hardcode_libdir_separator_CXX=:
12083
12084         # Commands to make compiler produce verbose output that lists
12085         # what "hidden" libraries, object files and flags are used when
12086         # linking a shared library.
12087         #
12088         # There doesn't appear to be a way to prevent this compiler from
12089         # explicitly linking system object files so we need to strip them
12090         # from the output so that they don't get included in the library
12091         # dependencies.
12092         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'
12093         ;;
12094       *)
12095         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12096           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12097          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'
12098
12099           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12100           hardcode_libdir_separator_CXX=:
12101
12102           # Commands to make compiler produce verbose output that lists
12103           # what "hidden" libraries, object files and flags are used when
12104           # linking a shared library.
12105           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12106
12107         else
12108           # FIXME: insert proper C++ library support
12109           ld_shlibs_CXX=no
12110         fi
12111         ;;
12112     esac
12113     ;;
12114   psos*)
12115     # FIXME: insert proper C++ library support
12116     ld_shlibs_CXX=no
12117     ;;
12118   sunos4*)
12119     case $cc_basename in
12120       CC*)
12121         # Sun C++ 4.x
12122         # FIXME: insert proper C++ library support
12123         ld_shlibs_CXX=no
12124         ;;
12125       lcc*)
12126         # Lucid
12127         # FIXME: insert proper C++ library support
12128         ld_shlibs_CXX=no
12129         ;;
12130       *)
12131         # FIXME: insert proper C++ library support
12132         ld_shlibs_CXX=no
12133         ;;
12134     esac
12135     ;;
12136   solaris*)
12137     case $cc_basename in
12138       CC*)
12139         # Sun C++ 4.2, 5.x and Centerline C++
12140         archive_cmds_need_lc_CXX=yes
12141         no_undefined_flag_CXX=' -zdefs'
12142         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12143         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12144         $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'
12145
12146         hardcode_libdir_flag_spec_CXX='-R$libdir'
12147         hardcode_shlibpath_var_CXX=no
12148         case $host_os in
12149           solaris2.[0-5] | solaris2.[0-5].*) ;;
12150           *)
12151             # The C++ compiler is used as linker so we must use $wl
12152             # flag to pass the commands to the underlying system
12153             # linker. We must also pass each convience library through
12154             # to the system linker between allextract/defaultextract.
12155             # The C++ compiler will combine linker options so we
12156             # cannot just pass the convience library names through
12157             # without $wl.
12158             # Supported since Solaris 2.6 (maybe 2.5.1?)
12159             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'
12160             ;;
12161         esac
12162         link_all_deplibs_CXX=yes
12163
12164         output_verbose_link_cmd='echo'
12165
12166         # Archives containing C++ object files must be created using
12167         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12168         # necessary to make sure instantiated templates are included
12169         # in the archive.
12170         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12171         ;;
12172       gcx*)
12173         # Green Hills C++ Compiler
12174         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12175
12176         # The C++ compiler must be used to create the archive.
12177         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12178         ;;
12179       *)
12180         # GNU C++ compiler with Solaris linker
12181         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12182           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12183           if $CC --version | grep -v '^2\.7' > /dev/null; then
12184             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12185             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12186                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12187
12188             # Commands to make compiler produce verbose output that lists
12189             # what "hidden" libraries, object files and flags are used when
12190             # linking a shared library.
12191             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12192           else
12193             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12194             # platform.
12195             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12196             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12197                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12198
12199             # Commands to make compiler produce verbose output that lists
12200             # what "hidden" libraries, object files and flags are used when
12201             # linking a shared library.
12202             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12203           fi
12204
12205           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12206         fi
12207         ;;
12208     esac
12209     ;;
12210   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12211     no_undefined_flag_CXX='${wl}-z,text'
12212     archive_cmds_need_lc_CXX=no
12213     hardcode_shlibpath_var_CXX=no
12214     runpath_var='LD_RUN_PATH'
12215
12216     case $cc_basename in
12217       CC*)
12218         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12219         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12220         ;;
12221       *)
12222         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12223         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12224         ;;
12225     esac
12226     ;;
12227   sysv5* | sco3.2v5* | sco5v6*)
12228     # Note: We can NOT use -z defs as we might desire, because we do not
12229     # link with -lc, and that would cause any symbols used from libc to
12230     # always be unresolved, which means just about no library would
12231     # ever link correctly.  If we're not using GNU ld we use -z text
12232     # though, which does catch some bad symbols but isn't as heavy-handed
12233     # as -z defs.
12234     # For security reasons, it is highly recommended that you always
12235     # use absolute paths for naming shared libraries, and exclude the
12236     # DT_RUNPATH tag from executables and libraries.  But doing so
12237     # requires that you compile everything twice, which is a pain.
12238     # So that behaviour is only enabled if SCOABSPATH is set to a
12239     # non-empty value in the environment.  Most likely only useful for
12240     # creating official distributions of packages.
12241     # This is a hack until libtool officially supports absolute path
12242     # names for shared libraries.
12243     no_undefined_flag_CXX='${wl}-z,text'
12244     allow_undefined_flag_CXX='${wl}-z,nodefs'
12245     archive_cmds_need_lc_CXX=no
12246     hardcode_shlibpath_var_CXX=no
12247     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12248     hardcode_libdir_separator_CXX=':'
12249     link_all_deplibs_CXX=yes
12250     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12251     runpath_var='LD_RUN_PATH'
12252
12253     case $cc_basename in
12254       CC*)
12255         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12256         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12257         ;;
12258       *)
12259         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12260         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12261         ;;
12262     esac
12263     ;;
12264   tandem*)
12265     case $cc_basename in
12266       NCC*)
12267         # NonStop-UX NCC 3.20
12268         # FIXME: insert proper C++ library support
12269         ld_shlibs_CXX=no
12270         ;;
12271       *)
12272         # FIXME: insert proper C++ library support
12273         ld_shlibs_CXX=no
12274         ;;
12275     esac
12276     ;;
12277   vxworks*)
12278     # FIXME: insert proper C++ library support
12279     ld_shlibs_CXX=no
12280     ;;
12281   *)
12282     # FIXME: insert proper C++ library support
12283     ld_shlibs_CXX=no
12284     ;;
12285 esac
12286 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12287 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12288 test "$ld_shlibs_CXX" = no && can_build_shared=no
12289
12290 GCC_CXX="$GXX"
12291 LD_CXX="$LD"
12292
12293
12294 cat > conftest.$ac_ext <<EOF
12295 class Foo
12296 {
12297 public:
12298   Foo (void) { a = 0; }
12299 private:
12300   int a;
12301 };
12302 EOF
12303
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305   (eval $ac_compile) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; then
12309   # Parse the compiler output and extract the necessary
12310   # objects, libraries and library flags.
12311
12312   # Sentinel used to keep track of whether or not we are before
12313   # the conftest object file.
12314   pre_test_object_deps_done=no
12315
12316   # The `*' in the case matches for architectures that use `case' in
12317   # $output_verbose_cmd can trigger glob expansion during the loop
12318   # eval without this substitution.
12319   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12320
12321   for p in `eval $output_verbose_link_cmd`; do
12322     case $p in
12323
12324     -L* | -R* | -l*)
12325        # Some compilers place space between "-{L,R}" and the path.
12326        # Remove the space.
12327        if test $p = "-L" \
12328           || test $p = "-R"; then
12329          prev=$p
12330          continue
12331        else
12332          prev=
12333        fi
12334
12335        if test "$pre_test_object_deps_done" = no; then
12336          case $p in
12337          -L* | -R*)
12338            # Internal compiler library paths should come after those
12339            # provided the user.  The postdeps already come after the
12340            # user supplied libs so there is no need to process them.
12341            if test -z "$compiler_lib_search_path_CXX"; then
12342              compiler_lib_search_path_CXX="${prev}${p}"
12343            else
12344              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12345            fi
12346            ;;
12347          # The "-l" case would never come before the object being
12348          # linked, so don't bother handling this case.
12349          esac
12350        else
12351          if test -z "$postdeps_CXX"; then
12352            postdeps_CXX="${prev}${p}"
12353          else
12354            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12355          fi
12356        fi
12357        ;;
12358
12359     *.$objext)
12360        # This assumes that the test object file only shows up
12361        # once in the compiler output.
12362        if test "$p" = "conftest.$objext"; then
12363          pre_test_object_deps_done=yes
12364          continue
12365        fi
12366
12367        if test "$pre_test_object_deps_done" = no; then
12368          if test -z "$predep_objects_CXX"; then
12369            predep_objects_CXX="$p"
12370          else
12371            predep_objects_CXX="$predep_objects_CXX $p"
12372          fi
12373        else
12374          if test -z "$postdep_objects_CXX"; then
12375            postdep_objects_CXX="$p"
12376          else
12377            postdep_objects_CXX="$postdep_objects_CXX $p"
12378          fi
12379        fi
12380        ;;
12381
12382     *) ;; # Ignore the rest.
12383
12384     esac
12385   done
12386
12387   # Clean up.
12388   rm -f a.out a.exe
12389 else
12390   echo "libtool.m4: error: problem compiling CXX test program"
12391 fi
12392
12393 $rm -f confest.$objext
12394
12395 # PORTME: override above test on systems where it is broken
12396 case $host_os in
12397 interix3*)
12398   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12399   # hack all around it, let's just trust "g++" to DTRT.
12400   predep_objects_CXX=
12401   postdep_objects_CXX=
12402   postdeps_CXX=
12403   ;;
12404
12405 solaris*)
12406   case $cc_basename in
12407   CC*)
12408     # Adding this requires a known-good setup of shared libraries for
12409     # Sun compiler versions before 5.6, else PIC objects from an old
12410     # archive will be linked into the output, leading to subtle bugs.
12411     postdeps_CXX='-lCstd -lCrun'
12412     ;;
12413   esac
12414   ;;
12415 esac
12416
12417
12418 case " $postdeps_CXX " in
12419 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12420 esac
12421
12422 lt_prog_compiler_wl_CXX=
12423 lt_prog_compiler_pic_CXX=
12424 lt_prog_compiler_static_CXX=
12425
12426 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12427 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12428
12429   # C++ specific cases for pic, static, wl, etc.
12430   if test "$GXX" = yes; then
12431     lt_prog_compiler_wl_CXX='-Wl,'
12432     lt_prog_compiler_static_CXX='-static'
12433
12434     case $host_os in
12435     aix*)
12436       # All AIX code is PIC.
12437       if test "$host_cpu" = ia64; then
12438         # AIX 5 now supports IA64 processor
12439         lt_prog_compiler_static_CXX='-Bstatic'
12440       fi
12441       ;;
12442     amigaos*)
12443       # FIXME: we need at least 68020 code to build shared libraries, but
12444       # adding the `-m68020' flag to GCC prevents building anything better,
12445       # like `-m68040'.
12446       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12447       ;;
12448     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12449       # PIC is the default for these OSes.
12450       ;;
12451     mingw* | os2* | pw32*)
12452       # This hack is so that the source file can tell whether it is being
12453       # built for inclusion in a dll (and should export symbols for example).
12454       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12455       ;;
12456     darwin* | rhapsody*)
12457       # PIC is the default on this platform
12458       # Common symbols not allowed in MH_DYLIB files
12459       lt_prog_compiler_pic_CXX='-fno-common'
12460       ;;
12461     *djgpp*)
12462       # DJGPP does not support shared libraries at all
12463       lt_prog_compiler_pic_CXX=
12464       ;;
12465     interix3*)
12466       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12467       # Instead, we relocate shared libraries at runtime.
12468       ;;
12469     sysv4*MP*)
12470       if test -d /usr/nec; then
12471         lt_prog_compiler_pic_CXX=-Kconform_pic
12472       fi
12473       ;;
12474     hpux*)
12475       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12476       # not for PA HP-UX.
12477       case $host_cpu in
12478       hppa*64*|ia64*)
12479         ;;
12480       *)
12481         lt_prog_compiler_pic_CXX='-fPIC'
12482         ;;
12483       esac
12484       ;;
12485     *)
12486       lt_prog_compiler_pic_CXX='-fPIC'
12487       ;;
12488     esac
12489   else
12490     case $host_os in
12491       aix4* | aix5*)
12492         # All AIX code is PIC.
12493         if test "$host_cpu" = ia64; then
12494           # AIX 5 now supports IA64 processor
12495           lt_prog_compiler_static_CXX='-Bstatic'
12496         else
12497           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12498         fi
12499         ;;
12500       chorus*)
12501         case $cc_basename in
12502         cxch68*)
12503           # Green Hills C++ Compiler
12504           # _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"
12505           ;;
12506         esac
12507         ;;
12508        darwin*)
12509          # PIC is the default on this platform
12510          # Common symbols not allowed in MH_DYLIB files
12511          case $cc_basename in
12512            xlc*)
12513            lt_prog_compiler_pic_CXX='-qnocommon'
12514            lt_prog_compiler_wl_CXX='-Wl,'
12515            ;;
12516          esac
12517        ;;
12518       dgux*)
12519         case $cc_basename in
12520           ec++*)
12521             lt_prog_compiler_pic_CXX='-KPIC'
12522             ;;
12523           ghcx*)
12524             # Green Hills C++ Compiler
12525             lt_prog_compiler_pic_CXX='-pic'
12526             ;;
12527           *)
12528             ;;
12529         esac
12530         ;;
12531       freebsd* | dragonfly*)
12532         # FreeBSD uses GNU C++
12533         ;;
12534       hpux9* | hpux10* | hpux11*)
12535         case $cc_basename in
12536           CC*)
12537             lt_prog_compiler_wl_CXX='-Wl,'
12538             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12539             if test "$host_cpu" != ia64; then
12540               lt_prog_compiler_pic_CXX='+Z'
12541             fi
12542             ;;
12543           aCC*)
12544             lt_prog_compiler_wl_CXX='-Wl,'
12545             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12546             case $host_cpu in
12547             hppa*64*|ia64*)
12548               # +Z the default
12549               ;;
12550             *)
12551               lt_prog_compiler_pic_CXX='+Z'
12552               ;;
12553             esac
12554             ;;
12555           *)
12556             ;;
12557         esac
12558         ;;
12559       interix*)
12560         # This is c89, which is MS Visual C++ (no shared libs)
12561         # Anyone wants to do a port?
12562         ;;
12563       irix5* | irix6* | nonstopux*)
12564         case $cc_basename in
12565           CC*)
12566             lt_prog_compiler_wl_CXX='-Wl,'
12567             lt_prog_compiler_static_CXX='-non_shared'
12568             # CC pic flag -KPIC is the default.
12569             ;;
12570           *)
12571             ;;
12572         esac
12573         ;;
12574       linux* | k*bsd*-gnu)
12575         case $cc_basename in
12576           KCC*)
12577             # KAI C++ Compiler
12578             lt_prog_compiler_wl_CXX='--backend -Wl,'
12579             lt_prog_compiler_pic_CXX='-fPIC'
12580             ;;
12581           icpc* | ecpc*)
12582             # Intel C++
12583             lt_prog_compiler_wl_CXX='-Wl,'
12584             lt_prog_compiler_pic_CXX='-KPIC'
12585             lt_prog_compiler_static_CXX='-static'
12586             ;;
12587           pgCC*)
12588             # Portland Group C++ compiler.
12589             lt_prog_compiler_wl_CXX='-Wl,'
12590             lt_prog_compiler_pic_CXX='-fpic'
12591             lt_prog_compiler_static_CXX='-Bstatic'
12592             ;;
12593           cxx*)
12594             # Compaq C++
12595             # Make sure the PIC flag is empty.  It appears that all Alpha
12596             # Linux and Compaq Tru64 Unix objects are PIC.
12597             lt_prog_compiler_pic_CXX=
12598             lt_prog_compiler_static_CXX='-non_shared'
12599             ;;
12600           *)
12601             ;;
12602         esac
12603         ;;
12604       lynxos*)
12605         ;;
12606       m88k*)
12607         ;;
12608       mvs*)
12609         case $cc_basename in
12610           cxx*)
12611             lt_prog_compiler_pic_CXX='-W c,exportall'
12612             ;;
12613           *)
12614             ;;
12615         esac
12616         ;;
12617       netbsd* | netbsdelf*-gnu)
12618         ;;
12619       osf3* | osf4* | osf5*)
12620         case $cc_basename in
12621           KCC*)
12622             lt_prog_compiler_wl_CXX='--backend -Wl,'
12623             ;;
12624           RCC*)
12625             # Rational C++ 2.4.1
12626             lt_prog_compiler_pic_CXX='-pic'
12627             ;;
12628           cxx*)
12629             # Digital/Compaq C++
12630             lt_prog_compiler_wl_CXX='-Wl,'
12631             # Make sure the PIC flag is empty.  It appears that all Alpha
12632             # Linux and Compaq Tru64 Unix objects are PIC.
12633             lt_prog_compiler_pic_CXX=
12634             lt_prog_compiler_static_CXX='-non_shared'
12635             ;;
12636           *)
12637             ;;
12638         esac
12639         ;;
12640       psos*)
12641         ;;
12642       solaris*)
12643         case $cc_basename in
12644           CC*)
12645             # Sun C++ 4.2, 5.x and Centerline C++
12646             lt_prog_compiler_pic_CXX='-KPIC'
12647             lt_prog_compiler_static_CXX='-Bstatic'
12648             lt_prog_compiler_wl_CXX='-Qoption ld '
12649             ;;
12650           gcx*)
12651             # Green Hills C++ Compiler
12652             lt_prog_compiler_pic_CXX='-PIC'
12653             ;;
12654           *)
12655             ;;
12656         esac
12657         ;;
12658       sunos4*)
12659         case $cc_basename in
12660           CC*)
12661             # Sun C++ 4.x
12662             lt_prog_compiler_pic_CXX='-pic'
12663             lt_prog_compiler_static_CXX='-Bstatic'
12664             ;;
12665           lcc*)
12666             # Lucid
12667             lt_prog_compiler_pic_CXX='-pic'
12668             ;;
12669           *)
12670             ;;
12671         esac
12672         ;;
12673       tandem*)
12674         case $cc_basename in
12675           NCC*)
12676             # NonStop-UX NCC 3.20
12677             lt_prog_compiler_pic_CXX='-KPIC'
12678             ;;
12679           *)
12680             ;;
12681         esac
12682         ;;
12683       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12684         case $cc_basename in
12685           CC*)
12686             lt_prog_compiler_wl_CXX='-Wl,'
12687             lt_prog_compiler_pic_CXX='-KPIC'
12688             lt_prog_compiler_static_CXX='-Bstatic'
12689             ;;
12690         esac
12691         ;;
12692       vxworks*)
12693         ;;
12694       *)
12695         lt_prog_compiler_can_build_shared_CXX=no
12696         ;;
12697     esac
12698   fi
12699
12700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12701 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12702
12703 #
12704 # Check to make sure the PIC flag actually works.
12705 #
12706 if test -n "$lt_prog_compiler_pic_CXX"; then
12707
12708 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12709 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12710 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   lt_prog_compiler_pic_works_CXX=no
12714   ac_outfile=conftest.$ac_objext
12715    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12716    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12717    # Insert the option either (1) after the last *FLAGS variable, or
12718    # (2) before a word containing "conftest.", or (3) at the end.
12719    # Note that $ac_compile itself does not contain backslashes and begins
12720    # with a dollar sign (not a hyphen), so the echo should work correctly.
12721    # The option is referenced via a variable to avoid confusing sed.
12722    lt_compile=`echo "$ac_compile" | $SED \
12723    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12724    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12725    -e 's:$: $lt_compiler_flag:'`
12726    (eval echo "\"\$as_me:12726: $lt_compile\"" >&5)
12727    (eval "$lt_compile" 2>conftest.err)
12728    ac_status=$?
12729    cat conftest.err >&5
12730    echo "$as_me:12730: \$? = $ac_status" >&5
12731    if (exit $ac_status) && test -s "$ac_outfile"; then
12732      # The compiler can only warn and ignore the option if not recognized
12733      # So say no if there are warnings other than the usual output.
12734      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12735      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12736      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12737        lt_prog_compiler_pic_works_CXX=yes
12738      fi
12739    fi
12740    $rm conftest*
12741
12742 fi
12743 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12744 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12745
12746 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12747     case $lt_prog_compiler_pic_CXX in
12748      "" | " "*) ;;
12749      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12750      esac
12751 else
12752     lt_prog_compiler_pic_CXX=
12753      lt_prog_compiler_can_build_shared_CXX=no
12754 fi
12755
12756 fi
12757 case $host_os in
12758   # For platforms which do not support PIC, -DPIC is meaningless:
12759   *djgpp*)
12760     lt_prog_compiler_pic_CXX=
12761     ;;
12762   *)
12763     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12764     ;;
12765 esac
12766
12767 #
12768 # Check to make sure the static flag actually works.
12769 #
12770 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12771 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12773 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12774   echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776   lt_prog_compiler_static_works_CXX=no
12777    save_LDFLAGS="$LDFLAGS"
12778    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12779    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12780    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12781      # The linker can only warn and ignore the option if not recognized
12782      # So say no if there are warnings
12783      if test -s conftest.err; then
12784        # Append any errors to the config.log.
12785        cat conftest.err 1>&5
12786        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12787        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12788        if diff conftest.exp conftest.er2 >/dev/null; then
12789          lt_prog_compiler_static_works_CXX=yes
12790        fi
12791      else
12792        lt_prog_compiler_static_works_CXX=yes
12793      fi
12794    fi
12795    $rm conftest*
12796    LDFLAGS="$save_LDFLAGS"
12797
12798 fi
12799 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12800 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12801
12802 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12803     :
12804 else
12805     lt_prog_compiler_static_CXX=
12806 fi
12807
12808
12809 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12811 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   lt_cv_prog_compiler_c_o_CXX=no
12815    $rm -r conftest 2>/dev/null
12816    mkdir conftest
12817    cd conftest
12818    mkdir out
12819    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12820
12821    lt_compiler_flag="-o out/conftest2.$ac_objext"
12822    # Insert the option either (1) after the last *FLAGS variable, or
12823    # (2) before a word containing "conftest.", or (3) at the end.
12824    # Note that $ac_compile itself does not contain backslashes and begins
12825    # with a dollar sign (not a hyphen), so the echo should work correctly.
12826    lt_compile=`echo "$ac_compile" | $SED \
12827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12829    -e 's:$: $lt_compiler_flag:'`
12830    (eval echo "\"\$as_me:12830: $lt_compile\"" >&5)
12831    (eval "$lt_compile" 2>out/conftest.err)
12832    ac_status=$?
12833    cat out/conftest.err >&5
12834    echo "$as_me:12834: \$? = $ac_status" >&5
12835    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12836    then
12837      # The compiler can only warn and ignore the option if not recognized
12838      # So say no if there are warnings
12839      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12840      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12841      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12842        lt_cv_prog_compiler_c_o_CXX=yes
12843      fi
12844    fi
12845    chmod u+w . 2>&5
12846    $rm conftest*
12847    # SGI C++ compiler will create directory out/ii_files/ for
12848    # template instantiation
12849    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12850    $rm out/* && rmdir out
12851    cd ..
12852    rmdir conftest
12853    $rm conftest*
12854
12855 fi
12856 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12857 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12858
12859
12860 hard_links="nottested"
12861 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12862   # do not overwrite the value of need_locks provided by the user
12863   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12864 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12865   hard_links=yes
12866   $rm conftest*
12867   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12868   touch conftest.a
12869   ln conftest.a conftest.b 2>&5 || hard_links=no
12870   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12871   echo "$as_me:$LINENO: result: $hard_links" >&5
12872 echo "${ECHO_T}$hard_links" >&6
12873   if test "$hard_links" = no; then
12874     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12875 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12876     need_locks=warn
12877   fi
12878 else
12879   need_locks=no
12880 fi
12881
12882 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12883 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12884
12885   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12886   case $host_os in
12887   aix4* | aix5*)
12888     # If we're using GNU nm, then we don't want the "-C" option.
12889     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12890     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12891       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'
12892     else
12893       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'
12894     fi
12895     ;;
12896   pw32*)
12897     export_symbols_cmds_CXX="$ltdll_cmds"
12898   ;;
12899   cygwin* | mingw*)
12900     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'
12901   ;;
12902   linux* | k*bsd*-gnu)
12903     link_all_deplibs_CXX=no
12904   ;;
12905   *)
12906     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12907   ;;
12908   esac
12909
12910 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12911 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12912 test "$ld_shlibs_CXX" = no && can_build_shared=no
12913
12914 #
12915 # Do we need to explicitly link libc?
12916 #
12917 case "x$archive_cmds_need_lc_CXX" in
12918 x|xyes)
12919   # Assume -lc should be added
12920   archive_cmds_need_lc_CXX=yes
12921
12922   if test "$enable_shared" = yes && test "$GCC" = yes; then
12923     case $archive_cmds_CXX in
12924     *'~'*)
12925       # FIXME: we may have to deal with multi-command sequences.
12926       ;;
12927     '$CC '*)
12928       # Test whether the compiler implicitly links with -lc since on some
12929       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12930       # to ld, don't add -lc before -lgcc.
12931       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12933       $rm conftest*
12934       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12935
12936       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937   (eval $ac_compile) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } 2>conftest.err; then
12941         soname=conftest
12942         lib=conftest
12943         libobjs=conftest.$ac_objext
12944         deplibs=
12945         wl=$lt_prog_compiler_wl_CXX
12946         pic_flag=$lt_prog_compiler_pic_CXX
12947         compiler_flags=-v
12948         linker_flags=-v
12949         verstring=
12950         output_objdir=.
12951         libname=conftest
12952         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12953         allow_undefined_flag_CXX=
12954         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12955   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }
12959         then
12960           archive_cmds_need_lc_CXX=no
12961         else
12962           archive_cmds_need_lc_CXX=yes
12963         fi
12964         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12965       else
12966         cat conftest.err 1>&5
12967       fi
12968       $rm conftest*
12969       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12970 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12971       ;;
12972     esac
12973   fi
12974   ;;
12975 esac
12976
12977 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12978 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12979 library_names_spec=
12980 libname_spec='lib$name'
12981 soname_spec=
12982 shrext_cmds=".so"
12983 postinstall_cmds=
12984 postuninstall_cmds=
12985 finish_cmds=
12986 finish_eval=
12987 shlibpath_var=
12988 shlibpath_overrides_runpath=unknown
12989 version_type=none
12990 dynamic_linker="$host_os ld.so"
12991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12992 if test "$GCC" = yes; then
12993   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12994   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12995     # if the path contains ";" then we assume it to be the separator
12996     # otherwise default to the standard path separator (i.e. ":") - it is
12997     # assumed that no part of a normal pathname contains ";" but that should
12998     # okay in the real world where ";" in dirpaths is itself problematic.
12999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13000   else
13001     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13002   fi
13003 else
13004   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13005 fi
13006 need_lib_prefix=unknown
13007 hardcode_into_libs=no
13008
13009 # when you set need_version to no, make sure it does not cause -set_version
13010 # flags to be left without arguments
13011 need_version=unknown
13012
13013 case $host_os in
13014 aix3*)
13015   version_type=linux
13016   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13017   shlibpath_var=LIBPATH
13018
13019   # AIX 3 has no versioning support, so we append a major version to the name.
13020   soname_spec='${libname}${release}${shared_ext}$major'
13021   ;;
13022
13023 aix4* | aix5*)
13024   version_type=linux
13025   need_lib_prefix=no
13026   need_version=no
13027   hardcode_into_libs=yes
13028   if test "$host_cpu" = ia64; then
13029     # AIX 5 supports IA64
13030     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13031     shlibpath_var=LD_LIBRARY_PATH
13032   else
13033     # With GCC up to 2.95.x, collect2 would create an import file
13034     # for dependence libraries.  The import file would start with
13035     # the line `#! .'.  This would cause the generated library to
13036     # depend on `.', always an invalid library.  This was fixed in
13037     # development snapshots of GCC prior to 3.0.
13038     case $host_os in
13039       aix4 | aix4.[01] | aix4.[01].*)
13040       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13041            echo ' yes '
13042            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13043         :
13044       else
13045         can_build_shared=no
13046       fi
13047       ;;
13048     esac
13049     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13050     # soname into executable. Probably we can add versioning support to
13051     # collect2, so additional links can be useful in future.
13052     if test "$aix_use_runtimelinking" = yes; then
13053       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13054       # instead of lib<name>.a to let people know that these are not
13055       # typical AIX shared libraries.
13056       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13057     else
13058       # We preserve .a as extension for shared libraries through AIX4.2
13059       # and later when we are not doing run time linking.
13060       library_names_spec='${libname}${release}.a $libname.a'
13061       soname_spec='${libname}${release}${shared_ext}$major'
13062     fi
13063     shlibpath_var=LIBPATH
13064   fi
13065   ;;
13066
13067 amigaos*)
13068   library_names_spec='$libname.ixlibrary $libname.a'
13069   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13070   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'
13071   ;;
13072
13073 beos*)
13074   library_names_spec='${libname}${shared_ext}'
13075   dynamic_linker="$host_os ld.so"
13076   shlibpath_var=LIBRARY_PATH
13077   ;;
13078
13079 bsdi[45]*)
13080   version_type=linux
13081   need_version=no
13082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083   soname_spec='${libname}${release}${shared_ext}$major'
13084   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13085   shlibpath_var=LD_LIBRARY_PATH
13086   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13087   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13088   # the default ld.so.conf also contains /usr/contrib/lib and
13089   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13090   # libtool to hard-code these into programs
13091   ;;
13092
13093 cygwin* | mingw* | pw32*)
13094   version_type=windows
13095   shrext_cmds=".dll"
13096   need_version=no
13097   need_lib_prefix=no
13098
13099   case $GCC,$host_os in
13100   yes,cygwin* | yes,mingw* | yes,pw32*)
13101     library_names_spec='$libname.dll.a'
13102     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13103     postinstall_cmds='base_file=`basename \${file}`~
13104       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13105       dldir=$destdir/`dirname \$dlpath`~
13106       test -d \$dldir || mkdir -p \$dldir~
13107       $install_prog $dir/$dlname \$dldir/$dlname~
13108       chmod a+x \$dldir/$dlname'
13109     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13110       dlpath=$dir/\$dldll~
13111        $rm \$dlpath'
13112     shlibpath_overrides_runpath=yes
13113
13114     case $host_os in
13115     cygwin*)
13116       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13117       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13118       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13119       ;;
13120     mingw*)
13121       # MinGW DLLs use traditional 'lib' prefix
13122       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13123       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13124       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13125         # It is most probably a Windows format PATH printed by
13126         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13127         # path with ; separators, and with drive letters. We can handle the
13128         # drive letters (cygwin fileutils understands them), so leave them,
13129         # especially as we might pass files found there to a mingw objdump,
13130         # which wouldn't understand a cygwinified path. Ahh.
13131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13132       else
13133         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13134       fi
13135       ;;
13136     pw32*)
13137       # pw32 DLLs use 'pw' prefix rather than 'lib'
13138       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13139       ;;
13140     esac
13141     ;;
13142
13143   *)
13144     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13145     ;;
13146   esac
13147   dynamic_linker='Win32 ld.exe'
13148   # FIXME: first we should search . and the directory the executable is in
13149   shlibpath_var=PATH
13150   ;;
13151
13152 darwin* | rhapsody*)
13153   dynamic_linker="$host_os dyld"
13154   version_type=darwin
13155   need_lib_prefix=no
13156   need_version=no
13157   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13158   soname_spec='${libname}${release}${major}$shared_ext'
13159   shlibpath_overrides_runpath=yes
13160   shlibpath_var=DYLD_LIBRARY_PATH
13161   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13162   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13163   if test "$GCC" = yes; then
13164     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"`
13165   else
13166     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13167   fi
13168   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13169   ;;
13170
13171 dgux*)
13172   version_type=linux
13173   need_lib_prefix=no
13174   need_version=no
13175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13176   soname_spec='${libname}${release}${shared_ext}$major'
13177   shlibpath_var=LD_LIBRARY_PATH
13178   ;;
13179
13180 freebsd1*)
13181   dynamic_linker=no
13182   ;;
13183
13184 freebsd* | dragonfly*)
13185   # DragonFly does not have aout.  When/if they implement a new
13186   # versioning mechanism, adjust this.
13187   if test -x /usr/bin/objformat; then
13188     objformat=`/usr/bin/objformat`
13189   else
13190     case $host_os in
13191     freebsd[123]*) objformat=aout ;;
13192     *) objformat=elf ;;
13193     esac
13194   fi
13195   version_type=freebsd-$objformat
13196   case $version_type in
13197     freebsd-elf*)
13198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13199       need_version=no
13200       need_lib_prefix=no
13201       ;;
13202     freebsd-*)
13203       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13204       need_version=yes
13205       ;;
13206   esac
13207   shlibpath_var=LD_LIBRARY_PATH
13208   case $host_os in
13209   freebsd2*)
13210     shlibpath_overrides_runpath=yes
13211     ;;
13212   freebsd3.[01]* | freebsdelf3.[01]*)
13213     shlibpath_overrides_runpath=yes
13214     hardcode_into_libs=yes
13215     ;;
13216   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13217   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13218     shlibpath_overrides_runpath=no
13219     hardcode_into_libs=yes
13220     ;;
13221   freebsd*) # from 4.6 on
13222     shlibpath_overrides_runpath=yes
13223     hardcode_into_libs=yes
13224     ;;
13225   esac
13226   ;;
13227
13228 gnu*)
13229   version_type=linux
13230   need_lib_prefix=no
13231   need_version=no
13232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13233   soname_spec='${libname}${release}${shared_ext}$major'
13234   shlibpath_var=LD_LIBRARY_PATH
13235   hardcode_into_libs=yes
13236   ;;
13237
13238 hpux9* | hpux10* | hpux11*)
13239   # Give a soname corresponding to the major version so that dld.sl refuses to
13240   # link against other versions.
13241   version_type=sunos
13242   need_lib_prefix=no
13243   need_version=no
13244   case $host_cpu in
13245   ia64*)
13246     shrext_cmds='.so'
13247     hardcode_into_libs=yes
13248     dynamic_linker="$host_os dld.so"
13249     shlibpath_var=LD_LIBRARY_PATH
13250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13252     soname_spec='${libname}${release}${shared_ext}$major'
13253     if test "X$HPUX_IA64_MODE" = X32; then
13254       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13255     else
13256       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13257     fi
13258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13259     ;;
13260    hppa*64*)
13261      shrext_cmds='.sl'
13262      hardcode_into_libs=yes
13263      dynamic_linker="$host_os dld.sl"
13264      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13265      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13266      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267      soname_spec='${libname}${release}${shared_ext}$major'
13268      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13269      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13270      ;;
13271    *)
13272     shrext_cmds='.sl'
13273     dynamic_linker="$host_os dld.sl"
13274     shlibpath_var=SHLIB_PATH
13275     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13277     soname_spec='${libname}${release}${shared_ext}$major'
13278     ;;
13279   esac
13280   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13281   postinstall_cmds='chmod 555 $lib'
13282   ;;
13283
13284 interix3*)
13285   version_type=linux
13286   need_lib_prefix=no
13287   need_version=no
13288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13289   soname_spec='${libname}${release}${shared_ext}$major'
13290   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13291   shlibpath_var=LD_LIBRARY_PATH
13292   shlibpath_overrides_runpath=no
13293   hardcode_into_libs=yes
13294   ;;
13295
13296 irix5* | irix6* | nonstopux*)
13297   case $host_os in
13298     nonstopux*) version_type=nonstopux ;;
13299     *)
13300         if test "$lt_cv_prog_gnu_ld" = yes; then
13301                 version_type=linux
13302         else
13303                 version_type=irix
13304         fi ;;
13305   esac
13306   need_lib_prefix=no
13307   need_version=no
13308   soname_spec='${libname}${release}${shared_ext}$major'
13309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13310   case $host_os in
13311   irix5* | nonstopux*)
13312     libsuff= shlibsuff=
13313     ;;
13314   *)
13315     case $LD in # libtool.m4 will add one of these switches to LD
13316     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13317       libsuff= shlibsuff= libmagic=32-bit;;
13318     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13319       libsuff=32 shlibsuff=N32 libmagic=N32;;
13320     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13321       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13322     *) libsuff= shlibsuff= libmagic=never-match;;
13323     esac
13324     ;;
13325   esac
13326   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13327   shlibpath_overrides_runpath=no
13328   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13329   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13330   hardcode_into_libs=yes
13331   ;;
13332
13333 # No shared lib support for Linux oldld, aout, or coff.
13334 linux*oldld* | linux*aout* | linux*coff*)
13335   dynamic_linker=no
13336   ;;
13337
13338 # This must be Linux ELF.
13339 linux* | k*bsd*-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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13346   shlibpath_var=LD_LIBRARY_PATH
13347   shlibpath_overrides_runpath=no
13348   # This implies no fast_install, which is unacceptable.
13349   # Some rework will be needed to allow for fast_install
13350   # before this can be enabled.
13351   hardcode_into_libs=yes
13352
13353   # Append ld.so.conf contents to the search path
13354   if test -f /etc/ld.so.conf; then
13355     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' ' '`
13356     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13357   fi
13358
13359   # We used to test for /lib/ld.so.1 and disable shared libraries on
13360   # powerpc, because MkLinux only supported shared libraries with the
13361   # GNU dynamic linker.  Since this was broken with cross compilers,
13362   # most powerpc-linux boxes support dynamic linking these days and
13363   # people can always --disable-shared, the test was removed, and we
13364   # assume the GNU/Linux dynamic linker is in use.
13365   dynamic_linker='GNU/Linux ld.so'
13366   ;;
13367
13368 netbsdelf*-gnu)
13369   version_type=linux
13370   need_lib_prefix=no
13371   need_version=no
13372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13373   soname_spec='${libname}${release}${shared_ext}$major'
13374   shlibpath_var=LD_LIBRARY_PATH
13375   shlibpath_overrides_runpath=no
13376   hardcode_into_libs=yes
13377   dynamic_linker='NetBSD ld.elf_so'
13378   ;;
13379
13380 netbsd*)
13381   version_type=sunos
13382   need_lib_prefix=no
13383   need_version=no
13384   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13386     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13387     dynamic_linker='NetBSD (a.out) ld.so'
13388   else
13389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13390     soname_spec='${libname}${release}${shared_ext}$major'
13391     dynamic_linker='NetBSD ld.elf_so'
13392   fi
13393   shlibpath_var=LD_LIBRARY_PATH
13394   shlibpath_overrides_runpath=yes
13395   hardcode_into_libs=yes
13396   ;;
13397
13398 newsos6)
13399   version_type=linux
13400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401   shlibpath_var=LD_LIBRARY_PATH
13402   shlibpath_overrides_runpath=yes
13403   ;;
13404
13405 nto-qnx*)
13406   version_type=linux
13407   need_lib_prefix=no
13408   need_version=no
13409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410   soname_spec='${libname}${release}${shared_ext}$major'
13411   shlibpath_var=LD_LIBRARY_PATH
13412   shlibpath_overrides_runpath=yes
13413   ;;
13414
13415 openbsd*)
13416   version_type=sunos
13417   sys_lib_dlsearch_path_spec="/usr/lib"
13418   need_lib_prefix=no
13419   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13420   case $host_os in
13421     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13422     *)                         need_version=no  ;;
13423   esac
13424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13425   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13426   shlibpath_var=LD_LIBRARY_PATH
13427   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13428     case $host_os in
13429       openbsd2.[89] | openbsd2.[89].*)
13430         shlibpath_overrides_runpath=no
13431         ;;
13432       *)
13433         shlibpath_overrides_runpath=yes
13434         ;;
13435       esac
13436   else
13437     shlibpath_overrides_runpath=yes
13438   fi
13439   ;;
13440
13441 os2*)
13442   libname_spec='$name'
13443   shrext_cmds=".dll"
13444   need_lib_prefix=no
13445   library_names_spec='$libname${shared_ext} $libname.a'
13446   dynamic_linker='OS/2 ld.exe'
13447   shlibpath_var=LIBPATH
13448   ;;
13449
13450 osf3* | osf4* | osf5*)
13451   version_type=osf
13452   need_lib_prefix=no
13453   need_version=no
13454   soname_spec='${libname}${release}${shared_ext}$major'
13455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456   shlibpath_var=LD_LIBRARY_PATH
13457   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13458   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13459   ;;
13460
13461 solaris*)
13462   version_type=linux
13463   need_lib_prefix=no
13464   need_version=no
13465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466   soname_spec='${libname}${release}${shared_ext}$major'
13467   shlibpath_var=LD_LIBRARY_PATH
13468   shlibpath_overrides_runpath=yes
13469   hardcode_into_libs=yes
13470   # ldd complains unless libraries are executable
13471   postinstall_cmds='chmod +x $lib'
13472   ;;
13473
13474 sunos4*)
13475   version_type=sunos
13476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13477   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13478   shlibpath_var=LD_LIBRARY_PATH
13479   shlibpath_overrides_runpath=yes
13480   if test "$with_gnu_ld" = yes; then
13481     need_lib_prefix=no
13482   fi
13483   need_version=yes
13484   ;;
13485
13486 sysv4 | sysv4.3*)
13487   version_type=linux
13488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13489   soname_spec='${libname}${release}${shared_ext}$major'
13490   shlibpath_var=LD_LIBRARY_PATH
13491   case $host_vendor in
13492     sni)
13493       shlibpath_overrides_runpath=no
13494       need_lib_prefix=no
13495       export_dynamic_flag_spec='${wl}-Blargedynsym'
13496       runpath_var=LD_RUN_PATH
13497       ;;
13498     siemens)
13499       need_lib_prefix=no
13500       ;;
13501     motorola)
13502       need_lib_prefix=no
13503       need_version=no
13504       shlibpath_overrides_runpath=no
13505       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13506       ;;
13507   esac
13508   ;;
13509
13510 sysv4*MP*)
13511   if test -d /usr/nec ;then
13512     version_type=linux
13513     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13514     soname_spec='$libname${shared_ext}.$major'
13515     shlibpath_var=LD_LIBRARY_PATH
13516   fi
13517   ;;
13518
13519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13520   version_type=freebsd-elf
13521   need_lib_prefix=no
13522   need_version=no
13523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13524   soname_spec='${libname}${release}${shared_ext}$major'
13525   shlibpath_var=LD_LIBRARY_PATH
13526   hardcode_into_libs=yes
13527   if test "$with_gnu_ld" = yes; then
13528     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13529     shlibpath_overrides_runpath=no
13530   else
13531     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13532     shlibpath_overrides_runpath=yes
13533     case $host_os in
13534       sco3.2v5*)
13535         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13536         ;;
13537     esac
13538   fi
13539   sys_lib_dlsearch_path_spec='/usr/lib'
13540   ;;
13541
13542 uts4*)
13543   version_type=linux
13544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545   soname_spec='${libname}${release}${shared_ext}$major'
13546   shlibpath_var=LD_LIBRARY_PATH
13547   ;;
13548
13549 *)
13550   dynamic_linker=no
13551   ;;
13552 esac
13553 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13554 echo "${ECHO_T}$dynamic_linker" >&6
13555 test "$dynamic_linker" = no && can_build_shared=no
13556
13557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13558 if test "$GCC" = yes; then
13559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13560 fi
13561
13562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13564 hardcode_action_CXX=
13565 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13566    test -n "$runpath_var_CXX" || \
13567    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13568
13569   # We can hardcode non-existant directories.
13570   if test "$hardcode_direct_CXX" != no &&
13571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13572      # have to relink, otherwise we might link with an installed library
13573      # when we should be linking with a yet-to-be-installed one
13574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13575      test "$hardcode_minus_L_CXX" != no; then
13576     # Linking always hardcodes the temporary library directory.
13577     hardcode_action_CXX=relink
13578   else
13579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13580     hardcode_action_CXX=immediate
13581   fi
13582 else
13583   # We cannot hardcode anything, or else we can only hardcode existing
13584   # directories.
13585   hardcode_action_CXX=unsupported
13586 fi
13587 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13588 echo "${ECHO_T}$hardcode_action_CXX" >&6
13589
13590 if test "$hardcode_action_CXX" = relink; then
13591   # Fast installation is not supported
13592   enable_fast_install=no
13593 elif test "$shlibpath_overrides_runpath" = yes ||
13594      test "$enable_shared" = no; then
13595   # Fast installation is not necessary
13596   enable_fast_install=needless
13597 fi
13598
13599
13600 # The else clause should only fire when bootstrapping the
13601 # libtool distribution, otherwise you forgot to ship ltmain.sh
13602 # with your package, and you will get complaints that there are
13603 # no rules to generate ltmain.sh.
13604 if test -f "$ltmain"; then
13605   # See if we are running on zsh, and set the options which allow our commands through
13606   # without removal of \ escapes.
13607   if test -n "${ZSH_VERSION+set}" ; then
13608     setopt NO_GLOB_SUBST
13609   fi
13610   # Now quote all the things that may contain metacharacters while being
13611   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13612   # variables and quote the copies for generation of the libtool script.
13613   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13614     SED SHELL STRIP \
13615     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13616     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13617     deplibs_check_method reload_flag reload_cmds need_locks \
13618     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13619     lt_cv_sys_global_symbol_to_c_name_address \
13620     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13621     old_postinstall_cmds old_postuninstall_cmds \
13622     compiler_CXX \
13623     CC_CXX \
13624     LD_CXX \
13625     lt_prog_compiler_wl_CXX \
13626     lt_prog_compiler_pic_CXX \
13627     lt_prog_compiler_static_CXX \
13628     lt_prog_compiler_no_builtin_flag_CXX \
13629     export_dynamic_flag_spec_CXX \
13630     thread_safe_flag_spec_CXX \
13631     whole_archive_flag_spec_CXX \
13632     enable_shared_with_static_runtimes_CXX \
13633     old_archive_cmds_CXX \
13634     old_archive_from_new_cmds_CXX \
13635     predep_objects_CXX \
13636     postdep_objects_CXX \
13637     predeps_CXX \
13638     postdeps_CXX \
13639     compiler_lib_search_path_CXX \
13640     archive_cmds_CXX \
13641     archive_expsym_cmds_CXX \
13642     postinstall_cmds_CXX \
13643     postuninstall_cmds_CXX \
13644     old_archive_from_expsyms_cmds_CXX \
13645     allow_undefined_flag_CXX \
13646     no_undefined_flag_CXX \
13647     export_symbols_cmds_CXX \
13648     hardcode_libdir_flag_spec_CXX \
13649     hardcode_libdir_flag_spec_ld_CXX \
13650     hardcode_libdir_separator_CXX \
13651     hardcode_automatic_CXX \
13652     module_cmds_CXX \
13653     module_expsym_cmds_CXX \
13654     lt_cv_prog_compiler_c_o_CXX \
13655     exclude_expsyms_CXX \
13656     include_expsyms_CXX; do
13657
13658     case $var in
13659     old_archive_cmds_CXX | \
13660     old_archive_from_new_cmds_CXX | \
13661     archive_cmds_CXX | \
13662     archive_expsym_cmds_CXX | \
13663     module_cmds_CXX | \
13664     module_expsym_cmds_CXX | \
13665     old_archive_from_expsyms_cmds_CXX | \
13666     export_symbols_cmds_CXX | \
13667     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13668     postinstall_cmds | postuninstall_cmds | \
13669     old_postinstall_cmds | old_postuninstall_cmds | \
13670     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13671       # Double-quote double-evaled strings.
13672       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13673       ;;
13674     *)
13675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13676       ;;
13677     esac
13678   done
13679
13680   case $lt_echo in
13681   *'\$0 --fallback-echo"')
13682     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13683     ;;
13684   esac
13685
13686 cfgfile="$ofile"
13687
13688   cat <<__EOF__ >> "$cfgfile"
13689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13690
13691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13692
13693 # Shell to use when invoking shell scripts.
13694 SHELL=$lt_SHELL
13695
13696 # Whether or not to build shared libraries.
13697 build_libtool_libs=$enable_shared
13698
13699 # Whether or not to build static libraries.
13700 build_old_libs=$enable_static
13701
13702 # Whether or not to add -lc for building shared libraries.
13703 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13704
13705 # Whether or not to disallow shared libs when runtime libs are static
13706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13707
13708 # Whether or not to optimize for fast installation.
13709 fast_install=$enable_fast_install
13710
13711 # The host system.
13712 host_alias=$host_alias
13713 host=$host
13714 host_os=$host_os
13715
13716 # The build system.
13717 build_alias=$build_alias
13718 build=$build
13719 build_os=$build_os
13720
13721 # An echo program that does not interpret backslashes.
13722 echo=$lt_echo
13723
13724 # The archiver.
13725 AR=$lt_AR
13726 AR_FLAGS=$lt_AR_FLAGS
13727
13728 # A C compiler.
13729 LTCC=$lt_LTCC
13730
13731 # LTCC compiler flags.
13732 LTCFLAGS=$lt_LTCFLAGS
13733
13734 # A language-specific compiler.
13735 CC=$lt_compiler_CXX
13736
13737 # Is the compiler the GNU C compiler?
13738 with_gcc=$GCC_CXX
13739
13740 # An ERE matcher.
13741 EGREP=$lt_EGREP
13742
13743 # The linker used to build libraries.
13744 LD=$lt_LD_CXX
13745
13746 # Whether we need hard or soft links.
13747 LN_S=$lt_LN_S
13748
13749 # A BSD-compatible nm program.
13750 NM=$lt_NM
13751
13752 # A symbol stripping program
13753 STRIP=$lt_STRIP
13754
13755 # Used to examine libraries when file_magic_cmd begins "file"
13756 MAGIC_CMD=$MAGIC_CMD
13757
13758 # Used on cygwin: DLL creation program.
13759 DLLTOOL="$DLLTOOL"
13760
13761 # Used on cygwin: object dumper.
13762 OBJDUMP="$OBJDUMP"
13763
13764 # Used on cygwin: assembler.
13765 AS="$AS"
13766
13767 # The name of the directory that contains temporary libtool files.
13768 objdir=$objdir
13769
13770 # How to create reloadable object files.
13771 reload_flag=$lt_reload_flag
13772 reload_cmds=$lt_reload_cmds
13773
13774 # How to pass a linker flag through the compiler.
13775 wl=$lt_lt_prog_compiler_wl_CXX
13776
13777 # Object file suffix (normally "o").
13778 objext="$ac_objext"
13779
13780 # Old archive suffix (normally "a").
13781 libext="$libext"
13782
13783 # Shared library suffix (normally ".so").
13784 shrext_cmds='$shrext_cmds'
13785
13786 # Executable file suffix (normally "").
13787 exeext="$exeext"
13788
13789 # Additional compiler flags for building library objects.
13790 pic_flag=$lt_lt_prog_compiler_pic_CXX
13791 pic_mode=$pic_mode
13792
13793 # What is the maximum length of a command?
13794 max_cmd_len=$lt_cv_sys_max_cmd_len
13795
13796 # Does compiler simultaneously support -c and -o options?
13797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13798
13799 # Must we lock files when doing compilation?
13800 need_locks=$lt_need_locks
13801
13802 # Do we need the lib prefix for modules?
13803 need_lib_prefix=$need_lib_prefix
13804
13805 # Do we need a version for libraries?
13806 need_version=$need_version
13807
13808 # Whether dlopen is supported.
13809 dlopen_support=$enable_dlopen
13810
13811 # Whether dlopen of programs is supported.
13812 dlopen_self=$enable_dlopen_self
13813
13814 # Whether dlopen of statically linked programs is supported.
13815 dlopen_self_static=$enable_dlopen_self_static
13816
13817 # Compiler flag to prevent dynamic linking.
13818 link_static_flag=$lt_lt_prog_compiler_static_CXX
13819
13820 # Compiler flag to turn off builtin functions.
13821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13822
13823 # Compiler flag to allow reflexive dlopens.
13824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13825
13826 # Compiler flag to generate shared objects directly from archives.
13827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13828
13829 # Compiler flag to generate thread-safe objects.
13830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13831
13832 # Library versioning type.
13833 version_type=$version_type
13834
13835 # Format of library name prefix.
13836 libname_spec=$lt_libname_spec
13837
13838 # List of archive names.  First name is the real one, the rest are links.
13839 # The last name is the one that the linker finds with -lNAME.
13840 library_names_spec=$lt_library_names_spec
13841
13842 # The coded name of the library, if different from the real name.
13843 soname_spec=$lt_soname_spec
13844
13845 # Commands used to build and install an old-style archive.
13846 RANLIB=$lt_RANLIB
13847 old_archive_cmds=$lt_old_archive_cmds_CXX
13848 old_postinstall_cmds=$lt_old_postinstall_cmds
13849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13850
13851 # Create an old-style archive from a shared archive.
13852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13853
13854 # Create a temporary old-style archive to link instead of a shared archive.
13855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13856
13857 # Commands used to build and install a shared archive.
13858 archive_cmds=$lt_archive_cmds_CXX
13859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13860 postinstall_cmds=$lt_postinstall_cmds
13861 postuninstall_cmds=$lt_postuninstall_cmds
13862
13863 # Commands used to build a loadable module (assumed same as above if empty)
13864 module_cmds=$lt_module_cmds_CXX
13865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13866
13867 # Commands to strip libraries.
13868 old_striplib=$lt_old_striplib
13869 striplib=$lt_striplib
13870
13871 # Dependencies to place before the objects being linked to create a
13872 # shared library.
13873 predep_objects=$lt_predep_objects_CXX
13874
13875 # Dependencies to place after the objects being linked to create a
13876 # shared library.
13877 postdep_objects=$lt_postdep_objects_CXX
13878
13879 # Dependencies to place before the objects being linked to create a
13880 # shared library.
13881 predeps=$lt_predeps_CXX
13882
13883 # Dependencies to place after the objects being linked to create a
13884 # shared library.
13885 postdeps=$lt_postdeps_CXX
13886
13887 # The library search path used internally by the compiler when linking
13888 # a shared library.
13889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13890
13891 # Method to check whether dependent libraries are shared objects.
13892 deplibs_check_method=$lt_deplibs_check_method
13893
13894 # Command to use when deplibs_check_method == file_magic.
13895 file_magic_cmd=$lt_file_magic_cmd
13896
13897 # Flag that allows shared libraries with undefined symbols to be built.
13898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13899
13900 # Flag that forces no undefined symbols.
13901 no_undefined_flag=$lt_no_undefined_flag_CXX
13902
13903 # Commands used to finish a libtool library installation in a directory.
13904 finish_cmds=$lt_finish_cmds
13905
13906 # Same as above, but a single script fragment to be evaled but not shown.
13907 finish_eval=$lt_finish_eval
13908
13909 # Take the output of nm and produce a listing of raw symbols and C names.
13910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13911
13912 # Transform the output of nm in a proper C declaration
13913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13914
13915 # Transform the output of nm in a C name address pair
13916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13917
13918 # This is the shared library runtime path variable.
13919 runpath_var=$runpath_var
13920
13921 # This is the shared library path variable.
13922 shlibpath_var=$shlibpath_var
13923
13924 # Is shlibpath searched before the hard-coded library search path?
13925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13926
13927 # How to hardcode a shared library path into an executable.
13928 hardcode_action=$hardcode_action_CXX
13929
13930 # Whether we should hardcode library paths into libraries.
13931 hardcode_into_libs=$hardcode_into_libs
13932
13933 # Flag to hardcode \$libdir into a binary during linking.
13934 # This must work even if \$libdir does not exist.
13935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13936
13937 # If ld is used when linking, flag to hardcode \$libdir into
13938 # a binary during linking. This must work even if \$libdir does
13939 # not exist.
13940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13941
13942 # Whether we need a single -rpath flag with a separated argument.
13943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13944
13945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13946 # resulting binary.
13947 hardcode_direct=$hardcode_direct_CXX
13948
13949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13950 # resulting binary.
13951 hardcode_minus_L=$hardcode_minus_L_CXX
13952
13953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13954 # the resulting binary.
13955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13956
13957 # Set to yes if building a shared library automatically hardcodes DIR into the library
13958 # and all subsequent libraries and executables linked against it.
13959 hardcode_automatic=$hardcode_automatic_CXX
13960
13961 # Variables whose values should be saved in libtool wrapper scripts and
13962 # restored at relink time.
13963 variables_saved_for_relink="$variables_saved_for_relink"
13964
13965 # Whether libtool must link a program against all its dependency libraries.
13966 link_all_deplibs=$link_all_deplibs_CXX
13967
13968 # Compile-time system search path for libraries
13969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13970
13971 # Run-time system search path for libraries
13972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13973
13974 # Fix the shell variable \$srcfile for the compiler.
13975 fix_srcfile_path="$fix_srcfile_path_CXX"
13976
13977 # Set to yes if exported symbols are required.
13978 always_export_symbols=$always_export_symbols_CXX
13979
13980 # The commands to list exported symbols.
13981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13982
13983 # The commands to extract the exported symbol list from a shared archive.
13984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13985
13986 # Symbols that should not be listed in the preloaded symbols.
13987 exclude_expsyms=$lt_exclude_expsyms_CXX
13988
13989 # Symbols that must always be exported.
13990 include_expsyms=$lt_include_expsyms_CXX
13991
13992 # ### END LIBTOOL TAG CONFIG: $tagname
13993
13994 __EOF__
13995
13996
13997 else
13998   # If there is no Makefile yet, we rely on a make rule to execute
13999   # `config.status --recheck' to rerun these tests and create the
14000   # libtool script then.
14001   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14002   if test -f "$ltmain_in"; then
14003     test -f Makefile && make "$ltmain"
14004   fi
14005 fi
14006
14007
14008 ac_ext=c
14009 ac_cpp='$CPP $CPPFLAGS'
14010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013
14014 CC=$lt_save_CC
14015 LDCXX=$LD
14016 LD=$lt_save_LD
14017 GCC=$lt_save_GCC
14018 with_gnu_ldcxx=$with_gnu_ld
14019 with_gnu_ld=$lt_save_with_gnu_ld
14020 lt_cv_path_LDCXX=$lt_cv_path_LD
14021 lt_cv_path_LD=$lt_save_path_LD
14022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14024
14025         else
14026           tagname=""
14027         fi
14028         ;;
14029
14030       F77)
14031         if test -n "$F77" && test "X$F77" != "Xno"; then
14032
14033 ac_ext=f
14034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14037
14038
14039 archive_cmds_need_lc_F77=no
14040 allow_undefined_flag_F77=
14041 always_export_symbols_F77=no
14042 archive_expsym_cmds_F77=
14043 export_dynamic_flag_spec_F77=
14044 hardcode_direct_F77=no
14045 hardcode_libdir_flag_spec_F77=
14046 hardcode_libdir_flag_spec_ld_F77=
14047 hardcode_libdir_separator_F77=
14048 hardcode_minus_L_F77=no
14049 hardcode_automatic_F77=no
14050 module_cmds_F77=
14051 module_expsym_cmds_F77=
14052 link_all_deplibs_F77=unknown
14053 old_archive_cmds_F77=$old_archive_cmds
14054 no_undefined_flag_F77=
14055 whole_archive_flag_spec_F77=
14056 enable_shared_with_static_runtimes_F77=no
14057
14058 # Source file extension for f77 test sources.
14059 ac_ext=f
14060
14061 # Object file extension for compiled f77 test sources.
14062 objext=o
14063 objext_F77=$objext
14064
14065 # Code to be used in simple compile tests
14066 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14067
14068 # Code to be used in simple link tests
14069 lt_simple_link_test_code="      program t\n      end\n"
14070
14071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14072
14073 # If no C compiler was specified, use CC.
14074 LTCC=${LTCC-"$CC"}
14075
14076 # If no C compiler flags were specified, use CFLAGS.
14077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14078
14079 # Allow CC to be a program name with arguments.
14080 compiler=$CC
14081
14082
14083 # save warnings/boilerplate of simple test code
14084 ac_outfile=conftest.$ac_objext
14085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14087 _lt_compiler_boilerplate=`cat conftest.err`
14088 $rm conftest*
14089
14090 ac_outfile=conftest.$ac_objext
14091 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14092 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14093 _lt_linker_boilerplate=`cat conftest.err`
14094 $rm conftest*
14095
14096
14097 # Allow CC to be a program name with arguments.
14098 lt_save_CC="$CC"
14099 CC=${F77-"f77"}
14100 compiler=$CC
14101 compiler_F77=$CC
14102 for cc_temp in $compiler""; do
14103   case $cc_temp in
14104     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14106     \-*) ;;
14107     *) break;;
14108   esac
14109 done
14110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14111
14112
14113 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14114 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14115 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14116 echo "${ECHO_T}$can_build_shared" >&6
14117
14118 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14119 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14120 test "$can_build_shared" = "no" && enable_shared=no
14121
14122 # On AIX, shared libraries and static libraries use the same namespace, and
14123 # are all built from PIC.
14124 case $host_os in
14125 aix3*)
14126   test "$enable_shared" = yes && enable_static=no
14127   if test -n "$RANLIB"; then
14128     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14129     postinstall_cmds='$RANLIB $lib'
14130   fi
14131   ;;
14132 aix4* | aix5*)
14133   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14134     test "$enable_shared" = yes && enable_static=no
14135   fi
14136   ;;
14137 esac
14138 echo "$as_me:$LINENO: result: $enable_shared" >&5
14139 echo "${ECHO_T}$enable_shared" >&6
14140
14141 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14143 # Make sure either enable_shared or enable_static is yes.
14144 test "$enable_shared" = yes || enable_static=yes
14145 echo "$as_me:$LINENO: result: $enable_static" >&5
14146 echo "${ECHO_T}$enable_static" >&6
14147
14148 GCC_F77="$G77"
14149 LD_F77="$LD"
14150
14151 lt_prog_compiler_wl_F77=
14152 lt_prog_compiler_pic_F77=
14153 lt_prog_compiler_static_F77=
14154
14155 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14157
14158   if test "$GCC" = yes; then
14159     lt_prog_compiler_wl_F77='-Wl,'
14160     lt_prog_compiler_static_F77='-static'
14161
14162     case $host_os in
14163       aix*)
14164       # All AIX code is PIC.
14165       if test "$host_cpu" = ia64; then
14166         # AIX 5 now supports IA64 processor
14167         lt_prog_compiler_static_F77='-Bstatic'
14168       fi
14169       ;;
14170
14171     amigaos*)
14172       # FIXME: we need at least 68020 code to build shared libraries, but
14173       # adding the `-m68020' flag to GCC prevents building anything better,
14174       # like `-m68040'.
14175       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14176       ;;
14177
14178     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14179       # PIC is the default for these OSes.
14180       ;;
14181
14182     mingw* | pw32* | os2*)
14183       # This hack is so that the source file can tell whether it is being
14184       # built for inclusion in a dll (and should export symbols for example).
14185       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14186       ;;
14187
14188     darwin* | rhapsody*)
14189       # PIC is the default on this platform
14190       # Common symbols not allowed in MH_DYLIB files
14191       lt_prog_compiler_pic_F77='-fno-common'
14192       ;;
14193
14194     interix3*)
14195       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14196       # Instead, we relocate shared libraries at runtime.
14197       ;;
14198
14199     msdosdjgpp*)
14200       # Just because we use GCC doesn't mean we suddenly get shared libraries
14201       # on systems that don't support them.
14202       lt_prog_compiler_can_build_shared_F77=no
14203       enable_shared=no
14204       ;;
14205
14206     sysv4*MP*)
14207       if test -d /usr/nec; then
14208         lt_prog_compiler_pic_F77=-Kconform_pic
14209       fi
14210       ;;
14211
14212     hpux*)
14213       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14214       # not for PA HP-UX.
14215       case $host_cpu in
14216       hppa*64*|ia64*)
14217         # +Z the default
14218         ;;
14219       *)
14220         lt_prog_compiler_pic_F77='-fPIC'
14221         ;;
14222       esac
14223       ;;
14224
14225     *)
14226       lt_prog_compiler_pic_F77='-fPIC'
14227       ;;
14228     esac
14229   else
14230     # PORTME Check for flag to pass linker flags through the system compiler.
14231     case $host_os in
14232     aix*)
14233       lt_prog_compiler_wl_F77='-Wl,'
14234       if test "$host_cpu" = ia64; then
14235         # AIX 5 now supports IA64 processor
14236         lt_prog_compiler_static_F77='-Bstatic'
14237       else
14238         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14239       fi
14240       ;;
14241       darwin*)
14242         # PIC is the default on this platform
14243         # Common symbols not allowed in MH_DYLIB files
14244        case $cc_basename in
14245          xlc*)
14246          lt_prog_compiler_pic_F77='-qnocommon'
14247          lt_prog_compiler_wl_F77='-Wl,'
14248          ;;
14249        esac
14250        ;;
14251
14252     mingw* | pw32* | os2*)
14253       # This hack is so that the source file can tell whether it is being
14254       # built for inclusion in a dll (and should export symbols for example).
14255       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14256       ;;
14257
14258     hpux9* | hpux10* | hpux11*)
14259       lt_prog_compiler_wl_F77='-Wl,'
14260       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14261       # not for PA HP-UX.
14262       case $host_cpu in
14263       hppa*64*|ia64*)
14264         # +Z the default
14265         ;;
14266       *)
14267         lt_prog_compiler_pic_F77='+Z'
14268         ;;
14269       esac
14270       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14271       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14272       ;;
14273
14274     irix5* | irix6* | nonstopux*)
14275       lt_prog_compiler_wl_F77='-Wl,'
14276       # PIC (with -KPIC) is the default.
14277       lt_prog_compiler_static_F77='-non_shared'
14278       ;;
14279
14280     newsos6)
14281       lt_prog_compiler_pic_F77='-KPIC'
14282       lt_prog_compiler_static_F77='-Bstatic'
14283       ;;
14284
14285     linux* | k*bsd*-gnu)
14286       case $cc_basename in
14287       icc* | ecc*)
14288         lt_prog_compiler_wl_F77='-Wl,'
14289         lt_prog_compiler_pic_F77='-KPIC'
14290         lt_prog_compiler_static_F77='-static'
14291         ;;
14292       pgcc* | pgf77* | pgf90* | pgf95*)
14293         # Portland Group compilers (*not* the Pentium gcc compiler,
14294         # which looks to be a dead project)
14295         lt_prog_compiler_wl_F77='-Wl,'
14296         lt_prog_compiler_pic_F77='-fpic'
14297         lt_prog_compiler_static_F77='-Bstatic'
14298         ;;
14299       ccc*)
14300         lt_prog_compiler_wl_F77='-Wl,'
14301         # All Alpha code is PIC.
14302         lt_prog_compiler_static_F77='-non_shared'
14303         ;;
14304       esac
14305       ;;
14306
14307     osf3* | osf4* | osf5*)
14308       lt_prog_compiler_wl_F77='-Wl,'
14309       # All OSF/1 code is PIC.
14310       lt_prog_compiler_static_F77='-non_shared'
14311       ;;
14312
14313     solaris*)
14314       lt_prog_compiler_pic_F77='-KPIC'
14315       lt_prog_compiler_static_F77='-Bstatic'
14316       case $cc_basename in
14317       f77* | f90* | f95*)
14318         lt_prog_compiler_wl_F77='-Qoption ld ';;
14319       *)
14320         lt_prog_compiler_wl_F77='-Wl,';;
14321       esac
14322       ;;
14323
14324     sunos4*)
14325       lt_prog_compiler_wl_F77='-Qoption ld '
14326       lt_prog_compiler_pic_F77='-PIC'
14327       lt_prog_compiler_static_F77='-Bstatic'
14328       ;;
14329
14330     sysv4 | sysv4.2uw2* | sysv4.3*)
14331       lt_prog_compiler_wl_F77='-Wl,'
14332       lt_prog_compiler_pic_F77='-KPIC'
14333       lt_prog_compiler_static_F77='-Bstatic'
14334       ;;
14335
14336     sysv4*MP*)
14337       if test -d /usr/nec ;then
14338         lt_prog_compiler_pic_F77='-Kconform_pic'
14339         lt_prog_compiler_static_F77='-Bstatic'
14340       fi
14341       ;;
14342
14343     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14344       lt_prog_compiler_wl_F77='-Wl,'
14345       lt_prog_compiler_pic_F77='-KPIC'
14346       lt_prog_compiler_static_F77='-Bstatic'
14347       ;;
14348
14349     unicos*)
14350       lt_prog_compiler_wl_F77='-Wl,'
14351       lt_prog_compiler_can_build_shared_F77=no
14352       ;;
14353
14354     uts4*)
14355       lt_prog_compiler_pic_F77='-pic'
14356       lt_prog_compiler_static_F77='-Bstatic'
14357       ;;
14358
14359     *)
14360       lt_prog_compiler_can_build_shared_F77=no
14361       ;;
14362     esac
14363   fi
14364
14365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14366 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14367
14368 #
14369 # Check to make sure the PIC flag actually works.
14370 #
14371 if test -n "$lt_prog_compiler_pic_F77"; then
14372
14373 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14375 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   lt_prog_compiler_pic_works_F77=no
14379   ac_outfile=conftest.$ac_objext
14380    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14381    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14382    # Insert the option either (1) after the last *FLAGS variable, or
14383    # (2) before a word containing "conftest.", or (3) at the end.
14384    # Note that $ac_compile itself does not contain backslashes and begins
14385    # with a dollar sign (not a hyphen), so the echo should work correctly.
14386    # The option is referenced via a variable to avoid confusing sed.
14387    lt_compile=`echo "$ac_compile" | $SED \
14388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14390    -e 's:$: $lt_compiler_flag:'`
14391    (eval echo "\"\$as_me:14391: $lt_compile\"" >&5)
14392    (eval "$lt_compile" 2>conftest.err)
14393    ac_status=$?
14394    cat conftest.err >&5
14395    echo "$as_me:14395: \$? = $ac_status" >&5
14396    if (exit $ac_status) && test -s "$ac_outfile"; then
14397      # The compiler can only warn and ignore the option if not recognized
14398      # So say no if there are warnings other than the usual output.
14399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14402        lt_prog_compiler_pic_works_F77=yes
14403      fi
14404    fi
14405    $rm conftest*
14406
14407 fi
14408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14409 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14410
14411 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14412     case $lt_prog_compiler_pic_F77 in
14413      "" | " "*) ;;
14414      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14415      esac
14416 else
14417     lt_prog_compiler_pic_F77=
14418      lt_prog_compiler_can_build_shared_F77=no
14419 fi
14420
14421 fi
14422 case $host_os in
14423   # For platforms which do not support PIC, -DPIC is meaningless:
14424   *djgpp*)
14425     lt_prog_compiler_pic_F77=
14426     ;;
14427   *)
14428     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14429     ;;
14430 esac
14431
14432 #
14433 # Check to make sure the static flag actually works.
14434 #
14435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14436 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14438 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   lt_prog_compiler_static_works_F77=no
14442    save_LDFLAGS="$LDFLAGS"
14443    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14444    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14446      # The linker can only warn and ignore the option if not recognized
14447      # So say no if there are warnings
14448      if test -s conftest.err; then
14449        # Append any errors to the config.log.
14450        cat conftest.err 1>&5
14451        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14453        if diff conftest.exp conftest.er2 >/dev/null; then
14454          lt_prog_compiler_static_works_F77=yes
14455        fi
14456      else
14457        lt_prog_compiler_static_works_F77=yes
14458      fi
14459    fi
14460    $rm conftest*
14461    LDFLAGS="$save_LDFLAGS"
14462
14463 fi
14464 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14465 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14466
14467 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14468     :
14469 else
14470     lt_prog_compiler_static_F77=
14471 fi
14472
14473
14474 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14476 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   lt_cv_prog_compiler_c_o_F77=no
14480    $rm -r conftest 2>/dev/null
14481    mkdir conftest
14482    cd conftest
14483    mkdir out
14484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14485
14486    lt_compiler_flag="-o out/conftest2.$ac_objext"
14487    # Insert the option either (1) after the last *FLAGS variable, or
14488    # (2) before a word containing "conftest.", or (3) at the end.
14489    # Note that $ac_compile itself does not contain backslashes and begins
14490    # with a dollar sign (not a hyphen), so the echo should work correctly.
14491    lt_compile=`echo "$ac_compile" | $SED \
14492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494    -e 's:$: $lt_compiler_flag:'`
14495    (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
14496    (eval "$lt_compile" 2>out/conftest.err)
14497    ac_status=$?
14498    cat out/conftest.err >&5
14499    echo "$as_me:14499: \$? = $ac_status" >&5
14500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14501    then
14502      # The compiler can only warn and ignore the option if not recognized
14503      # So say no if there are warnings
14504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507        lt_cv_prog_compiler_c_o_F77=yes
14508      fi
14509    fi
14510    chmod u+w . 2>&5
14511    $rm conftest*
14512    # SGI C++ compiler will create directory out/ii_files/ for
14513    # template instantiation
14514    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14515    $rm out/* && rmdir out
14516    cd ..
14517    rmdir conftest
14518    $rm conftest*
14519
14520 fi
14521 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14523
14524
14525 hard_links="nottested"
14526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14527   # do not overwrite the value of need_locks provided by the user
14528   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14530   hard_links=yes
14531   $rm conftest*
14532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14533   touch conftest.a
14534   ln conftest.a conftest.b 2>&5 || hard_links=no
14535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14536   echo "$as_me:$LINENO: result: $hard_links" >&5
14537 echo "${ECHO_T}$hard_links" >&6
14538   if test "$hard_links" = no; then
14539     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14541     need_locks=warn
14542   fi
14543 else
14544   need_locks=no
14545 fi
14546
14547 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14549
14550   runpath_var=
14551   allow_undefined_flag_F77=
14552   enable_shared_with_static_runtimes_F77=no
14553   archive_cmds_F77=
14554   archive_expsym_cmds_F77=
14555   old_archive_From_new_cmds_F77=
14556   old_archive_from_expsyms_cmds_F77=
14557   export_dynamic_flag_spec_F77=
14558   whole_archive_flag_spec_F77=
14559   thread_safe_flag_spec_F77=
14560   hardcode_libdir_flag_spec_F77=
14561   hardcode_libdir_flag_spec_ld_F77=
14562   hardcode_libdir_separator_F77=
14563   hardcode_direct_F77=no
14564   hardcode_minus_L_F77=no
14565   hardcode_shlibpath_var_F77=unsupported
14566   link_all_deplibs_F77=unknown
14567   hardcode_automatic_F77=no
14568   module_cmds_F77=
14569   module_expsym_cmds_F77=
14570   always_export_symbols_F77=no
14571   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14572   # include_expsyms should be a list of space-separated symbols to be *always*
14573   # included in the symbol list
14574   include_expsyms_F77=
14575   # exclude_expsyms can be an extended regexp of symbols to exclude
14576   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14577   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14578   # as well as any symbol that contains `d'.
14579   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14580   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14581   # platforms (ab)use it in PIC code, but their linkers get confused if
14582   # the symbol is explicitly referenced.  Since portable code cannot
14583   # rely on this symbol name, it's probably fine to never include it in
14584   # preloaded symbol tables.
14585   extract_expsyms_cmds=
14586   # Just being paranoid about ensuring that cc_basename is set.
14587   for cc_temp in $compiler""; do
14588   case $cc_temp in
14589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14591     \-*) ;;
14592     *) break;;
14593   esac
14594 done
14595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14596
14597   case $host_os in
14598   cygwin* | mingw* | pw32*)
14599     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14600     # When not using gcc, we currently assume that we are using
14601     # Microsoft Visual C++.
14602     if test "$GCC" != yes; then
14603       with_gnu_ld=no
14604     fi
14605     ;;
14606   interix*)
14607     # we just hope/assume this is gcc and not c89 (= MSVC++)
14608     with_gnu_ld=yes
14609     ;;
14610   openbsd*)
14611     with_gnu_ld=no
14612     ;;
14613   esac
14614
14615   ld_shlibs_F77=yes
14616   if test "$with_gnu_ld" = yes; then
14617     # If archive_cmds runs LD, not CC, wlarc should be empty
14618     wlarc='${wl}'
14619
14620     # Set some defaults for GNU ld with shared library support. These
14621     # are reset later if shared libraries are not supported. Putting them
14622     # here allows them to be overridden if necessary.
14623     runpath_var=LD_RUN_PATH
14624     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14625     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14626     # ancient GNU ld didn't support --whole-archive et. al.
14627     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14628         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14629       else
14630         whole_archive_flag_spec_F77=
14631     fi
14632     supports_anon_versioning=no
14633     case `$LD -v 2>/dev/null` in
14634       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14635       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14636       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14637       *\ 2.11.*) ;; # other 2.11 versions
14638       *) supports_anon_versioning=yes ;;
14639     esac
14640
14641     # See if GNU ld supports shared libraries.
14642     case $host_os in
14643     aix3* | aix4* | aix5*)
14644       # On AIX/PPC, the GNU linker is very broken
14645       if test "$host_cpu" != ia64; then
14646         ld_shlibs_F77=no
14647         cat <<EOF 1>&2
14648
14649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14650 *** to be unable to reliably create shared libraries on AIX.
14651 *** Therefore, libtool is disabling shared libraries support.  If you
14652 *** really care for shared libraries, you may want to modify your PATH
14653 *** so that a non-GNU linker is found, and then restart.
14654
14655 EOF
14656       fi
14657       ;;
14658
14659     amigaos*)
14660       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)'
14661       hardcode_libdir_flag_spec_F77='-L$libdir'
14662       hardcode_minus_L_F77=yes
14663
14664       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14665       # that the semantics of dynamic libraries on AmigaOS, at least up
14666       # to version 4, is to share data among multiple programs linked
14667       # with the same dynamic library.  Since this doesn't match the
14668       # behavior of shared libraries on other platforms, we can't use
14669       # them.
14670       ld_shlibs_F77=no
14671       ;;
14672
14673     beos*)
14674       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14675         allow_undefined_flag_F77=unsupported
14676         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14677         # support --undefined.  This deserves some investigation.  FIXME
14678         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679       else
14680         ld_shlibs_F77=no
14681       fi
14682       ;;
14683
14684     cygwin* | mingw* | pw32*)
14685       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14686       # as there is no search path for DLLs.
14687       hardcode_libdir_flag_spec_F77='-L$libdir'
14688       allow_undefined_flag_F77=unsupported
14689       always_export_symbols_F77=no
14690       enable_shared_with_static_runtimes_F77=yes
14691       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14692
14693       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14694         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14695         # If the export-symbols file already is a .def file (1st line
14696         # is EXPORTS), use it as is; otherwise, prepend...
14697         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14698           cp $export_symbols $output_objdir/$soname.def;
14699         else
14700           echo EXPORTS > $output_objdir/$soname.def;
14701           cat $export_symbols >> $output_objdir/$soname.def;
14702         fi~
14703         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14704       else
14705         ld_shlibs_F77=no
14706       fi
14707       ;;
14708
14709     interix3*)
14710       hardcode_direct_F77=no
14711       hardcode_shlibpath_var_F77=no
14712       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14713       export_dynamic_flag_spec_F77='${wl}-E'
14714       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14715       # Instead, shared libraries are loaded at an image base (0x10000000 by
14716       # default) and relocated if they conflict, which is a slow very memory
14717       # consuming and fragmenting process.  To avoid this, we pick a random,
14718       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14719       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14720       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'
14721       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'
14722       ;;
14723
14724     linux* | k*bsd*-gnu)
14725       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14726         tmp_addflag=
14727         case $cc_basename,$host_cpu in
14728         pgcc*)                          # Portland Group C compiler
14729           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'
14730           tmp_addflag=' $pic_flag'
14731           ;;
14732         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14733           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'
14734           tmp_addflag=' $pic_flag -Mnomain' ;;
14735         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14736           tmp_addflag=' -i_dynamic' ;;
14737         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14738           tmp_addflag=' -i_dynamic -nofor_main' ;;
14739         ifc* | ifort*)                  # Intel Fortran compiler
14740           tmp_addflag=' -nofor_main' ;;
14741         esac
14742         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743
14744         if test $supports_anon_versioning = yes; then
14745           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14746   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14747   $echo "local: *; };" >> $output_objdir/$libname.ver~
14748           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14749         fi
14750         link_all_deplibs_F77=no
14751       else
14752         ld_shlibs_F77=no
14753       fi
14754       ;;
14755
14756     netbsd* | netbsdelf*-gnu)
14757       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14758         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14759         wlarc=
14760       else
14761         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14762         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14763       fi
14764       ;;
14765
14766     solaris*)
14767       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14768         ld_shlibs_F77=no
14769         cat <<EOF 1>&2
14770
14771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14772 *** create shared libraries on Solaris systems.  Therefore, libtool
14773 *** is disabling shared libraries support.  We urge you to upgrade GNU
14774 *** binutils to release 2.9.1 or newer.  Another option is to modify
14775 *** your PATH or compiler configuration so that the native linker is
14776 *** used, and then restart.
14777
14778 EOF
14779       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14780         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14781         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14782       else
14783         ld_shlibs_F77=no
14784       fi
14785       ;;
14786
14787     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14788       case `$LD -v 2>&1` in
14789         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14790         ld_shlibs_F77=no
14791         cat <<_LT_EOF 1>&2
14792
14793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14794 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14795 *** is disabling shared libraries support.  We urge you to upgrade GNU
14796 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14797 *** your PATH or compiler configuration so that the native linker is
14798 *** used, and then restart.
14799
14800 _LT_EOF
14801         ;;
14802         *)
14803           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14804             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14805             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14806             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14807           else
14808             ld_shlibs_F77=no
14809           fi
14810         ;;
14811       esac
14812       ;;
14813
14814     sunos4*)
14815       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816       wlarc=
14817       hardcode_direct_F77=yes
14818       hardcode_shlibpath_var_F77=no
14819       ;;
14820
14821     *)
14822       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14823         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14825       else
14826         ld_shlibs_F77=no
14827       fi
14828       ;;
14829     esac
14830
14831     if test "$ld_shlibs_F77" = no; then
14832       runpath_var=
14833       hardcode_libdir_flag_spec_F77=
14834       export_dynamic_flag_spec_F77=
14835       whole_archive_flag_spec_F77=
14836     fi
14837   else
14838     # PORTME fill in a description of your system's linker (not GNU ld)
14839     case $host_os in
14840     aix3*)
14841       allow_undefined_flag_F77=unsupported
14842       always_export_symbols_F77=yes
14843       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'
14844       # Note: this linker hardcodes the directories in LIBPATH if there
14845       # are no directories specified by -L.
14846       hardcode_minus_L_F77=yes
14847       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14848         # Neither direct hardcoding nor static linking is supported with a
14849         # broken collect2.
14850         hardcode_direct_F77=unsupported
14851       fi
14852       ;;
14853
14854     aix4* | aix5*)
14855       if test "$host_cpu" = ia64; then
14856         # On IA64, the linker does run time linking by default, so we don't
14857         # have to do anything special.
14858         aix_use_runtimelinking=no
14859         exp_sym_flag='-Bexport'
14860         no_entry_flag=""
14861       else
14862         # If we're using GNU nm, then we don't want the "-C" option.
14863         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14864         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14865           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'
14866         else
14867           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'
14868         fi
14869         aix_use_runtimelinking=no
14870
14871         # Test if we are trying to use run time linking or normal
14872         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14873         # need to do runtime linking.
14874         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14875           for ld_flag in $LDFLAGS; do
14876           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14877             aix_use_runtimelinking=yes
14878             break
14879           fi
14880           done
14881           ;;
14882         esac
14883
14884         exp_sym_flag='-bexport'
14885         no_entry_flag='-bnoentry'
14886       fi
14887
14888       # When large executables or shared objects are built, AIX ld can
14889       # have problems creating the table of contents.  If linking a library
14890       # or program results in "error TOC overflow" add -mminimal-toc to
14891       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14892       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14893
14894       archive_cmds_F77=''
14895       hardcode_direct_F77=yes
14896       hardcode_libdir_separator_F77=':'
14897       link_all_deplibs_F77=yes
14898
14899       if test "$GCC" = yes; then
14900         case $host_os in aix4.[012]|aix4.[012].*)
14901         # We only want to do this on AIX 4.2 and lower, the check
14902         # below for broken collect2 doesn't work under 4.3+
14903           collect2name=`${CC} -print-prog-name=collect2`
14904           if test -f "$collect2name" && \
14905            strings "$collect2name" | grep resolve_lib_name >/dev/null
14906           then
14907           # We have reworked collect2
14908           hardcode_direct_F77=yes
14909           else
14910           # We have old collect2
14911           hardcode_direct_F77=unsupported
14912           # It fails to find uninstalled libraries when the uninstalled
14913           # path is not listed in the libpath.  Setting hardcode_minus_L
14914           # to unsupported forces relinking
14915           hardcode_minus_L_F77=yes
14916           hardcode_libdir_flag_spec_F77='-L$libdir'
14917           hardcode_libdir_separator_F77=
14918           fi
14919           ;;
14920         esac
14921         shared_flag='-shared'
14922         if test "$aix_use_runtimelinking" = yes; then
14923           shared_flag="$shared_flag "'${wl}-G'
14924         fi
14925       else
14926         # not using gcc
14927         if test "$host_cpu" = ia64; then
14928         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14929         # chokes on -Wl,-G. The following line is correct:
14930           shared_flag='-G'
14931         else
14932           if test "$aix_use_runtimelinking" = yes; then
14933             shared_flag='${wl}-G'
14934           else
14935             shared_flag='${wl}-bM:SRE'
14936           fi
14937         fi
14938       fi
14939
14940       # It seems that -bexpall does not export symbols beginning with
14941       # underscore (_), so it is better to generate a list of symbols to export.
14942       always_export_symbols_F77=yes
14943       if test "$aix_use_runtimelinking" = yes; then
14944         # Warning - without using the other runtime loading flags (-brtl),
14945         # -berok will link without error, but may produce a broken library.
14946         allow_undefined_flag_F77='-berok'
14947        # Determine the default libpath from the value encoded in an empty executable.
14948        cat >conftest.$ac_ext <<_ACEOF
14949       program main
14950
14951       end
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955   (eval $ac_link) 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } &&
14962          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; } &&
14968          { ac_try='test -s conftest$ac_exeext'
14969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970   (eval $ac_try) 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; }; then
14974
14975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14976 }'`
14977 # Check for a 64-bit object if we didn't find anything.
14978 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; }
14979 }'`; fi
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 fi
14985 rm -f conftest.err conftest.$ac_objext \
14986       conftest$ac_exeext conftest.$ac_ext
14987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14988
14989        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14990         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"
14991        else
14992         if test "$host_cpu" = ia64; then
14993           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14994           allow_undefined_flag_F77="-z nodefs"
14995           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"
14996         else
14997          # Determine the default libpath from the value encoded in an empty executable.
14998          cat >conftest.$ac_ext <<_ACEOF
14999       program main
15000
15001       end
15002 _ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005   (eval $ac_link) 2>conftest.er1
15006   ac_status=$?
15007   grep -v '^ *+' conftest.er1 >conftest.err
15008   rm -f conftest.er1
15009   cat conftest.err >&5
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); } &&
15012          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
15013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014   (eval $ac_try) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; } &&
15018          { ac_try='test -s conftest$ac_exeext'
15019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020   (eval $ac_try) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); }; }; then
15024
15025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15026 }'`
15027 # Check for a 64-bit object if we didn't find anything.
15028 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; }
15029 }'`; fi
15030 else
15031   echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15033
15034 fi
15035 rm -f conftest.err conftest.$ac_objext \
15036       conftest$ac_exeext conftest.$ac_ext
15037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15038
15039          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15040           # Warning - without using the other run time loading flags,
15041           # -berok will link without error, but may produce a broken library.
15042           no_undefined_flag_F77=' ${wl}-bernotok'
15043           allow_undefined_flag_F77=' ${wl}-berok'
15044           # Exported symbols can be pulled into shared objects from archives
15045           whole_archive_flag_spec_F77='$convenience'
15046           archive_cmds_need_lc_F77=yes
15047           # This is similar to how AIX traditionally builds its shared libraries.
15048           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'
15049         fi
15050       fi
15051       ;;
15052
15053     amigaos*)
15054       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)'
15055       hardcode_libdir_flag_spec_F77='-L$libdir'
15056       hardcode_minus_L_F77=yes
15057       # see comment about different semantics on the GNU ld section
15058       ld_shlibs_F77=no
15059       ;;
15060
15061     bsdi[45]*)
15062       export_dynamic_flag_spec_F77=-rdynamic
15063       ;;
15064
15065     cygwin* | mingw* | pw32*)
15066       # When not using gcc, we currently assume that we are using
15067       # Microsoft Visual C++.
15068       # hardcode_libdir_flag_spec is actually meaningless, as there is
15069       # no search path for DLLs.
15070       hardcode_libdir_flag_spec_F77=' '
15071       allow_undefined_flag_F77=unsupported
15072       # Tell ltmain to make .lib files, not .a files.
15073       libext=lib
15074       # Tell ltmain to make .dll files, not .so files.
15075       shrext_cmds=".dll"
15076       # FIXME: Setting linknames here is a bad hack.
15077       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15078       # The linker will automatically build a .lib file if we build a DLL.
15079       old_archive_From_new_cmds_F77='true'
15080       # FIXME: Should let the user specify the lib program.
15081       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15082       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15083       enable_shared_with_static_runtimes_F77=yes
15084       ;;
15085
15086     darwin* | rhapsody*)
15087       case $host_os in
15088         rhapsody* | darwin1.[012])
15089          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15090          ;;
15091        *) # Darwin 1.3 on
15092          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15093            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15094          else
15095            case ${MACOSX_DEPLOYMENT_TARGET} in
15096              10.[012])
15097                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15098                ;;
15099              10.*)
15100                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15101                ;;
15102            esac
15103          fi
15104          ;;
15105       esac
15106       archive_cmds_need_lc_F77=no
15107       hardcode_direct_F77=no
15108       hardcode_automatic_F77=yes
15109       hardcode_shlibpath_var_F77=unsupported
15110       whole_archive_flag_spec_F77=''
15111       link_all_deplibs_F77=yes
15112     if test "$GCC" = yes ; then
15113         output_verbose_link_cmd='echo'
15114         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15115       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15116       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15117       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}'
15118       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}'
15119     else
15120       case $cc_basename in
15121         xlc*)
15122          output_verbose_link_cmd='echo'
15123          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15124          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15125           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15126          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}'
15127           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}'
15128           ;;
15129        *)
15130          ld_shlibs_F77=no
15131           ;;
15132       esac
15133     fi
15134       ;;
15135
15136     dgux*)
15137       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138       hardcode_libdir_flag_spec_F77='-L$libdir'
15139       hardcode_shlibpath_var_F77=no
15140       ;;
15141
15142     freebsd1*)
15143       ld_shlibs_F77=no
15144       ;;
15145
15146     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15147     # support.  Future versions do this automatically, but an explicit c++rt0.o
15148     # does not break anything, and helps significantly (at the cost of a little
15149     # extra space).
15150     freebsd2.2*)
15151       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15152       hardcode_libdir_flag_spec_F77='-R$libdir'
15153       hardcode_direct_F77=yes
15154       hardcode_shlibpath_var_F77=no
15155       ;;
15156
15157     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15158     freebsd2*)
15159       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15160       hardcode_direct_F77=yes
15161       hardcode_minus_L_F77=yes
15162       hardcode_shlibpath_var_F77=no
15163       ;;
15164
15165     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15166     freebsd* | dragonfly*)
15167       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15168       hardcode_libdir_flag_spec_F77='-R$libdir'
15169       hardcode_direct_F77=yes
15170       hardcode_shlibpath_var_F77=no
15171       ;;
15172
15173     hpux9*)
15174       if test "$GCC" = yes; then
15175         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'
15176       else
15177         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'
15178       fi
15179       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15180       hardcode_libdir_separator_F77=:
15181       hardcode_direct_F77=yes
15182
15183       # hardcode_minus_L: Not really in the search PATH,
15184       # but as the default location of the library.
15185       hardcode_minus_L_F77=yes
15186       export_dynamic_flag_spec_F77='${wl}-E'
15187       ;;
15188
15189     hpux10*)
15190       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15191         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15192       else
15193         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15194       fi
15195       if test "$with_gnu_ld" = no; then
15196         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15197         hardcode_libdir_separator_F77=:
15198
15199         hardcode_direct_F77=yes
15200         export_dynamic_flag_spec_F77='${wl}-E'
15201
15202         # hardcode_minus_L: Not really in the search PATH,
15203         # but as the default location of the library.
15204         hardcode_minus_L_F77=yes
15205       fi
15206       ;;
15207
15208     hpux11*)
15209       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15210         case $host_cpu in
15211         hppa*64*)
15212           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213           ;;
15214         ia64*)
15215           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15216           ;;
15217         *)
15218           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219           ;;
15220         esac
15221       else
15222         case $host_cpu in
15223         hppa*64*)
15224           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225           ;;
15226         ia64*)
15227           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15228           ;;
15229         *)
15230           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15231           ;;
15232         esac
15233       fi
15234       if test "$with_gnu_ld" = no; then
15235         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15236         hardcode_libdir_separator_F77=:
15237
15238         case $host_cpu in
15239         hppa*64*|ia64*)
15240           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15241           hardcode_direct_F77=no
15242           hardcode_shlibpath_var_F77=no
15243           ;;
15244         *)
15245           hardcode_direct_F77=yes
15246           export_dynamic_flag_spec_F77='${wl}-E'
15247
15248           # hardcode_minus_L: Not really in the search PATH,
15249           # but as the default location of the library.
15250           hardcode_minus_L_F77=yes
15251           ;;
15252         esac
15253       fi
15254       ;;
15255
15256     irix5* | irix6* | nonstopux*)
15257       if test "$GCC" = yes; then
15258         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'
15259       else
15260         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'
15261         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15262       fi
15263       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264       hardcode_libdir_separator_F77=:
15265       link_all_deplibs_F77=yes
15266       ;;
15267
15268     netbsd* | netbsdelf*-gnu)
15269       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15270         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15271       else
15272         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15273       fi
15274       hardcode_libdir_flag_spec_F77='-R$libdir'
15275       hardcode_direct_F77=yes
15276       hardcode_shlibpath_var_F77=no
15277       ;;
15278
15279     newsos6)
15280       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281       hardcode_direct_F77=yes
15282       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15283       hardcode_libdir_separator_F77=:
15284       hardcode_shlibpath_var_F77=no
15285       ;;
15286
15287     openbsd*)
15288       hardcode_direct_F77=yes
15289       hardcode_shlibpath_var_F77=no
15290       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15291         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15292         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15293         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15294         export_dynamic_flag_spec_F77='${wl}-E'
15295       else
15296        case $host_os in
15297          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15298            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15299            hardcode_libdir_flag_spec_F77='-R$libdir'
15300            ;;
15301          *)
15302            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15303            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15304            ;;
15305        esac
15306       fi
15307       ;;
15308
15309     os2*)
15310       hardcode_libdir_flag_spec_F77='-L$libdir'
15311       hardcode_minus_L_F77=yes
15312       allow_undefined_flag_F77=unsupported
15313       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'
15314       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15315       ;;
15316
15317     osf3*)
15318       if test "$GCC" = yes; then
15319         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15320         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'
15321       else
15322         allow_undefined_flag_F77=' -expect_unresolved \*'
15323         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'
15324       fi
15325       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326       hardcode_libdir_separator_F77=:
15327       ;;
15328
15329     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15330       if test "$GCC" = yes; then
15331         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15332         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'
15333         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15334       else
15335         allow_undefined_flag_F77=' -expect_unresolved \*'
15336         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'
15337         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~
15338         $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'
15339
15340         # Both c and cxx compiler support -rpath directly
15341         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15342       fi
15343       hardcode_libdir_separator_F77=:
15344       ;;
15345
15346     solaris*)
15347       no_undefined_flag_F77=' -z text'
15348       if test "$GCC" = yes; then
15349         wlarc='${wl}'
15350         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15351         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15352           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15353       else
15354         wlarc=''
15355         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15357         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15358       fi
15359       hardcode_libdir_flag_spec_F77='-R$libdir'
15360       hardcode_shlibpath_var_F77=no
15361       case $host_os in
15362       solaris2.[0-5] | solaris2.[0-5].*) ;;
15363       *)
15364         # The compiler driver will combine linker options so we
15365         # cannot just pass the convience library names through
15366         # without $wl, iff we do not link with $LD.
15367         # Luckily, gcc supports the same syntax we need for Sun Studio.
15368         # Supported since Solaris 2.6 (maybe 2.5.1?)
15369         case $wlarc in
15370         '')
15371           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15372         *)
15373           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' ;;
15374         esac ;;
15375       esac
15376       link_all_deplibs_F77=yes
15377       ;;
15378
15379     sunos4*)
15380       if test "x$host_vendor" = xsequent; then
15381         # Use $CC to link under sequent, because it throws in some extra .o
15382         # files that make .init and .fini sections work.
15383         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15384       else
15385         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15386       fi
15387       hardcode_libdir_flag_spec_F77='-L$libdir'
15388       hardcode_direct_F77=yes
15389       hardcode_minus_L_F77=yes
15390       hardcode_shlibpath_var_F77=no
15391       ;;
15392
15393     sysv4)
15394       case $host_vendor in
15395         sni)
15396           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15397           hardcode_direct_F77=yes # is this really true???
15398         ;;
15399         siemens)
15400           ## LD is ld it makes a PLAMLIB
15401           ## CC just makes a GrossModule.
15402           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15403           reload_cmds_F77='$CC -r -o $output$reload_objs'
15404           hardcode_direct_F77=no
15405         ;;
15406         motorola)
15407           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15408           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15409         ;;
15410       esac
15411       runpath_var='LD_RUN_PATH'
15412       hardcode_shlibpath_var_F77=no
15413       ;;
15414
15415     sysv4.3*)
15416       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417       hardcode_shlibpath_var_F77=no
15418       export_dynamic_flag_spec_F77='-Bexport'
15419       ;;
15420
15421     sysv4*MP*)
15422       if test -d /usr/nec; then
15423         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424         hardcode_shlibpath_var_F77=no
15425         runpath_var=LD_RUN_PATH
15426         hardcode_runpath_var=yes
15427         ld_shlibs_F77=yes
15428       fi
15429       ;;
15430
15431     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15432       no_undefined_flag_F77='${wl}-z,text'
15433       archive_cmds_need_lc_F77=no
15434       hardcode_shlibpath_var_F77=no
15435       runpath_var='LD_RUN_PATH'
15436
15437       if test "$GCC" = yes; then
15438         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15439         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15440       else
15441         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15442         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443       fi
15444       ;;
15445
15446     sysv5* | sco3.2v5* | sco5v6*)
15447       # Note: We can NOT use -z defs as we might desire, because we do not
15448       # link with -lc, and that would cause any symbols used from libc to
15449       # always be unresolved, which means just about no library would
15450       # ever link correctly.  If we're not using GNU ld we use -z text
15451       # though, which does catch some bad symbols but isn't as heavy-handed
15452       # as -z defs.
15453       no_undefined_flag_F77='${wl}-z,text'
15454       allow_undefined_flag_F77='${wl}-z,nodefs'
15455       archive_cmds_need_lc_F77=no
15456       hardcode_shlibpath_var_F77=no
15457       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15458       hardcode_libdir_separator_F77=':'
15459       link_all_deplibs_F77=yes
15460       export_dynamic_flag_spec_F77='${wl}-Bexport'
15461       runpath_var='LD_RUN_PATH'
15462
15463       if test "$GCC" = yes; then
15464         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15465         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466       else
15467         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15468         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15469       fi
15470       ;;
15471
15472     uts4*)
15473       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15474       hardcode_libdir_flag_spec_F77='-L$libdir'
15475       hardcode_shlibpath_var_F77=no
15476       ;;
15477
15478     *)
15479       ld_shlibs_F77=no
15480       ;;
15481     esac
15482   fi
15483
15484 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15485 echo "${ECHO_T}$ld_shlibs_F77" >&6
15486 test "$ld_shlibs_F77" = no && can_build_shared=no
15487
15488 #
15489 # Do we need to explicitly link libc?
15490 #
15491 case "x$archive_cmds_need_lc_F77" in
15492 x|xyes)
15493   # Assume -lc should be added
15494   archive_cmds_need_lc_F77=yes
15495
15496   if test "$enable_shared" = yes && test "$GCC" = yes; then
15497     case $archive_cmds_F77 in
15498     *'~'*)
15499       # FIXME: we may have to deal with multi-command sequences.
15500       ;;
15501     '$CC '*)
15502       # Test whether the compiler implicitly links with -lc since on some
15503       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15504       # to ld, don't add -lc before -lgcc.
15505       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15506 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15507       $rm conftest*
15508       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15509
15510       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15511   (eval $ac_compile) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } 2>conftest.err; then
15515         soname=conftest
15516         lib=conftest
15517         libobjs=conftest.$ac_objext
15518         deplibs=
15519         wl=$lt_prog_compiler_wl_F77
15520         pic_flag=$lt_prog_compiler_pic_F77
15521         compiler_flags=-v
15522         linker_flags=-v
15523         verstring=
15524         output_objdir=.
15525         libname=conftest
15526         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15527         allow_undefined_flag_F77=
15528         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15529   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }
15533         then
15534           archive_cmds_need_lc_F77=no
15535         else
15536           archive_cmds_need_lc_F77=yes
15537         fi
15538         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15539       else
15540         cat conftest.err 1>&5
15541       fi
15542       $rm conftest*
15543       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15544 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15545       ;;
15546     esac
15547   fi
15548   ;;
15549 esac
15550
15551 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15553 library_names_spec=
15554 libname_spec='lib$name'
15555 soname_spec=
15556 shrext_cmds=".so"
15557 postinstall_cmds=
15558 postuninstall_cmds=
15559 finish_cmds=
15560 finish_eval=
15561 shlibpath_var=
15562 shlibpath_overrides_runpath=unknown
15563 version_type=none
15564 dynamic_linker="$host_os ld.so"
15565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15566 if test "$GCC" = yes; then
15567   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15568   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15569     # if the path contains ";" then we assume it to be the separator
15570     # otherwise default to the standard path separator (i.e. ":") - it is
15571     # assumed that no part of a normal pathname contains ";" but that should
15572     # okay in the real world where ";" in dirpaths is itself problematic.
15573     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15574   else
15575     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15576   fi
15577 else
15578   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15579 fi
15580 need_lib_prefix=unknown
15581 hardcode_into_libs=no
15582
15583 # when you set need_version to no, make sure it does not cause -set_version
15584 # flags to be left without arguments
15585 need_version=unknown
15586
15587 case $host_os in
15588 aix3*)
15589   version_type=linux
15590   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15591   shlibpath_var=LIBPATH
15592
15593   # AIX 3 has no versioning support, so we append a major version to the name.
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   ;;
15596
15597 aix4* | aix5*)
15598   version_type=linux
15599   need_lib_prefix=no
15600   need_version=no
15601   hardcode_into_libs=yes
15602   if test "$host_cpu" = ia64; then
15603     # AIX 5 supports IA64
15604     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15605     shlibpath_var=LD_LIBRARY_PATH
15606   else
15607     # With GCC up to 2.95.x, collect2 would create an import file
15608     # for dependence libraries.  The import file would start with
15609     # the line `#! .'.  This would cause the generated library to
15610     # depend on `.', always an invalid library.  This was fixed in
15611     # development snapshots of GCC prior to 3.0.
15612     case $host_os in
15613       aix4 | aix4.[01] | aix4.[01].*)
15614       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15615            echo ' yes '
15616            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15617         :
15618       else
15619         can_build_shared=no
15620       fi
15621       ;;
15622     esac
15623     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15624     # soname into executable. Probably we can add versioning support to
15625     # collect2, so additional links can be useful in future.
15626     if test "$aix_use_runtimelinking" = yes; then
15627       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15628       # instead of lib<name>.a to let people know that these are not
15629       # typical AIX shared libraries.
15630       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631     else
15632       # We preserve .a as extension for shared libraries through AIX4.2
15633       # and later when we are not doing run time linking.
15634       library_names_spec='${libname}${release}.a $libname.a'
15635       soname_spec='${libname}${release}${shared_ext}$major'
15636     fi
15637     shlibpath_var=LIBPATH
15638   fi
15639   ;;
15640
15641 amigaos*)
15642   library_names_spec='$libname.ixlibrary $libname.a'
15643   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15644   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'
15645   ;;
15646
15647 beos*)
15648   library_names_spec='${libname}${shared_ext}'
15649   dynamic_linker="$host_os ld.so"
15650   shlibpath_var=LIBRARY_PATH
15651   ;;
15652
15653 bsdi[45]*)
15654   version_type=linux
15655   need_version=no
15656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657   soname_spec='${libname}${release}${shared_ext}$major'
15658   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15661   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15662   # the default ld.so.conf also contains /usr/contrib/lib and
15663   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15664   # libtool to hard-code these into programs
15665   ;;
15666
15667 cygwin* | mingw* | pw32*)
15668   version_type=windows
15669   shrext_cmds=".dll"
15670   need_version=no
15671   need_lib_prefix=no
15672
15673   case $GCC,$host_os in
15674   yes,cygwin* | yes,mingw* | yes,pw32*)
15675     library_names_spec='$libname.dll.a'
15676     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15677     postinstall_cmds='base_file=`basename \${file}`~
15678       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15679       dldir=$destdir/`dirname \$dlpath`~
15680       test -d \$dldir || mkdir -p \$dldir~
15681       $install_prog $dir/$dlname \$dldir/$dlname~
15682       chmod a+x \$dldir/$dlname'
15683     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15684       dlpath=$dir/\$dldll~
15685        $rm \$dlpath'
15686     shlibpath_overrides_runpath=yes
15687
15688     case $host_os in
15689     cygwin*)
15690       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15691       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15693       ;;
15694     mingw*)
15695       # MinGW DLLs use traditional 'lib' prefix
15696       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15697       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15698       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15699         # It is most probably a Windows format PATH printed by
15700         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15701         # path with ; separators, and with drive letters. We can handle the
15702         # drive letters (cygwin fileutils understands them), so leave them,
15703         # especially as we might pass files found there to a mingw objdump,
15704         # which wouldn't understand a cygwinified path. Ahh.
15705         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15706       else
15707         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15708       fi
15709       ;;
15710     pw32*)
15711       # pw32 DLLs use 'pw' prefix rather than 'lib'
15712       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15713       ;;
15714     esac
15715     ;;
15716
15717   *)
15718     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15719     ;;
15720   esac
15721   dynamic_linker='Win32 ld.exe'
15722   # FIXME: first we should search . and the directory the executable is in
15723   shlibpath_var=PATH
15724   ;;
15725
15726 darwin* | rhapsody*)
15727   dynamic_linker="$host_os dyld"
15728   version_type=darwin
15729   need_lib_prefix=no
15730   need_version=no
15731   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15732   soname_spec='${libname}${release}${major}$shared_ext'
15733   shlibpath_overrides_runpath=yes
15734   shlibpath_var=DYLD_LIBRARY_PATH
15735   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15736   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15737   if test "$GCC" = yes; then
15738     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"`
15739   else
15740     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15741   fi
15742   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15743   ;;
15744
15745 dgux*)
15746   version_type=linux
15747   need_lib_prefix=no
15748   need_version=no
15749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15750   soname_spec='${libname}${release}${shared_ext}$major'
15751   shlibpath_var=LD_LIBRARY_PATH
15752   ;;
15753
15754 freebsd1*)
15755   dynamic_linker=no
15756   ;;
15757
15758 freebsd* | dragonfly*)
15759   # DragonFly does not have aout.  When/if they implement a new
15760   # versioning mechanism, adjust this.
15761   if test -x /usr/bin/objformat; then
15762     objformat=`/usr/bin/objformat`
15763   else
15764     case $host_os in
15765     freebsd[123]*) objformat=aout ;;
15766     *) objformat=elf ;;
15767     esac
15768   fi
15769   version_type=freebsd-$objformat
15770   case $version_type in
15771     freebsd-elf*)
15772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15773       need_version=no
15774       need_lib_prefix=no
15775       ;;
15776     freebsd-*)
15777       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15778       need_version=yes
15779       ;;
15780   esac
15781   shlibpath_var=LD_LIBRARY_PATH
15782   case $host_os in
15783   freebsd2*)
15784     shlibpath_overrides_runpath=yes
15785     ;;
15786   freebsd3.[01]* | freebsdelf3.[01]*)
15787     shlibpath_overrides_runpath=yes
15788     hardcode_into_libs=yes
15789     ;;
15790   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15791   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15792     shlibpath_overrides_runpath=no
15793     hardcode_into_libs=yes
15794     ;;
15795   freebsd*) # from 4.6 on
15796     shlibpath_overrides_runpath=yes
15797     hardcode_into_libs=yes
15798     ;;
15799   esac
15800   ;;
15801
15802 gnu*)
15803   version_type=linux
15804   need_lib_prefix=no
15805   need_version=no
15806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15807   soname_spec='${libname}${release}${shared_ext}$major'
15808   shlibpath_var=LD_LIBRARY_PATH
15809   hardcode_into_libs=yes
15810   ;;
15811
15812 hpux9* | hpux10* | hpux11*)
15813   # Give a soname corresponding to the major version so that dld.sl refuses to
15814   # link against other versions.
15815   version_type=sunos
15816   need_lib_prefix=no
15817   need_version=no
15818   case $host_cpu in
15819   ia64*)
15820     shrext_cmds='.so'
15821     hardcode_into_libs=yes
15822     dynamic_linker="$host_os dld.so"
15823     shlibpath_var=LD_LIBRARY_PATH
15824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826     soname_spec='${libname}${release}${shared_ext}$major'
15827     if test "X$HPUX_IA64_MODE" = X32; then
15828       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15829     else
15830       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15831     fi
15832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15833     ;;
15834    hppa*64*)
15835      shrext_cmds='.sl'
15836      hardcode_into_libs=yes
15837      dynamic_linker="$host_os dld.sl"
15838      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15839      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841      soname_spec='${libname}${release}${shared_ext}$major'
15842      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15843      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15844      ;;
15845    *)
15846     shrext_cmds='.sl'
15847     dynamic_linker="$host_os dld.sl"
15848     shlibpath_var=SHLIB_PATH
15849     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851     soname_spec='${libname}${release}${shared_ext}$major'
15852     ;;
15853   esac
15854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15855   postinstall_cmds='chmod 555 $lib'
15856   ;;
15857
15858 interix3*)
15859   version_type=linux
15860   need_lib_prefix=no
15861   need_version=no
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15863   soname_spec='${libname}${release}${shared_ext}$major'
15864   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15865   shlibpath_var=LD_LIBRARY_PATH
15866   shlibpath_overrides_runpath=no
15867   hardcode_into_libs=yes
15868   ;;
15869
15870 irix5* | irix6* | nonstopux*)
15871   case $host_os in
15872     nonstopux*) version_type=nonstopux ;;
15873     *)
15874         if test "$lt_cv_prog_gnu_ld" = yes; then
15875                 version_type=linux
15876         else
15877                 version_type=irix
15878         fi ;;
15879   esac
15880   need_lib_prefix=no
15881   need_version=no
15882   soname_spec='${libname}${release}${shared_ext}$major'
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15884   case $host_os in
15885   irix5* | nonstopux*)
15886     libsuff= shlibsuff=
15887     ;;
15888   *)
15889     case $LD in # libtool.m4 will add one of these switches to LD
15890     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15891       libsuff= shlibsuff= libmagic=32-bit;;
15892     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15893       libsuff=32 shlibsuff=N32 libmagic=N32;;
15894     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15895       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15896     *) libsuff= shlibsuff= libmagic=never-match;;
15897     esac
15898     ;;
15899   esac
15900   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15901   shlibpath_overrides_runpath=no
15902   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15903   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15904   hardcode_into_libs=yes
15905   ;;
15906
15907 # No shared lib support for Linux oldld, aout, or coff.
15908 linux*oldld* | linux*aout* | linux*coff*)
15909   dynamic_linker=no
15910   ;;
15911
15912 # This must be Linux ELF.
15913 linux* | k*bsd*-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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15920   shlibpath_var=LD_LIBRARY_PATH
15921   shlibpath_overrides_runpath=no
15922   # This implies no fast_install, which is unacceptable.
15923   # Some rework will be needed to allow for fast_install
15924   # before this can be enabled.
15925   hardcode_into_libs=yes
15926
15927   # Append ld.so.conf contents to the search path
15928   if test -f /etc/ld.so.conf; then
15929     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' ' '`
15930     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15931   fi
15932
15933   # We used to test for /lib/ld.so.1 and disable shared libraries on
15934   # powerpc, because MkLinux only supported shared libraries with the
15935   # GNU dynamic linker.  Since this was broken with cross compilers,
15936   # most powerpc-linux boxes support dynamic linking these days and
15937   # people can always --disable-shared, the test was removed, and we
15938   # assume the GNU/Linux dynamic linker is in use.
15939   dynamic_linker='GNU/Linux ld.so'
15940   ;;
15941
15942 netbsdelf*-gnu)
15943   version_type=linux
15944   need_lib_prefix=no
15945   need_version=no
15946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   shlibpath_var=LD_LIBRARY_PATH
15949   shlibpath_overrides_runpath=no
15950   hardcode_into_libs=yes
15951   dynamic_linker='NetBSD ld.elf_so'
15952   ;;
15953
15954 netbsd*)
15955   version_type=sunos
15956   need_lib_prefix=no
15957   need_version=no
15958   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15960     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15961     dynamic_linker='NetBSD (a.out) ld.so'
15962   else
15963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964     soname_spec='${libname}${release}${shared_ext}$major'
15965     dynamic_linker='NetBSD ld.elf_so'
15966   fi
15967   shlibpath_var=LD_LIBRARY_PATH
15968   shlibpath_overrides_runpath=yes
15969   hardcode_into_libs=yes
15970   ;;
15971
15972 newsos6)
15973   version_type=linux
15974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15975   shlibpath_var=LD_LIBRARY_PATH
15976   shlibpath_overrides_runpath=yes
15977   ;;
15978
15979 nto-qnx*)
15980   version_type=linux
15981   need_lib_prefix=no
15982   need_version=no
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984   soname_spec='${libname}${release}${shared_ext}$major'
15985   shlibpath_var=LD_LIBRARY_PATH
15986   shlibpath_overrides_runpath=yes
15987   ;;
15988
15989 openbsd*)
15990   version_type=sunos
15991   sys_lib_dlsearch_path_spec="/usr/lib"
15992   need_lib_prefix=no
15993   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15994   case $host_os in
15995     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15996     *)                         need_version=no  ;;
15997   esac
15998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16000   shlibpath_var=LD_LIBRARY_PATH
16001   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16002     case $host_os in
16003       openbsd2.[89] | openbsd2.[89].*)
16004         shlibpath_overrides_runpath=no
16005         ;;
16006       *)
16007         shlibpath_overrides_runpath=yes
16008         ;;
16009       esac
16010   else
16011     shlibpath_overrides_runpath=yes
16012   fi
16013   ;;
16014
16015 os2*)
16016   libname_spec='$name'
16017   shrext_cmds=".dll"
16018   need_lib_prefix=no
16019   library_names_spec='$libname${shared_ext} $libname.a'
16020   dynamic_linker='OS/2 ld.exe'
16021   shlibpath_var=LIBPATH
16022   ;;
16023
16024 osf3* | osf4* | osf5*)
16025   version_type=osf
16026   need_lib_prefix=no
16027   need_version=no
16028   soname_spec='${libname}${release}${shared_ext}$major'
16029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030   shlibpath_var=LD_LIBRARY_PATH
16031   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16032   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16033   ;;
16034
16035 solaris*)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   shlibpath_overrides_runpath=yes
16043   hardcode_into_libs=yes
16044   # ldd complains unless libraries are executable
16045   postinstall_cmds='chmod +x $lib'
16046   ;;
16047
16048 sunos4*)
16049   version_type=sunos
16050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16052   shlibpath_var=LD_LIBRARY_PATH
16053   shlibpath_overrides_runpath=yes
16054   if test "$with_gnu_ld" = yes; then
16055     need_lib_prefix=no
16056   fi
16057   need_version=yes
16058   ;;
16059
16060 sysv4 | sysv4.3*)
16061   version_type=linux
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063   soname_spec='${libname}${release}${shared_ext}$major'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   case $host_vendor in
16066     sni)
16067       shlibpath_overrides_runpath=no
16068       need_lib_prefix=no
16069       export_dynamic_flag_spec='${wl}-Blargedynsym'
16070       runpath_var=LD_RUN_PATH
16071       ;;
16072     siemens)
16073       need_lib_prefix=no
16074       ;;
16075     motorola)
16076       need_lib_prefix=no
16077       need_version=no
16078       shlibpath_overrides_runpath=no
16079       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16080       ;;
16081   esac
16082   ;;
16083
16084 sysv4*MP*)
16085   if test -d /usr/nec ;then
16086     version_type=linux
16087     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16088     soname_spec='$libname${shared_ext}.$major'
16089     shlibpath_var=LD_LIBRARY_PATH
16090   fi
16091   ;;
16092
16093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16094   version_type=freebsd-elf
16095   need_lib_prefix=no
16096   need_version=no
16097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16098   soname_spec='${libname}${release}${shared_ext}$major'
16099   shlibpath_var=LD_LIBRARY_PATH
16100   hardcode_into_libs=yes
16101   if test "$with_gnu_ld" = yes; then
16102     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16103     shlibpath_overrides_runpath=no
16104   else
16105     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16106     shlibpath_overrides_runpath=yes
16107     case $host_os in
16108       sco3.2v5*)
16109         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16110         ;;
16111     esac
16112   fi
16113   sys_lib_dlsearch_path_spec='/usr/lib'
16114   ;;
16115
16116 uts4*)
16117   version_type=linux
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119   soname_spec='${libname}${release}${shared_ext}$major'
16120   shlibpath_var=LD_LIBRARY_PATH
16121   ;;
16122
16123 *)
16124   dynamic_linker=no
16125   ;;
16126 esac
16127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16128 echo "${ECHO_T}$dynamic_linker" >&6
16129 test "$dynamic_linker" = no && can_build_shared=no
16130
16131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16132 if test "$GCC" = yes; then
16133   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16134 fi
16135
16136 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16137 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16138 hardcode_action_F77=
16139 if test -n "$hardcode_libdir_flag_spec_F77" || \
16140    test -n "$runpath_var_F77" || \
16141    test "X$hardcode_automatic_F77" = "Xyes" ; then
16142
16143   # We can hardcode non-existant directories.
16144   if test "$hardcode_direct_F77" != no &&
16145      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16146      # have to relink, otherwise we might link with an installed library
16147      # when we should be linking with a yet-to-be-installed one
16148      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16149      test "$hardcode_minus_L_F77" != no; then
16150     # Linking always hardcodes the temporary library directory.
16151     hardcode_action_F77=relink
16152   else
16153     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16154     hardcode_action_F77=immediate
16155   fi
16156 else
16157   # We cannot hardcode anything, or else we can only hardcode existing
16158   # directories.
16159   hardcode_action_F77=unsupported
16160 fi
16161 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16162 echo "${ECHO_T}$hardcode_action_F77" >&6
16163
16164 if test "$hardcode_action_F77" = relink; then
16165   # Fast installation is not supported
16166   enable_fast_install=no
16167 elif test "$shlibpath_overrides_runpath" = yes ||
16168      test "$enable_shared" = no; then
16169   # Fast installation is not necessary
16170   enable_fast_install=needless
16171 fi
16172
16173
16174 # The else clause should only fire when bootstrapping the
16175 # libtool distribution, otherwise you forgot to ship ltmain.sh
16176 # with your package, and you will get complaints that there are
16177 # no rules to generate ltmain.sh.
16178 if test -f "$ltmain"; then
16179   # See if we are running on zsh, and set the options which allow our commands through
16180   # without removal of \ escapes.
16181   if test -n "${ZSH_VERSION+set}" ; then
16182     setopt NO_GLOB_SUBST
16183   fi
16184   # Now quote all the things that may contain metacharacters while being
16185   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16186   # variables and quote the copies for generation of the libtool script.
16187   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16188     SED SHELL STRIP \
16189     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16190     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16191     deplibs_check_method reload_flag reload_cmds need_locks \
16192     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16193     lt_cv_sys_global_symbol_to_c_name_address \
16194     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16195     old_postinstall_cmds old_postuninstall_cmds \
16196     compiler_F77 \
16197     CC_F77 \
16198     LD_F77 \
16199     lt_prog_compiler_wl_F77 \
16200     lt_prog_compiler_pic_F77 \
16201     lt_prog_compiler_static_F77 \
16202     lt_prog_compiler_no_builtin_flag_F77 \
16203     export_dynamic_flag_spec_F77 \
16204     thread_safe_flag_spec_F77 \
16205     whole_archive_flag_spec_F77 \
16206     enable_shared_with_static_runtimes_F77 \
16207     old_archive_cmds_F77 \
16208     old_archive_from_new_cmds_F77 \
16209     predep_objects_F77 \
16210     postdep_objects_F77 \
16211     predeps_F77 \
16212     postdeps_F77 \
16213     compiler_lib_search_path_F77 \
16214     archive_cmds_F77 \
16215     archive_expsym_cmds_F77 \
16216     postinstall_cmds_F77 \
16217     postuninstall_cmds_F77 \
16218     old_archive_from_expsyms_cmds_F77 \
16219     allow_undefined_flag_F77 \
16220     no_undefined_flag_F77 \
16221     export_symbols_cmds_F77 \
16222     hardcode_libdir_flag_spec_F77 \
16223     hardcode_libdir_flag_spec_ld_F77 \
16224     hardcode_libdir_separator_F77 \
16225     hardcode_automatic_F77 \
16226     module_cmds_F77 \
16227     module_expsym_cmds_F77 \
16228     lt_cv_prog_compiler_c_o_F77 \
16229     exclude_expsyms_F77 \
16230     include_expsyms_F77; do
16231
16232     case $var in
16233     old_archive_cmds_F77 | \
16234     old_archive_from_new_cmds_F77 | \
16235     archive_cmds_F77 | \
16236     archive_expsym_cmds_F77 | \
16237     module_cmds_F77 | \
16238     module_expsym_cmds_F77 | \
16239     old_archive_from_expsyms_cmds_F77 | \
16240     export_symbols_cmds_F77 | \
16241     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16242     postinstall_cmds | postuninstall_cmds | \
16243     old_postinstall_cmds | old_postuninstall_cmds | \
16244     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16245       # Double-quote double-evaled strings.
16246       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16247       ;;
16248     *)
16249       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16250       ;;
16251     esac
16252   done
16253
16254   case $lt_echo in
16255   *'\$0 --fallback-echo"')
16256     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16257     ;;
16258   esac
16259
16260 cfgfile="$ofile"
16261
16262   cat <<__EOF__ >> "$cfgfile"
16263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16264
16265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16266
16267 # Shell to use when invoking shell scripts.
16268 SHELL=$lt_SHELL
16269
16270 # Whether or not to build shared libraries.
16271 build_libtool_libs=$enable_shared
16272
16273 # Whether or not to build static libraries.
16274 build_old_libs=$enable_static
16275
16276 # Whether or not to add -lc for building shared libraries.
16277 build_libtool_need_lc=$archive_cmds_need_lc_F77
16278
16279 # Whether or not to disallow shared libs when runtime libs are static
16280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16281
16282 # Whether or not to optimize for fast installation.
16283 fast_install=$enable_fast_install
16284
16285 # The host system.
16286 host_alias=$host_alias
16287 host=$host
16288 host_os=$host_os
16289
16290 # The build system.
16291 build_alias=$build_alias
16292 build=$build
16293 build_os=$build_os
16294
16295 # An echo program that does not interpret backslashes.
16296 echo=$lt_echo
16297
16298 # The archiver.
16299 AR=$lt_AR
16300 AR_FLAGS=$lt_AR_FLAGS
16301
16302 # A C compiler.
16303 LTCC=$lt_LTCC
16304
16305 # LTCC compiler flags.
16306 LTCFLAGS=$lt_LTCFLAGS
16307
16308 # A language-specific compiler.
16309 CC=$lt_compiler_F77
16310
16311 # Is the compiler the GNU C compiler?
16312 with_gcc=$GCC_F77
16313
16314 # An ERE matcher.
16315 EGREP=$lt_EGREP
16316
16317 # The linker used to build libraries.
16318 LD=$lt_LD_F77
16319
16320 # Whether we need hard or soft links.
16321 LN_S=$lt_LN_S
16322
16323 # A BSD-compatible nm program.
16324 NM=$lt_NM
16325
16326 # A symbol stripping program
16327 STRIP=$lt_STRIP
16328
16329 # Used to examine libraries when file_magic_cmd begins "file"
16330 MAGIC_CMD=$MAGIC_CMD
16331
16332 # Used on cygwin: DLL creation program.
16333 DLLTOOL="$DLLTOOL"
16334
16335 # Used on cygwin: object dumper.
16336 OBJDUMP="$OBJDUMP"
16337
16338 # Used on cygwin: assembler.
16339 AS="$AS"
16340
16341 # The name of the directory that contains temporary libtool files.
16342 objdir=$objdir
16343
16344 # How to create reloadable object files.
16345 reload_flag=$lt_reload_flag
16346 reload_cmds=$lt_reload_cmds
16347
16348 # How to pass a linker flag through the compiler.
16349 wl=$lt_lt_prog_compiler_wl_F77
16350
16351 # Object file suffix (normally "o").
16352 objext="$ac_objext"
16353
16354 # Old archive suffix (normally "a").
16355 libext="$libext"
16356
16357 # Shared library suffix (normally ".so").
16358 shrext_cmds='$shrext_cmds'
16359
16360 # Executable file suffix (normally "").
16361 exeext="$exeext"
16362
16363 # Additional compiler flags for building library objects.
16364 pic_flag=$lt_lt_prog_compiler_pic_F77
16365 pic_mode=$pic_mode
16366
16367 # What is the maximum length of a command?
16368 max_cmd_len=$lt_cv_sys_max_cmd_len
16369
16370 # Does compiler simultaneously support -c and -o options?
16371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16372
16373 # Must we lock files when doing compilation?
16374 need_locks=$lt_need_locks
16375
16376 # Do we need the lib prefix for modules?
16377 need_lib_prefix=$need_lib_prefix
16378
16379 # Do we need a version for libraries?
16380 need_version=$need_version
16381
16382 # Whether dlopen is supported.
16383 dlopen_support=$enable_dlopen
16384
16385 # Whether dlopen of programs is supported.
16386 dlopen_self=$enable_dlopen_self
16387
16388 # Whether dlopen of statically linked programs is supported.
16389 dlopen_self_static=$enable_dlopen_self_static
16390
16391 # Compiler flag to prevent dynamic linking.
16392 link_static_flag=$lt_lt_prog_compiler_static_F77
16393
16394 # Compiler flag to turn off builtin functions.
16395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16396
16397 # Compiler flag to allow reflexive dlopens.
16398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16399
16400 # Compiler flag to generate shared objects directly from archives.
16401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16402
16403 # Compiler flag to generate thread-safe objects.
16404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16405
16406 # Library versioning type.
16407 version_type=$version_type
16408
16409 # Format of library name prefix.
16410 libname_spec=$lt_libname_spec
16411
16412 # List of archive names.  First name is the real one, the rest are links.
16413 # The last name is the one that the linker finds with -lNAME.
16414 library_names_spec=$lt_library_names_spec
16415
16416 # The coded name of the library, if different from the real name.
16417 soname_spec=$lt_soname_spec
16418
16419 # Commands used to build and install an old-style archive.
16420 RANLIB=$lt_RANLIB
16421 old_archive_cmds=$lt_old_archive_cmds_F77
16422 old_postinstall_cmds=$lt_old_postinstall_cmds
16423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16424
16425 # Create an old-style archive from a shared archive.
16426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16427
16428 # Create a temporary old-style archive to link instead of a shared archive.
16429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16430
16431 # Commands used to build and install a shared archive.
16432 archive_cmds=$lt_archive_cmds_F77
16433 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16434 postinstall_cmds=$lt_postinstall_cmds
16435 postuninstall_cmds=$lt_postuninstall_cmds
16436
16437 # Commands used to build a loadable module (assumed same as above if empty)
16438 module_cmds=$lt_module_cmds_F77
16439 module_expsym_cmds=$lt_module_expsym_cmds_F77
16440
16441 # Commands to strip libraries.
16442 old_striplib=$lt_old_striplib
16443 striplib=$lt_striplib
16444
16445 # Dependencies to place before the objects being linked to create a
16446 # shared library.
16447 predep_objects=$lt_predep_objects_F77
16448
16449 # Dependencies to place after the objects being linked to create a
16450 # shared library.
16451 postdep_objects=$lt_postdep_objects_F77
16452
16453 # Dependencies to place before the objects being linked to create a
16454 # shared library.
16455 predeps=$lt_predeps_F77
16456
16457 # Dependencies to place after the objects being linked to create a
16458 # shared library.
16459 postdeps=$lt_postdeps_F77
16460
16461 # The library search path used internally by the compiler when linking
16462 # a shared library.
16463 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16464
16465 # Method to check whether dependent libraries are shared objects.
16466 deplibs_check_method=$lt_deplibs_check_method
16467
16468 # Command to use when deplibs_check_method == file_magic.
16469 file_magic_cmd=$lt_file_magic_cmd
16470
16471 # Flag that allows shared libraries with undefined symbols to be built.
16472 allow_undefined_flag=$lt_allow_undefined_flag_F77
16473
16474 # Flag that forces no undefined symbols.
16475 no_undefined_flag=$lt_no_undefined_flag_F77
16476
16477 # Commands used to finish a libtool library installation in a directory.
16478 finish_cmds=$lt_finish_cmds
16479
16480 # Same as above, but a single script fragment to be evaled but not shown.
16481 finish_eval=$lt_finish_eval
16482
16483 # Take the output of nm and produce a listing of raw symbols and C names.
16484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16485
16486 # Transform the output of nm in a proper C declaration
16487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16488
16489 # Transform the output of nm in a C name address pair
16490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16491
16492 # This is the shared library runtime path variable.
16493 runpath_var=$runpath_var
16494
16495 # This is the shared library path variable.
16496 shlibpath_var=$shlibpath_var
16497
16498 # Is shlibpath searched before the hard-coded library search path?
16499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16500
16501 # How to hardcode a shared library path into an executable.
16502 hardcode_action=$hardcode_action_F77
16503
16504 # Whether we should hardcode library paths into libraries.
16505 hardcode_into_libs=$hardcode_into_libs
16506
16507 # Flag to hardcode \$libdir into a binary during linking.
16508 # This must work even if \$libdir does not exist.
16509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16510
16511 # If ld is used when linking, flag to hardcode \$libdir into
16512 # a binary during linking. This must work even if \$libdir does
16513 # not exist.
16514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16515
16516 # Whether we need a single -rpath flag with a separated argument.
16517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16518
16519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16520 # resulting binary.
16521 hardcode_direct=$hardcode_direct_F77
16522
16523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16524 # resulting binary.
16525 hardcode_minus_L=$hardcode_minus_L_F77
16526
16527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16528 # the resulting binary.
16529 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16530
16531 # Set to yes if building a shared library automatically hardcodes DIR into the library
16532 # and all subsequent libraries and executables linked against it.
16533 hardcode_automatic=$hardcode_automatic_F77
16534
16535 # Variables whose values should be saved in libtool wrapper scripts and
16536 # restored at relink time.
16537 variables_saved_for_relink="$variables_saved_for_relink"
16538
16539 # Whether libtool must link a program against all its dependency libraries.
16540 link_all_deplibs=$link_all_deplibs_F77
16541
16542 # Compile-time system search path for libraries
16543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16544
16545 # Run-time system search path for libraries
16546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16547
16548 # Fix the shell variable \$srcfile for the compiler.
16549 fix_srcfile_path="$fix_srcfile_path_F77"
16550
16551 # Set to yes if exported symbols are required.
16552 always_export_symbols=$always_export_symbols_F77
16553
16554 # The commands to list exported symbols.
16555 export_symbols_cmds=$lt_export_symbols_cmds_F77
16556
16557 # The commands to extract the exported symbol list from a shared archive.
16558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16559
16560 # Symbols that should not be listed in the preloaded symbols.
16561 exclude_expsyms=$lt_exclude_expsyms_F77
16562
16563 # Symbols that must always be exported.
16564 include_expsyms=$lt_include_expsyms_F77
16565
16566 # ### END LIBTOOL TAG CONFIG: $tagname
16567
16568 __EOF__
16569
16570
16571 else
16572   # If there is no Makefile yet, we rely on a make rule to execute
16573   # `config.status --recheck' to rerun these tests and create the
16574   # libtool script then.
16575   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16576   if test -f "$ltmain_in"; then
16577     test -f Makefile && make "$ltmain"
16578   fi
16579 fi
16580
16581
16582 ac_ext=c
16583 ac_cpp='$CPP $CPPFLAGS'
16584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16587
16588 CC="$lt_save_CC"
16589
16590         else
16591           tagname=""
16592         fi
16593         ;;
16594
16595       GCJ)
16596         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16597
16598
16599
16600 # Source file extension for Java test sources.
16601 ac_ext=java
16602
16603 # Object file extension for compiled Java test sources.
16604 objext=o
16605 objext_GCJ=$objext
16606
16607 # Code to be used in simple compile tests
16608 lt_simple_compile_test_code="class foo {}\n"
16609
16610 # Code to be used in simple link tests
16611 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16612
16613 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16614
16615 # If no C compiler was specified, use CC.
16616 LTCC=${LTCC-"$CC"}
16617
16618 # If no C compiler flags were specified, use CFLAGS.
16619 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16620
16621 # Allow CC to be a program name with arguments.
16622 compiler=$CC
16623
16624
16625 # save warnings/boilerplate of simple test code
16626 ac_outfile=conftest.$ac_objext
16627 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16629 _lt_compiler_boilerplate=`cat conftest.err`
16630 $rm conftest*
16631
16632 ac_outfile=conftest.$ac_objext
16633 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16635 _lt_linker_boilerplate=`cat conftest.err`
16636 $rm conftest*
16637
16638
16639 # Allow CC to be a program name with arguments.
16640 lt_save_CC="$CC"
16641 CC=${GCJ-"gcj"}
16642 compiler=$CC
16643 compiler_GCJ=$CC
16644 for cc_temp in $compiler""; do
16645   case $cc_temp in
16646     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16647     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16648     \-*) ;;
16649     *) break;;
16650   esac
16651 done
16652 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16653
16654
16655 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16656 archive_cmds_need_lc_GCJ=no
16657
16658 old_archive_cmds_GCJ=$old_archive_cmds
16659
16660
16661 lt_prog_compiler_no_builtin_flag_GCJ=
16662
16663 if test "$GCC" = yes; then
16664   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16665
16666
16667 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16668 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16669 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   lt_cv_prog_compiler_rtti_exceptions=no
16673   ac_outfile=conftest.$ac_objext
16674    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16675    lt_compiler_flag="-fno-rtti -fno-exceptions"
16676    # Insert the option either (1) after the last *FLAGS variable, or
16677    # (2) before a word containing "conftest.", or (3) at the end.
16678    # Note that $ac_compile itself does not contain backslashes and begins
16679    # with a dollar sign (not a hyphen), so the echo should work correctly.
16680    # The option is referenced via a variable to avoid confusing sed.
16681    lt_compile=`echo "$ac_compile" | $SED \
16682    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16684    -e 's:$: $lt_compiler_flag:'`
16685    (eval echo "\"\$as_me:16685: $lt_compile\"" >&5)
16686    (eval "$lt_compile" 2>conftest.err)
16687    ac_status=$?
16688    cat conftest.err >&5
16689    echo "$as_me:16689: \$? = $ac_status" >&5
16690    if (exit $ac_status) && test -s "$ac_outfile"; then
16691      # The compiler can only warn and ignore the option if not recognized
16692      # So say no if there are warnings other than the usual output.
16693      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16694      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16695      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16696        lt_cv_prog_compiler_rtti_exceptions=yes
16697      fi
16698    fi
16699    $rm conftest*
16700
16701 fi
16702 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16703 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16704
16705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16706     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16707 else
16708     :
16709 fi
16710
16711 fi
16712
16713 lt_prog_compiler_wl_GCJ=
16714 lt_prog_compiler_pic_GCJ=
16715 lt_prog_compiler_static_GCJ=
16716
16717 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16718 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16719
16720   if test "$GCC" = yes; then
16721     lt_prog_compiler_wl_GCJ='-Wl,'
16722     lt_prog_compiler_static_GCJ='-static'
16723
16724     case $host_os in
16725       aix*)
16726       # All AIX code is PIC.
16727       if test "$host_cpu" = ia64; then
16728         # AIX 5 now supports IA64 processor
16729         lt_prog_compiler_static_GCJ='-Bstatic'
16730       fi
16731       ;;
16732
16733     amigaos*)
16734       # FIXME: we need at least 68020 code to build shared libraries, but
16735       # adding the `-m68020' flag to GCC prevents building anything better,
16736       # like `-m68040'.
16737       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16738       ;;
16739
16740     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16741       # PIC is the default for these OSes.
16742       ;;
16743
16744     mingw* | pw32* | os2*)
16745       # This hack is so that the source file can tell whether it is being
16746       # built for inclusion in a dll (and should export symbols for example).
16747       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16748       ;;
16749
16750     darwin* | rhapsody*)
16751       # PIC is the default on this platform
16752       # Common symbols not allowed in MH_DYLIB files
16753       lt_prog_compiler_pic_GCJ='-fno-common'
16754       ;;
16755
16756     interix3*)
16757       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16758       # Instead, we relocate shared libraries at runtime.
16759       ;;
16760
16761     msdosdjgpp*)
16762       # Just because we use GCC doesn't mean we suddenly get shared libraries
16763       # on systems that don't support them.
16764       lt_prog_compiler_can_build_shared_GCJ=no
16765       enable_shared=no
16766       ;;
16767
16768     sysv4*MP*)
16769       if test -d /usr/nec; then
16770         lt_prog_compiler_pic_GCJ=-Kconform_pic
16771       fi
16772       ;;
16773
16774     hpux*)
16775       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16776       # not for PA HP-UX.
16777       case $host_cpu in
16778       hppa*64*|ia64*)
16779         # +Z the default
16780         ;;
16781       *)
16782         lt_prog_compiler_pic_GCJ='-fPIC'
16783         ;;
16784       esac
16785       ;;
16786
16787     *)
16788       lt_prog_compiler_pic_GCJ='-fPIC'
16789       ;;
16790     esac
16791   else
16792     # PORTME Check for flag to pass linker flags through the system compiler.
16793     case $host_os in
16794     aix*)
16795       lt_prog_compiler_wl_GCJ='-Wl,'
16796       if test "$host_cpu" = ia64; then
16797         # AIX 5 now supports IA64 processor
16798         lt_prog_compiler_static_GCJ='-Bstatic'
16799       else
16800         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16801       fi
16802       ;;
16803       darwin*)
16804         # PIC is the default on this platform
16805         # Common symbols not allowed in MH_DYLIB files
16806        case $cc_basename in
16807          xlc*)
16808          lt_prog_compiler_pic_GCJ='-qnocommon'
16809          lt_prog_compiler_wl_GCJ='-Wl,'
16810          ;;
16811        esac
16812        ;;
16813
16814     mingw* | pw32* | os2*)
16815       # This hack is so that the source file can tell whether it is being
16816       # built for inclusion in a dll (and should export symbols for example).
16817       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16818       ;;
16819
16820     hpux9* | hpux10* | hpux11*)
16821       lt_prog_compiler_wl_GCJ='-Wl,'
16822       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16823       # not for PA HP-UX.
16824       case $host_cpu in
16825       hppa*64*|ia64*)
16826         # +Z the default
16827         ;;
16828       *)
16829         lt_prog_compiler_pic_GCJ='+Z'
16830         ;;
16831       esac
16832       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16833       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16834       ;;
16835
16836     irix5* | irix6* | nonstopux*)
16837       lt_prog_compiler_wl_GCJ='-Wl,'
16838       # PIC (with -KPIC) is the default.
16839       lt_prog_compiler_static_GCJ='-non_shared'
16840       ;;
16841
16842     newsos6)
16843       lt_prog_compiler_pic_GCJ='-KPIC'
16844       lt_prog_compiler_static_GCJ='-Bstatic'
16845       ;;
16846
16847     linux* | k*bsd*-gnu)
16848       case $cc_basename in
16849       icc* | ecc*)
16850         lt_prog_compiler_wl_GCJ='-Wl,'
16851         lt_prog_compiler_pic_GCJ='-KPIC'
16852         lt_prog_compiler_static_GCJ='-static'
16853         ;;
16854       pgcc* | pgf77* | pgf90* | pgf95*)
16855         # Portland Group compilers (*not* the Pentium gcc compiler,
16856         # which looks to be a dead project)
16857         lt_prog_compiler_wl_GCJ='-Wl,'
16858         lt_prog_compiler_pic_GCJ='-fpic'
16859         lt_prog_compiler_static_GCJ='-Bstatic'
16860         ;;
16861       ccc*)
16862         lt_prog_compiler_wl_GCJ='-Wl,'
16863         # All Alpha code is PIC.
16864         lt_prog_compiler_static_GCJ='-non_shared'
16865         ;;
16866       esac
16867       ;;
16868
16869     osf3* | osf4* | osf5*)
16870       lt_prog_compiler_wl_GCJ='-Wl,'
16871       # All OSF/1 code is PIC.
16872       lt_prog_compiler_static_GCJ='-non_shared'
16873       ;;
16874
16875     solaris*)
16876       lt_prog_compiler_pic_GCJ='-KPIC'
16877       lt_prog_compiler_static_GCJ='-Bstatic'
16878       case $cc_basename in
16879       f77* | f90* | f95*)
16880         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16881       *)
16882         lt_prog_compiler_wl_GCJ='-Wl,';;
16883       esac
16884       ;;
16885
16886     sunos4*)
16887       lt_prog_compiler_wl_GCJ='-Qoption ld '
16888       lt_prog_compiler_pic_GCJ='-PIC'
16889       lt_prog_compiler_static_GCJ='-Bstatic'
16890       ;;
16891
16892     sysv4 | sysv4.2uw2* | sysv4.3*)
16893       lt_prog_compiler_wl_GCJ='-Wl,'
16894       lt_prog_compiler_pic_GCJ='-KPIC'
16895       lt_prog_compiler_static_GCJ='-Bstatic'
16896       ;;
16897
16898     sysv4*MP*)
16899       if test -d /usr/nec ;then
16900         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16901         lt_prog_compiler_static_GCJ='-Bstatic'
16902       fi
16903       ;;
16904
16905     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16906       lt_prog_compiler_wl_GCJ='-Wl,'
16907       lt_prog_compiler_pic_GCJ='-KPIC'
16908       lt_prog_compiler_static_GCJ='-Bstatic'
16909       ;;
16910
16911     unicos*)
16912       lt_prog_compiler_wl_GCJ='-Wl,'
16913       lt_prog_compiler_can_build_shared_GCJ=no
16914       ;;
16915
16916     uts4*)
16917       lt_prog_compiler_pic_GCJ='-pic'
16918       lt_prog_compiler_static_GCJ='-Bstatic'
16919       ;;
16920
16921     *)
16922       lt_prog_compiler_can_build_shared_GCJ=no
16923       ;;
16924     esac
16925   fi
16926
16927 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16928 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16929
16930 #
16931 # Check to make sure the PIC flag actually works.
16932 #
16933 if test -n "$lt_prog_compiler_pic_GCJ"; then
16934
16935 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16936 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16937 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16938   echo $ECHO_N "(cached) $ECHO_C" >&6
16939 else
16940   lt_prog_compiler_pic_works_GCJ=no
16941   ac_outfile=conftest.$ac_objext
16942    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16943    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16944    # Insert the option either (1) after the last *FLAGS variable, or
16945    # (2) before a word containing "conftest.", or (3) at the end.
16946    # Note that $ac_compile itself does not contain backslashes and begins
16947    # with a dollar sign (not a hyphen), so the echo should work correctly.
16948    # The option is referenced via a variable to avoid confusing sed.
16949    lt_compile=`echo "$ac_compile" | $SED \
16950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16952    -e 's:$: $lt_compiler_flag:'`
16953    (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
16954    (eval "$lt_compile" 2>conftest.err)
16955    ac_status=$?
16956    cat conftest.err >&5
16957    echo "$as_me:16957: \$? = $ac_status" >&5
16958    if (exit $ac_status) && test -s "$ac_outfile"; then
16959      # The compiler can only warn and ignore the option if not recognized
16960      # So say no if there are warnings other than the usual output.
16961      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16962      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16964        lt_prog_compiler_pic_works_GCJ=yes
16965      fi
16966    fi
16967    $rm conftest*
16968
16969 fi
16970 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16971 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16972
16973 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16974     case $lt_prog_compiler_pic_GCJ in
16975      "" | " "*) ;;
16976      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16977      esac
16978 else
16979     lt_prog_compiler_pic_GCJ=
16980      lt_prog_compiler_can_build_shared_GCJ=no
16981 fi
16982
16983 fi
16984 case $host_os in
16985   # For platforms which do not support PIC, -DPIC is meaningless:
16986   *djgpp*)
16987     lt_prog_compiler_pic_GCJ=
16988     ;;
16989   *)
16990     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16991     ;;
16992 esac
16993
16994 #
16995 # Check to make sure the static flag actually works.
16996 #
16997 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16998 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16999 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17000 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17001   echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003   lt_prog_compiler_static_works_GCJ=no
17004    save_LDFLAGS="$LDFLAGS"
17005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17006    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17008      # The linker can only warn and ignore the option if not recognized
17009      # So say no if there are warnings
17010      if test -s conftest.err; then
17011        # Append any errors to the config.log.
17012        cat conftest.err 1>&5
17013        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17015        if diff conftest.exp conftest.er2 >/dev/null; then
17016          lt_prog_compiler_static_works_GCJ=yes
17017        fi
17018      else
17019        lt_prog_compiler_static_works_GCJ=yes
17020      fi
17021    fi
17022    $rm conftest*
17023    LDFLAGS="$save_LDFLAGS"
17024
17025 fi
17026 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17027 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17028
17029 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17030     :
17031 else
17032     lt_prog_compiler_static_GCJ=
17033 fi
17034
17035
17036 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17038 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   lt_cv_prog_compiler_c_o_GCJ=no
17042    $rm -r conftest 2>/dev/null
17043    mkdir conftest
17044    cd conftest
17045    mkdir out
17046    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17047
17048    lt_compiler_flag="-o out/conftest2.$ac_objext"
17049    # Insert the option either (1) after the last *FLAGS variable, or
17050    # (2) before a word containing "conftest.", or (3) at the end.
17051    # Note that $ac_compile itself does not contain backslashes and begins
17052    # with a dollar sign (not a hyphen), so the echo should work correctly.
17053    lt_compile=`echo "$ac_compile" | $SED \
17054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17056    -e 's:$: $lt_compiler_flag:'`
17057    (eval echo "\"\$as_me:17057: $lt_compile\"" >&5)
17058    (eval "$lt_compile" 2>out/conftest.err)
17059    ac_status=$?
17060    cat out/conftest.err >&5
17061    echo "$as_me:17061: \$? = $ac_status" >&5
17062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17063    then
17064      # The compiler can only warn and ignore the option if not recognized
17065      # So say no if there are warnings
17066      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17069        lt_cv_prog_compiler_c_o_GCJ=yes
17070      fi
17071    fi
17072    chmod u+w . 2>&5
17073    $rm conftest*
17074    # SGI C++ compiler will create directory out/ii_files/ for
17075    # template instantiation
17076    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17077    $rm out/* && rmdir out
17078    cd ..
17079    rmdir conftest
17080    $rm conftest*
17081
17082 fi
17083 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17085
17086
17087 hard_links="nottested"
17088 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17089   # do not overwrite the value of need_locks provided by the user
17090   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17092   hard_links=yes
17093   $rm conftest*
17094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17095   touch conftest.a
17096   ln conftest.a conftest.b 2>&5 || hard_links=no
17097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17098   echo "$as_me:$LINENO: result: $hard_links" >&5
17099 echo "${ECHO_T}$hard_links" >&6
17100   if test "$hard_links" = no; then
17101     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17103     need_locks=warn
17104   fi
17105 else
17106   need_locks=no
17107 fi
17108
17109 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17111
17112   runpath_var=
17113   allow_undefined_flag_GCJ=
17114   enable_shared_with_static_runtimes_GCJ=no
17115   archive_cmds_GCJ=
17116   archive_expsym_cmds_GCJ=
17117   old_archive_From_new_cmds_GCJ=
17118   old_archive_from_expsyms_cmds_GCJ=
17119   export_dynamic_flag_spec_GCJ=
17120   whole_archive_flag_spec_GCJ=
17121   thread_safe_flag_spec_GCJ=
17122   hardcode_libdir_flag_spec_GCJ=
17123   hardcode_libdir_flag_spec_ld_GCJ=
17124   hardcode_libdir_separator_GCJ=
17125   hardcode_direct_GCJ=no
17126   hardcode_minus_L_GCJ=no
17127   hardcode_shlibpath_var_GCJ=unsupported
17128   link_all_deplibs_GCJ=unknown
17129   hardcode_automatic_GCJ=no
17130   module_cmds_GCJ=
17131   module_expsym_cmds_GCJ=
17132   always_export_symbols_GCJ=no
17133   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17134   # include_expsyms should be a list of space-separated symbols to be *always*
17135   # included in the symbol list
17136   include_expsyms_GCJ=
17137   # exclude_expsyms can be an extended regexp of symbols to exclude
17138   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17139   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17140   # as well as any symbol that contains `d'.
17141   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17142   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17143   # platforms (ab)use it in PIC code, but their linkers get confused if
17144   # the symbol is explicitly referenced.  Since portable code cannot
17145   # rely on this symbol name, it's probably fine to never include it in
17146   # preloaded symbol tables.
17147   extract_expsyms_cmds=
17148   # Just being paranoid about ensuring that cc_basename is set.
17149   for cc_temp in $compiler""; do
17150   case $cc_temp in
17151     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17152     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17153     \-*) ;;
17154     *) break;;
17155   esac
17156 done
17157 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17158
17159   case $host_os in
17160   cygwin* | mingw* | pw32*)
17161     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17162     # When not using gcc, we currently assume that we are using
17163     # Microsoft Visual C++.
17164     if test "$GCC" != yes; then
17165       with_gnu_ld=no
17166     fi
17167     ;;
17168   interix*)
17169     # we just hope/assume this is gcc and not c89 (= MSVC++)
17170     with_gnu_ld=yes
17171     ;;
17172   openbsd*)
17173     with_gnu_ld=no
17174     ;;
17175   esac
17176
17177   ld_shlibs_GCJ=yes
17178   if test "$with_gnu_ld" = yes; then
17179     # If archive_cmds runs LD, not CC, wlarc should be empty
17180     wlarc='${wl}'
17181
17182     # Set some defaults for GNU ld with shared library support. These
17183     # are reset later if shared libraries are not supported. Putting them
17184     # here allows them to be overridden if necessary.
17185     runpath_var=LD_RUN_PATH
17186     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17187     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17188     # ancient GNU ld didn't support --whole-archive et. al.
17189     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17190         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17191       else
17192         whole_archive_flag_spec_GCJ=
17193     fi
17194     supports_anon_versioning=no
17195     case `$LD -v 2>/dev/null` in
17196       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17197       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17198       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17199       *\ 2.11.*) ;; # other 2.11 versions
17200       *) supports_anon_versioning=yes ;;
17201     esac
17202
17203     # See if GNU ld supports shared libraries.
17204     case $host_os in
17205     aix3* | aix4* | aix5*)
17206       # On AIX/PPC, the GNU linker is very broken
17207       if test "$host_cpu" != ia64; then
17208         ld_shlibs_GCJ=no
17209         cat <<EOF 1>&2
17210
17211 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17212 *** to be unable to reliably create shared libraries on AIX.
17213 *** Therefore, libtool is disabling shared libraries support.  If you
17214 *** really care for shared libraries, you may want to modify your PATH
17215 *** so that a non-GNU linker is found, and then restart.
17216
17217 EOF
17218       fi
17219       ;;
17220
17221     amigaos*)
17222       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)'
17223       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224       hardcode_minus_L_GCJ=yes
17225
17226       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17227       # that the semantics of dynamic libraries on AmigaOS, at least up
17228       # to version 4, is to share data among multiple programs linked
17229       # with the same dynamic library.  Since this doesn't match the
17230       # behavior of shared libraries on other platforms, we can't use
17231       # them.
17232       ld_shlibs_GCJ=no
17233       ;;
17234
17235     beos*)
17236       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17237         allow_undefined_flag_GCJ=unsupported
17238         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17239         # support --undefined.  This deserves some investigation.  FIXME
17240         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17241       else
17242         ld_shlibs_GCJ=no
17243       fi
17244       ;;
17245
17246     cygwin* | mingw* | pw32*)
17247       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17248       # as there is no search path for DLLs.
17249       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17250       allow_undefined_flag_GCJ=unsupported
17251       always_export_symbols_GCJ=no
17252       enable_shared_with_static_runtimes_GCJ=yes
17253       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17254
17255       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17256         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17257         # If the export-symbols file already is a .def file (1st line
17258         # is EXPORTS), use it as is; otherwise, prepend...
17259         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17260           cp $export_symbols $output_objdir/$soname.def;
17261         else
17262           echo EXPORTS > $output_objdir/$soname.def;
17263           cat $export_symbols >> $output_objdir/$soname.def;
17264         fi~
17265         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17266       else
17267         ld_shlibs_GCJ=no
17268       fi
17269       ;;
17270
17271     interix3*)
17272       hardcode_direct_GCJ=no
17273       hardcode_shlibpath_var_GCJ=no
17274       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17275       export_dynamic_flag_spec_GCJ='${wl}-E'
17276       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17277       # Instead, shared libraries are loaded at an image base (0x10000000 by
17278       # default) and relocated if they conflict, which is a slow very memory
17279       # consuming and fragmenting process.  To avoid this, we pick a random,
17280       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17281       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17282       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'
17283       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'
17284       ;;
17285
17286     linux* | k*bsd*-gnu)
17287       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17288         tmp_addflag=
17289         case $cc_basename,$host_cpu in
17290         pgcc*)                          # Portland Group C compiler
17291           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'
17292           tmp_addflag=' $pic_flag'
17293           ;;
17294         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17295           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'
17296           tmp_addflag=' $pic_flag -Mnomain' ;;
17297         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17298           tmp_addflag=' -i_dynamic' ;;
17299         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17300           tmp_addflag=' -i_dynamic -nofor_main' ;;
17301         ifc* | ifort*)                  # Intel Fortran compiler
17302           tmp_addflag=' -nofor_main' ;;
17303         esac
17304         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17305
17306         if test $supports_anon_versioning = yes; then
17307           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17308   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17309   $echo "local: *; };" >> $output_objdir/$libname.ver~
17310           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17311         fi
17312         link_all_deplibs_GCJ=no
17313       else
17314         ld_shlibs_GCJ=no
17315       fi
17316       ;;
17317
17318     netbsd* | netbsdelf*-gnu)
17319       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17320         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17321         wlarc=
17322       else
17323         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17324         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17325       fi
17326       ;;
17327
17328     solaris*)
17329       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17330         ld_shlibs_GCJ=no
17331         cat <<EOF 1>&2
17332
17333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17334 *** create shared libraries on Solaris systems.  Therefore, libtool
17335 *** is disabling shared libraries support.  We urge you to upgrade GNU
17336 *** binutils to release 2.9.1 or newer.  Another option is to modify
17337 *** your PATH or compiler configuration so that the native linker is
17338 *** used, and then restart.
17339
17340 EOF
17341       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17343         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17344       else
17345         ld_shlibs_GCJ=no
17346       fi
17347       ;;
17348
17349     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17350       case `$LD -v 2>&1` in
17351         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17352         ld_shlibs_GCJ=no
17353         cat <<_LT_EOF 1>&2
17354
17355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17356 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17357 *** is disabling shared libraries support.  We urge you to upgrade GNU
17358 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17359 *** your PATH or compiler configuration so that the native linker is
17360 *** used, and then restart.
17361
17362 _LT_EOF
17363         ;;
17364         *)
17365           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17366             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17367             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17368             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17369           else
17370             ld_shlibs_GCJ=no
17371           fi
17372         ;;
17373       esac
17374       ;;
17375
17376     sunos4*)
17377       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17378       wlarc=
17379       hardcode_direct_GCJ=yes
17380       hardcode_shlibpath_var_GCJ=no
17381       ;;
17382
17383     *)
17384       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17385         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17386         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17387       else
17388         ld_shlibs_GCJ=no
17389       fi
17390       ;;
17391     esac
17392
17393     if test "$ld_shlibs_GCJ" = no; then
17394       runpath_var=
17395       hardcode_libdir_flag_spec_GCJ=
17396       export_dynamic_flag_spec_GCJ=
17397       whole_archive_flag_spec_GCJ=
17398     fi
17399   else
17400     # PORTME fill in a description of your system's linker (not GNU ld)
17401     case $host_os in
17402     aix3*)
17403       allow_undefined_flag_GCJ=unsupported
17404       always_export_symbols_GCJ=yes
17405       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'
17406       # Note: this linker hardcodes the directories in LIBPATH if there
17407       # are no directories specified by -L.
17408       hardcode_minus_L_GCJ=yes
17409       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17410         # Neither direct hardcoding nor static linking is supported with a
17411         # broken collect2.
17412         hardcode_direct_GCJ=unsupported
17413       fi
17414       ;;
17415
17416     aix4* | aix5*)
17417       if test "$host_cpu" = ia64; then
17418         # On IA64, the linker does run time linking by default, so we don't
17419         # have to do anything special.
17420         aix_use_runtimelinking=no
17421         exp_sym_flag='-Bexport'
17422         no_entry_flag=""
17423       else
17424         # If we're using GNU nm, then we don't want the "-C" option.
17425         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17426         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17427           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'
17428         else
17429           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'
17430         fi
17431         aix_use_runtimelinking=no
17432
17433         # Test if we are trying to use run time linking or normal
17434         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17435         # need to do runtime linking.
17436         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17437           for ld_flag in $LDFLAGS; do
17438           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17439             aix_use_runtimelinking=yes
17440             break
17441           fi
17442           done
17443           ;;
17444         esac
17445
17446         exp_sym_flag='-bexport'
17447         no_entry_flag='-bnoentry'
17448       fi
17449
17450       # When large executables or shared objects are built, AIX ld can
17451       # have problems creating the table of contents.  If linking a library
17452       # or program results in "error TOC overflow" add -mminimal-toc to
17453       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17454       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17455
17456       archive_cmds_GCJ=''
17457       hardcode_direct_GCJ=yes
17458       hardcode_libdir_separator_GCJ=':'
17459       link_all_deplibs_GCJ=yes
17460
17461       if test "$GCC" = yes; then
17462         case $host_os in aix4.[012]|aix4.[012].*)
17463         # We only want to do this on AIX 4.2 and lower, the check
17464         # below for broken collect2 doesn't work under 4.3+
17465           collect2name=`${CC} -print-prog-name=collect2`
17466           if test -f "$collect2name" && \
17467            strings "$collect2name" | grep resolve_lib_name >/dev/null
17468           then
17469           # We have reworked collect2
17470           hardcode_direct_GCJ=yes
17471           else
17472           # We have old collect2
17473           hardcode_direct_GCJ=unsupported
17474           # It fails to find uninstalled libraries when the uninstalled
17475           # path is not listed in the libpath.  Setting hardcode_minus_L
17476           # to unsupported forces relinking
17477           hardcode_minus_L_GCJ=yes
17478           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479           hardcode_libdir_separator_GCJ=
17480           fi
17481           ;;
17482         esac
17483         shared_flag='-shared'
17484         if test "$aix_use_runtimelinking" = yes; then
17485           shared_flag="$shared_flag "'${wl}-G'
17486         fi
17487       else
17488         # not using gcc
17489         if test "$host_cpu" = ia64; then
17490         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17491         # chokes on -Wl,-G. The following line is correct:
17492           shared_flag='-G'
17493         else
17494           if test "$aix_use_runtimelinking" = yes; then
17495             shared_flag='${wl}-G'
17496           else
17497             shared_flag='${wl}-bM:SRE'
17498           fi
17499         fi
17500       fi
17501
17502       # It seems that -bexpall does not export symbols beginning with
17503       # underscore (_), so it is better to generate a list of symbols to export.
17504       always_export_symbols_GCJ=yes
17505       if test "$aix_use_runtimelinking" = yes; then
17506         # Warning - without using the other runtime loading flags (-brtl),
17507         # -berok will link without error, but may produce a broken library.
17508         allow_undefined_flag_GCJ='-berok'
17509        # Determine the default libpath from the value encoded in an empty executable.
17510        cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516
17517 int
17518 main ()
17519 {
17520
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; } &&
17540          { ac_try='test -s conftest$ac_exeext'
17541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542   (eval $ac_try) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; }; then
17546
17547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17548 }'`
17549 # Check for a 64-bit object if we didn't find anything.
17550 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; }
17551 }'`; fi
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 fi
17557 rm -f conftest.err conftest.$ac_objext \
17558       conftest$ac_exeext conftest.$ac_ext
17559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17560
17561        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17562         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"
17563        else
17564         if test "$host_cpu" = ia64; then
17565           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17566           allow_undefined_flag_GCJ="-z nodefs"
17567           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"
17568         else
17569          # Determine the default libpath from the value encoded in an empty executable.
17570          cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576
17577 int
17578 main ()
17579 {
17580
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587   (eval $ac_link) 2>conftest.er1
17588   ac_status=$?
17589   grep -v '^ *+' conftest.er1 >conftest.err
17590   rm -f conftest.er1
17591   cat conftest.err >&5
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); } &&
17594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596   (eval $ac_try) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; } &&
17600          { ac_try='test -s conftest$ac_exeext'
17601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602   (eval $ac_try) 2>&5
17603   ac_status=$?
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); }; }; then
17606
17607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17608 }'`
17609 # Check for a 64-bit object if we didn't find anything.
17610 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; }
17611 }'`; fi
17612 else
17613   echo "$as_me: failed program was:" >&5
17614 sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 fi
17617 rm -f conftest.err conftest.$ac_objext \
17618       conftest$ac_exeext conftest.$ac_ext
17619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17620
17621          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17622           # Warning - without using the other run time loading flags,
17623           # -berok will link without error, but may produce a broken library.
17624           no_undefined_flag_GCJ=' ${wl}-bernotok'
17625           allow_undefined_flag_GCJ=' ${wl}-berok'
17626           # Exported symbols can be pulled into shared objects from archives
17627           whole_archive_flag_spec_GCJ='$convenience'
17628           archive_cmds_need_lc_GCJ=yes
17629           # This is similar to how AIX traditionally builds its shared libraries.
17630           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'
17631         fi
17632       fi
17633       ;;
17634
17635     amigaos*)
17636       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)'
17637       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17638       hardcode_minus_L_GCJ=yes
17639       # see comment about different semantics on the GNU ld section
17640       ld_shlibs_GCJ=no
17641       ;;
17642
17643     bsdi[45]*)
17644       export_dynamic_flag_spec_GCJ=-rdynamic
17645       ;;
17646
17647     cygwin* | mingw* | pw32*)
17648       # When not using gcc, we currently assume that we are using
17649       # Microsoft Visual C++.
17650       # hardcode_libdir_flag_spec is actually meaningless, as there is
17651       # no search path for DLLs.
17652       hardcode_libdir_flag_spec_GCJ=' '
17653       allow_undefined_flag_GCJ=unsupported
17654       # Tell ltmain to make .lib files, not .a files.
17655       libext=lib
17656       # Tell ltmain to make .dll files, not .so files.
17657       shrext_cmds=".dll"
17658       # FIXME: Setting linknames here is a bad hack.
17659       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17660       # The linker will automatically build a .lib file if we build a DLL.
17661       old_archive_From_new_cmds_GCJ='true'
17662       # FIXME: Should let the user specify the lib program.
17663       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17664       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17665       enable_shared_with_static_runtimes_GCJ=yes
17666       ;;
17667
17668     darwin* | rhapsody*)
17669       case $host_os in
17670         rhapsody* | darwin1.[012])
17671          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17672          ;;
17673        *) # Darwin 1.3 on
17674          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17675            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17676          else
17677            case ${MACOSX_DEPLOYMENT_TARGET} in
17678              10.[012])
17679                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17680                ;;
17681              10.*)
17682                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17683                ;;
17684            esac
17685          fi
17686          ;;
17687       esac
17688       archive_cmds_need_lc_GCJ=no
17689       hardcode_direct_GCJ=no
17690       hardcode_automatic_GCJ=yes
17691       hardcode_shlibpath_var_GCJ=unsupported
17692       whole_archive_flag_spec_GCJ=''
17693       link_all_deplibs_GCJ=yes
17694     if test "$GCC" = yes ; then
17695         output_verbose_link_cmd='echo'
17696         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17697       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17698       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17699       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}'
17700       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}'
17701     else
17702       case $cc_basename in
17703         xlc*)
17704          output_verbose_link_cmd='echo'
17705          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17706          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17707           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17708          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}'
17709           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}'
17710           ;;
17711        *)
17712          ld_shlibs_GCJ=no
17713           ;;
17714       esac
17715     fi
17716       ;;
17717
17718     dgux*)
17719       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17720       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721       hardcode_shlibpath_var_GCJ=no
17722       ;;
17723
17724     freebsd1*)
17725       ld_shlibs_GCJ=no
17726       ;;
17727
17728     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17729     # support.  Future versions do this automatically, but an explicit c++rt0.o
17730     # does not break anything, and helps significantly (at the cost of a little
17731     # extra space).
17732     freebsd2.2*)
17733       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17734       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17735       hardcode_direct_GCJ=yes
17736       hardcode_shlibpath_var_GCJ=no
17737       ;;
17738
17739     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17740     freebsd2*)
17741       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742       hardcode_direct_GCJ=yes
17743       hardcode_minus_L_GCJ=yes
17744       hardcode_shlibpath_var_GCJ=no
17745       ;;
17746
17747     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17748     freebsd* | dragonfly*)
17749       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17750       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17751       hardcode_direct_GCJ=yes
17752       hardcode_shlibpath_var_GCJ=no
17753       ;;
17754
17755     hpux9*)
17756       if test "$GCC" = yes; then
17757         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'
17758       else
17759         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'
17760       fi
17761       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17762       hardcode_libdir_separator_GCJ=:
17763       hardcode_direct_GCJ=yes
17764
17765       # hardcode_minus_L: Not really in the search PATH,
17766       # but as the default location of the library.
17767       hardcode_minus_L_GCJ=yes
17768       export_dynamic_flag_spec_GCJ='${wl}-E'
17769       ;;
17770
17771     hpux10*)
17772       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17773         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17774       else
17775         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17776       fi
17777       if test "$with_gnu_ld" = no; then
17778         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17779         hardcode_libdir_separator_GCJ=:
17780
17781         hardcode_direct_GCJ=yes
17782         export_dynamic_flag_spec_GCJ='${wl}-E'
17783
17784         # hardcode_minus_L: Not really in the search PATH,
17785         # but as the default location of the library.
17786         hardcode_minus_L_GCJ=yes
17787       fi
17788       ;;
17789
17790     hpux11*)
17791       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17792         case $host_cpu in
17793         hppa*64*)
17794           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17795           ;;
17796         ia64*)
17797           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17798           ;;
17799         *)
17800           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17801           ;;
17802         esac
17803       else
17804         case $host_cpu in
17805         hppa*64*)
17806           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17807           ;;
17808         ia64*)
17809           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17810           ;;
17811         *)
17812           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17813           ;;
17814         esac
17815       fi
17816       if test "$with_gnu_ld" = no; then
17817         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17818         hardcode_libdir_separator_GCJ=:
17819
17820         case $host_cpu in
17821         hppa*64*|ia64*)
17822           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17823           hardcode_direct_GCJ=no
17824           hardcode_shlibpath_var_GCJ=no
17825           ;;
17826         *)
17827           hardcode_direct_GCJ=yes
17828           export_dynamic_flag_spec_GCJ='${wl}-E'
17829
17830           # hardcode_minus_L: Not really in the search PATH,
17831           # but as the default location of the library.
17832           hardcode_minus_L_GCJ=yes
17833           ;;
17834         esac
17835       fi
17836       ;;
17837
17838     irix5* | irix6* | nonstopux*)
17839       if test "$GCC" = yes; then
17840         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'
17841       else
17842         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'
17843         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17844       fi
17845       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17846       hardcode_libdir_separator_GCJ=:
17847       link_all_deplibs_GCJ=yes
17848       ;;
17849
17850     netbsd* | netbsdelf*-gnu)
17851       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17852         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17853       else
17854         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17855       fi
17856       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17857       hardcode_direct_GCJ=yes
17858       hardcode_shlibpath_var_GCJ=no
17859       ;;
17860
17861     newsos6)
17862       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17863       hardcode_direct_GCJ=yes
17864       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17865       hardcode_libdir_separator_GCJ=:
17866       hardcode_shlibpath_var_GCJ=no
17867       ;;
17868
17869     openbsd*)
17870       hardcode_direct_GCJ=yes
17871       hardcode_shlibpath_var_GCJ=no
17872       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17873         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17874         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17875         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17876         export_dynamic_flag_spec_GCJ='${wl}-E'
17877       else
17878        case $host_os in
17879          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17880            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17881            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17882            ;;
17883          *)
17884            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17885            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17886            ;;
17887        esac
17888       fi
17889       ;;
17890
17891     os2*)
17892       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17893       hardcode_minus_L_GCJ=yes
17894       allow_undefined_flag_GCJ=unsupported
17895       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'
17896       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17897       ;;
17898
17899     osf3*)
17900       if test "$GCC" = yes; then
17901         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17902         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'
17903       else
17904         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17905         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'
17906       fi
17907       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17908       hardcode_libdir_separator_GCJ=:
17909       ;;
17910
17911     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17912       if test "$GCC" = yes; then
17913         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17914         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'
17915         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17916       else
17917         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17918         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'
17919         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~
17920         $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'
17921
17922         # Both c and cxx compiler support -rpath directly
17923         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17924       fi
17925       hardcode_libdir_separator_GCJ=:
17926       ;;
17927
17928     solaris*)
17929       no_undefined_flag_GCJ=' -z text'
17930       if test "$GCC" = yes; then
17931         wlarc='${wl}'
17932         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17933         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17934           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17935       else
17936         wlarc=''
17937         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17938         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17939         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17940       fi
17941       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17942       hardcode_shlibpath_var_GCJ=no
17943       case $host_os in
17944       solaris2.[0-5] | solaris2.[0-5].*) ;;
17945       *)
17946         # The compiler driver will combine linker options so we
17947         # cannot just pass the convience library names through
17948         # without $wl, iff we do not link with $LD.
17949         # Luckily, gcc supports the same syntax we need for Sun Studio.
17950         # Supported since Solaris 2.6 (maybe 2.5.1?)
17951         case $wlarc in
17952         '')
17953           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17954         *)
17955           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' ;;
17956         esac ;;
17957       esac
17958       link_all_deplibs_GCJ=yes
17959       ;;
17960
17961     sunos4*)
17962       if test "x$host_vendor" = xsequent; then
17963         # Use $CC to link under sequent, because it throws in some extra .o
17964         # files that make .init and .fini sections work.
17965         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17966       else
17967         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17968       fi
17969       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17970       hardcode_direct_GCJ=yes
17971       hardcode_minus_L_GCJ=yes
17972       hardcode_shlibpath_var_GCJ=no
17973       ;;
17974
17975     sysv4)
17976       case $host_vendor in
17977         sni)
17978           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17979           hardcode_direct_GCJ=yes # is this really true???
17980         ;;
17981         siemens)
17982           ## LD is ld it makes a PLAMLIB
17983           ## CC just makes a GrossModule.
17984           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17985           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17986           hardcode_direct_GCJ=no
17987         ;;
17988         motorola)
17989           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17990           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17991         ;;
17992       esac
17993       runpath_var='LD_RUN_PATH'
17994       hardcode_shlibpath_var_GCJ=no
17995       ;;
17996
17997     sysv4.3*)
17998       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17999       hardcode_shlibpath_var_GCJ=no
18000       export_dynamic_flag_spec_GCJ='-Bexport'
18001       ;;
18002
18003     sysv4*MP*)
18004       if test -d /usr/nec; then
18005         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18006         hardcode_shlibpath_var_GCJ=no
18007         runpath_var=LD_RUN_PATH
18008         hardcode_runpath_var=yes
18009         ld_shlibs_GCJ=yes
18010       fi
18011       ;;
18012
18013     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18014       no_undefined_flag_GCJ='${wl}-z,text'
18015       archive_cmds_need_lc_GCJ=no
18016       hardcode_shlibpath_var_GCJ=no
18017       runpath_var='LD_RUN_PATH'
18018
18019       if test "$GCC" = yes; then
18020         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18021         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18022       else
18023         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18025       fi
18026       ;;
18027
18028     sysv5* | sco3.2v5* | sco5v6*)
18029       # Note: We can NOT use -z defs as we might desire, because we do not
18030       # link with -lc, and that would cause any symbols used from libc to
18031       # always be unresolved, which means just about no library would
18032       # ever link correctly.  If we're not using GNU ld we use -z text
18033       # though, which does catch some bad symbols but isn't as heavy-handed
18034       # as -z defs.
18035       no_undefined_flag_GCJ='${wl}-z,text'
18036       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18037       archive_cmds_need_lc_GCJ=no
18038       hardcode_shlibpath_var_GCJ=no
18039       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18040       hardcode_libdir_separator_GCJ=':'
18041       link_all_deplibs_GCJ=yes
18042       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18043       runpath_var='LD_RUN_PATH'
18044
18045       if test "$GCC" = yes; then
18046         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18047         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18048       else
18049         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18051       fi
18052       ;;
18053
18054     uts4*)
18055       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18056       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18057       hardcode_shlibpath_var_GCJ=no
18058       ;;
18059
18060     *)
18061       ld_shlibs_GCJ=no
18062       ;;
18063     esac
18064   fi
18065
18066 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18067 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18068 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18069
18070 #
18071 # Do we need to explicitly link libc?
18072 #
18073 case "x$archive_cmds_need_lc_GCJ" in
18074 x|xyes)
18075   # Assume -lc should be added
18076   archive_cmds_need_lc_GCJ=yes
18077
18078   if test "$enable_shared" = yes && test "$GCC" = yes; then
18079     case $archive_cmds_GCJ in
18080     *'~'*)
18081       # FIXME: we may have to deal with multi-command sequences.
18082       ;;
18083     '$CC '*)
18084       # Test whether the compiler implicitly links with -lc since on some
18085       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18086       # to ld, don't add -lc before -lgcc.
18087       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18088 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18089       $rm conftest*
18090       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18091
18092       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18093   (eval $ac_compile) 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); } 2>conftest.err; then
18097         soname=conftest
18098         lib=conftest
18099         libobjs=conftest.$ac_objext
18100         deplibs=
18101         wl=$lt_prog_compiler_wl_GCJ
18102         pic_flag=$lt_prog_compiler_pic_GCJ
18103         compiler_flags=-v
18104         linker_flags=-v
18105         verstring=
18106         output_objdir=.
18107         libname=conftest
18108         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18109         allow_undefined_flag_GCJ=
18110         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18111   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }
18115         then
18116           archive_cmds_need_lc_GCJ=no
18117         else
18118           archive_cmds_need_lc_GCJ=yes
18119         fi
18120         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18121       else
18122         cat conftest.err 1>&5
18123       fi
18124       $rm conftest*
18125       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18126 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18127       ;;
18128     esac
18129   fi
18130   ;;
18131 esac
18132
18133 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18134 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18135 library_names_spec=
18136 libname_spec='lib$name'
18137 soname_spec=
18138 shrext_cmds=".so"
18139 postinstall_cmds=
18140 postuninstall_cmds=
18141 finish_cmds=
18142 finish_eval=
18143 shlibpath_var=
18144 shlibpath_overrides_runpath=unknown
18145 version_type=none
18146 dynamic_linker="$host_os ld.so"
18147 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18148 if test "$GCC" = yes; then
18149   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18150   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18151     # if the path contains ";" then we assume it to be the separator
18152     # otherwise default to the standard path separator (i.e. ":") - it is
18153     # assumed that no part of a normal pathname contains ";" but that should
18154     # okay in the real world where ";" in dirpaths is itself problematic.
18155     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18156   else
18157     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18158   fi
18159 else
18160   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18161 fi
18162 need_lib_prefix=unknown
18163 hardcode_into_libs=no
18164
18165 # when you set need_version to no, make sure it does not cause -set_version
18166 # flags to be left without arguments
18167 need_version=unknown
18168
18169 case $host_os in
18170 aix3*)
18171   version_type=linux
18172   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18173   shlibpath_var=LIBPATH
18174
18175   # AIX 3 has no versioning support, so we append a major version to the name.
18176   soname_spec='${libname}${release}${shared_ext}$major'
18177   ;;
18178
18179 aix4* | aix5*)
18180   version_type=linux
18181   need_lib_prefix=no
18182   need_version=no
18183   hardcode_into_libs=yes
18184   if test "$host_cpu" = ia64; then
18185     # AIX 5 supports IA64
18186     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18187     shlibpath_var=LD_LIBRARY_PATH
18188   else
18189     # With GCC up to 2.95.x, collect2 would create an import file
18190     # for dependence libraries.  The import file would start with
18191     # the line `#! .'.  This would cause the generated library to
18192     # depend on `.', always an invalid library.  This was fixed in
18193     # development snapshots of GCC prior to 3.0.
18194     case $host_os in
18195       aix4 | aix4.[01] | aix4.[01].*)
18196       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18197            echo ' yes '
18198            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18199         :
18200       else
18201         can_build_shared=no
18202       fi
18203       ;;
18204     esac
18205     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18206     # soname into executable. Probably we can add versioning support to
18207     # collect2, so additional links can be useful in future.
18208     if test "$aix_use_runtimelinking" = yes; then
18209       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18210       # instead of lib<name>.a to let people know that these are not
18211       # typical AIX shared libraries.
18212       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213     else
18214       # We preserve .a as extension for shared libraries through AIX4.2
18215       # and later when we are not doing run time linking.
18216       library_names_spec='${libname}${release}.a $libname.a'
18217       soname_spec='${libname}${release}${shared_ext}$major'
18218     fi
18219     shlibpath_var=LIBPATH
18220   fi
18221   ;;
18222
18223 amigaos*)
18224   library_names_spec='$libname.ixlibrary $libname.a'
18225   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18226   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'
18227   ;;
18228
18229 beos*)
18230   library_names_spec='${libname}${shared_ext}'
18231   dynamic_linker="$host_os ld.so"
18232   shlibpath_var=LIBRARY_PATH
18233   ;;
18234
18235 bsdi[45]*)
18236   version_type=linux
18237   need_version=no
18238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239   soname_spec='${libname}${release}${shared_ext}$major'
18240   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18241   shlibpath_var=LD_LIBRARY_PATH
18242   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18243   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18244   # the default ld.so.conf also contains /usr/contrib/lib and
18245   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18246   # libtool to hard-code these into programs
18247   ;;
18248
18249 cygwin* | mingw* | pw32*)
18250   version_type=windows
18251   shrext_cmds=".dll"
18252   need_version=no
18253   need_lib_prefix=no
18254
18255   case $GCC,$host_os in
18256   yes,cygwin* | yes,mingw* | yes,pw32*)
18257     library_names_spec='$libname.dll.a'
18258     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18259     postinstall_cmds='base_file=`basename \${file}`~
18260       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18261       dldir=$destdir/`dirname \$dlpath`~
18262       test -d \$dldir || mkdir -p \$dldir~
18263       $install_prog $dir/$dlname \$dldir/$dlname~
18264       chmod a+x \$dldir/$dlname'
18265     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18266       dlpath=$dir/\$dldll~
18267        $rm \$dlpath'
18268     shlibpath_overrides_runpath=yes
18269
18270     case $host_os in
18271     cygwin*)
18272       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18273       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18274       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18275       ;;
18276     mingw*)
18277       # MinGW DLLs use traditional 'lib' prefix
18278       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18279       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18280       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18281         # It is most probably a Windows format PATH printed by
18282         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18283         # path with ; separators, and with drive letters. We can handle the
18284         # drive letters (cygwin fileutils understands them), so leave them,
18285         # especially as we might pass files found there to a mingw objdump,
18286         # which wouldn't understand a cygwinified path. Ahh.
18287         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18288       else
18289         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18290       fi
18291       ;;
18292     pw32*)
18293       # pw32 DLLs use 'pw' prefix rather than 'lib'
18294       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18295       ;;
18296     esac
18297     ;;
18298
18299   *)
18300     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18301     ;;
18302   esac
18303   dynamic_linker='Win32 ld.exe'
18304   # FIXME: first we should search . and the directory the executable is in
18305   shlibpath_var=PATH
18306   ;;
18307
18308 darwin* | rhapsody*)
18309   dynamic_linker="$host_os dyld"
18310   version_type=darwin
18311   need_lib_prefix=no
18312   need_version=no
18313   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18314   soname_spec='${libname}${release}${major}$shared_ext'
18315   shlibpath_overrides_runpath=yes
18316   shlibpath_var=DYLD_LIBRARY_PATH
18317   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18318   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18319   if test "$GCC" = yes; then
18320     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"`
18321   else
18322     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18323   fi
18324   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18325   ;;
18326
18327 dgux*)
18328   version_type=linux
18329   need_lib_prefix=no
18330   need_version=no
18331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18332   soname_spec='${libname}${release}${shared_ext}$major'
18333   shlibpath_var=LD_LIBRARY_PATH
18334   ;;
18335
18336 freebsd1*)
18337   dynamic_linker=no
18338   ;;
18339
18340 freebsd* | dragonfly*)
18341   # DragonFly does not have aout.  When/if they implement a new
18342   # versioning mechanism, adjust this.
18343   if test -x /usr/bin/objformat; then
18344     objformat=`/usr/bin/objformat`
18345   else
18346     case $host_os in
18347     freebsd[123]*) objformat=aout ;;
18348     *) objformat=elf ;;
18349     esac
18350   fi
18351   version_type=freebsd-$objformat
18352   case $version_type in
18353     freebsd-elf*)
18354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18355       need_version=no
18356       need_lib_prefix=no
18357       ;;
18358     freebsd-*)
18359       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18360       need_version=yes
18361       ;;
18362   esac
18363   shlibpath_var=LD_LIBRARY_PATH
18364   case $host_os in
18365   freebsd2*)
18366     shlibpath_overrides_runpath=yes
18367     ;;
18368   freebsd3.[01]* | freebsdelf3.[01]*)
18369     shlibpath_overrides_runpath=yes
18370     hardcode_into_libs=yes
18371     ;;
18372   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18373   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18374     shlibpath_overrides_runpath=no
18375     hardcode_into_libs=yes
18376     ;;
18377   freebsd*) # from 4.6 on
18378     shlibpath_overrides_runpath=yes
18379     hardcode_into_libs=yes
18380     ;;
18381   esac
18382   ;;
18383
18384 gnu*)
18385   version_type=linux
18386   need_lib_prefix=no
18387   need_version=no
18388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18389   soname_spec='${libname}${release}${shared_ext}$major'
18390   shlibpath_var=LD_LIBRARY_PATH
18391   hardcode_into_libs=yes
18392   ;;
18393
18394 hpux9* | hpux10* | hpux11*)
18395   # Give a soname corresponding to the major version so that dld.sl refuses to
18396   # link against other versions.
18397   version_type=sunos
18398   need_lib_prefix=no
18399   need_version=no
18400   case $host_cpu in
18401   ia64*)
18402     shrext_cmds='.so'
18403     hardcode_into_libs=yes
18404     dynamic_linker="$host_os dld.so"
18405     shlibpath_var=LD_LIBRARY_PATH
18406     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18408     soname_spec='${libname}${release}${shared_ext}$major'
18409     if test "X$HPUX_IA64_MODE" = X32; then
18410       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18411     else
18412       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18413     fi
18414     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18415     ;;
18416    hppa*64*)
18417      shrext_cmds='.sl'
18418      hardcode_into_libs=yes
18419      dynamic_linker="$host_os dld.sl"
18420      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18421      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18422      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423      soname_spec='${libname}${release}${shared_ext}$major'
18424      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18425      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18426      ;;
18427    *)
18428     shrext_cmds='.sl'
18429     dynamic_linker="$host_os dld.sl"
18430     shlibpath_var=SHLIB_PATH
18431     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18432     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433     soname_spec='${libname}${release}${shared_ext}$major'
18434     ;;
18435   esac
18436   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18437   postinstall_cmds='chmod 555 $lib'
18438   ;;
18439
18440 interix3*)
18441   version_type=linux
18442   need_lib_prefix=no
18443   need_version=no
18444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18445   soname_spec='${libname}${release}${shared_ext}$major'
18446   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18447   shlibpath_var=LD_LIBRARY_PATH
18448   shlibpath_overrides_runpath=no
18449   hardcode_into_libs=yes
18450   ;;
18451
18452 irix5* | irix6* | nonstopux*)
18453   case $host_os in
18454     nonstopux*) version_type=nonstopux ;;
18455     *)
18456         if test "$lt_cv_prog_gnu_ld" = yes; then
18457                 version_type=linux
18458         else
18459                 version_type=irix
18460         fi ;;
18461   esac
18462   need_lib_prefix=no
18463   need_version=no
18464   soname_spec='${libname}${release}${shared_ext}$major'
18465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18466   case $host_os in
18467   irix5* | nonstopux*)
18468     libsuff= shlibsuff=
18469     ;;
18470   *)
18471     case $LD in # libtool.m4 will add one of these switches to LD
18472     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18473       libsuff= shlibsuff= libmagic=32-bit;;
18474     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18475       libsuff=32 shlibsuff=N32 libmagic=N32;;
18476     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18477       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18478     *) libsuff= shlibsuff= libmagic=never-match;;
18479     esac
18480     ;;
18481   esac
18482   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18483   shlibpath_overrides_runpath=no
18484   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18485   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18486   hardcode_into_libs=yes
18487   ;;
18488
18489 # No shared lib support for Linux oldld, aout, or coff.
18490 linux*oldld* | linux*aout* | linux*coff*)
18491   dynamic_linker=no
18492   ;;
18493
18494 # This must be Linux ELF.
18495 linux* | k*bsd*-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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18502   shlibpath_var=LD_LIBRARY_PATH
18503   shlibpath_overrides_runpath=no
18504   # This implies no fast_install, which is unacceptable.
18505   # Some rework will be needed to allow for fast_install
18506   # before this can be enabled.
18507   hardcode_into_libs=yes
18508
18509   # Append ld.so.conf contents to the search path
18510   if test -f /etc/ld.so.conf; then
18511     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' ' '`
18512     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18513   fi
18514
18515   # We used to test for /lib/ld.so.1 and disable shared libraries on
18516   # powerpc, because MkLinux only supported shared libraries with the
18517   # GNU dynamic linker.  Since this was broken with cross compilers,
18518   # most powerpc-linux boxes support dynamic linking these days and
18519   # people can always --disable-shared, the test was removed, and we
18520   # assume the GNU/Linux dynamic linker is in use.
18521   dynamic_linker='GNU/Linux ld.so'
18522   ;;
18523
18524 netbsdelf*-gnu)
18525   version_type=linux
18526   need_lib_prefix=no
18527   need_version=no
18528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529   soname_spec='${libname}${release}${shared_ext}$major'
18530   shlibpath_var=LD_LIBRARY_PATH
18531   shlibpath_overrides_runpath=no
18532   hardcode_into_libs=yes
18533   dynamic_linker='NetBSD ld.elf_so'
18534   ;;
18535
18536 netbsd*)
18537   version_type=sunos
18538   need_lib_prefix=no
18539   need_version=no
18540   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18542     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18543     dynamic_linker='NetBSD (a.out) ld.so'
18544   else
18545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18546     soname_spec='${libname}${release}${shared_ext}$major'
18547     dynamic_linker='NetBSD ld.elf_so'
18548   fi
18549   shlibpath_var=LD_LIBRARY_PATH
18550   shlibpath_overrides_runpath=yes
18551   hardcode_into_libs=yes
18552   ;;
18553
18554 newsos6)
18555   version_type=linux
18556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18557   shlibpath_var=LD_LIBRARY_PATH
18558   shlibpath_overrides_runpath=yes
18559   ;;
18560
18561 nto-qnx*)
18562   version_type=linux
18563   need_lib_prefix=no
18564   need_version=no
18565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566   soname_spec='${libname}${release}${shared_ext}$major'
18567   shlibpath_var=LD_LIBRARY_PATH
18568   shlibpath_overrides_runpath=yes
18569   ;;
18570
18571 openbsd*)
18572   version_type=sunos
18573   sys_lib_dlsearch_path_spec="/usr/lib"
18574   need_lib_prefix=no
18575   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18576   case $host_os in
18577     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18578     *)                         need_version=no  ;;
18579   esac
18580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18582   shlibpath_var=LD_LIBRARY_PATH
18583   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18584     case $host_os in
18585       openbsd2.[89] | openbsd2.[89].*)
18586         shlibpath_overrides_runpath=no
18587         ;;
18588       *)
18589         shlibpath_overrides_runpath=yes
18590         ;;
18591       esac
18592   else
18593     shlibpath_overrides_runpath=yes
18594   fi
18595   ;;
18596
18597 os2*)
18598   libname_spec='$name'
18599   shrext_cmds=".dll"
18600   need_lib_prefix=no
18601   library_names_spec='$libname${shared_ext} $libname.a'
18602   dynamic_linker='OS/2 ld.exe'
18603   shlibpath_var=LIBPATH
18604   ;;
18605
18606 osf3* | osf4* | osf5*)
18607   version_type=osf
18608   need_lib_prefix=no
18609   need_version=no
18610   soname_spec='${libname}${release}${shared_ext}$major'
18611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18612   shlibpath_var=LD_LIBRARY_PATH
18613   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18614   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18615   ;;
18616
18617 solaris*)
18618   version_type=linux
18619   need_lib_prefix=no
18620   need_version=no
18621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622   soname_spec='${libname}${release}${shared_ext}$major'
18623   shlibpath_var=LD_LIBRARY_PATH
18624   shlibpath_overrides_runpath=yes
18625   hardcode_into_libs=yes
18626   # ldd complains unless libraries are executable
18627   postinstall_cmds='chmod +x $lib'
18628   ;;
18629
18630 sunos4*)
18631   version_type=sunos
18632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18633   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18634   shlibpath_var=LD_LIBRARY_PATH
18635   shlibpath_overrides_runpath=yes
18636   if test "$with_gnu_ld" = yes; then
18637     need_lib_prefix=no
18638   fi
18639   need_version=yes
18640   ;;
18641
18642 sysv4 | sysv4.3*)
18643   version_type=linux
18644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645   soname_spec='${libname}${release}${shared_ext}$major'
18646   shlibpath_var=LD_LIBRARY_PATH
18647   case $host_vendor in
18648     sni)
18649       shlibpath_overrides_runpath=no
18650       need_lib_prefix=no
18651       export_dynamic_flag_spec='${wl}-Blargedynsym'
18652       runpath_var=LD_RUN_PATH
18653       ;;
18654     siemens)
18655       need_lib_prefix=no
18656       ;;
18657     motorola)
18658       need_lib_prefix=no
18659       need_version=no
18660       shlibpath_overrides_runpath=no
18661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18662       ;;
18663   esac
18664   ;;
18665
18666 sysv4*MP*)
18667   if test -d /usr/nec ;then
18668     version_type=linux
18669     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18670     soname_spec='$libname${shared_ext}.$major'
18671     shlibpath_var=LD_LIBRARY_PATH
18672   fi
18673   ;;
18674
18675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18676   version_type=freebsd-elf
18677   need_lib_prefix=no
18678   need_version=no
18679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18680   soname_spec='${libname}${release}${shared_ext}$major'
18681   shlibpath_var=LD_LIBRARY_PATH
18682   hardcode_into_libs=yes
18683   if test "$with_gnu_ld" = yes; then
18684     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18685     shlibpath_overrides_runpath=no
18686   else
18687     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18688     shlibpath_overrides_runpath=yes
18689     case $host_os in
18690       sco3.2v5*)
18691         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18692         ;;
18693     esac
18694   fi
18695   sys_lib_dlsearch_path_spec='/usr/lib'
18696   ;;
18697
18698 uts4*)
18699   version_type=linux
18700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18701   soname_spec='${libname}${release}${shared_ext}$major'
18702   shlibpath_var=LD_LIBRARY_PATH
18703   ;;
18704
18705 *)
18706   dynamic_linker=no
18707   ;;
18708 esac
18709 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18710 echo "${ECHO_T}$dynamic_linker" >&6
18711 test "$dynamic_linker" = no && can_build_shared=no
18712
18713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18714 if test "$GCC" = yes; then
18715   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18716 fi
18717
18718 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18720 hardcode_action_GCJ=
18721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18722    test -n "$runpath_var_GCJ" || \
18723    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18724
18725   # We can hardcode non-existant directories.
18726   if test "$hardcode_direct_GCJ" != no &&
18727      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18728      # have to relink, otherwise we might link with an installed library
18729      # when we should be linking with a yet-to-be-installed one
18730      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18731      test "$hardcode_minus_L_GCJ" != no; then
18732     # Linking always hardcodes the temporary library directory.
18733     hardcode_action_GCJ=relink
18734   else
18735     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18736     hardcode_action_GCJ=immediate
18737   fi
18738 else
18739   # We cannot hardcode anything, or else we can only hardcode existing
18740   # directories.
18741   hardcode_action_GCJ=unsupported
18742 fi
18743 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18744 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18745
18746 if test "$hardcode_action_GCJ" = relink; then
18747   # Fast installation is not supported
18748   enable_fast_install=no
18749 elif test "$shlibpath_overrides_runpath" = yes ||
18750      test "$enable_shared" = no; then
18751   # Fast installation is not necessary
18752   enable_fast_install=needless
18753 fi
18754
18755
18756 # The else clause should only fire when bootstrapping the
18757 # libtool distribution, otherwise you forgot to ship ltmain.sh
18758 # with your package, and you will get complaints that there are
18759 # no rules to generate ltmain.sh.
18760 if test -f "$ltmain"; then
18761   # See if we are running on zsh, and set the options which allow our commands through
18762   # without removal of \ escapes.
18763   if test -n "${ZSH_VERSION+set}" ; then
18764     setopt NO_GLOB_SUBST
18765   fi
18766   # Now quote all the things that may contain metacharacters while being
18767   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18768   # variables and quote the copies for generation of the libtool script.
18769   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18770     SED SHELL STRIP \
18771     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18772     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18773     deplibs_check_method reload_flag reload_cmds need_locks \
18774     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18775     lt_cv_sys_global_symbol_to_c_name_address \
18776     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18777     old_postinstall_cmds old_postuninstall_cmds \
18778     compiler_GCJ \
18779     CC_GCJ \
18780     LD_GCJ \
18781     lt_prog_compiler_wl_GCJ \
18782     lt_prog_compiler_pic_GCJ \
18783     lt_prog_compiler_static_GCJ \
18784     lt_prog_compiler_no_builtin_flag_GCJ \
18785     export_dynamic_flag_spec_GCJ \
18786     thread_safe_flag_spec_GCJ \
18787     whole_archive_flag_spec_GCJ \
18788     enable_shared_with_static_runtimes_GCJ \
18789     old_archive_cmds_GCJ \
18790     old_archive_from_new_cmds_GCJ \
18791     predep_objects_GCJ \
18792     postdep_objects_GCJ \
18793     predeps_GCJ \
18794     postdeps_GCJ \
18795     compiler_lib_search_path_GCJ \
18796     archive_cmds_GCJ \
18797     archive_expsym_cmds_GCJ \
18798     postinstall_cmds_GCJ \
18799     postuninstall_cmds_GCJ \
18800     old_archive_from_expsyms_cmds_GCJ \
18801     allow_undefined_flag_GCJ \
18802     no_undefined_flag_GCJ \
18803     export_symbols_cmds_GCJ \
18804     hardcode_libdir_flag_spec_GCJ \
18805     hardcode_libdir_flag_spec_ld_GCJ \
18806     hardcode_libdir_separator_GCJ \
18807     hardcode_automatic_GCJ \
18808     module_cmds_GCJ \
18809     module_expsym_cmds_GCJ \
18810     lt_cv_prog_compiler_c_o_GCJ \
18811     exclude_expsyms_GCJ \
18812     include_expsyms_GCJ; do
18813
18814     case $var in
18815     old_archive_cmds_GCJ | \
18816     old_archive_from_new_cmds_GCJ | \
18817     archive_cmds_GCJ | \
18818     archive_expsym_cmds_GCJ | \
18819     module_cmds_GCJ | \
18820     module_expsym_cmds_GCJ | \
18821     old_archive_from_expsyms_cmds_GCJ | \
18822     export_symbols_cmds_GCJ | \
18823     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18824     postinstall_cmds | postuninstall_cmds | \
18825     old_postinstall_cmds | old_postuninstall_cmds | \
18826     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18827       # Double-quote double-evaled strings.
18828       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18829       ;;
18830     *)
18831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18832       ;;
18833     esac
18834   done
18835
18836   case $lt_echo in
18837   *'\$0 --fallback-echo"')
18838     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18839     ;;
18840   esac
18841
18842 cfgfile="$ofile"
18843
18844   cat <<__EOF__ >> "$cfgfile"
18845 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18846
18847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18848
18849 # Shell to use when invoking shell scripts.
18850 SHELL=$lt_SHELL
18851
18852 # Whether or not to build shared libraries.
18853 build_libtool_libs=$enable_shared
18854
18855 # Whether or not to build static libraries.
18856 build_old_libs=$enable_static
18857
18858 # Whether or not to add -lc for building shared libraries.
18859 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18860
18861 # Whether or not to disallow shared libs when runtime libs are static
18862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18863
18864 # Whether or not to optimize for fast installation.
18865 fast_install=$enable_fast_install
18866
18867 # The host system.
18868 host_alias=$host_alias
18869 host=$host
18870 host_os=$host_os
18871
18872 # The build system.
18873 build_alias=$build_alias
18874 build=$build
18875 build_os=$build_os
18876
18877 # An echo program that does not interpret backslashes.
18878 echo=$lt_echo
18879
18880 # The archiver.
18881 AR=$lt_AR
18882 AR_FLAGS=$lt_AR_FLAGS
18883
18884 # A C compiler.
18885 LTCC=$lt_LTCC
18886
18887 # LTCC compiler flags.
18888 LTCFLAGS=$lt_LTCFLAGS
18889
18890 # A language-specific compiler.
18891 CC=$lt_compiler_GCJ
18892
18893 # Is the compiler the GNU C compiler?
18894 with_gcc=$GCC_GCJ
18895
18896 # An ERE matcher.
18897 EGREP=$lt_EGREP
18898
18899 # The linker used to build libraries.
18900 LD=$lt_LD_GCJ
18901
18902 # Whether we need hard or soft links.
18903 LN_S=$lt_LN_S
18904
18905 # A BSD-compatible nm program.
18906 NM=$lt_NM
18907
18908 # A symbol stripping program
18909 STRIP=$lt_STRIP
18910
18911 # Used to examine libraries when file_magic_cmd begins "file"
18912 MAGIC_CMD=$MAGIC_CMD
18913
18914 # Used on cygwin: DLL creation program.
18915 DLLTOOL="$DLLTOOL"
18916
18917 # Used on cygwin: object dumper.
18918 OBJDUMP="$OBJDUMP"
18919
18920 # Used on cygwin: assembler.
18921 AS="$AS"
18922
18923 # The name of the directory that contains temporary libtool files.
18924 objdir=$objdir
18925
18926 # How to create reloadable object files.
18927 reload_flag=$lt_reload_flag
18928 reload_cmds=$lt_reload_cmds
18929
18930 # How to pass a linker flag through the compiler.
18931 wl=$lt_lt_prog_compiler_wl_GCJ
18932
18933 # Object file suffix (normally "o").
18934 objext="$ac_objext"
18935
18936 # Old archive suffix (normally "a").
18937 libext="$libext"
18938
18939 # Shared library suffix (normally ".so").
18940 shrext_cmds='$shrext_cmds'
18941
18942 # Executable file suffix (normally "").
18943 exeext="$exeext"
18944
18945 # Additional compiler flags for building library objects.
18946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18947 pic_mode=$pic_mode
18948
18949 # What is the maximum length of a command?
18950 max_cmd_len=$lt_cv_sys_max_cmd_len
18951
18952 # Does compiler simultaneously support -c and -o options?
18953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18954
18955 # Must we lock files when doing compilation?
18956 need_locks=$lt_need_locks
18957
18958 # Do we need the lib prefix for modules?
18959 need_lib_prefix=$need_lib_prefix
18960
18961 # Do we need a version for libraries?
18962 need_version=$need_version
18963
18964 # Whether dlopen is supported.
18965 dlopen_support=$enable_dlopen
18966
18967 # Whether dlopen of programs is supported.
18968 dlopen_self=$enable_dlopen_self
18969
18970 # Whether dlopen of statically linked programs is supported.
18971 dlopen_self_static=$enable_dlopen_self_static
18972
18973 # Compiler flag to prevent dynamic linking.
18974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18975
18976 # Compiler flag to turn off builtin functions.
18977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18978
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18981
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18984
18985 # Compiler flag to generate thread-safe objects.
18986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18987
18988 # Library versioning type.
18989 version_type=$version_type
18990
18991 # Format of library name prefix.
18992 libname_spec=$lt_libname_spec
18993
18994 # List of archive names.  First name is the real one, the rest are links.
18995 # The last name is the one that the linker finds with -lNAME.
18996 library_names_spec=$lt_library_names_spec
18997
18998 # The coded name of the library, if different from the real name.
18999 soname_spec=$lt_soname_spec
19000
19001 # Commands used to build and install an old-style archive.
19002 RANLIB=$lt_RANLIB
19003 old_archive_cmds=$lt_old_archive_cmds_GCJ
19004 old_postinstall_cmds=$lt_old_postinstall_cmds
19005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19006
19007 # Create an old-style archive from a shared archive.
19008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19009
19010 # Create a temporary old-style archive to link instead of a shared archive.
19011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19012
19013 # Commands used to build and install a shared archive.
19014 archive_cmds=$lt_archive_cmds_GCJ
19015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19016 postinstall_cmds=$lt_postinstall_cmds
19017 postuninstall_cmds=$lt_postuninstall_cmds
19018
19019 # Commands used to build a loadable module (assumed same as above if empty)
19020 module_cmds=$lt_module_cmds_GCJ
19021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19022
19023 # Commands to strip libraries.
19024 old_striplib=$lt_old_striplib
19025 striplib=$lt_striplib
19026
19027 # Dependencies to place before the objects being linked to create a
19028 # shared library.
19029 predep_objects=$lt_predep_objects_GCJ
19030
19031 # Dependencies to place after the objects being linked to create a
19032 # shared library.
19033 postdep_objects=$lt_postdep_objects_GCJ
19034
19035 # Dependencies to place before the objects being linked to create a
19036 # shared library.
19037 predeps=$lt_predeps_GCJ
19038
19039 # Dependencies to place after the objects being linked to create a
19040 # shared library.
19041 postdeps=$lt_postdeps_GCJ
19042
19043 # The library search path used internally by the compiler when linking
19044 # a shared library.
19045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19046
19047 # Method to check whether dependent libraries are shared objects.
19048 deplibs_check_method=$lt_deplibs_check_method
19049
19050 # Command to use when deplibs_check_method == file_magic.
19051 file_magic_cmd=$lt_file_magic_cmd
19052
19053 # Flag that allows shared libraries with undefined symbols to be built.
19054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19055
19056 # Flag that forces no undefined symbols.
19057 no_undefined_flag=$lt_no_undefined_flag_GCJ
19058
19059 # Commands used to finish a libtool library installation in a directory.
19060 finish_cmds=$lt_finish_cmds
19061
19062 # Same as above, but a single script fragment to be evaled but not shown.
19063 finish_eval=$lt_finish_eval
19064
19065 # Take the output of nm and produce a listing of raw symbols and C names.
19066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19067
19068 # Transform the output of nm in a proper C declaration
19069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19070
19071 # Transform the output of nm in a C name address pair
19072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19073
19074 # This is the shared library runtime path variable.
19075 runpath_var=$runpath_var
19076
19077 # This is the shared library path variable.
19078 shlibpath_var=$shlibpath_var
19079
19080 # Is shlibpath searched before the hard-coded library search path?
19081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19082
19083 # How to hardcode a shared library path into an executable.
19084 hardcode_action=$hardcode_action_GCJ
19085
19086 # Whether we should hardcode library paths into libraries.
19087 hardcode_into_libs=$hardcode_into_libs
19088
19089 # Flag to hardcode \$libdir into a binary during linking.
19090 # This must work even if \$libdir does not exist.
19091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19092
19093 # If ld is used when linking, flag to hardcode \$libdir into
19094 # a binary during linking. This must work even if \$libdir does
19095 # not exist.
19096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19097
19098 # Whether we need a single -rpath flag with a separated argument.
19099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19100
19101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19102 # resulting binary.
19103 hardcode_direct=$hardcode_direct_GCJ
19104
19105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19106 # resulting binary.
19107 hardcode_minus_L=$hardcode_minus_L_GCJ
19108
19109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19110 # the resulting binary.
19111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19112
19113 # Set to yes if building a shared library automatically hardcodes DIR into the library
19114 # and all subsequent libraries and executables linked against it.
19115 hardcode_automatic=$hardcode_automatic_GCJ
19116
19117 # Variables whose values should be saved in libtool wrapper scripts and
19118 # restored at relink time.
19119 variables_saved_for_relink="$variables_saved_for_relink"
19120
19121 # Whether libtool must link a program against all its dependency libraries.
19122 link_all_deplibs=$link_all_deplibs_GCJ
19123
19124 # Compile-time system search path for libraries
19125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19126
19127 # Run-time system search path for libraries
19128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19129
19130 # Fix the shell variable \$srcfile for the compiler.
19131 fix_srcfile_path="$fix_srcfile_path_GCJ"
19132
19133 # Set to yes if exported symbols are required.
19134 always_export_symbols=$always_export_symbols_GCJ
19135
19136 # The commands to list exported symbols.
19137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19138
19139 # The commands to extract the exported symbol list from a shared archive.
19140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19141
19142 # Symbols that should not be listed in the preloaded symbols.
19143 exclude_expsyms=$lt_exclude_expsyms_GCJ
19144
19145 # Symbols that must always be exported.
19146 include_expsyms=$lt_include_expsyms_GCJ
19147
19148 # ### END LIBTOOL TAG CONFIG: $tagname
19149
19150 __EOF__
19151
19152
19153 else
19154   # If there is no Makefile yet, we rely on a make rule to execute
19155   # `config.status --recheck' to rerun these tests and create the
19156   # libtool script then.
19157   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19158   if test -f "$ltmain_in"; then
19159     test -f Makefile && make "$ltmain"
19160   fi
19161 fi
19162
19163
19164 ac_ext=c
19165 ac_cpp='$CPP $CPPFLAGS'
19166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19169
19170 CC="$lt_save_CC"
19171
19172         else
19173           tagname=""
19174         fi
19175         ;;
19176
19177       RC)
19178
19179
19180
19181 # Source file extension for RC test sources.
19182 ac_ext=rc
19183
19184 # Object file extension for compiled RC test sources.
19185 objext=o
19186 objext_RC=$objext
19187
19188 # Code to be used in simple compile tests
19189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19190
19191 # Code to be used in simple link tests
19192 lt_simple_link_test_code="$lt_simple_compile_test_code"
19193
19194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19195
19196 # If no C compiler was specified, use CC.
19197 LTCC=${LTCC-"$CC"}
19198
19199 # If no C compiler flags were specified, use CFLAGS.
19200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19201
19202 # Allow CC to be a program name with arguments.
19203 compiler=$CC
19204
19205
19206 # save warnings/boilerplate of simple test code
19207 ac_outfile=conftest.$ac_objext
19208 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19210 _lt_compiler_boilerplate=`cat conftest.err`
19211 $rm conftest*
19212
19213 ac_outfile=conftest.$ac_objext
19214 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19216 _lt_linker_boilerplate=`cat conftest.err`
19217 $rm conftest*
19218
19219
19220 # Allow CC to be a program name with arguments.
19221 lt_save_CC="$CC"
19222 CC=${RC-"windres"}
19223 compiler=$CC
19224 compiler_RC=$CC
19225 for cc_temp in $compiler""; do
19226   case $cc_temp in
19227     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19228     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19229     \-*) ;;
19230     *) break;;
19231   esac
19232 done
19233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19234
19235 lt_cv_prog_compiler_c_o_RC=yes
19236
19237 # The else clause should only fire when bootstrapping the
19238 # libtool distribution, otherwise you forgot to ship ltmain.sh
19239 # with your package, and you will get complaints that there are
19240 # no rules to generate ltmain.sh.
19241 if test -f "$ltmain"; then
19242   # See if we are running on zsh, and set the options which allow our commands through
19243   # without removal of \ escapes.
19244   if test -n "${ZSH_VERSION+set}" ; then
19245     setopt NO_GLOB_SUBST
19246   fi
19247   # Now quote all the things that may contain metacharacters while being
19248   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19249   # variables and quote the copies for generation of the libtool script.
19250   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19251     SED SHELL STRIP \
19252     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19253     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19254     deplibs_check_method reload_flag reload_cmds need_locks \
19255     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19256     lt_cv_sys_global_symbol_to_c_name_address \
19257     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19258     old_postinstall_cmds old_postuninstall_cmds \
19259     compiler_RC \
19260     CC_RC \
19261     LD_RC \
19262     lt_prog_compiler_wl_RC \
19263     lt_prog_compiler_pic_RC \
19264     lt_prog_compiler_static_RC \
19265     lt_prog_compiler_no_builtin_flag_RC \
19266     export_dynamic_flag_spec_RC \
19267     thread_safe_flag_spec_RC \
19268     whole_archive_flag_spec_RC \
19269     enable_shared_with_static_runtimes_RC \
19270     old_archive_cmds_RC \
19271     old_archive_from_new_cmds_RC \
19272     predep_objects_RC \
19273     postdep_objects_RC \
19274     predeps_RC \
19275     postdeps_RC \
19276     compiler_lib_search_path_RC \
19277     archive_cmds_RC \
19278     archive_expsym_cmds_RC \
19279     postinstall_cmds_RC \
19280     postuninstall_cmds_RC \
19281     old_archive_from_expsyms_cmds_RC \
19282     allow_undefined_flag_RC \
19283     no_undefined_flag_RC \
19284     export_symbols_cmds_RC \
19285     hardcode_libdir_flag_spec_RC \
19286     hardcode_libdir_flag_spec_ld_RC \
19287     hardcode_libdir_separator_RC \
19288     hardcode_automatic_RC \
19289     module_cmds_RC \
19290     module_expsym_cmds_RC \
19291     lt_cv_prog_compiler_c_o_RC \
19292     exclude_expsyms_RC \
19293     include_expsyms_RC; do
19294
19295     case $var in
19296     old_archive_cmds_RC | \
19297     old_archive_from_new_cmds_RC | \
19298     archive_cmds_RC | \
19299     archive_expsym_cmds_RC | \
19300     module_cmds_RC | \
19301     module_expsym_cmds_RC | \
19302     old_archive_from_expsyms_cmds_RC | \
19303     export_symbols_cmds_RC | \
19304     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19305     postinstall_cmds | postuninstall_cmds | \
19306     old_postinstall_cmds | old_postuninstall_cmds | \
19307     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19308       # Double-quote double-evaled strings.
19309       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19310       ;;
19311     *)
19312       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19313       ;;
19314     esac
19315   done
19316
19317   case $lt_echo in
19318   *'\$0 --fallback-echo"')
19319     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19320     ;;
19321   esac
19322
19323 cfgfile="$ofile"
19324
19325   cat <<__EOF__ >> "$cfgfile"
19326 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19327
19328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19329
19330 # Shell to use when invoking shell scripts.
19331 SHELL=$lt_SHELL
19332
19333 # Whether or not to build shared libraries.
19334 build_libtool_libs=$enable_shared
19335
19336 # Whether or not to build static libraries.
19337 build_old_libs=$enable_static
19338
19339 # Whether or not to add -lc for building shared libraries.
19340 build_libtool_need_lc=$archive_cmds_need_lc_RC
19341
19342 # Whether or not to disallow shared libs when runtime libs are static
19343 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19344
19345 # Whether or not to optimize for fast installation.
19346 fast_install=$enable_fast_install
19347
19348 # The host system.
19349 host_alias=$host_alias
19350 host=$host
19351 host_os=$host_os
19352
19353 # The build system.
19354 build_alias=$build_alias
19355 build=$build
19356 build_os=$build_os
19357
19358 # An echo program that does not interpret backslashes.
19359 echo=$lt_echo
19360
19361 # The archiver.
19362 AR=$lt_AR
19363 AR_FLAGS=$lt_AR_FLAGS
19364
19365 # A C compiler.
19366 LTCC=$lt_LTCC
19367
19368 # LTCC compiler flags.
19369 LTCFLAGS=$lt_LTCFLAGS
19370
19371 # A language-specific compiler.
19372 CC=$lt_compiler_RC
19373
19374 # Is the compiler the GNU C compiler?
19375 with_gcc=$GCC_RC
19376
19377 # An ERE matcher.
19378 EGREP=$lt_EGREP
19379
19380 # The linker used to build libraries.
19381 LD=$lt_LD_RC
19382
19383 # Whether we need hard or soft links.
19384 LN_S=$lt_LN_S
19385
19386 # A BSD-compatible nm program.
19387 NM=$lt_NM
19388
19389 # A symbol stripping program
19390 STRIP=$lt_STRIP
19391
19392 # Used to examine libraries when file_magic_cmd begins "file"
19393 MAGIC_CMD=$MAGIC_CMD
19394
19395 # Used on cygwin: DLL creation program.
19396 DLLTOOL="$DLLTOOL"
19397
19398 # Used on cygwin: object dumper.
19399 OBJDUMP="$OBJDUMP"
19400
19401 # Used on cygwin: assembler.
19402 AS="$AS"
19403
19404 # The name of the directory that contains temporary libtool files.
19405 objdir=$objdir
19406
19407 # How to create reloadable object files.
19408 reload_flag=$lt_reload_flag
19409 reload_cmds=$lt_reload_cmds
19410
19411 # How to pass a linker flag through the compiler.
19412 wl=$lt_lt_prog_compiler_wl_RC
19413
19414 # Object file suffix (normally "o").
19415 objext="$ac_objext"
19416
19417 # Old archive suffix (normally "a").
19418 libext="$libext"
19419
19420 # Shared library suffix (normally ".so").
19421 shrext_cmds='$shrext_cmds'
19422
19423 # Executable file suffix (normally "").
19424 exeext="$exeext"
19425
19426 # Additional compiler flags for building library objects.
19427 pic_flag=$lt_lt_prog_compiler_pic_RC
19428 pic_mode=$pic_mode
19429
19430 # What is the maximum length of a command?
19431 max_cmd_len=$lt_cv_sys_max_cmd_len
19432
19433 # Does compiler simultaneously support -c and -o options?
19434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19435
19436 # Must we lock files when doing compilation?
19437 need_locks=$lt_need_locks
19438
19439 # Do we need the lib prefix for modules?
19440 need_lib_prefix=$need_lib_prefix
19441
19442 # Do we need a version for libraries?
19443 need_version=$need_version
19444
19445 # Whether dlopen is supported.
19446 dlopen_support=$enable_dlopen
19447
19448 # Whether dlopen of programs is supported.
19449 dlopen_self=$enable_dlopen_self
19450
19451 # Whether dlopen of statically linked programs is supported.
19452 dlopen_self_static=$enable_dlopen_self_static
19453
19454 # Compiler flag to prevent dynamic linking.
19455 link_static_flag=$lt_lt_prog_compiler_static_RC
19456
19457 # Compiler flag to turn off builtin functions.
19458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19459
19460 # Compiler flag to allow reflexive dlopens.
19461 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19462
19463 # Compiler flag to generate shared objects directly from archives.
19464 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19465
19466 # Compiler flag to generate thread-safe objects.
19467 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19468
19469 # Library versioning type.
19470 version_type=$version_type
19471
19472 # Format of library name prefix.
19473 libname_spec=$lt_libname_spec
19474
19475 # List of archive names.  First name is the real one, the rest are links.
19476 # The last name is the one that the linker finds with -lNAME.
19477 library_names_spec=$lt_library_names_spec
19478
19479 # The coded name of the library, if different from the real name.
19480 soname_spec=$lt_soname_spec
19481
19482 # Commands used to build and install an old-style archive.
19483 RANLIB=$lt_RANLIB
19484 old_archive_cmds=$lt_old_archive_cmds_RC
19485 old_postinstall_cmds=$lt_old_postinstall_cmds
19486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19487
19488 # Create an old-style archive from a shared archive.
19489 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19490
19491 # Create a temporary old-style archive to link instead of a shared archive.
19492 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19493
19494 # Commands used to build and install a shared archive.
19495 archive_cmds=$lt_archive_cmds_RC
19496 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19497 postinstall_cmds=$lt_postinstall_cmds
19498 postuninstall_cmds=$lt_postuninstall_cmds
19499
19500 # Commands used to build a loadable module (assumed same as above if empty)
19501 module_cmds=$lt_module_cmds_RC
19502 module_expsym_cmds=$lt_module_expsym_cmds_RC
19503
19504 # Commands to strip libraries.
19505 old_striplib=$lt_old_striplib
19506 striplib=$lt_striplib
19507
19508 # Dependencies to place before the objects being linked to create a
19509 # shared library.
19510 predep_objects=$lt_predep_objects_RC
19511
19512 # Dependencies to place after the objects being linked to create a
19513 # shared library.
19514 postdep_objects=$lt_postdep_objects_RC
19515
19516 # Dependencies to place before the objects being linked to create a
19517 # shared library.
19518 predeps=$lt_predeps_RC
19519
19520 # Dependencies to place after the objects being linked to create a
19521 # shared library.
19522 postdeps=$lt_postdeps_RC
19523
19524 # The library search path used internally by the compiler when linking
19525 # a shared library.
19526 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19527
19528 # Method to check whether dependent libraries are shared objects.
19529 deplibs_check_method=$lt_deplibs_check_method
19530
19531 # Command to use when deplibs_check_method == file_magic.
19532 file_magic_cmd=$lt_file_magic_cmd
19533
19534 # Flag that allows shared libraries with undefined symbols to be built.
19535 allow_undefined_flag=$lt_allow_undefined_flag_RC
19536
19537 # Flag that forces no undefined symbols.
19538 no_undefined_flag=$lt_no_undefined_flag_RC
19539
19540 # Commands used to finish a libtool library installation in a directory.
19541 finish_cmds=$lt_finish_cmds
19542
19543 # Same as above, but a single script fragment to be evaled but not shown.
19544 finish_eval=$lt_finish_eval
19545
19546 # Take the output of nm and produce a listing of raw symbols and C names.
19547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19548
19549 # Transform the output of nm in a proper C declaration
19550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19551
19552 # Transform the output of nm in a C name address pair
19553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19554
19555 # This is the shared library runtime path variable.
19556 runpath_var=$runpath_var
19557
19558 # This is the shared library path variable.
19559 shlibpath_var=$shlibpath_var
19560
19561 # Is shlibpath searched before the hard-coded library search path?
19562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19563
19564 # How to hardcode a shared library path into an executable.
19565 hardcode_action=$hardcode_action_RC
19566
19567 # Whether we should hardcode library paths into libraries.
19568 hardcode_into_libs=$hardcode_into_libs
19569
19570 # Flag to hardcode \$libdir into a binary during linking.
19571 # This must work even if \$libdir does not exist.
19572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19573
19574 # If ld is used when linking, flag to hardcode \$libdir into
19575 # a binary during linking. This must work even if \$libdir does
19576 # not exist.
19577 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19578
19579 # Whether we need a single -rpath flag with a separated argument.
19580 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19581
19582 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19583 # resulting binary.
19584 hardcode_direct=$hardcode_direct_RC
19585
19586 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19587 # resulting binary.
19588 hardcode_minus_L=$hardcode_minus_L_RC
19589
19590 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19591 # the resulting binary.
19592 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19593
19594 # Set to yes if building a shared library automatically hardcodes DIR into the library
19595 # and all subsequent libraries and executables linked against it.
19596 hardcode_automatic=$hardcode_automatic_RC
19597
19598 # Variables whose values should be saved in libtool wrapper scripts and
19599 # restored at relink time.
19600 variables_saved_for_relink="$variables_saved_for_relink"
19601
19602 # Whether libtool must link a program against all its dependency libraries.
19603 link_all_deplibs=$link_all_deplibs_RC
19604
19605 # Compile-time system search path for libraries
19606 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19607
19608 # Run-time system search path for libraries
19609 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19610
19611 # Fix the shell variable \$srcfile for the compiler.
19612 fix_srcfile_path="$fix_srcfile_path_RC"
19613
19614 # Set to yes if exported symbols are required.
19615 always_export_symbols=$always_export_symbols_RC
19616
19617 # The commands to list exported symbols.
19618 export_symbols_cmds=$lt_export_symbols_cmds_RC
19619
19620 # The commands to extract the exported symbol list from a shared archive.
19621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19622
19623 # Symbols that should not be listed in the preloaded symbols.
19624 exclude_expsyms=$lt_exclude_expsyms_RC
19625
19626 # Symbols that must always be exported.
19627 include_expsyms=$lt_include_expsyms_RC
19628
19629 # ### END LIBTOOL TAG CONFIG: $tagname
19630
19631 __EOF__
19632
19633
19634 else
19635   # If there is no Makefile yet, we rely on a make rule to execute
19636   # `config.status --recheck' to rerun these tests and create the
19637   # libtool script then.
19638   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19639   if test -f "$ltmain_in"; then
19640     test -f Makefile && make "$ltmain"
19641   fi
19642 fi
19643
19644
19645 ac_ext=c
19646 ac_cpp='$CPP $CPPFLAGS'
19647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19650
19651 CC="$lt_save_CC"
19652
19653         ;;
19654
19655       *)
19656         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19657 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19658    { (exit 1); exit 1; }; }
19659         ;;
19660       esac
19661
19662       # Append the new tag name to the list of available tags.
19663       if test -n "$tagname" ; then
19664       available_tags="$available_tags $tagname"
19665     fi
19666     fi
19667   done
19668   IFS="$lt_save_ifs"
19669
19670   # Now substitute the updated list of available tags.
19671   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19672     mv "${ofile}T" "$ofile"
19673     chmod +x "$ofile"
19674   else
19675     rm -f "${ofile}T"
19676     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19677 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19678    { (exit 1); exit 1; }; }
19679   fi
19680 fi
19681
19682
19683
19684 # This can be used to rebuild libtool when needed
19685 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19686
19687 # Always use our own libtool.
19688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19689
19690 # Prevent multiple expansion
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712 if test "x$cross_compiling" = "xno"; then
19713         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19714 else
19715         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19716 fi
19717
19718
19719
19720 if test -n "$ac_tool_prefix"; then
19721   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19722 set dummy ${ac_tool_prefix}ar; ac_word=$2
19723 echo "$as_me:$LINENO: checking for $ac_word" >&5
19724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19725 if test "${ac_cv_prog_AR+set}" = set; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728   if test -n "$AR"; then
19729   ac_cv_prog_AR="$AR" # Let the user override the test.
19730 else
19731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732 for as_dir in $PATH
19733 do
19734   IFS=$as_save_IFS
19735   test -z "$as_dir" && as_dir=.
19736   for ac_exec_ext in '' $ac_executable_extensions; do
19737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19738     ac_cv_prog_AR="${ac_tool_prefix}ar"
19739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19740     break 2
19741   fi
19742 done
19743 done
19744
19745 fi
19746 fi
19747 AR=$ac_cv_prog_AR
19748 if test -n "$AR"; then
19749   echo "$as_me:$LINENO: result: $AR" >&5
19750 echo "${ECHO_T}$AR" >&6
19751 else
19752   echo "$as_me:$LINENO: result: no" >&5
19753 echo "${ECHO_T}no" >&6
19754 fi
19755
19756 fi
19757 if test -z "$ac_cv_prog_AR"; then
19758   ac_ct_AR=$AR
19759   # Extract the first word of "ar", so it can be a program name with args.
19760 set dummy ar; ac_word=$2
19761 echo "$as_me:$LINENO: checking for $ac_word" >&5
19762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19763 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   if test -n "$ac_ct_AR"; then
19767   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19768 else
19769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19770 for as_dir in $PATH
19771 do
19772   IFS=$as_save_IFS
19773   test -z "$as_dir" && as_dir=.
19774   for ac_exec_ext in '' $ac_executable_extensions; do
19775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19776     ac_cv_prog_ac_ct_AR="ar"
19777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19778     break 2
19779   fi
19780 done
19781 done
19782
19783 fi
19784 fi
19785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19786 if test -n "$ac_ct_AR"; then
19787   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19788 echo "${ECHO_T}$ac_ct_AR" >&6
19789 else
19790   echo "$as_me:$LINENO: result: no" >&5
19791 echo "${ECHO_T}no" >&6
19792 fi
19793
19794   AR=$ac_ct_AR
19795 else
19796   AR="$ac_cv_prog_AR"
19797 fi
19798
19799 if test -n "$ac_tool_prefix"; then
19800   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19801 set dummy ${ac_tool_prefix}ld; ac_word=$2
19802 echo "$as_me:$LINENO: checking for $ac_word" >&5
19803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19804 if test "${ac_cv_prog_LD+set}" = set; then
19805   echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807   if test -n "$LD"; then
19808   ac_cv_prog_LD="$LD" # Let the user override the test.
19809 else
19810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19811 for as_dir in $PATH
19812 do
19813   IFS=$as_save_IFS
19814   test -z "$as_dir" && as_dir=.
19815   for ac_exec_ext in '' $ac_executable_extensions; do
19816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19817     ac_cv_prog_LD="${ac_tool_prefix}ld"
19818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19819     break 2
19820   fi
19821 done
19822 done
19823
19824 fi
19825 fi
19826 LD=$ac_cv_prog_LD
19827 if test -n "$LD"; then
19828   echo "$as_me:$LINENO: result: $LD" >&5
19829 echo "${ECHO_T}$LD" >&6
19830 else
19831   echo "$as_me:$LINENO: result: no" >&5
19832 echo "${ECHO_T}no" >&6
19833 fi
19834
19835 fi
19836 if test -z "$ac_cv_prog_LD"; then
19837   ac_ct_LD=$LD
19838   # Extract the first word of "ld", so it can be a program name with args.
19839 set dummy ld; ac_word=$2
19840 echo "$as_me:$LINENO: checking for $ac_word" >&5
19841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19842 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19843   echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845   if test -n "$ac_ct_LD"; then
19846   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19847 else
19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19849 for as_dir in $PATH
19850 do
19851   IFS=$as_save_IFS
19852   test -z "$as_dir" && as_dir=.
19853   for ac_exec_ext in '' $ac_executable_extensions; do
19854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19855     ac_cv_prog_ac_ct_LD="ld"
19856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19857     break 2
19858   fi
19859 done
19860 done
19861
19862 fi
19863 fi
19864 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19865 if test -n "$ac_ct_LD"; then
19866   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19867 echo "${ECHO_T}$ac_ct_LD" >&6
19868 else
19869   echo "$as_me:$LINENO: result: no" >&5
19870 echo "${ECHO_T}no" >&6
19871 fi
19872
19873   LD=$ac_ct_LD
19874 else
19875   LD="$ac_cv_prog_LD"
19876 fi
19877
19878
19879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19881 if test "${ac_cv_header_stdc+set}" = set; then
19882   echo $ECHO_N "(cached) $ECHO_C" >&6
19883 else
19884   cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 #include <stdlib.h>
19891 #include <stdarg.h>
19892 #include <string.h>
19893 #include <float.h>
19894
19895 int
19896 main ()
19897 {
19898
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 rm -f conftest.$ac_objext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19905   (eval $ac_compile) 2>conftest.er1
19906   ac_status=$?
19907   grep -v '^ *+' conftest.er1 >conftest.err
19908   rm -f conftest.er1
19909   cat conftest.err >&5
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } &&
19912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914   (eval $ac_try) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; } &&
19918          { ac_try='test -s conftest.$ac_objext'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; }; then
19924   ac_cv_header_stdc=yes
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 ac_cv_header_stdc=no
19930 fi
19931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932
19933 if test $ac_cv_header_stdc = yes; then
19934   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19935   cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941 #include <string.h>
19942
19943 _ACEOF
19944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19945   $EGREP "memchr" >/dev/null 2>&1; then
19946   :
19947 else
19948   ac_cv_header_stdc=no
19949 fi
19950 rm -f conftest*
19951
19952 fi
19953
19954 if test $ac_cv_header_stdc = yes; then
19955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19956   cat >conftest.$ac_ext <<_ACEOF
19957 /* confdefs.h.  */
19958 _ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h.  */
19962 #include <stdlib.h>
19963
19964 _ACEOF
19965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19966   $EGREP "free" >/dev/null 2>&1; then
19967   :
19968 else
19969   ac_cv_header_stdc=no
19970 fi
19971 rm -f conftest*
19972
19973 fi
19974
19975 if test $ac_cv_header_stdc = yes; then
19976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19977   if test "$cross_compiling" = yes; then
19978   :
19979 else
19980   cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 #include <ctype.h>
19987 #if ((' ' & 0x0FF) == 0x020)
19988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19990 #else
19991 # define ISLOWER(c) \
19992                    (('a' <= (c) && (c) <= 'i') \
19993                      || ('j' <= (c) && (c) <= 'r') \
19994                      || ('s' <= (c) && (c) <= 'z'))
19995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19996 #endif
19997
19998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19999 int
20000 main ()
20001 {
20002   int i;
20003   for (i = 0; i < 256; i++)
20004     if (XOR (islower (i), ISLOWER (i))
20005         || toupper (i) != TOUPPER (i))
20006       exit(2);
20007   exit (0);
20008 }
20009 _ACEOF
20010 rm -f conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012   (eval $ac_link) 2>&5
20013   ac_status=$?
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; }; then
20021   :
20022 else
20023   echo "$as_me: program exited with status $ac_status" >&5
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 ( exit $ac_status )
20028 ac_cv_header_stdc=no
20029 fi
20030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20031 fi
20032 fi
20033 fi
20034 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20035 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20036 if test $ac_cv_header_stdc = yes; then
20037
20038 cat >>confdefs.h <<\_ACEOF
20039 #define STDC_HEADERS 1
20040 _ACEOF
20041
20042 fi
20043
20044
20045   echo "$as_me:$LINENO: checking for GNU libc2" >&5
20046 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20047   if test "${knfsd_cv_glibc2+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056
20057       #include <features.h>
20058       #if !defined(__GLIBC__)
20059       # error Nope
20060       #endif
20061
20062 _ACEOF
20063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20065   ac_status=$?
20066   grep -v '^ *+' conftest.er1 >conftest.err
20067   rm -f conftest.er1
20068   cat conftest.err >&5
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } >/dev/null; then
20071   if test -s conftest.err; then
20072     ac_cpp_err=$ac_c_preproc_warn_flag
20073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20074   else
20075     ac_cpp_err=
20076   fi
20077 else
20078   ac_cpp_err=yes
20079 fi
20080 if test -z "$ac_cpp_err"; then
20081   knfsd_cv_glibc2=yes
20082 else
20083   echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20085
20086   knfsd_cv_glibc2=no
20087 fi
20088 rm -f conftest.err conftest.$ac_ext
20089 fi
20090
20091   echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20092 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20093   if test $knfsd_cv_glibc2 = yes; then
20094     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20095     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20096   fi
20097
20098
20099   echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20100 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20101   if test "${knfsd_cv_bsd_signals+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104   if test "$cross_compiling" = yes; then
20105   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20106 See \`config.log' for more details." >&5
20107 echo "$as_me: error: cannot run test program while cross compiling
20108 See \`config.log' for more details." >&2;}
20109    { (exit 1); exit 1; }; }
20110 else
20111   cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117
20118         #include <signal.h>
20119         #include <unistd.h>
20120         #include <sys/wait.h>
20121
20122         static int counter = 0;
20123         static RETSIGTYPE handler(int num) { counter++; }
20124
20125         int main()
20126         {
20127                 int     s;
20128                 if ((s = fork()) < 0) return 1;
20129                 if (s != 0) {
20130                         if (wait(&s) < 0) return 1;
20131                         return WIFSIGNALED(s)? 1 : 0;
20132                 }
20133
20134                 signal(SIGHUP, handler);
20135                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20136                 return (counter == 2)? 0 : 1;
20137         }
20138
20139 _ACEOF
20140 rm -f conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142   (eval $ac_link) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   knfsd_cv_bsd_signals=yes
20152 else
20153   echo "$as_me: program exited with status $ac_status" >&5
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 ( exit $ac_status )
20158 knfsd_cv_bsd_signals=no
20159 fi
20160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20161 fi
20162 fi
20163      echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20164 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20165     test $knfsd_cv_bsd_signals = yes &&
20166 cat >>confdefs.h <<\_ACEOF
20167 #define HAVE_BSD_SIGNALS 1
20168 _ACEOF
20169
20170
20171
20172 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20173 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20174 if test "${ac_cv_lib_socket_main+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lsocket  $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185
20186
20187 int
20188 main ()
20189 {
20190 main ();
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext conftest$ac_exeext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20197   (eval $ac_link) 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } &&
20204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; } &&
20210          { ac_try='test -s conftest$ac_exeext'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; }; then
20216   ac_cv_lib_socket_main=yes
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_cv_lib_socket_main=no
20222 fi
20223 rm -f conftest.err conftest.$ac_objext \
20224       conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20226 fi
20227 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20228 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20229 if test $ac_cv_lib_socket_main = yes; then
20230   LIBSOCKET="-lnsl"
20231 fi
20232
20233 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20234 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20235 if test "${ac_cv_lib_nsl_main+set}" = set; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   ac_check_lib_save_LIBS=$LIBS
20239 LIBS="-lnsl  $LIBS"
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246
20247
20248 int
20249 main ()
20250 {
20251 main ();
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20258   (eval $ac_link) 2>conftest.er1
20259   ac_status=$?
20260   grep -v '^ *+' conftest.er1 >conftest.err
20261   rm -f conftest.er1
20262   cat conftest.err >&5
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); } &&
20265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267   (eval $ac_try) 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); }; } &&
20271          { ac_try='test -s conftest$ac_exeext'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; }; then
20277   ac_cv_lib_nsl_main=yes
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_cv_lib_nsl_main=no
20283 fi
20284 rm -f conftest.err conftest.$ac_objext \
20285       conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20289 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20290 if test $ac_cv_lib_nsl_main = yes; then
20291   LIBNSL="-lnsl"
20292 fi
20293
20294 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20295 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20296 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lcrypt  $LIBS"
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307
20308 /* Override any gcc2 internal prototype to avoid an error.  */
20309 #ifdef __cplusplus
20310 extern "C"
20311 #endif
20312 /* We use char because int might match the return type of a gcc2
20313    builtin and then its argument prototype would still apply.  */
20314 char crypt ();
20315 int
20316 main ()
20317 {
20318 crypt ();
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } &&
20332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334   (eval $ac_try) 2>&5
20335   ac_status=$?
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); }; } &&
20338          { ac_try='test -s conftest$ac_exeext'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; }; then
20344   ac_cv_lib_crypt_crypt=yes
20345 else
20346   echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20348
20349 ac_cv_lib_crypt_crypt=no
20350 fi
20351 rm -f conftest.err conftest.$ac_objext \
20352       conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20354 fi
20355 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20356 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20357 if test $ac_cv_lib_crypt_crypt = yes; then
20358   LIBCRYPT="-lcrypt"
20359 fi
20360
20361 if test "$enable_nfsv4" = yes; then
20362     echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20363 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20364 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367   ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-levent  $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375
20376 /* Override any gcc2 internal prototype to avoid an error.  */
20377 #ifdef __cplusplus
20378 extern "C"
20379 #endif
20380 /* We use char because int might match the return type of a gcc2
20381    builtin and then its argument prototype would still apply.  */
20382 char event_dispatch ();
20383 int
20384 main ()
20385 {
20386 event_dispatch ();
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393   (eval $ac_link) 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest$ac_exeext'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   ac_cv_lib_event_event_dispatch=yes
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 ac_cv_lib_event_event_dispatch=no
20418 fi
20419 rm -f conftest.err conftest.$ac_objext \
20420       conftest$ac_exeext conftest.$ac_ext
20421 LIBS=$ac_check_lib_save_LIBS
20422 fi
20423 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20424 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20425 if test $ac_cv_lib_event_event_dispatch = yes; then
20426   libevent=1
20427 else
20428   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20429 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20430    { (exit 1); exit 1; }; }
20431 fi
20432
20433     echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20434 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20435 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438   ac_check_lib_save_LIBS=$LIBS
20439 LIBS="-lnfsidmap  $LIBS"
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446
20447 /* Override any gcc2 internal prototype to avoid an error.  */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 /* We use char because int might match the return type of a gcc2
20452    builtin and then its argument prototype would still apply.  */
20453 char nfs4_init_name_mapping ();
20454 int
20455 main ()
20456 {
20457 nfs4_init_name_mapping ();
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20464   (eval $ac_link) 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; } &&
20477          { ac_try='test -s conftest$ac_exeext'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; }; then
20483   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20489 fi
20490 rm -f conftest.err conftest.$ac_objext \
20491       conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20493 fi
20494 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20495 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20496 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20497   libnfsidmap=1
20498 else
20499   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20500 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20501    { (exit 1); exit 1; }; }
20502 fi
20503
20504
20505 for ac_header in event.h
20506 do
20507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20509   echo "$as_me:$LINENO: checking for $ac_header" >&5
20510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20512   echo $ECHO_N "(cached) $ECHO_C" >&6
20513 fi
20514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20516 else
20517   # Is the header compilable?
20518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h.  */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h.  */
20526 $ac_includes_default
20527 #include <$ac_header>
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20531   (eval $ac_compile) 2>conftest.er1
20532   ac_status=$?
20533   grep -v '^ *+' conftest.er1 >conftest.err
20534   rm -f conftest.er1
20535   cat conftest.err >&5
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); } &&
20538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; } &&
20544          { ac_try='test -s conftest.$ac_objext'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_header_compiler=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 ac_header_compiler=no
20556 fi
20557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20559 echo "${ECHO_T}$ac_header_compiler" >&6
20560
20561 # Is the header present?
20562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570 #include <$ac_header>
20571 _ACEOF
20572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20574   ac_status=$?
20575   grep -v '^ *+' conftest.er1 >conftest.err
20576   rm -f conftest.er1
20577   cat conftest.err >&5
20578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579   (exit $ac_status); } >/dev/null; then
20580   if test -s conftest.err; then
20581     ac_cpp_err=$ac_c_preproc_warn_flag
20582     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20583   else
20584     ac_cpp_err=
20585   fi
20586 else
20587   ac_cpp_err=yes
20588 fi
20589 if test -z "$ac_cpp_err"; then
20590   ac_header_preproc=yes
20591 else
20592   echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595   ac_header_preproc=no
20596 fi
20597 rm -f conftest.err conftest.$ac_ext
20598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20599 echo "${ECHO_T}$ac_header_preproc" >&6
20600
20601 # So?  What about this header?
20602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20603   yes:no: )
20604     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20608     ac_header_preproc=yes
20609     ;;
20610   no:yes:* )
20611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20613     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20614 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20615     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20617     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20618 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20621     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20623     (
20624       cat <<\_ASBOX
20625 ## ------------------------------- ##
20626 ## Report this to nfs@lists.sf.net ##
20627 ## ------------------------------- ##
20628 _ASBOX
20629     ) |
20630       sed "s/^/$as_me: WARNING:     /" >&2
20631     ;;
20632 esac
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 else
20638   eval "$as_ac_Header=\$ac_header_preproc"
20639 fi
20640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20642
20643 fi
20644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20645   cat >>confdefs.h <<_ACEOF
20646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20647 _ACEOF
20648
20649 else
20650   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20651 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20652    { (exit 1); exit 1; }; }
20653 fi
20654
20655 done
20656
20657
20658 for ac_header in nfsidmap.h
20659 do
20660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20662   echo "$as_me:$LINENO: checking for $ac_header" >&5
20663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 fi
20667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20669 else
20670   # Is the header compilable?
20671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 $ac_includes_default
20680 #include <$ac_header>
20681 _ACEOF
20682 rm -f conftest.$ac_objext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684   (eval $ac_compile) 2>conftest.er1
20685   ac_status=$?
20686   grep -v '^ *+' conftest.er1 >conftest.err
20687   rm -f conftest.er1
20688   cat conftest.err >&5
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); } &&
20691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693   (eval $ac_try) 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); }; } &&
20697          { ac_try='test -s conftest.$ac_objext'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; }; then
20703   ac_header_compiler=yes
20704 else
20705   echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708 ac_header_compiler=no
20709 fi
20710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20712 echo "${ECHO_T}$ac_header_compiler" >&6
20713
20714 # Is the header present?
20715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723 #include <$ac_header>
20724 _ACEOF
20725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } >/dev/null; then
20733   if test -s conftest.err; then
20734     ac_cpp_err=$ac_c_preproc_warn_flag
20735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20736   else
20737     ac_cpp_err=
20738   fi
20739 else
20740   ac_cpp_err=yes
20741 fi
20742 if test -z "$ac_cpp_err"; then
20743   ac_header_preproc=yes
20744 else
20745   echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748   ac_header_preproc=no
20749 fi
20750 rm -f conftest.err conftest.$ac_ext
20751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20752 echo "${ECHO_T}$ac_header_preproc" >&6
20753
20754 # So?  What about this header?
20755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20756   yes:no: )
20757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20761     ac_header_preproc=yes
20762     ;;
20763   no:yes:* )
20764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20776     (
20777       cat <<\_ASBOX
20778 ## ------------------------------- ##
20779 ## Report this to nfs@lists.sf.net ##
20780 ## ------------------------------- ##
20781 _ASBOX
20782     ) |
20783       sed "s/^/$as_me: WARNING:     /" >&2
20784     ;;
20785 esac
20786 echo "$as_me:$LINENO: checking for $ac_header" >&5
20787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791   eval "$as_ac_Header=\$ac_header_preproc"
20792 fi
20793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20795
20796 fi
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798   cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20800 _ACEOF
20801
20802 else
20803   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20804 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20805    { (exit 1); exit 1; }; }
20806 fi
20807
20808 done
20809
20810             if test "$enable_gss" = yes; then
20811
20812
20813 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20814         if test -n "$ac_tool_prefix"; then
20815   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20816 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20817 echo "$as_me:$LINENO: checking for $ac_word" >&5
20818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20820   echo $ECHO_N "(cached) $ECHO_C" >&6
20821 else
20822   case $PKG_CONFIG in
20823   [\\/]* | ?:[\\/]*)
20824   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20825   ;;
20826   *)
20827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20829 do
20830   IFS=$as_save_IFS
20831   test -z "$as_dir" && as_dir=.
20832   for ac_exec_ext in '' $ac_executable_extensions; do
20833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20834     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20836     break 2
20837   fi
20838 done
20839 done
20840
20841   ;;
20842 esac
20843 fi
20844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20845
20846 if test -n "$PKG_CONFIG"; then
20847   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20848 echo "${ECHO_T}$PKG_CONFIG" >&6
20849 else
20850   echo "$as_me:$LINENO: result: no" >&5
20851 echo "${ECHO_T}no" >&6
20852 fi
20853
20854 fi
20855 if test -z "$ac_cv_path_PKG_CONFIG"; then
20856   ac_pt_PKG_CONFIG=$PKG_CONFIG
20857   # Extract the first word of "pkg-config", so it can be a program name with args.
20858 set dummy pkg-config; ac_word=$2
20859 echo "$as_me:$LINENO: checking for $ac_word" >&5
20860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20861 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864   case $ac_pt_PKG_CONFIG in
20865   [\\/]* | ?:[\\/]*)
20866   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20867   ;;
20868   *)
20869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20870 for as_dir in $PATH
20871 do
20872   IFS=$as_save_IFS
20873   test -z "$as_dir" && as_dir=.
20874   for ac_exec_ext in '' $ac_executable_extensions; do
20875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20876     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20878     break 2
20879   fi
20880 done
20881 done
20882
20883   ;;
20884 esac
20885 fi
20886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20887
20888 if test -n "$ac_pt_PKG_CONFIG"; then
20889   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20890 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20891 else
20892   echo "$as_me:$LINENO: result: no" >&5
20893 echo "${ECHO_T}no" >&6
20894 fi
20895
20896   PKG_CONFIG=$ac_pt_PKG_CONFIG
20897 else
20898   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20899 fi
20900
20901 fi
20902 if test -n "$PKG_CONFIG"; then
20903         _pkg_min_version=0.9.0
20904         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20905 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20906         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20907                 echo "$as_me:$LINENO: result: yes" >&5
20908 echo "${ECHO_T}yes" >&6
20909         else
20910                 echo "$as_me:$LINENO: result: no" >&5
20911 echo "${ECHO_T}no" >&6
20912                 PKG_CONFIG=""
20913         fi
20914
20915 fi
20916
20917 pkg_failed=no
20918 echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
20919 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6
20920
20921 if test -n "$PKG_CONFIG"; then
20922     if test -n "$RPCSECGSS_CFLAGS"; then
20923         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
20924     else
20925         if test -n "$PKG_CONFIG" && \
20926     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20927   ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; then
20931   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss" 2>/dev/null`
20932 else
20933   pkg_failed=yes
20934 fi
20935     fi
20936 else
20937         pkg_failed=untried
20938 fi
20939 if test -n "$PKG_CONFIG"; then
20940     if test -n "$RPCSECGSS_LIBS"; then
20941         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
20942     else
20943         if test -n "$PKG_CONFIG" && \
20944     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss\"") >&5
20945   ($PKG_CONFIG --exists --print-errors "librpcsecgss") 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; then
20949   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss" 2>/dev/null`
20950 else
20951   pkg_failed=yes
20952 fi
20953     fi
20954 else
20955         pkg_failed=untried
20956 fi
20957
20958
20959
20960 if test $pkg_failed = yes; then
20961
20962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20963         _pkg_short_errors_supported=yes
20964 else
20965         _pkg_short_errors_supported=no
20966 fi
20967         if test $_pkg_short_errors_supported = yes; then
20968                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss"`
20969         else
20970                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss"`
20971         fi
20972         # Put the nasty error message in config.log where it belongs
20973         echo "$RPCSECGSS_PKG_ERRORS" >&5
20974
20975         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20976        If you have pkgconfig installed, you might try setting environment
20977        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20978 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20979        If you have pkgconfig installed, you might try setting environment
20980        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20981    { (exit 1); exit 1; }; }
20982
20983
20984 elif test $pkg_failed = untried; then
20985         { { echo "$as_me:$LINENO: error: Unable to locate information required to use librpcsecgss.
20986        If you have pkgconfig installed, you might try setting environment
20987        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&5
20988 echo "$as_me: error: Unable to locate information required to use librpcsecgss.
20989        If you have pkgconfig installed, you might try setting environment
20990        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig" >&2;}
20991    { (exit 1); exit 1; }; }
20992
20993
20994 else
20995         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
20996         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
20997         echo "$as_me:$LINENO: result: yes" >&5
20998 echo "${ECHO_T}yes" >&6
20999         :
21000 fi
21001     fi
21002
21003 fi
21004 if test "$knfsd_cv_glibc2" = no; then
21005     echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
21006 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
21007 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
21008   echo $ECHO_N "(cached) $ECHO_C" >&6
21009 else
21010   ac_check_lib_save_LIBS=$LIBS
21011 LIBS="-lbsd  $LIBS"
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h.  */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h.  */
21018
21019 /* Override any gcc2 internal prototype to avoid an error.  */
21020 #ifdef __cplusplus
21021 extern "C"
21022 #endif
21023 /* We use char because int might match the return type of a gcc2
21024    builtin and then its argument prototype would still apply.  */
21025 char daemon ();
21026 int
21027 main ()
21028 {
21029 daemon ();
21030   ;
21031   return 0;
21032 }
21033 _ACEOF
21034 rm -f conftest.$ac_objext conftest$ac_exeext
21035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21036   (eval $ac_link) 2>conftest.er1
21037   ac_status=$?
21038   grep -v '^ *+' conftest.er1 >conftest.err
21039   rm -f conftest.er1
21040   cat conftest.err >&5
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } &&
21043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045   (eval $ac_try) 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); }; } &&
21049          { ac_try='test -s conftest$ac_exeext'
21050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051   (eval $ac_try) 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); }; }; then
21055   ac_cv_lib_bsd_daemon=yes
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060 ac_cv_lib_bsd_daemon=no
21061 fi
21062 rm -f conftest.err conftest.$ac_objext \
21063       conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21065 fi
21066 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
21067 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
21068 if test $ac_cv_lib_bsd_daemon = yes; then
21069   LIBBSD="-lbsd"
21070 fi
21071
21072 fi
21073
21074
21075
21076
21077
21078 if test "$enable_gss" = yes; then
21079
21080 for ac_header in nfsidmap.h
21081 do
21082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21084   echo "$as_me:$LINENO: checking for $ac_header" >&5
21085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 fi
21089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21091 else
21092   # Is the header compilable?
21093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h.  */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h.  */
21101 $ac_includes_default
21102 #include <$ac_header>
21103 _ACEOF
21104 rm -f conftest.$ac_objext
21105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21106   (eval $ac_compile) 2>conftest.er1
21107   ac_status=$?
21108   grep -v '^ *+' conftest.er1 >conftest.err
21109   rm -f conftest.er1
21110   cat conftest.err >&5
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } &&
21113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; } &&
21119          { ac_try='test -s conftest.$ac_objext'
21120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121   (eval $ac_try) 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125   ac_header_compiler=yes
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130 ac_header_compiler=no
21131 fi
21132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21134 echo "${ECHO_T}$ac_header_compiler" >&6
21135
21136 # Is the header present?
21137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 #include <$ac_header>
21146 _ACEOF
21147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21149   ac_status=$?
21150   grep -v '^ *+' conftest.er1 >conftest.err
21151   rm -f conftest.er1
21152   cat conftest.err >&5
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); } >/dev/null; then
21155   if test -s conftest.err; then
21156     ac_cpp_err=$ac_c_preproc_warn_flag
21157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21158   else
21159     ac_cpp_err=
21160   fi
21161 else
21162   ac_cpp_err=yes
21163 fi
21164 if test -z "$ac_cpp_err"; then
21165   ac_header_preproc=yes
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170   ac_header_preproc=no
21171 fi
21172 rm -f conftest.err conftest.$ac_ext
21173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21174 echo "${ECHO_T}$ac_header_preproc" >&6
21175
21176 # So?  What about this header?
21177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21178   yes:no: )
21179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21183     ac_header_preproc=yes
21184     ;;
21185   no:yes:* )
21186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21198     (
21199       cat <<\_ASBOX
21200 ## ------------------------------- ##
21201 ## Report this to nfs@lists.sf.net ##
21202 ## ------------------------------- ##
21203 _ASBOX
21204     ) |
21205       sed "s/^/$as_me: WARNING:     /" >&2
21206     ;;
21207 esac
21208 echo "$as_me:$LINENO: checking for $ac_header" >&5
21209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213   eval "$as_ac_Header=\$ac_header_preproc"
21214 fi
21215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21217
21218 fi
21219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21220   cat >>confdefs.h <<_ACEOF
21221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21222 _ACEOF
21223
21224 else
21225   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21226 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21227    { (exit 1); exit 1; }; }
21228 fi
21229
21230 done
21231
21232
21233 for ac_header in spkm3.h
21234 do
21235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21237   echo "$as_me:$LINENO: checking for $ac_header" >&5
21238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21240   echo $ECHO_N "(cached) $ECHO_C" >&6
21241 fi
21242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21244 else
21245   # Is the header compilable?
21246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21248 cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 $ac_includes_default
21255 #include <$ac_header>
21256 _ACEOF
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259   (eval $ac_compile) 2>conftest.er1
21260   ac_status=$?
21261   grep -v '^ *+' conftest.er1 >conftest.err
21262   rm -f conftest.er1
21263   cat conftest.err >&5
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); } &&
21266          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268   (eval $ac_try) 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; } &&
21272          { ac_try='test -s conftest.$ac_objext'
21273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274   (eval $ac_try) 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }; }; then
21278   ac_header_compiler=yes
21279 else
21280   echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21282
21283 ac_header_compiler=no
21284 fi
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21287 echo "${ECHO_T}$ac_header_compiler" >&6
21288
21289 # Is the header present?
21290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21292 cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h.  */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h.  */
21298 #include <$ac_header>
21299 _ACEOF
21300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } >/dev/null; then
21308   if test -s conftest.err; then
21309     ac_cpp_err=$ac_c_preproc_warn_flag
21310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21311   else
21312     ac_cpp_err=
21313   fi
21314 else
21315   ac_cpp_err=yes
21316 fi
21317 if test -z "$ac_cpp_err"; then
21318   ac_header_preproc=yes
21319 else
21320   echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21322
21323   ac_header_preproc=no
21324 fi
21325 rm -f conftest.err conftest.$ac_ext
21326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21327 echo "${ECHO_T}$ac_header_preproc" >&6
21328
21329 # So?  What about this header?
21330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21331   yes:no: )
21332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21336     ac_header_preproc=yes
21337     ;;
21338   no:yes:* )
21339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21351     (
21352       cat <<\_ASBOX
21353 ## ------------------------------- ##
21354 ## Report this to nfs@lists.sf.net ##
21355 ## ------------------------------- ##
21356 _ASBOX
21357     ) |
21358       sed "s/^/$as_me: WARNING:     /" >&2
21359     ;;
21360 esac
21361 echo "$as_me:$LINENO: checking for $ac_header" >&5
21362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21364   echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366   eval "$as_ac_Header=\$ac_header_preproc"
21367 fi
21368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21370
21371 fi
21372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21373   cat >>confdefs.h <<_ACEOF
21374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21375 _ACEOF
21376
21377 else
21378   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21379 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21380 fi
21381
21382 done
21383
21384
21385
21386   echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21387 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21388
21389 # Check whether --with-krb5 or --without-krb5 was given.
21390 if test "${with_krb5+set}" = set; then
21391   withval="$with_krb5"
21392    case "$withval" in
21393     yes|no)
21394        krb5_with=""
21395        ;;
21396     *)
21397        krb5_with="$withval"
21398        ;;
21399     esac
21400
21401 fi;
21402
21403   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21404              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21405             K5CONFIG=""
21406     if test -f $dir/bin/krb5-config; then
21407       K5CONFIG=$dir/bin/krb5-config
21408     elif test -f "/usr/kerberos/bin/krb5-config"; then
21409       K5CONFIG="/usr/kerberos/bin/krb5-config"
21410     elif test -f "/usr/lib/mit/bin/krb5-config"; then
21411       K5CONFIG="/usr/lib/mit/bin/krb5-config"
21412     fi
21413     if test "$K5CONFIG" != ""; then
21414       KRBCFLAGS=`$K5CONFIG --cflags`
21415       KRBLIBS=`$K5CONFIG --libs gssapi`
21416       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21417
21418 cat >>confdefs.h <<_ACEOF
21419 #define KRB5_VERSION $K5VERS
21420 _ACEOF
21421
21422       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21423                 \( -f $dir/lib/libgssapi_krb5.a -o \
21424                    -f $dir/lib/libgssapi_krb5.so \) ; then
21425
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_KRB5 1
21428 _ACEOF
21429
21430          KRBDIR="$dir"
21431                      if test $K5VERS -le 131; then
21432
21433 cat >>confdefs.h <<\_ACEOF
21434 #define USE_GSS_KRB5_CCACHE_NAME 1
21435 _ACEOF
21436
21437          fi
21438          gssapi_lib=gssapi_krb5
21439          break
21440                   elif test \( -f $dir/include/heim_err.h -o\
21441                  -f $dir/include/heimdal/heim_err.h \) -a \
21442                 -f $dir/lib/libroken.a; then
21443
21444 cat >>confdefs.h <<\_ACEOF
21445 #define HAVE_HEIMDAL 1
21446 _ACEOF
21447
21448          KRBDIR="$dir"
21449          gssapi_lib=gssapi
21450         break
21451       fi
21452     fi
21453   done
21454     if test "x$KRBDIR" = "x"; then
21455     if test "x$krb5_with" = "x"; then
21456       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21457 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21458    { (exit 1); exit 1; }; }
21459     else
21460       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21461 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21462    { (exit 1); exit 1; }; }
21463     fi
21464   fi
21465   echo "$as_me:$LINENO: result: $KRBDIR" >&5
21466 echo "${ECHO_T}$KRBDIR" >&6
21467
21468     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21469 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21470 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21471 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474   ac_check_lib_save_LIBS=$LIBS
21475 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483 /* Override any gcc2 internal prototype to avoid an error.  */
21484 #ifdef __cplusplus
21485 extern "C"
21486 #endif
21487 /* We use char because int might match the return type of a gcc2
21488    builtin and then its argument prototype would still apply.  */
21489 char gss_krb5_export_lucid_sec_context ();
21490 int
21491 main ()
21492 {
21493 gss_krb5_export_lucid_sec_context ();
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 rm -f conftest.$ac_objext conftest$ac_exeext
21499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21500   (eval $ac_link) 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } &&
21507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21509   (eval $ac_try) 2>&5
21510   ac_status=$?
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); }; } &&
21513          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21519   eval "$as_ac_Lib=yes"
21520 else
21521   echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524 eval "$as_ac_Lib=no"
21525 fi
21526 rm -f conftest.err conftest.$ac_objext \
21527       conftest$ac_exeext conftest.$ac_ext
21528 LIBS=$ac_check_lib_save_LIBS
21529 fi
21530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21531 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21532 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21533
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21536 _ACEOF
21537
21538 fi
21539
21540   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21541 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21542 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21543 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21544   echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546   ac_check_lib_save_LIBS=$LIBS
21547 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h.  */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h.  */
21554
21555 /* Override any gcc2 internal prototype to avoid an error.  */
21556 #ifdef __cplusplus
21557 extern "C"
21558 #endif
21559 /* We use char because int might match the return type of a gcc2
21560    builtin and then its argument prototype would still apply.  */
21561 char gss_krb5_set_allowable_enctypes ();
21562 int
21563 main ()
21564 {
21565 gss_krb5_set_allowable_enctypes ();
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21572   (eval $ac_link) 2>conftest.er1
21573   ac_status=$?
21574   grep -v '^ *+' conftest.er1 >conftest.err
21575   rm -f conftest.er1
21576   cat conftest.err >&5
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); } &&
21579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581   (eval $ac_try) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; } &&
21585          { ac_try='test -s conftest$ac_exeext'
21586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587   (eval $ac_try) 2>&5
21588   ac_status=$?
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); }; }; then
21591   eval "$as_ac_Lib=yes"
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 eval "$as_ac_Lib=no"
21597 fi
21598 rm -f conftest.err conftest.$ac_objext \
21599       conftest$ac_exeext conftest.$ac_ext
21600 LIBS=$ac_check_lib_save_LIBS
21601 fi
21602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21603 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21604 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21605
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21608 _ACEOF
21609
21610 fi
21611
21612   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21613 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21614 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21615 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21616   echo $ECHO_N "(cached) $ECHO_C" >&6
21617 else
21618   ac_check_lib_save_LIBS=$LIBS
21619 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21620 cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626
21627 /* Override any gcc2 internal prototype to avoid an error.  */
21628 #ifdef __cplusplus
21629 extern "C"
21630 #endif
21631 /* We use char because int might match the return type of a gcc2
21632    builtin and then its argument prototype would still apply.  */
21633 char gss_krb5_ccache_name ();
21634 int
21635 main ()
21636 {
21637 gss_krb5_ccache_name ();
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644   (eval $ac_link) 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } &&
21651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest$ac_exeext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   eval "$as_ac_Lib=yes"
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668 eval "$as_ac_Lib=no"
21669 fi
21670 rm -f conftest.err conftest.$ac_objext \
21671       conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21673 fi
21674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21675 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21676 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21677
21678 cat >>confdefs.h <<\_ACEOF
21679 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21680 _ACEOF
21681
21682 fi
21683
21684
21685     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21686     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21687 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21688   fi
21689
21690
21691
21692
21693
21694
21695
21696
21697       echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21698 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21699 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21700   echo $ECHO_N "(cached) $ECHO_C" >&6
21701 else
21702   ac_check_lib_save_LIBS=$LIBS
21703 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h.  */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h.  */
21710
21711 /* Override any gcc2 internal prototype to avoid an error.  */
21712 #ifdef __cplusplus
21713 extern "C"
21714 #endif
21715 /* We use char because int might match the return type of a gcc2
21716    builtin and then its argument prototype would still apply.  */
21717 char authgss_create_default ();
21718 int
21719 main ()
21720 {
21721 authgss_create_default ();
21722   ;
21723   return 0;
21724 }
21725 _ACEOF
21726 rm -f conftest.$ac_objext conftest$ac_exeext
21727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21728   (eval $ac_link) 2>conftest.er1
21729   ac_status=$?
21730   grep -v '^ *+' conftest.er1 >conftest.err
21731   rm -f conftest.er1
21732   cat conftest.err >&5
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } &&
21735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737   (eval $ac_try) 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); }; } &&
21741          { ac_try='test -s conftest$ac_exeext'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; }; then
21747   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21748 else
21749   echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752 ac_cv_lib_rpcsecgss_authgss_create_default=no
21753 fi
21754 rm -f conftest.err conftest.$ac_objext \
21755       conftest$ac_exeext conftest.$ac_ext
21756 LIBS=$ac_check_lib_save_LIBS
21757 fi
21758 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21759 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21760 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21761   librpcsecgss=1
21762 else
21763   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21764 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21765    { (exit 1); exit 1; }; }
21766 fi
21767
21768   echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21769 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21770 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21771   echo $ECHO_N "(cached) $ECHO_C" >&6
21772 else
21773   ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21775 cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781
21782 /* Override any gcc2 internal prototype to avoid an error.  */
21783 #ifdef __cplusplus
21784 extern "C"
21785 #endif
21786 /* We use char because int might match the return type of a gcc2
21787    builtin and then its argument prototype would still apply.  */
21788 char authgss_set_debug_level ();
21789 int
21790 main ()
21791 {
21792 authgss_set_debug_level ();
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799   (eval $ac_link) 2>conftest.er1
21800   ac_status=$?
21801   grep -v '^ *+' conftest.er1 >conftest.err
21802   rm -f conftest.er1
21803   cat conftest.err >&5
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); } &&
21806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808   (eval $ac_try) 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; } &&
21812          { ac_try='test -s conftest$ac_exeext'
21813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814   (eval $ac_try) 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21819 else
21820   echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21824 fi
21825 rm -f conftest.err conftest.$ac_objext \
21826       conftest$ac_exeext conftest.$ac_ext
21827 LIBS=$ac_check_lib_save_LIBS
21828 fi
21829 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21830 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21831 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21832
21833 cat >>confdefs.h <<\_ACEOF
21834 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21835 _ACEOF
21836
21837 fi
21838
21839
21840 fi
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21865                  malloc.h memory.h netdb.h netinet/in.h paths.h \
21866                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21867                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21868                  syslog.h unistd.h com_err.h et/com_err.h
21869 do
21870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21872   echo "$as_me:$LINENO: checking for $ac_header" >&5
21873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21875   echo $ECHO_N "(cached) $ECHO_C" >&6
21876 fi
21877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21879 else
21880   # Is the header compilable?
21881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h.  */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h.  */
21889 $ac_includes_default
21890 #include <$ac_header>
21891 _ACEOF
21892 rm -f conftest.$ac_objext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21894   (eval $ac_compile) 2>conftest.er1
21895   ac_status=$?
21896   grep -v '^ *+' conftest.er1 >conftest.err
21897   rm -f conftest.er1
21898   cat conftest.err >&5
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } &&
21901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903   (eval $ac_try) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; } &&
21907          { ac_try='test -s conftest.$ac_objext'
21908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909   (eval $ac_try) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; }; then
21913   ac_header_compiler=yes
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 ac_header_compiler=no
21919 fi
21920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21922 echo "${ECHO_T}$ac_header_compiler" >&6
21923
21924 # Is the header present?
21925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 #include <$ac_header>
21934 _ACEOF
21935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21937   ac_status=$?
21938   grep -v '^ *+' conftest.er1 >conftest.err
21939   rm -f conftest.er1
21940   cat conftest.err >&5
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); } >/dev/null; then
21943   if test -s conftest.err; then
21944     ac_cpp_err=$ac_c_preproc_warn_flag
21945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21946   else
21947     ac_cpp_err=
21948   fi
21949 else
21950   ac_cpp_err=yes
21951 fi
21952 if test -z "$ac_cpp_err"; then
21953   ac_header_preproc=yes
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958   ac_header_preproc=no
21959 fi
21960 rm -f conftest.err conftest.$ac_ext
21961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21962 echo "${ECHO_T}$ac_header_preproc" >&6
21963
21964 # So?  What about this header?
21965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21966   yes:no: )
21967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21971     ac_header_preproc=yes
21972     ;;
21973   no:yes:* )
21974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21986     (
21987       cat <<\_ASBOX
21988 ## ------------------------------- ##
21989 ## Report this to nfs@lists.sf.net ##
21990 ## ------------------------------- ##
21991 _ASBOX
21992     ) |
21993       sed "s/^/$as_me: WARNING:     /" >&2
21994     ;;
21995 esac
21996 echo "$as_me:$LINENO: checking for $ac_header" >&5
21997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   eval "$as_ac_Header=\$ac_header_preproc"
22002 fi
22003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22005
22006 fi
22007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22008   cat >>confdefs.h <<_ACEOF
22009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22010 _ACEOF
22011
22012 fi
22013
22014 done
22015
22016
22017 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22018 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22019 if test "${ac_cv_c_const+set}" = set; then
22020   echo $ECHO_N "(cached) $ECHO_C" >&6
22021 else
22022   cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028
22029 int
22030 main ()
22031 {
22032 /* FIXME: Include the comments suggested by Paul. */
22033 #ifndef __cplusplus
22034   /* Ultrix mips cc rejects this.  */
22035   typedef int charset[2];
22036   const charset x;
22037   /* SunOS 4.1.1 cc rejects this.  */
22038   char const *const *ccp;
22039   char **p;
22040   /* NEC SVR4.0.2 mips cc rejects this.  */
22041   struct point {int x, y;};
22042   static struct point const zero = {0,0};
22043   /* AIX XL C 1.02.0.0 rejects this.
22044      It does not let you subtract one const X* pointer from another in
22045      an arm of an if-expression whose if-part is not a constant
22046      expression */
22047   const char *g = "string";
22048   ccp = &g + (g ? g-g : 0);
22049   /* HPUX 7.0 cc rejects these. */
22050   ++ccp;
22051   p = (char**) ccp;
22052   ccp = (char const *const *) p;
22053   { /* SCO 3.2v4 cc rejects this.  */
22054     char *t;
22055     char const *s = 0 ? (char *) 0 : (char const *) 0;
22056
22057     *t++ = 0;
22058   }
22059   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22060     int x[] = {25, 17};
22061     const int *foo = &x[0];
22062     ++foo;
22063   }
22064   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22065     typedef const int *iptr;
22066     iptr p = 0;
22067     ++p;
22068   }
22069   { /* AIX XL C 1.02.0.0 rejects this saying
22070        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22071     struct s { int j; const int *ap[3]; };
22072     struct s *b; b->j = 5;
22073   }
22074   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22075     const int foo = 10;
22076   }
22077 #endif
22078
22079   ;
22080   return 0;
22081 }
22082 _ACEOF
22083 rm -f conftest.$ac_objext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22085   (eval $ac_compile) 2>conftest.er1
22086   ac_status=$?
22087   grep -v '^ *+' conftest.er1 >conftest.err
22088   rm -f conftest.er1
22089   cat conftest.err >&5
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } &&
22092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094   (eval $ac_try) 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); }; } &&
22098          { ac_try='test -s conftest.$ac_objext'
22099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100   (eval $ac_try) 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); }; }; then
22104   ac_cv_c_const=yes
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109 ac_cv_c_const=no
22110 fi
22111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22112 fi
22113 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22114 echo "${ECHO_T}$ac_cv_c_const" >&6
22115 if test $ac_cv_c_const = no; then
22116
22117 cat >>confdefs.h <<\_ACEOF
22118 #define const
22119 _ACEOF
22120
22121 fi
22122
22123 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22124 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22125 if test "${ac_cv_type_uid_t+set}" = set; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128   cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134 #include <sys/types.h>
22135
22136 _ACEOF
22137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22138   $EGREP "uid_t" >/dev/null 2>&1; then
22139   ac_cv_type_uid_t=yes
22140 else
22141   ac_cv_type_uid_t=no
22142 fi
22143 rm -f conftest*
22144
22145 fi
22146 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22147 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22148 if test $ac_cv_type_uid_t = no; then
22149
22150 cat >>confdefs.h <<\_ACEOF
22151 #define uid_t int
22152 _ACEOF
22153
22154
22155 cat >>confdefs.h <<\_ACEOF
22156 #define gid_t int
22157 _ACEOF
22158
22159 fi
22160
22161 echo "$as_me:$LINENO: checking for inline" >&5
22162 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22163 if test "${ac_cv_c_inline+set}" = set; then
22164   echo $ECHO_N "(cached) $ECHO_C" >&6
22165 else
22166   ac_cv_c_inline=no
22167 for ac_kw in inline __inline__ __inline; do
22168   cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 #ifndef __cplusplus
22175 typedef int foo_t;
22176 static $ac_kw foo_t static_foo () {return 0; }
22177 $ac_kw foo_t foo () {return 0; }
22178 #endif
22179
22180 _ACEOF
22181 rm -f conftest.$ac_objext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22183   (eval $ac_compile) 2>conftest.er1
22184   ac_status=$?
22185   grep -v '^ *+' conftest.er1 >conftest.err
22186   rm -f conftest.er1
22187   cat conftest.err >&5
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); } &&
22190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192   (eval $ac_try) 2>&5
22193   ac_status=$?
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); }; } &&
22196          { ac_try='test -s conftest.$ac_objext'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; }; then
22202   ac_cv_c_inline=$ac_kw; break
22203 else
22204   echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22206
22207 fi
22208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22209 done
22210
22211 fi
22212 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22213 echo "${ECHO_T}$ac_cv_c_inline" >&6
22214
22215
22216 case $ac_cv_c_inline in
22217   inline | yes) ;;
22218   *)
22219     case $ac_cv_c_inline in
22220       no) ac_val=;;
22221       *) ac_val=$ac_cv_c_inline;;
22222     esac
22223     cat >>confdefs.h <<_ACEOF
22224 #ifndef __cplusplus
22225 #define inline $ac_val
22226 #endif
22227 _ACEOF
22228     ;;
22229 esac
22230
22231 echo "$as_me:$LINENO: checking for off_t" >&5
22232 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22233 if test "${ac_cv_type_off_t+set}" = set; then
22234   echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236   cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h.  */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h.  */
22242 $ac_includes_default
22243 int
22244 main ()
22245 {
22246 if ((off_t *) 0)
22247   return 0;
22248 if (sizeof (off_t))
22249   return 0;
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256   (eval $ac_compile) 2>conftest.er1
22257   ac_status=$?
22258   grep -v '^ *+' conftest.er1 >conftest.err
22259   rm -f conftest.er1
22260   cat conftest.err >&5
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } &&
22263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265   (eval $ac_try) 2>&5
22266   ac_status=$?
22267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268   (exit $ac_status); }; } &&
22269          { ac_try='test -s conftest.$ac_objext'
22270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271   (eval $ac_try) 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; }; then
22275   ac_cv_type_off_t=yes
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 ac_cv_type_off_t=no
22281 fi
22282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22283 fi
22284 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22285 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22286 if test $ac_cv_type_off_t = yes; then
22287   :
22288 else
22289
22290 cat >>confdefs.h <<_ACEOF
22291 #define off_t long
22292 _ACEOF
22293
22294 fi
22295
22296 echo "$as_me:$LINENO: checking for pid_t" >&5
22297 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22298 if test "${ac_cv_type_pid_t+set}" = set; then
22299   echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301   cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307 $ac_includes_default
22308 int
22309 main ()
22310 {
22311 if ((pid_t *) 0)
22312   return 0;
22313 if (sizeof (pid_t))
22314   return 0;
22315   ;
22316   return 0;
22317 }
22318 _ACEOF
22319 rm -f conftest.$ac_objext
22320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22321   (eval $ac_compile) 2>conftest.er1
22322   ac_status=$?
22323   grep -v '^ *+' conftest.er1 >conftest.err
22324   rm -f conftest.er1
22325   cat conftest.err >&5
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); } &&
22328          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330   (eval $ac_try) 2>&5
22331   ac_status=$?
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); }; } &&
22334          { ac_try='test -s conftest.$ac_objext'
22335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336   (eval $ac_try) 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); }; }; then
22340   ac_cv_type_pid_t=yes
22341 else
22342   echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345 ac_cv_type_pid_t=no
22346 fi
22347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22348 fi
22349 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22350 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22351 if test $ac_cv_type_pid_t = yes; then
22352   :
22353 else
22354
22355 cat >>confdefs.h <<_ACEOF
22356 #define pid_t int
22357 _ACEOF
22358
22359 fi
22360
22361 echo "$as_me:$LINENO: checking for size_t" >&5
22362 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22363 if test "${ac_cv_type_size_t+set}" = set; then
22364   echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366   cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 $ac_includes_default
22373 int
22374 main ()
22375 {
22376 if ((size_t *) 0)
22377   return 0;
22378 if (sizeof (size_t))
22379   return 0;
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22386   (eval $ac_compile) 2>conftest.er1
22387   ac_status=$?
22388   grep -v '^ *+' conftest.er1 >conftest.err
22389   rm -f conftest.er1
22390   cat conftest.err >&5
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); } &&
22393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; } &&
22399          { ac_try='test -s conftest.$ac_objext'
22400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401   (eval $ac_try) 2>&5
22402   ac_status=$?
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); }; }; then
22405   ac_cv_type_size_t=yes
22406 else
22407   echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410 ac_cv_type_size_t=no
22411 fi
22412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22413 fi
22414 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22415 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22416 if test $ac_cv_type_size_t = yes; then
22417   :
22418 else
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define size_t unsigned
22422 _ACEOF
22423
22424 fi
22425
22426 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22427 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22428 if test "${ac_cv_header_time+set}" = set; then
22429   echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431   cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h.  */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h.  */
22437 #include <sys/types.h>
22438 #include <sys/time.h>
22439 #include <time.h>
22440
22441 int
22442 main ()
22443 {
22444 if ((struct tm *) 0)
22445 return 0;
22446   ;
22447   return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext
22451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22452   (eval $ac_compile) 2>conftest.er1
22453   ac_status=$?
22454   grep -v '^ *+' conftest.er1 >conftest.err
22455   rm -f conftest.er1
22456   cat conftest.err >&5
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); } &&
22459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461   (eval $ac_try) 2>&5
22462   ac_status=$?
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); }; } &&
22465          { ac_try='test -s conftest.$ac_objext'
22466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467   (eval $ac_try) 2>&5
22468   ac_status=$?
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); }; }; then
22471   ac_cv_header_time=yes
22472 else
22473   echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476 ac_cv_header_time=no
22477 fi
22478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22479 fi
22480 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22481 echo "${ECHO_T}$ac_cv_header_time" >&6
22482 if test $ac_cv_header_time = yes; then
22483
22484 cat >>confdefs.h <<\_ACEOF
22485 #define TIME_WITH_SYS_TIME 1
22486 _ACEOF
22487
22488 fi
22489
22490 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22491 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22492 if test "${ac_cv_struct_tm+set}" = set; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495   cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501 #include <sys/types.h>
22502 #include <time.h>
22503
22504 int
22505 main ()
22506 {
22507 struct tm *tp; tp->tm_sec;
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22514   (eval $ac_compile) 2>conftest.er1
22515   ac_status=$?
22516   grep -v '^ *+' conftest.er1 >conftest.err
22517   rm -f conftest.er1
22518   cat conftest.err >&5
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); } &&
22521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523   (eval $ac_try) 2>&5
22524   ac_status=$?
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); }; } &&
22527          { ac_try='test -s conftest.$ac_objext'
22528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529   (eval $ac_try) 2>&5
22530   ac_status=$?
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); }; }; then
22533   ac_cv_struct_tm=time.h
22534 else
22535   echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22537
22538 ac_cv_struct_tm=sys/time.h
22539 fi
22540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22541 fi
22542 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22543 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22544 if test $ac_cv_struct_tm = sys/time.h; then
22545
22546 cat >>confdefs.h <<\_ACEOF
22547 #define TM_IN_SYS_TIME 1
22548 _ACEOF
22549
22550 fi
22551
22552
22553 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22554 # for constant arguments.  Useless!
22555 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22556 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22557 if test "${ac_cv_working_alloca_h+set}" = set; then
22558   echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560   cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566 #include <alloca.h>
22567 int
22568 main ()
22569 {
22570 char *p = (char *) alloca (2 * sizeof (int));
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   ac_cv_working_alloca_h=yes
22597 else
22598   echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22600
22601 ac_cv_working_alloca_h=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: $ac_cv_working_alloca_h" >&5
22607 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22608 if test $ac_cv_working_alloca_h = yes; then
22609
22610 cat >>confdefs.h <<\_ACEOF
22611 #define HAVE_ALLOCA_H 1
22612 _ACEOF
22613
22614 fi
22615
22616 echo "$as_me:$LINENO: checking for alloca" >&5
22617 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22618 if test "${ac_cv_func_alloca_works+set}" = set; then
22619   echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621   cat >conftest.$ac_ext <<_ACEOF
22622 /* confdefs.h.  */
22623 _ACEOF
22624 cat confdefs.h >>conftest.$ac_ext
22625 cat >>conftest.$ac_ext <<_ACEOF
22626 /* end confdefs.h.  */
22627 #ifdef __GNUC__
22628 # define alloca __builtin_alloca
22629 #else
22630 # ifdef _MSC_VER
22631 #  include <malloc.h>
22632 #  define alloca _alloca
22633 # else
22634 #  if HAVE_ALLOCA_H
22635 #   include <alloca.h>
22636 #  else
22637 #   ifdef _AIX
22638  #pragma alloca
22639 #   else
22640 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22641 char *alloca ();
22642 #    endif
22643 #   endif
22644 #  endif
22645 # endif
22646 #endif
22647
22648 int
22649 main ()
22650 {
22651 char *p = (char *) alloca (1);
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22658   (eval $ac_link) 2>conftest.er1
22659   ac_status=$?
22660   grep -v '^ *+' conftest.er1 >conftest.err
22661   rm -f conftest.er1
22662   cat conftest.err >&5
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); } &&
22665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667   (eval $ac_try) 2>&5
22668   ac_status=$?
22669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670   (exit $ac_status); }; } &&
22671          { ac_try='test -s conftest$ac_exeext'
22672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673   (eval $ac_try) 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); }; }; then
22677   ac_cv_func_alloca_works=yes
22678 else
22679   echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682 ac_cv_func_alloca_works=no
22683 fi
22684 rm -f conftest.err conftest.$ac_objext \
22685       conftest$ac_exeext conftest.$ac_ext
22686 fi
22687 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22688 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22689
22690 if test $ac_cv_func_alloca_works = yes; then
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_ALLOCA 1
22694 _ACEOF
22695
22696 else
22697   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22698 # that cause trouble.  Some versions do not even contain alloca or
22699 # contain a buggy version.  If you still want to use their alloca,
22700 # use ar to extract alloca.o from them instead of compiling alloca.c.
22701
22702 ALLOCA=alloca.$ac_objext
22703
22704 cat >>confdefs.h <<\_ACEOF
22705 #define C_ALLOCA 1
22706 _ACEOF
22707
22708
22709 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22710 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22711 if test "${ac_cv_os_cray+set}" = set; then
22712   echo $ECHO_N "(cached) $ECHO_C" >&6
22713 else
22714   cat >conftest.$ac_ext <<_ACEOF
22715 /* confdefs.h.  */
22716 _ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h.  */
22720 #if defined(CRAY) && ! defined(CRAY2)
22721 webecray
22722 #else
22723 wenotbecray
22724 #endif
22725
22726 _ACEOF
22727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22728   $EGREP "webecray" >/dev/null 2>&1; then
22729   ac_cv_os_cray=yes
22730 else
22731   ac_cv_os_cray=no
22732 fi
22733 rm -f conftest*
22734
22735 fi
22736 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22737 echo "${ECHO_T}$ac_cv_os_cray" >&6
22738 if test $ac_cv_os_cray = yes; then
22739   for ac_func in _getb67 GETB67 getb67; do
22740     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22741 echo "$as_me:$LINENO: checking for $ac_func" >&5
22742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22743 if eval "test \"\${$as_ac_var+set}\" = set"; then
22744   echo $ECHO_N "(cached) $ECHO_C" >&6
22745 else
22746   cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h.  */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h.  */
22752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22754 #define $ac_func innocuous_$ac_func
22755
22756 /* System header to define __stub macros and hopefully few prototypes,
22757     which can conflict with char $ac_func (); below.
22758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22759     <limits.h> exists even on freestanding compilers.  */
22760
22761 #ifdef __STDC__
22762 # include <limits.h>
22763 #else
22764 # include <assert.h>
22765 #endif
22766
22767 #undef $ac_func
22768
22769 /* Override any gcc2 internal prototype to avoid an error.  */
22770 #ifdef __cplusplus
22771 extern "C"
22772 {
22773 #endif
22774 /* We use char because int might match the return type of a gcc2
22775    builtin and then its argument prototype would still apply.  */
22776 char $ac_func ();
22777 /* The GNU C library defines this for functions which it implements
22778     to always fail with ENOSYS.  Some functions are actually named
22779     something starting with __ and the normal name is an alias.  */
22780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22781 choke me
22782 #else
22783 char (*f) () = $ac_func;
22784 #endif
22785 #ifdef __cplusplus
22786 }
22787 #endif
22788
22789 int
22790 main ()
22791 {
22792 return f != $ac_func;
22793   ;
22794   return 0;
22795 }
22796 _ACEOF
22797 rm -f conftest.$ac_objext conftest$ac_exeext
22798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22799   (eval $ac_link) 2>conftest.er1
22800   ac_status=$?
22801   grep -v '^ *+' conftest.er1 >conftest.err
22802   rm -f conftest.er1
22803   cat conftest.err >&5
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); } &&
22806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808   (eval $ac_try) 2>&5
22809   ac_status=$?
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); }; } &&
22812          { ac_try='test -s conftest$ac_exeext'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; }; then
22818   eval "$as_ac_var=yes"
22819 else
22820   echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823 eval "$as_ac_var=no"
22824 fi
22825 rm -f conftest.err conftest.$ac_objext \
22826       conftest$ac_exeext conftest.$ac_ext
22827 fi
22828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22830 if test `eval echo '${'$as_ac_var'}'` = yes; then
22831
22832 cat >>confdefs.h <<_ACEOF
22833 #define CRAY_STACKSEG_END $ac_func
22834 _ACEOF
22835
22836     break
22837 fi
22838
22839   done
22840 fi
22841
22842 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22843 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22844 if test "${ac_cv_c_stack_direction+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847   if test "$cross_compiling" = yes; then
22848   ac_cv_c_stack_direction=0
22849 else
22850   cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856 int
22857 find_stack_direction ()
22858 {
22859   static char *addr = 0;
22860   auto char dummy;
22861   if (addr == 0)
22862     {
22863       addr = &dummy;
22864       return find_stack_direction ();
22865     }
22866   else
22867     return (&dummy > addr) ? 1 : -1;
22868 }
22869
22870 int
22871 main ()
22872 {
22873   exit (find_stack_direction () < 0);
22874 }
22875 _ACEOF
22876 rm -f conftest$ac_exeext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22878   (eval $ac_link) 2>&5
22879   ac_status=$?
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; }; then
22887   ac_cv_c_stack_direction=1
22888 else
22889   echo "$as_me: program exited with status $ac_status" >&5
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 ( exit $ac_status )
22894 ac_cv_c_stack_direction=-1
22895 fi
22896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22897 fi
22898 fi
22899 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22900 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22901
22902 cat >>confdefs.h <<_ACEOF
22903 #define STACK_DIRECTION $ac_cv_c_stack_direction
22904 _ACEOF
22905
22906
22907 fi
22908
22909
22910
22911
22912
22913
22914 ac_header_dirent=no
22915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22916   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22917 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22918 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22920   echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922   cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h.  */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h.  */
22928 #include <sys/types.h>
22929 #include <$ac_hdr>
22930
22931 int
22932 main ()
22933 {
22934 if ((DIR *) 0)
22935 return 0;
22936   ;
22937   return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22942   (eval $ac_compile) 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } &&
22949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951   (eval $ac_try) 2>&5
22952   ac_status=$?
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); }; } &&
22955          { ac_try='test -s conftest.$ac_objext'
22956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957   (eval $ac_try) 2>&5
22958   ac_status=$?
22959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960   (exit $ac_status); }; }; then
22961   eval "$as_ac_Header=yes"
22962 else
22963   echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966 eval "$as_ac_Header=no"
22967 fi
22968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22969 fi
22970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22973   cat >>confdefs.h <<_ACEOF
22974 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22975 _ACEOF
22976
22977 ac_header_dirent=$ac_hdr; break
22978 fi
22979
22980 done
22981 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22982 if test $ac_header_dirent = dirent.h; then
22983   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22984 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22985 if test "${ac_cv_search_opendir+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   ac_func_search_save_LIBS=$LIBS
22989 ac_cv_search_opendir=no
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996
22997 /* Override any gcc2 internal prototype to avoid an error.  */
22998 #ifdef __cplusplus
22999 extern "C"
23000 #endif
23001 /* We use char because int might match the return type of a gcc2
23002    builtin and then its argument prototype would still apply.  */
23003 char opendir ();
23004 int
23005 main ()
23006 {
23007 opendir ();
23008   ;
23009   return 0;
23010 }
23011 _ACEOF
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014   (eval $ac_link) 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } &&
23021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023   (eval $ac_try) 2>&5
23024   ac_status=$?
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); }; } &&
23027          { ac_try='test -s conftest$ac_exeext'
23028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029   (eval $ac_try) 2>&5
23030   ac_status=$?
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); }; }; then
23033   ac_cv_search_opendir="none required"
23034 else
23035   echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038 fi
23039 rm -f conftest.err conftest.$ac_objext \
23040       conftest$ac_exeext conftest.$ac_ext
23041 if test "$ac_cv_search_opendir" = no; then
23042   for ac_lib in dir; do
23043     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23044     cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050
23051 /* Override any gcc2 internal prototype to avoid an error.  */
23052 #ifdef __cplusplus
23053 extern "C"
23054 #endif
23055 /* We use char because int might match the return type of a gcc2
23056    builtin and then its argument prototype would still apply.  */
23057 char opendir ();
23058 int
23059 main ()
23060 {
23061 opendir ();
23062   ;
23063   return 0;
23064 }
23065 _ACEOF
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068   (eval $ac_link) 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; } &&
23081          { ac_try='test -s conftest$ac_exeext'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; }; then
23087   ac_cv_search_opendir="-l$ac_lib"
23088 break
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 fi
23094 rm -f conftest.err conftest.$ac_objext \
23095       conftest$ac_exeext conftest.$ac_ext
23096   done
23097 fi
23098 LIBS=$ac_func_search_save_LIBS
23099 fi
23100 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23101 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23102 if test "$ac_cv_search_opendir" != no; then
23103   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23104
23105 fi
23106
23107 else
23108   echo "$as_me:$LINENO: checking for library containing opendir" >&5
23109 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23110 if test "${ac_cv_search_opendir+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   ac_func_search_save_LIBS=$LIBS
23114 ac_cv_search_opendir=no
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121
23122 /* Override any gcc2 internal prototype to avoid an error.  */
23123 #ifdef __cplusplus
23124 extern "C"
23125 #endif
23126 /* We use char because int might match the return type of a gcc2
23127    builtin and then its argument prototype would still apply.  */
23128 char opendir ();
23129 int
23130 main ()
23131 {
23132 opendir ();
23133   ;
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139   (eval $ac_link) 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } &&
23146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148   (eval $ac_try) 2>&5
23149   ac_status=$?
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); }; } &&
23152          { ac_try='test -s conftest$ac_exeext'
23153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154   (eval $ac_try) 2>&5
23155   ac_status=$?
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); }; }; then
23158   ac_cv_search_opendir="none required"
23159 else
23160   echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23162
23163 fi
23164 rm -f conftest.err conftest.$ac_objext \
23165       conftest$ac_exeext conftest.$ac_ext
23166 if test "$ac_cv_search_opendir" = no; then
23167   for ac_lib in x; do
23168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23169     cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h.  */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h.  */
23175
23176 /* Override any gcc2 internal prototype to avoid an error.  */
23177 #ifdef __cplusplus
23178 extern "C"
23179 #endif
23180 /* We use char because int might match the return type of a gcc2
23181    builtin and then its argument prototype would still apply.  */
23182 char opendir ();
23183 int
23184 main ()
23185 {
23186 opendir ();
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 rm -f conftest.$ac_objext conftest$ac_exeext
23192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23193   (eval $ac_link) 2>conftest.er1
23194   ac_status=$?
23195   grep -v '^ *+' conftest.er1 >conftest.err
23196   rm -f conftest.er1
23197   cat conftest.err >&5
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); } &&
23200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; } &&
23206          { ac_try='test -s conftest$ac_exeext'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212   ac_cv_search_opendir="-l$ac_lib"
23213 break
23214 else
23215   echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23217
23218 fi
23219 rm -f conftest.err conftest.$ac_objext \
23220       conftest$ac_exeext conftest.$ac_ext
23221   done
23222 fi
23223 LIBS=$ac_func_search_save_LIBS
23224 fi
23225 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23226 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23227 if test "$ac_cv_search_opendir" != no; then
23228   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23229
23230 fi
23231
23232 fi
23233
23234 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23235 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23236 if test "${ac_cv_func_closedir_void+set}" = set; then
23237   echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239   if test "$cross_compiling" = yes; then
23240   ac_cv_func_closedir_void=yes
23241 else
23242   cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 $ac_includes_default
23249 #include <$ac_header_dirent>
23250 #ifndef __cplusplus
23251 int closedir ();
23252 #endif
23253
23254 int
23255 main ()
23256 {
23257 exit (closedir (opendir (".")) != 0);
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264   (eval $ac_link) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269   (eval $ac_try) 2>&5
23270   ac_status=$?
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); }; }; then
23273   ac_cv_func_closedir_void=no
23274 else
23275   echo "$as_me: program exited with status $ac_status" >&5
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 ( exit $ac_status )
23280 ac_cv_func_closedir_void=yes
23281 fi
23282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23283 fi
23284 fi
23285 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23286 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23287 if test $ac_cv_func_closedir_void = yes; then
23288
23289 cat >>confdefs.h <<\_ACEOF
23290 #define CLOSEDIR_VOID 1
23291 _ACEOF
23292
23293 fi
23294
23295 echo "$as_me:$LINENO: checking for error_at_line" >&5
23296 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23297 if test "${ac_cv_lib_error_at_line+set}" = set; then
23298   echo $ECHO_N "(cached) $ECHO_C" >&6
23299 else
23300   cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h.  */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h.  */
23306 $ac_includes_default
23307 int
23308 main ()
23309 {
23310 error_at_line (0, 0, "", 0, "");
23311   ;
23312   return 0;
23313 }
23314 _ACEOF
23315 rm -f conftest.$ac_objext conftest$ac_exeext
23316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23317   (eval $ac_link) 2>conftest.er1
23318   ac_status=$?
23319   grep -v '^ *+' conftest.er1 >conftest.err
23320   rm -f conftest.er1
23321   cat conftest.err >&5
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); } &&
23324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326   (eval $ac_try) 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; } &&
23330          { ac_try='test -s conftest$ac_exeext'
23331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332   (eval $ac_try) 2>&5
23333   ac_status=$?
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); }; }; then
23336   ac_cv_lib_error_at_line=yes
23337 else
23338   echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341 ac_cv_lib_error_at_line=no
23342 fi
23343 rm -f conftest.err conftest.$ac_objext \
23344       conftest$ac_exeext conftest.$ac_ext
23345 fi
23346 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23347 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23348 if test $ac_cv_lib_error_at_line = no; then
23349   case $LIBOBJS in
23350     "error.$ac_objext"   | \
23351   *" error.$ac_objext"   | \
23352     "error.$ac_objext "* | \
23353   *" error.$ac_objext "* ) ;;
23354   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23355 esac
23356
23357 fi
23358
23359
23360
23361 for ac_header in unistd.h vfork.h
23362 do
23363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23365   echo "$as_me:$LINENO: checking for $ac_header" >&5
23366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23368   echo $ECHO_N "(cached) $ECHO_C" >&6
23369 fi
23370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23372 else
23373   # Is the header compilable?
23374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23376 cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h.  */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h.  */
23382 $ac_includes_default
23383 #include <$ac_header>
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23387   (eval $ac_compile) 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
23391   cat conftest.err >&5
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); } &&
23394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396   (eval $ac_try) 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); }; } &&
23400          { ac_try='test -s conftest.$ac_objext'
23401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402   (eval $ac_try) 2>&5
23403   ac_status=$?
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); }; }; then
23406   ac_header_compiler=yes
23407 else
23408   echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411 ac_header_compiler=no
23412 fi
23413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23415 echo "${ECHO_T}$ac_header_compiler" >&6
23416
23417 # Is the header present?
23418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h.  */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h.  */
23426 #include <$ac_header>
23427 _ACEOF
23428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23430   ac_status=$?
23431   grep -v '^ *+' conftest.er1 >conftest.err
23432   rm -f conftest.er1
23433   cat conftest.err >&5
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); } >/dev/null; then
23436   if test -s conftest.err; then
23437     ac_cpp_err=$ac_c_preproc_warn_flag
23438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23439   else
23440     ac_cpp_err=
23441   fi
23442 else
23443   ac_cpp_err=yes
23444 fi
23445 if test -z "$ac_cpp_err"; then
23446   ac_header_preproc=yes
23447 else
23448   echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23450
23451   ac_header_preproc=no
23452 fi
23453 rm -f conftest.err conftest.$ac_ext
23454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23455 echo "${ECHO_T}$ac_header_preproc" >&6
23456
23457 # So?  What about this header?
23458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23459   yes:no: )
23460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23464     ac_header_preproc=yes
23465     ;;
23466   no:yes:* )
23467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23479     (
23480       cat <<\_ASBOX
23481 ## ------------------------------- ##
23482 ## Report this to nfs@lists.sf.net ##
23483 ## ------------------------------- ##
23484 _ASBOX
23485     ) |
23486       sed "s/^/$as_me: WARNING:     /" >&2
23487     ;;
23488 esac
23489 echo "$as_me:$LINENO: checking for $ac_header" >&5
23490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23492   echo $ECHO_N "(cached) $ECHO_C" >&6
23493 else
23494   eval "$as_ac_Header=\$ac_header_preproc"
23495 fi
23496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23498
23499 fi
23500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23501   cat >>confdefs.h <<_ACEOF
23502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23503 _ACEOF
23504
23505 fi
23506
23507 done
23508
23509
23510
23511 for ac_func in fork vfork
23512 do
23513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23514 echo "$as_me:$LINENO: checking for $ac_func" >&5
23515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23516 if eval "test \"\${$as_ac_var+set}\" = set"; then
23517   echo $ECHO_N "(cached) $ECHO_C" >&6
23518 else
23519   cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h.  */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h.  */
23525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23527 #define $ac_func innocuous_$ac_func
23528
23529 /* System header to define __stub macros and hopefully few prototypes,
23530     which can conflict with char $ac_func (); below.
23531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23532     <limits.h> exists even on freestanding compilers.  */
23533
23534 #ifdef __STDC__
23535 # include <limits.h>
23536 #else
23537 # include <assert.h>
23538 #endif
23539
23540 #undef $ac_func
23541
23542 /* Override any gcc2 internal prototype to avoid an error.  */
23543 #ifdef __cplusplus
23544 extern "C"
23545 {
23546 #endif
23547 /* We use char because int might match the return type of a gcc2
23548    builtin and then its argument prototype would still apply.  */
23549 char $ac_func ();
23550 /* The GNU C library defines this for functions which it implements
23551     to always fail with ENOSYS.  Some functions are actually named
23552     something starting with __ and the normal name is an alias.  */
23553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23554 choke me
23555 #else
23556 char (*f) () = $ac_func;
23557 #endif
23558 #ifdef __cplusplus
23559 }
23560 #endif
23561
23562 int
23563 main ()
23564 {
23565 return f != $ac_func;
23566   ;
23567   return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext conftest$ac_exeext
23571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23572   (eval $ac_link) 2>conftest.er1
23573   ac_status=$?
23574   grep -v '^ *+' conftest.er1 >conftest.err
23575   rm -f conftest.er1
23576   cat conftest.err >&5
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } &&
23579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; } &&
23585          { ac_try='test -s conftest$ac_exeext'
23586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587   (eval $ac_try) 2>&5
23588   ac_status=$?
23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); }; }; then
23591   eval "$as_ac_var=yes"
23592 else
23593   echo "$as_me: failed program was:" >&5
23594 sed 's/^/| /' conftest.$ac_ext >&5
23595
23596 eval "$as_ac_var=no"
23597 fi
23598 rm -f conftest.err conftest.$ac_objext \
23599       conftest$ac_exeext conftest.$ac_ext
23600 fi
23601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23603 if test `eval echo '${'$as_ac_var'}'` = yes; then
23604   cat >>confdefs.h <<_ACEOF
23605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23606 _ACEOF
23607
23608 fi
23609 done
23610
23611 if test "x$ac_cv_func_fork" = xyes; then
23612   echo "$as_me:$LINENO: checking for working fork" >&5
23613 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23614 if test "${ac_cv_func_fork_works+set}" = set; then
23615   echo $ECHO_N "(cached) $ECHO_C" >&6
23616 else
23617   if test "$cross_compiling" = yes; then
23618   ac_cv_func_fork_works=cross
23619 else
23620   cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h.  */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h.  */
23626 $ac_includes_default
23627 int
23628 main ()
23629 {
23630
23631           /* By Ruediger Kuhlmann. */
23632           if (fork() < 0)
23633             exit (1);
23634           exit (0);
23635
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 rm -f conftest$ac_exeext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23642   (eval $ac_link) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647   (eval $ac_try) 2>&5
23648   ac_status=$?
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); }; }; then
23651   ac_cv_func_fork_works=yes
23652 else
23653   echo "$as_me: program exited with status $ac_status" >&5
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657 ( exit $ac_status )
23658 ac_cv_func_fork_works=no
23659 fi
23660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23661 fi
23662 fi
23663 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23664 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23665
23666 else
23667   ac_cv_func_fork_works=$ac_cv_func_fork
23668 fi
23669 if test "x$ac_cv_func_fork_works" = xcross; then
23670   case $host in
23671     *-*-amigaos* | *-*-msdosdjgpp*)
23672       # Override, as these systems have only a dummy fork() stub
23673       ac_cv_func_fork_works=no
23674       ;;
23675     *)
23676       ac_cv_func_fork_works=yes
23677       ;;
23678   esac
23679   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23680 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23681 fi
23682 ac_cv_func_vfork_works=$ac_cv_func_vfork
23683 if test "x$ac_cv_func_vfork" = xyes; then
23684   echo "$as_me:$LINENO: checking for working vfork" >&5
23685 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23686 if test "${ac_cv_func_vfork_works+set}" = set; then
23687   echo $ECHO_N "(cached) $ECHO_C" >&6
23688 else
23689   if test "$cross_compiling" = yes; then
23690   ac_cv_func_vfork_works=cross
23691 else
23692   cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698 /* Thanks to Paul Eggert for this test.  */
23699 #include <stdio.h>
23700 #include <stdlib.h>
23701 #include <sys/types.h>
23702 #include <sys/stat.h>
23703 #include <sys/wait.h>
23704 #if HAVE_UNISTD_H
23705 # include <unistd.h>
23706 #endif
23707 #if HAVE_VFORK_H
23708 # include <vfork.h>
23709 #endif
23710 /* On some sparc systems, changes by the child to local and incoming
23711    argument registers are propagated back to the parent.  The compiler
23712    is told about this with #include <vfork.h>, but some compilers
23713    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23714    static variable whose address is put into a register that is
23715    clobbered by the vfork.  */
23716 static void
23717 #ifdef __cplusplus
23718 sparc_address_test (int arg)
23719 # else
23720 sparc_address_test (arg) int arg;
23721 #endif
23722 {
23723   static pid_t child;
23724   if (!child) {
23725     child = vfork ();
23726     if (child < 0) {
23727       perror ("vfork");
23728       _exit(2);
23729     }
23730     if (!child) {
23731       arg = getpid();
23732       write(-1, "", 0);
23733       _exit (arg);
23734     }
23735   }
23736 }
23737
23738 int
23739 main ()
23740 {
23741   pid_t parent = getpid ();
23742   pid_t child;
23743
23744   sparc_address_test (0);
23745
23746   child = vfork ();
23747
23748   if (child == 0) {
23749     /* Here is another test for sparc vfork register problems.  This
23750        test uses lots of local variables, at least as many local
23751        variables as main has allocated so far including compiler
23752        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23753        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23754        reuse the register of parent for one of the local variables,
23755        since it will think that parent can't possibly be used any more
23756        in this routine.  Assigning to the local variable will thus
23757        munge parent in the parent process.  */
23758     pid_t
23759       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23760       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23761     /* Convince the compiler that p..p7 are live; otherwise, it might
23762        use the same hardware register for all 8 local variables.  */
23763     if (p != p1 || p != p2 || p != p3 || p != p4
23764         || p != p5 || p != p6 || p != p7)
23765       _exit(1);
23766
23767     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23768        from child file descriptors.  If the child closes a descriptor
23769        before it execs or exits, this munges the parent's descriptor
23770        as well.  Test for this by closing stdout in the child.  */
23771     _exit(close(fileno(stdout)) != 0);
23772   } else {
23773     int status;
23774     struct stat st;
23775
23776     while (wait(&status) != child)
23777       ;
23778     exit(
23779          /* Was there some problem with vforking?  */
23780          child < 0
23781
23782          /* Did the child fail?  (This shouldn't happen.)  */
23783          || status
23784
23785          /* Did the vfork/compiler bug occur?  */
23786          || parent != getpid()
23787
23788          /* Did the file descriptor bug occur?  */
23789          || fstat(fileno(stdout), &st) != 0
23790          );
23791   }
23792 }
23793 _ACEOF
23794 rm -f conftest$ac_exeext
23795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23796   (eval $ac_link) 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23801   (eval $ac_try) 2>&5
23802   ac_status=$?
23803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804   (exit $ac_status); }; }; then
23805   ac_cv_func_vfork_works=yes
23806 else
23807   echo "$as_me: program exited with status $ac_status" >&5
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23810
23811 ( exit $ac_status )
23812 ac_cv_func_vfork_works=no
23813 fi
23814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23815 fi
23816 fi
23817 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23818 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23819
23820 fi;
23821 if test "x$ac_cv_func_fork_works" = xcross; then
23822   ac_cv_func_vfork_works=$ac_cv_func_vfork
23823   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23824 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23825 fi
23826
23827 if test "x$ac_cv_func_vfork_works" = xyes; then
23828
23829 cat >>confdefs.h <<\_ACEOF
23830 #define HAVE_WORKING_VFORK 1
23831 _ACEOF
23832
23833 else
23834
23835 cat >>confdefs.h <<\_ACEOF
23836 #define vfork fork
23837 _ACEOF
23838
23839 fi
23840 if test "x$ac_cv_func_fork_works" = xyes; then
23841
23842 cat >>confdefs.h <<\_ACEOF
23843 #define HAVE_WORKING_FORK 1
23844 _ACEOF
23845
23846 fi
23847
23848 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23849 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23850 if test "${ac_cv_type_getgroups+set}" = set; then
23851   echo $ECHO_N "(cached) $ECHO_C" >&6
23852 else
23853   if test "$cross_compiling" = yes; then
23854   ac_cv_type_getgroups=cross
23855 else
23856   cat >conftest.$ac_ext <<_ACEOF
23857 /* confdefs.h.  */
23858 _ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h.  */
23862 /* Thanks to Mike Rendell for this test.  */
23863 #include <sys/types.h>
23864 #define NGID 256
23865 #undef MAX
23866 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23867
23868 int
23869 main ()
23870 {
23871   gid_t gidset[NGID];
23872   int i, n;
23873   union { gid_t gval; long lval; }  val;
23874
23875   val.lval = -1;
23876   for (i = 0; i < NGID; i++)
23877     gidset[i] = val.gval;
23878   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23879                  gidset);
23880   /* Exit non-zero if getgroups seems to require an array of ints.  This
23881      happens when gid_t is short but getgroups modifies an array of ints.  */
23882   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23883 }
23884 _ACEOF
23885 rm -f conftest$ac_exeext
23886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23887   (eval $ac_link) 2>&5
23888   ac_status=$?
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892   (eval $ac_try) 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; }; then
23896   ac_cv_type_getgroups=gid_t
23897 else
23898   echo "$as_me: program exited with status $ac_status" >&5
23899 echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23901
23902 ( exit $ac_status )
23903 ac_cv_type_getgroups=int
23904 fi
23905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23906 fi
23907 if test $ac_cv_type_getgroups = cross; then
23908         cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h.  */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h.  */
23914 #include <unistd.h>
23915
23916 _ACEOF
23917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23918   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23919   ac_cv_type_getgroups=gid_t
23920 else
23921   ac_cv_type_getgroups=int
23922 fi
23923 rm -f conftest*
23924
23925 fi
23926 fi
23927 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23928 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23929
23930 cat >>confdefs.h <<_ACEOF
23931 #define GETGROUPS_T $ac_cv_type_getgroups
23932 _ACEOF
23933
23934
23935 echo "$as_me:$LINENO: checking for getgroups" >&5
23936 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23937 if test "${ac_cv_func_getgroups+set}" = set; then
23938   echo $ECHO_N "(cached) $ECHO_C" >&6
23939 else
23940   cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23948 #define getgroups innocuous_getgroups
23949
23950 /* System header to define __stub macros and hopefully few prototypes,
23951     which can conflict with char getgroups (); below.
23952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23953     <limits.h> exists even on freestanding compilers.  */
23954
23955 #ifdef __STDC__
23956 # include <limits.h>
23957 #else
23958 # include <assert.h>
23959 #endif
23960
23961 #undef getgroups
23962
23963 /* Override any gcc2 internal prototype to avoid an error.  */
23964 #ifdef __cplusplus
23965 extern "C"
23966 {
23967 #endif
23968 /* We use char because int might match the return type of a gcc2
23969    builtin and then its argument prototype would still apply.  */
23970 char getgroups ();
23971 /* The GNU C library defines this for functions which it implements
23972     to always fail with ENOSYS.  Some functions are actually named
23973     something starting with __ and the normal name is an alias.  */
23974 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23975 choke me
23976 #else
23977 char (*f) () = getgroups;
23978 #endif
23979 #ifdef __cplusplus
23980 }
23981 #endif
23982
23983 int
23984 main ()
23985 {
23986 return f != getgroups;
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 rm -f conftest.$ac_objext conftest$ac_exeext
23992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23993   (eval $ac_link) 2>conftest.er1
23994   ac_status=$?
23995   grep -v '^ *+' conftest.er1 >conftest.err
23996   rm -f conftest.er1
23997   cat conftest.err >&5
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); } &&
24000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002   (eval $ac_try) 2>&5
24003   ac_status=$?
24004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); }; } &&
24006          { ac_try='test -s conftest$ac_exeext'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; }; then
24012   ac_cv_func_getgroups=yes
24013 else
24014   echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24016
24017 ac_cv_func_getgroups=no
24018 fi
24019 rm -f conftest.err conftest.$ac_objext \
24020       conftest$ac_exeext conftest.$ac_ext
24021 fi
24022 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
24023 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
24024
24025
24026 # If we don't yet have getgroups, see if it's in -lbsd.
24027 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
24028 ac_save_LIBS=$LIBS
24029 if test $ac_cv_func_getgroups = no; then
24030   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
24031 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
24032 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   ac_check_lib_save_LIBS=$LIBS
24036 LIBS="-lbsd  $LIBS"
24037 cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043
24044 /* Override any gcc2 internal prototype to avoid an error.  */
24045 #ifdef __cplusplus
24046 extern "C"
24047 #endif
24048 /* We use char because int might match the return type of a gcc2
24049    builtin and then its argument prototype would still apply.  */
24050 char getgroups ();
24051 int
24052 main ()
24053 {
24054 getgroups ();
24055   ;
24056   return 0;
24057 }
24058 _ACEOF
24059 rm -f conftest.$ac_objext conftest$ac_exeext
24060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24061   (eval $ac_link) 2>conftest.er1
24062   ac_status=$?
24063   grep -v '^ *+' conftest.er1 >conftest.err
24064   rm -f conftest.er1
24065   cat conftest.err >&5
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); } &&
24068          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070   (eval $ac_try) 2>&5
24071   ac_status=$?
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); }; } &&
24074          { ac_try='test -s conftest$ac_exeext'
24075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076   (eval $ac_try) 2>&5
24077   ac_status=$?
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); }; }; then
24080   ac_cv_lib_bsd_getgroups=yes
24081 else
24082   echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24084
24085 ac_cv_lib_bsd_getgroups=no
24086 fi
24087 rm -f conftest.err conftest.$ac_objext \
24088       conftest$ac_exeext conftest.$ac_ext
24089 LIBS=$ac_check_lib_save_LIBS
24090 fi
24091 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
24092 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
24093 if test $ac_cv_lib_bsd_getgroups = yes; then
24094   GETGROUPS_LIB=-lbsd
24095 fi
24096
24097 fi
24098
24099 # Run the program to test the functionality of the system-supplied
24100 # getgroups function only if there is such a function.
24101 if test $ac_cv_func_getgroups = yes; then
24102   echo "$as_me:$LINENO: checking for working getgroups" >&5
24103 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
24104 if test "${ac_cv_func_getgroups_works+set}" = set; then
24105   echo $ECHO_N "(cached) $ECHO_C" >&6
24106 else
24107   if test "$cross_compiling" = yes; then
24108   ac_cv_func_getgroups_works=no
24109 else
24110   cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116 $ac_includes_default
24117 int
24118 main ()
24119 {
24120 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
24121        exit (getgroups (0, 0) == -1 ? 1 : 0);
24122   ;
24123   return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest$ac_exeext
24127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24128   (eval $ac_link) 2>&5
24129   ac_status=$?
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133   (eval $ac_try) 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; }; then
24137   ac_cv_func_getgroups_works=yes
24138 else
24139   echo "$as_me: program exited with status $ac_status" >&5
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24142
24143 ( exit $ac_status )
24144 ac_cv_func_getgroups_works=no
24145 fi
24146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24147 fi
24148
24149 fi
24150 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
24151 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
24152   if test $ac_cv_func_getgroups_works = yes; then
24153
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_GETGROUPS 1
24156 _ACEOF
24157
24158   fi
24159 fi
24160 LIBS=$ac_save_LIBS
24161
24162 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
24163 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
24164 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
24165 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
24166   echo $ECHO_N "(cached) $ECHO_C" >&6
24167 else
24168   ac_check_lib_save_LIBS=$LIBS
24169 LIBS="-lsun  $LIBS"
24170 cat >conftest.$ac_ext <<_ACEOF
24171 /* confdefs.h.  */
24172 _ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h.  */
24176
24177 /* Override any gcc2 internal prototype to avoid an error.  */
24178 #ifdef __cplusplus
24179 extern "C"
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 getmntent ();
24184 int
24185 main ()
24186 {
24187 getmntent ();
24188   ;
24189   return 0;
24190 }
24191 _ACEOF
24192 rm -f conftest.$ac_objext conftest$ac_exeext
24193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24194   (eval $ac_link) 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } &&
24201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203   (eval $ac_try) 2>&5
24204   ac_status=$?
24205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206   (exit $ac_status); }; } &&
24207          { ac_try='test -s conftest$ac_exeext'
24208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209   (eval $ac_try) 2>&5
24210   ac_status=$?
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); }; }; then
24213   ac_cv_lib_sun_getmntent=yes
24214 else
24215   echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218 ac_cv_lib_sun_getmntent=no
24219 fi
24220 rm -f conftest.err conftest.$ac_objext \
24221       conftest$ac_exeext conftest.$ac_ext
24222 LIBS=$ac_check_lib_save_LIBS
24223 fi
24224 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24225 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24226 if test $ac_cv_lib_sun_getmntent = yes; then
24227   LIBS="-lsun $LIBS"
24228 else
24229   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24230 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24231 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234   ac_check_lib_save_LIBS=$LIBS
24235 LIBS="-lseq  $LIBS"
24236 cat >conftest.$ac_ext <<_ACEOF
24237 /* confdefs.h.  */
24238 _ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h.  */
24242
24243 /* Override any gcc2 internal prototype to avoid an error.  */
24244 #ifdef __cplusplus
24245 extern "C"
24246 #endif
24247 /* We use char because int might match the return type of a gcc2
24248    builtin and then its argument prototype would still apply.  */
24249 char getmntent ();
24250 int
24251 main ()
24252 {
24253 getmntent ();
24254   ;
24255   return 0;
24256 }
24257 _ACEOF
24258 rm -f conftest.$ac_objext conftest$ac_exeext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260   (eval $ac_link) 2>conftest.er1
24261   ac_status=$?
24262   grep -v '^ *+' conftest.er1 >conftest.err
24263   rm -f conftest.er1
24264   cat conftest.err >&5
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } &&
24267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269   (eval $ac_try) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; } &&
24273          { ac_try='test -s conftest$ac_exeext'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; }; then
24279   ac_cv_lib_seq_getmntent=yes
24280 else
24281   echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 ac_cv_lib_seq_getmntent=no
24285 fi
24286 rm -f conftest.err conftest.$ac_objext \
24287       conftest$ac_exeext conftest.$ac_ext
24288 LIBS=$ac_check_lib_save_LIBS
24289 fi
24290 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24291 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24292 if test $ac_cv_lib_seq_getmntent = yes; then
24293   LIBS="-lseq $LIBS"
24294 else
24295   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24296 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24297 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24298   echo $ECHO_N "(cached) $ECHO_C" >&6
24299 else
24300   ac_check_lib_save_LIBS=$LIBS
24301 LIBS="-lgen  $LIBS"
24302 cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308
24309 /* Override any gcc2 internal prototype to avoid an error.  */
24310 #ifdef __cplusplus
24311 extern "C"
24312 #endif
24313 /* We use char because int might match the return type of a gcc2
24314    builtin and then its argument prototype would still apply.  */
24315 char getmntent ();
24316 int
24317 main ()
24318 {
24319 getmntent ();
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326   (eval $ac_link) 2>conftest.er1
24327   ac_status=$?
24328   grep -v '^ *+' conftest.er1 >conftest.err
24329   rm -f conftest.er1
24330   cat conftest.err >&5
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } &&
24333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); }; } &&
24339          { ac_try='test -s conftest$ac_exeext'
24340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341   (eval $ac_try) 2>&5
24342   ac_status=$?
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); }; }; then
24345   ac_cv_lib_gen_getmntent=yes
24346 else
24347   echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 ac_cv_lib_gen_getmntent=no
24351 fi
24352 rm -f conftest.err conftest.$ac_objext \
24353       conftest$ac_exeext conftest.$ac_ext
24354 LIBS=$ac_check_lib_save_LIBS
24355 fi
24356 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24357 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24358 if test $ac_cv_lib_gen_getmntent = yes; then
24359   LIBS="-lgen $LIBS"
24360 fi
24361
24362 fi
24363
24364 fi
24365
24366
24367 for ac_func in getmntent
24368 do
24369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24370 echo "$as_me:$LINENO: checking for $ac_func" >&5
24371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24372 if eval "test \"\${$as_ac_var+set}\" = set"; then
24373   echo $ECHO_N "(cached) $ECHO_C" >&6
24374 else
24375   cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h.  */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h.  */
24381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24383 #define $ac_func innocuous_$ac_func
24384
24385 /* System header to define __stub macros and hopefully few prototypes,
24386     which can conflict with char $ac_func (); below.
24387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24388     <limits.h> exists even on freestanding compilers.  */
24389
24390 #ifdef __STDC__
24391 # include <limits.h>
24392 #else
24393 # include <assert.h>
24394 #endif
24395
24396 #undef $ac_func
24397
24398 /* Override any gcc2 internal prototype to avoid an error.  */
24399 #ifdef __cplusplus
24400 extern "C"
24401 {
24402 #endif
24403 /* We use char because int might match the return type of a gcc2
24404    builtin and then its argument prototype would still apply.  */
24405 char $ac_func ();
24406 /* The GNU C library defines this for functions which it implements
24407     to always fail with ENOSYS.  Some functions are actually named
24408     something starting with __ and the normal name is an alias.  */
24409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24410 choke me
24411 #else
24412 char (*f) () = $ac_func;
24413 #endif
24414 #ifdef __cplusplus
24415 }
24416 #endif
24417
24418 int
24419 main ()
24420 {
24421 return f != $ac_func;
24422   ;
24423   return 0;
24424 }
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428   (eval $ac_link) 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } &&
24435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24437   (eval $ac_try) 2>&5
24438   ac_status=$?
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); }; } &&
24441          { ac_try='test -s conftest$ac_exeext'
24442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24443   (eval $ac_try) 2>&5
24444   ac_status=$?
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); }; }; then
24447   eval "$as_ac_var=yes"
24448 else
24449   echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24451
24452 eval "$as_ac_var=no"
24453 fi
24454 rm -f conftest.err conftest.$ac_objext \
24455       conftest$ac_exeext conftest.$ac_ext
24456 fi
24457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24459 if test `eval echo '${'$as_ac_var'}'` = yes; then
24460   cat >>confdefs.h <<_ACEOF
24461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24462 _ACEOF
24463
24464 fi
24465 done
24466
24467
24468 if test $ac_cv_c_compiler_gnu = yes; then
24469     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24470 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24471 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24472   echo $ECHO_N "(cached) $ECHO_C" >&6
24473 else
24474     ac_pattern="Autoconf.*'x'"
24475   cat >conftest.$ac_ext <<_ACEOF
24476 /* confdefs.h.  */
24477 _ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h.  */
24481 #include <sgtty.h>
24482 Autoconf TIOCGETP
24483 _ACEOF
24484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24485   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24486   ac_cv_prog_gcc_traditional=yes
24487 else
24488   ac_cv_prog_gcc_traditional=no
24489 fi
24490 rm -f conftest*
24491
24492
24493   if test $ac_cv_prog_gcc_traditional = no; then
24494     cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 #include <termio.h>
24501 Autoconf TCGETA
24502 _ACEOF
24503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24504   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24505   ac_cv_prog_gcc_traditional=yes
24506 fi
24507 rm -f conftest*
24508
24509   fi
24510 fi
24511 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24512 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24513   if test $ac_cv_prog_gcc_traditional = yes; then
24514     CC="$CC -traditional"
24515   fi
24516 fi
24517
24518 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24519 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24520 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24521   echo $ECHO_N "(cached) $ECHO_C" >&6
24522 else
24523   rm -f conftest.sym conftest.file
24524 echo >conftest.file
24525 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24526   if test "$cross_compiling" = yes; then
24527   ac_cv_func_lstat_dereferences_slashed_symlink=no
24528 else
24529   cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h.  */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h.  */
24535 $ac_includes_default
24536 int
24537 main ()
24538 {
24539 struct stat sbuf;
24540      /* Linux will dereference the symlink and fail.
24541         That is better in the sense that it means we will not
24542         have to compile and use the lstat wrapper.  */
24543      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24544   ;
24545   return 0;
24546 }
24547 _ACEOF
24548 rm -f conftest$ac_exeext
24549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24550   (eval $ac_link) 2>&5
24551   ac_status=$?
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555   (eval $ac_try) 2>&5
24556   ac_status=$?
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); }; }; then
24559   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24560 else
24561   echo "$as_me: program exited with status $ac_status" >&5
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24564
24565 ( exit $ac_status )
24566 ac_cv_func_lstat_dereferences_slashed_symlink=no
24567 fi
24568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24569 fi
24570 else
24571   # If the `ln -s' command failed, then we probably don't even
24572   # have an lstat function.
24573   ac_cv_func_lstat_dereferences_slashed_symlink=no
24574 fi
24575 rm -f conftest.sym conftest.file
24576
24577 fi
24578 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24579 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24580
24581 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24582
24583 cat >>confdefs.h <<_ACEOF
24584 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24585 _ACEOF
24586
24587
24588 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24589   case $LIBOBJS in
24590     "lstat.$ac_objext"   | \
24591   *" lstat.$ac_objext"   | \
24592     "lstat.$ac_objext "* | \
24593   *" lstat.$ac_objext "* ) ;;
24594   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24595 esac
24596
24597 fi
24598
24599 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24600 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24601 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24602   echo $ECHO_N "(cached) $ECHO_C" >&6
24603 else
24604   if test "$cross_compiling" = yes; then
24605   ac_cv_func_lstat_empty_string_bug=yes
24606 else
24607   cat >conftest.$ac_ext <<_ACEOF
24608 /* confdefs.h.  */
24609 _ACEOF
24610 cat confdefs.h >>conftest.$ac_ext
24611 cat >>conftest.$ac_ext <<_ACEOF
24612 /* end confdefs.h.  */
24613 $ac_includes_default
24614 int
24615 main ()
24616 {
24617 struct stat sbuf;
24618   exit (lstat ("", &sbuf) ? 1 : 0);
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest$ac_exeext
24624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24625   (eval $ac_link) 2>&5
24626   ac_status=$?
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; }; then
24634   ac_cv_func_lstat_empty_string_bug=yes
24635 else
24636   echo "$as_me: program exited with status $ac_status" >&5
24637 echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24639
24640 ( exit $ac_status )
24641 ac_cv_func_lstat_empty_string_bug=no
24642 fi
24643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24644 fi
24645 fi
24646 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24647 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24648 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24649   case $LIBOBJS in
24650     "lstat.$ac_objext"   | \
24651   *" lstat.$ac_objext"   | \
24652     "lstat.$ac_objext "* | \
24653   *" lstat.$ac_objext "* ) ;;
24654   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24655 esac
24656
24657
24658 cat >>confdefs.h <<_ACEOF
24659 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24660 _ACEOF
24661
24662 fi
24663
24664 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24665 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24666 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24667   echo $ECHO_N "(cached) $ECHO_C" >&6
24668 else
24669   rm -f conftest.sym conftest.file
24670 echo >conftest.file
24671 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24672   if test "$cross_compiling" = yes; then
24673   ac_cv_func_lstat_dereferences_slashed_symlink=no
24674 else
24675   cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 $ac_includes_default
24682 int
24683 main ()
24684 {
24685 struct stat sbuf;
24686      /* Linux will dereference the symlink and fail.
24687         That is better in the sense that it means we will not
24688         have to compile and use the lstat wrapper.  */
24689      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 rm -f conftest$ac_exeext
24695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24696   (eval $ac_link) 2>&5
24697   ac_status=$?
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701   (eval $ac_try) 2>&5
24702   ac_status=$?
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); }; }; then
24705   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24706 else
24707   echo "$as_me: program exited with status $ac_status" >&5
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24710
24711 ( exit $ac_status )
24712 ac_cv_func_lstat_dereferences_slashed_symlink=no
24713 fi
24714 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24715 fi
24716 else
24717   # If the `ln -s' command failed, then we probably don't even
24718   # have an lstat function.
24719   ac_cv_func_lstat_dereferences_slashed_symlink=no
24720 fi
24721 rm -f conftest.sym conftest.file
24722
24723 fi
24724 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24725 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24726
24727 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24728
24729 cat >>confdefs.h <<_ACEOF
24730 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24731 _ACEOF
24732
24733
24734 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24735   case $LIBOBJS in
24736     "lstat.$ac_objext"   | \
24737   *" lstat.$ac_objext"   | \
24738     "lstat.$ac_objext "* | \
24739   *" lstat.$ac_objext "* ) ;;
24740   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24741 esac
24742
24743 fi
24744
24745 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24746 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24747 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24748   echo $ECHO_N "(cached) $ECHO_C" >&6
24749 else
24750   cat >conftest.$ac_ext <<_ACEOF
24751 /* confdefs.h.  */
24752 _ACEOF
24753 cat confdefs.h >>conftest.$ac_ext
24754 cat >>conftest.$ac_ext <<_ACEOF
24755 /* end confdefs.h.  */
24756 #include <sys/types.h>
24757 int
24758 main ()
24759 {
24760 return makedev(0, 0);
24761   ;
24762   return 0;
24763 }
24764 _ACEOF
24765 rm -f conftest.$ac_objext conftest$ac_exeext
24766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24767   (eval $ac_link) 2>conftest.er1
24768   ac_status=$?
24769   grep -v '^ *+' conftest.er1 >conftest.err
24770   rm -f conftest.er1
24771   cat conftest.err >&5
24772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773   (exit $ac_status); } &&
24774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776   (eval $ac_try) 2>&5
24777   ac_status=$?
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); }; } &&
24780          { ac_try='test -s conftest$ac_exeext'
24781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24782   (eval $ac_try) 2>&5
24783   ac_status=$?
24784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785   (exit $ac_status); }; }; then
24786   ac_cv_header_sys_types_h_makedev=yes
24787 else
24788   echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24790
24791 ac_cv_header_sys_types_h_makedev=no
24792 fi
24793 rm -f conftest.err conftest.$ac_objext \
24794       conftest$ac_exeext conftest.$ac_ext
24795
24796 fi
24797 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24798 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24799
24800 if test $ac_cv_header_sys_types_h_makedev = no; then
24801 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24802   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24803 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24804 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24805   echo $ECHO_N "(cached) $ECHO_C" >&6
24806 fi
24807 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24808 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24809 else
24810   # Is the header compilable?
24811 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24812 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24813 cat >conftest.$ac_ext <<_ACEOF
24814 /* confdefs.h.  */
24815 _ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h.  */
24819 $ac_includes_default
24820 #include <sys/mkdev.h>
24821 _ACEOF
24822 rm -f conftest.$ac_objext
24823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24824   (eval $ac_compile) 2>conftest.er1
24825   ac_status=$?
24826   grep -v '^ *+' conftest.er1 >conftest.err
24827   rm -f conftest.er1
24828   cat conftest.err >&5
24829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830   (exit $ac_status); } &&
24831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833   (eval $ac_try) 2>&5
24834   ac_status=$?
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); }; } &&
24837          { ac_try='test -s conftest.$ac_objext'
24838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839   (eval $ac_try) 2>&5
24840   ac_status=$?
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); }; }; then
24843   ac_header_compiler=yes
24844 else
24845   echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24847
24848 ac_header_compiler=no
24849 fi
24850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24852 echo "${ECHO_T}$ac_header_compiler" >&6
24853
24854 # Is the header present?
24855 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24856 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863 #include <sys/mkdev.h>
24864 _ACEOF
24865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24867   ac_status=$?
24868   grep -v '^ *+' conftest.er1 >conftest.err
24869   rm -f conftest.er1
24870   cat conftest.err >&5
24871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); } >/dev/null; then
24873   if test -s conftest.err; then
24874     ac_cpp_err=$ac_c_preproc_warn_flag
24875     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24876   else
24877     ac_cpp_err=
24878   fi
24879 else
24880   ac_cpp_err=yes
24881 fi
24882 if test -z "$ac_cpp_err"; then
24883   ac_header_preproc=yes
24884 else
24885   echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888   ac_header_preproc=no
24889 fi
24890 rm -f conftest.err conftest.$ac_ext
24891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24892 echo "${ECHO_T}$ac_header_preproc" >&6
24893
24894 # So?  What about this header?
24895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24896   yes:no: )
24897     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24898 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24899     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24900 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24901     ac_header_preproc=yes
24902     ;;
24903   no:yes:* )
24904     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24905 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24906     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24907 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24908     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24909 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24910     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24911 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24912     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24913 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24914     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24915 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24916     (
24917       cat <<\_ASBOX
24918 ## ------------------------------- ##
24919 ## Report this to nfs@lists.sf.net ##
24920 ## ------------------------------- ##
24921 _ASBOX
24922     ) |
24923       sed "s/^/$as_me: WARNING:     /" >&2
24924     ;;
24925 esac
24926 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24927 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24928 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24929   echo $ECHO_N "(cached) $ECHO_C" >&6
24930 else
24931   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24932 fi
24933 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24934 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24935
24936 fi
24937 if test $ac_cv_header_sys_mkdev_h = yes; then
24938
24939 cat >>confdefs.h <<\_ACEOF
24940 #define MAJOR_IN_MKDEV 1
24941 _ACEOF
24942
24943 fi
24944
24945
24946
24947   if test $ac_cv_header_sys_mkdev_h = no; then
24948     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24949   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24950 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24951 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24952   echo $ECHO_N "(cached) $ECHO_C" >&6
24953 fi
24954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24955 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24956 else
24957   # Is the header compilable?
24958 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24959 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966 $ac_includes_default
24967 #include <sys/sysmacros.h>
24968 _ACEOF
24969 rm -f conftest.$ac_objext
24970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24971   (eval $ac_compile) 2>conftest.er1
24972   ac_status=$?
24973   grep -v '^ *+' conftest.er1 >conftest.err
24974   rm -f conftest.er1
24975   cat conftest.err >&5
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); } &&
24978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980   (eval $ac_try) 2>&5
24981   ac_status=$?
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); }; } &&
24984          { ac_try='test -s conftest.$ac_objext'
24985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986   (eval $ac_try) 2>&5
24987   ac_status=$?
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); }; }; then
24990   ac_header_compiler=yes
24991 else
24992   echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24994
24995 ac_header_compiler=no
24996 fi
24997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24999 echo "${ECHO_T}$ac_header_compiler" >&6
25000
25001 # Is the header present?
25002 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25003 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
25004 cat >conftest.$ac_ext <<_ACEOF
25005 /* confdefs.h.  */
25006 _ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h.  */
25010 #include <sys/sysmacros.h>
25011 _ACEOF
25012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25014   ac_status=$?
25015   grep -v '^ *+' conftest.er1 >conftest.err
25016   rm -f conftest.er1
25017   cat conftest.err >&5
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); } >/dev/null; then
25020   if test -s conftest.err; then
25021     ac_cpp_err=$ac_c_preproc_warn_flag
25022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25023   else
25024     ac_cpp_err=
25025   fi
25026 else
25027   ac_cpp_err=yes
25028 fi
25029 if test -z "$ac_cpp_err"; then
25030   ac_header_preproc=yes
25031 else
25032   echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25034
25035   ac_header_preproc=no
25036 fi
25037 rm -f conftest.err conftest.$ac_ext
25038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25039 echo "${ECHO_T}$ac_header_preproc" >&6
25040
25041 # So?  What about this header?
25042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25043   yes:no: )
25044     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25045 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25046     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25047 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25048     ac_header_preproc=yes
25049     ;;
25050   no:yes:* )
25051     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25052 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25053     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25054 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25055     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25056 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25057     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25058 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25059     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25060 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25061     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25062 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25063     (
25064       cat <<\_ASBOX
25065 ## ------------------------------- ##
25066 ## Report this to nfs@lists.sf.net ##
25067 ## ------------------------------- ##
25068 _ASBOX
25069     ) |
25070       sed "s/^/$as_me: WARNING:     /" >&2
25071     ;;
25072 esac
25073 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25074 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
25075 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25076   echo $ECHO_N "(cached) $ECHO_C" >&6
25077 else
25078   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25079 fi
25080 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25081 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
25082
25083 fi
25084 if test $ac_cv_header_sys_sysmacros_h = yes; then
25085
25086 cat >>confdefs.h <<\_ACEOF
25087 #define MAJOR_IN_SYSMACROS 1
25088 _ACEOF
25089
25090 fi
25091
25092
25093   fi
25094 fi
25095
25096 #AC_FUNC_MALLOC
25097 echo "$as_me:$LINENO: checking for working memcmp" >&5
25098 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25099 if test "${ac_cv_func_memcmp_working+set}" = set; then
25100   echo $ECHO_N "(cached) $ECHO_C" >&6
25101 else
25102   if test "$cross_compiling" = yes; then
25103   ac_cv_func_memcmp_working=no
25104 else
25105   cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h.  */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h.  */
25111 $ac_includes_default
25112 int
25113 main ()
25114 {
25115
25116   /* Some versions of memcmp are not 8-bit clean.  */
25117   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25118   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25119     exit (1);
25120
25121   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25122      or more and with at least one buffer not starting on a 4-byte boundary.
25123      William Lewis provided this test program.   */
25124   {
25125     char foo[21];
25126     char bar[21];
25127     int i;
25128     for (i = 0; i < 4; i++)
25129       {
25130         char *a = foo + i;
25131         char *b = bar + i;
25132         strcpy (a, "--------01111111");
25133         strcpy (b, "--------10000000");
25134         if (memcmp (a, b, 16) >= 0)
25135           exit (1);
25136       }
25137     exit (0);
25138   }
25139
25140   ;
25141   return 0;
25142 }
25143 _ACEOF
25144 rm -f conftest$ac_exeext
25145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25146   (eval $ac_link) 2>&5
25147   ac_status=$?
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151   (eval $ac_try) 2>&5
25152   ac_status=$?
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); }; }; then
25155   ac_cv_func_memcmp_working=yes
25156 else
25157   echo "$as_me: program exited with status $ac_status" >&5
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161 ( exit $ac_status )
25162 ac_cv_func_memcmp_working=no
25163 fi
25164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25165 fi
25166 fi
25167 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25168 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25169 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25170     "memcmp.$ac_objext"   | \
25171   *" memcmp.$ac_objext"   | \
25172     "memcmp.$ac_objext "* | \
25173   *" memcmp.$ac_objext "* ) ;;
25174   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25175 esac
25176
25177
25178 #AC_FUNC_REALLOC
25179
25180
25181 for ac_header in sys/select.h sys/socket.h
25182 do
25183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25185   echo "$as_me:$LINENO: checking for $ac_header" >&5
25186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25188   echo $ECHO_N "(cached) $ECHO_C" >&6
25189 fi
25190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25192 else
25193   # Is the header compilable?
25194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25196 cat >conftest.$ac_ext <<_ACEOF
25197 /* confdefs.h.  */
25198 _ACEOF
25199 cat confdefs.h >>conftest.$ac_ext
25200 cat >>conftest.$ac_ext <<_ACEOF
25201 /* end confdefs.h.  */
25202 $ac_includes_default
25203 #include <$ac_header>
25204 _ACEOF
25205 rm -f conftest.$ac_objext
25206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25207   (eval $ac_compile) 2>conftest.er1
25208   ac_status=$?
25209   grep -v '^ *+' conftest.er1 >conftest.err
25210   rm -f conftest.er1
25211   cat conftest.err >&5
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } &&
25214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216   (eval $ac_try) 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); }; } &&
25220          { ac_try='test -s conftest.$ac_objext'
25221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222   (eval $ac_try) 2>&5
25223   ac_status=$?
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); }; }; then
25226   ac_header_compiler=yes
25227 else
25228   echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25230
25231 ac_header_compiler=no
25232 fi
25233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25235 echo "${ECHO_T}$ac_header_compiler" >&6
25236
25237 # Is the header present?
25238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25240 cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h.  */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h.  */
25246 #include <$ac_header>
25247 _ACEOF
25248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25250   ac_status=$?
25251   grep -v '^ *+' conftest.er1 >conftest.err
25252   rm -f conftest.er1
25253   cat conftest.err >&5
25254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255   (exit $ac_status); } >/dev/null; then
25256   if test -s conftest.err; then
25257     ac_cpp_err=$ac_c_preproc_warn_flag
25258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25259   else
25260     ac_cpp_err=
25261   fi
25262 else
25263   ac_cpp_err=yes
25264 fi
25265 if test -z "$ac_cpp_err"; then
25266   ac_header_preproc=yes
25267 else
25268   echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271   ac_header_preproc=no
25272 fi
25273 rm -f conftest.err conftest.$ac_ext
25274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25275 echo "${ECHO_T}$ac_header_preproc" >&6
25276
25277 # So?  What about this header?
25278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25279   yes:no: )
25280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25284     ac_header_preproc=yes
25285     ;;
25286   no:yes:* )
25287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25299     (
25300       cat <<\_ASBOX
25301 ## ------------------------------- ##
25302 ## Report this to nfs@lists.sf.net ##
25303 ## ------------------------------- ##
25304 _ASBOX
25305     ) |
25306       sed "s/^/$as_me: WARNING:     /" >&2
25307     ;;
25308 esac
25309 echo "$as_me:$LINENO: checking for $ac_header" >&5
25310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25312   echo $ECHO_N "(cached) $ECHO_C" >&6
25313 else
25314   eval "$as_ac_Header=\$ac_header_preproc"
25315 fi
25316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25318
25319 fi
25320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25321   cat >>confdefs.h <<_ACEOF
25322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25323 _ACEOF
25324
25325 fi
25326
25327 done
25328
25329 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25330 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25331 if test "${ac_cv_func_select_args+set}" = set; then
25332   echo $ECHO_N "(cached) $ECHO_C" >&6
25333 else
25334   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25335  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25336   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25337    cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 $ac_includes_default
25344 #if HAVE_SYS_SELECT_H
25345 # include <sys/select.h>
25346 #endif
25347 #if HAVE_SYS_SOCKET_H
25348 # include <sys/socket.h>
25349 #endif
25350
25351 int
25352 main ()
25353 {
25354 extern int select ($ac_arg1,
25355                                             $ac_arg234, $ac_arg234, $ac_arg234,
25356                                             $ac_arg5);
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 rm -f conftest.$ac_objext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25363   (eval $ac_compile) 2>conftest.er1
25364   ac_status=$?
25365   grep -v '^ *+' conftest.er1 >conftest.err
25366   rm -f conftest.er1
25367   cat conftest.err >&5
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); } &&
25370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372   (eval $ac_try) 2>&5
25373   ac_status=$?
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); }; } &&
25376          { ac_try='test -s conftest.$ac_objext'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; }; then
25382   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25383 else
25384   echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25386
25387 fi
25388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25389   done
25390  done
25391 done
25392 # Provide a safe default value.
25393 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25394
25395 fi
25396 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25397 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25398 ac_save_IFS=$IFS; IFS=','
25399 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25400 IFS=$ac_save_IFS
25401 shift
25402
25403 cat >>confdefs.h <<_ACEOF
25404 #define SELECT_TYPE_ARG1 $1
25405 _ACEOF
25406
25407
25408 cat >>confdefs.h <<_ACEOF
25409 #define SELECT_TYPE_ARG234 ($2)
25410 _ACEOF
25411
25412
25413 cat >>confdefs.h <<_ACEOF
25414 #define SELECT_TYPE_ARG5 ($3)
25415 _ACEOF
25416
25417 rm -f conftest*
25418
25419 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25421 if test "${ac_cv_type_signal+set}" = set; then
25422   echo $ECHO_N "(cached) $ECHO_C" >&6
25423 else
25424   cat >conftest.$ac_ext <<_ACEOF
25425 /* confdefs.h.  */
25426 _ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h.  */
25430 #include <sys/types.h>
25431 #include <signal.h>
25432 #ifdef signal
25433 # undef signal
25434 #endif
25435 #ifdef __cplusplus
25436 extern "C" void (*signal (int, void (*)(int)))(int);
25437 #else
25438 void (*signal ()) ();
25439 #endif
25440
25441 int
25442 main ()
25443 {
25444 int i;
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25451   (eval $ac_compile) 2>conftest.er1
25452   ac_status=$?
25453   grep -v '^ *+' conftest.er1 >conftest.err
25454   rm -f conftest.er1
25455   cat conftest.err >&5
25456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); } &&
25458          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460   (eval $ac_try) 2>&5
25461   ac_status=$?
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); }; } &&
25464          { ac_try='test -s conftest.$ac_objext'
25465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466   (eval $ac_try) 2>&5
25467   ac_status=$?
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); }; }; then
25470   ac_cv_type_signal=void
25471 else
25472   echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25474
25475 ac_cv_type_signal=int
25476 fi
25477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25478 fi
25479 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25480 echo "${ECHO_T}$ac_cv_type_signal" >&6
25481
25482 cat >>confdefs.h <<_ACEOF
25483 #define RETSIGTYPE $ac_cv_type_signal
25484 _ACEOF
25485
25486
25487 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25488 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25489 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25490   echo $ECHO_N "(cached) $ECHO_C" >&6
25491 else
25492   if test "$cross_compiling" = yes; then
25493   ac_cv_func_stat_empty_string_bug=yes
25494 else
25495   cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501 $ac_includes_default
25502 int
25503 main ()
25504 {
25505 struct stat sbuf;
25506   exit (stat ("", &sbuf) ? 1 : 0);
25507   ;
25508   return 0;
25509 }
25510 _ACEOF
25511 rm -f conftest$ac_exeext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513   (eval $ac_link) 2>&5
25514   ac_status=$?
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; }; then
25522   ac_cv_func_stat_empty_string_bug=yes
25523 else
25524   echo "$as_me: program exited with status $ac_status" >&5
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528 ( exit $ac_status )
25529 ac_cv_func_stat_empty_string_bug=no
25530 fi
25531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25532 fi
25533 fi
25534 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25535 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25536 if test $ac_cv_func_stat_empty_string_bug = yes; then
25537   case $LIBOBJS in
25538     "stat.$ac_objext"   | \
25539   *" stat.$ac_objext"   | \
25540     "stat.$ac_objext "* | \
25541   *" stat.$ac_objext "* ) ;;
25542   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25543 esac
25544
25545
25546 cat >>confdefs.h <<_ACEOF
25547 #define HAVE_STAT_EMPTY_STRING_BUG 1
25548 _ACEOF
25549
25550 fi
25551
25552
25553 for ac_func in vprintf
25554 do
25555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25556 echo "$as_me:$LINENO: checking for $ac_func" >&5
25557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25558 if eval "test \"\${$as_ac_var+set}\" = set"; then
25559   echo $ECHO_N "(cached) $ECHO_C" >&6
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25569 #define $ac_func innocuous_$ac_func
25570
25571 /* System header to define __stub macros and hopefully few prototypes,
25572     which can conflict with char $ac_func (); below.
25573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25574     <limits.h> exists even on freestanding compilers.  */
25575
25576 #ifdef __STDC__
25577 # include <limits.h>
25578 #else
25579 # include <assert.h>
25580 #endif
25581
25582 #undef $ac_func
25583
25584 /* Override any gcc2 internal prototype to avoid an error.  */
25585 #ifdef __cplusplus
25586 extern "C"
25587 {
25588 #endif
25589 /* We use char because int might match the return type of a gcc2
25590    builtin and then its argument prototype would still apply.  */
25591 char $ac_func ();
25592 /* The GNU C library defines this for functions which it implements
25593     to always fail with ENOSYS.  Some functions are actually named
25594     something starting with __ and the normal name is an alias.  */
25595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25596 choke me
25597 #else
25598 char (*f) () = $ac_func;
25599 #endif
25600 #ifdef __cplusplus
25601 }
25602 #endif
25603
25604 int
25605 main ()
25606 {
25607 return f != $ac_func;
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext conftest$ac_exeext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25614   (eval $ac_link) 2>conftest.er1
25615   ac_status=$?
25616   grep -v '^ *+' conftest.er1 >conftest.err
25617   rm -f conftest.er1
25618   cat conftest.err >&5
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); } &&
25621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623   (eval $ac_try) 2>&5
25624   ac_status=$?
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); }; } &&
25627          { ac_try='test -s conftest$ac_exeext'
25628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629   (eval $ac_try) 2>&5
25630   ac_status=$?
25631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632   (exit $ac_status); }; }; then
25633   eval "$as_ac_var=yes"
25634 else
25635   echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 eval "$as_ac_var=no"
25639 fi
25640 rm -f conftest.err conftest.$ac_objext \
25641       conftest$ac_exeext conftest.$ac_ext
25642 fi
25643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25645 if test `eval echo '${'$as_ac_var'}'` = yes; then
25646   cat >>confdefs.h <<_ACEOF
25647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25648 _ACEOF
25649
25650 echo "$as_me:$LINENO: checking for _doprnt" >&5
25651 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25652 if test "${ac_cv_func__doprnt+set}" = set; then
25653   echo $ECHO_N "(cached) $ECHO_C" >&6
25654 else
25655   cat >conftest.$ac_ext <<_ACEOF
25656 /* confdefs.h.  */
25657 _ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h.  */
25661 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25663 #define _doprnt innocuous__doprnt
25664
25665 /* System header to define __stub macros and hopefully few prototypes,
25666     which can conflict with char _doprnt (); below.
25667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25668     <limits.h> exists even on freestanding compilers.  */
25669
25670 #ifdef __STDC__
25671 # include <limits.h>
25672 #else
25673 # include <assert.h>
25674 #endif
25675
25676 #undef _doprnt
25677
25678 /* Override any gcc2 internal prototype to avoid an error.  */
25679 #ifdef __cplusplus
25680 extern "C"
25681 {
25682 #endif
25683 /* We use char because int might match the return type of a gcc2
25684    builtin and then its argument prototype would still apply.  */
25685 char _doprnt ();
25686 /* The GNU C library defines this for functions which it implements
25687     to always fail with ENOSYS.  Some functions are actually named
25688     something starting with __ and the normal name is an alias.  */
25689 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25690 choke me
25691 #else
25692 char (*f) () = _doprnt;
25693 #endif
25694 #ifdef __cplusplus
25695 }
25696 #endif
25697
25698 int
25699 main ()
25700 {
25701 return f != _doprnt;
25702   ;
25703   return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708   (eval $ac_link) 2>conftest.er1
25709   ac_status=$?
25710   grep -v '^ *+' conftest.er1 >conftest.err
25711   rm -f conftest.er1
25712   cat conftest.err >&5
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } &&
25715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717   (eval $ac_try) 2>&5
25718   ac_status=$?
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); }; } &&
25721          { ac_try='test -s conftest$ac_exeext'
25722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723   (eval $ac_try) 2>&5
25724   ac_status=$?
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); }; }; then
25727   ac_cv_func__doprnt=yes
25728 else
25729   echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.$ac_ext >&5
25731
25732 ac_cv_func__doprnt=no
25733 fi
25734 rm -f conftest.err conftest.$ac_objext \
25735       conftest$ac_exeext conftest.$ac_ext
25736 fi
25737 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25738 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25739 if test $ac_cv_func__doprnt = yes; then
25740
25741 cat >>confdefs.h <<\_ACEOF
25742 #define HAVE_DOPRNT 1
25743 _ACEOF
25744
25745 fi
25746
25747 fi
25748 done
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25780                gethostbyaddr gethostbyname gethostname getmntent \
25781                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
25782                realpath rmdir select socket strcasecmp strchr strdup \
25783                strerror strrchr strtol strtoul
25784 do
25785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25786 echo "$as_me:$LINENO: checking for $ac_func" >&5
25787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25788 if eval "test \"\${$as_ac_var+set}\" = set"; then
25789   echo $ECHO_N "(cached) $ECHO_C" >&6
25790 else
25791   cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h.  */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h.  */
25797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25799 #define $ac_func innocuous_$ac_func
25800
25801 /* System header to define __stub macros and hopefully few prototypes,
25802     which can conflict with char $ac_func (); below.
25803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25804     <limits.h> exists even on freestanding compilers.  */
25805
25806 #ifdef __STDC__
25807 # include <limits.h>
25808 #else
25809 # include <assert.h>
25810 #endif
25811
25812 #undef $ac_func
25813
25814 /* Override any gcc2 internal prototype to avoid an error.  */
25815 #ifdef __cplusplus
25816 extern "C"
25817 {
25818 #endif
25819 /* We use char because int might match the return type of a gcc2
25820    builtin and then its argument prototype would still apply.  */
25821 char $ac_func ();
25822 /* The GNU C library defines this for functions which it implements
25823     to always fail with ENOSYS.  Some functions are actually named
25824     something starting with __ and the normal name is an alias.  */
25825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25826 choke me
25827 #else
25828 char (*f) () = $ac_func;
25829 #endif
25830 #ifdef __cplusplus
25831 }
25832 #endif
25833
25834 int
25835 main ()
25836 {
25837 return f != $ac_func;
25838   ;
25839   return 0;
25840 }
25841 _ACEOF
25842 rm -f conftest.$ac_objext conftest$ac_exeext
25843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25844   (eval $ac_link) 2>conftest.er1
25845   ac_status=$?
25846   grep -v '^ *+' conftest.er1 >conftest.err
25847   rm -f conftest.er1
25848   cat conftest.err >&5
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); } &&
25851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853   (eval $ac_try) 2>&5
25854   ac_status=$?
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); }; } &&
25857          { ac_try='test -s conftest$ac_exeext'
25858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859   (eval $ac_try) 2>&5
25860   ac_status=$?
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); }; }; then
25863   eval "$as_ac_var=yes"
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868 eval "$as_ac_var=no"
25869 fi
25870 rm -f conftest.err conftest.$ac_objext \
25871       conftest$ac_exeext conftest.$ac_ext
25872 fi
25873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25875 if test `eval echo '${'$as_ac_var'}'` = yes; then
25876   cat >>confdefs.h <<_ACEOF
25877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25878 _ACEOF
25879
25880 fi
25881 done
25882
25883
25884
25885 echo "$as_me:$LINENO: checking for short" >&5
25886 echo $ECHO_N "checking for short... $ECHO_C" >&6
25887 if test "${ac_cv_type_short+set}" = set; then
25888   echo $ECHO_N "(cached) $ECHO_C" >&6
25889 else
25890   cat >conftest.$ac_ext <<_ACEOF
25891 /* confdefs.h.  */
25892 _ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h.  */
25896 $ac_includes_default
25897 int
25898 main ()
25899 {
25900 if ((short *) 0)
25901   return 0;
25902 if (sizeof (short))
25903   return 0;
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext
25909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25910   (eval $ac_compile) 2>conftest.er1
25911   ac_status=$?
25912   grep -v '^ *+' conftest.er1 >conftest.err
25913   rm -f conftest.er1
25914   cat conftest.err >&5
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); } &&
25917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; } &&
25923          { ac_try='test -s conftest.$ac_objext'
25924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925   (eval $ac_try) 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); }; }; then
25929   ac_cv_type_short=yes
25930 else
25931   echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 ac_cv_type_short=no
25935 fi
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25937 fi
25938 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25939 echo "${ECHO_T}$ac_cv_type_short" >&6
25940
25941 echo "$as_me:$LINENO: checking size of short" >&5
25942 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25943 if test "${ac_cv_sizeof_short+set}" = set; then
25944   echo $ECHO_N "(cached) $ECHO_C" >&6
25945 else
25946   if test "$ac_cv_type_short" = yes; then
25947   # The cast to unsigned long works around a bug in the HP C Compiler
25948   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25949   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25950   # This bug is HP SR number 8606223364.
25951   if test "$cross_compiling" = yes; then
25952   # Depending upon the size, compute the lo and hi bounds.
25953 cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959 $ac_includes_default
25960 int
25961 main ()
25962 {
25963 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25964 test_array [0] = 0
25965
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25972   (eval $ac_compile) 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } &&
25979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981   (eval $ac_try) 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); }; } &&
25985          { ac_try='test -s conftest.$ac_objext'
25986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987   (eval $ac_try) 2>&5
25988   ac_status=$?
25989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990   (exit $ac_status); }; }; then
25991   ac_lo=0 ac_mid=0
25992   while :; do
25993     cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999 $ac_includes_default
26000 int
26001 main ()
26002 {
26003 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26004 test_array [0] = 0
26005
26006   ;
26007   return 0;
26008 }
26009 _ACEOF
26010 rm -f conftest.$ac_objext
26011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26012   (eval $ac_compile) 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } &&
26019          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021   (eval $ac_try) 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); }; } &&
26025          { ac_try='test -s conftest.$ac_objext'
26026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027   (eval $ac_try) 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; }; then
26031   ac_hi=$ac_mid; break
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036 ac_lo=`expr $ac_mid + 1`
26037                     if test $ac_lo -le $ac_mid; then
26038                       ac_lo= ac_hi=
26039                       break
26040                     fi
26041                     ac_mid=`expr 2 '*' $ac_mid + 1`
26042 fi
26043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26044   done
26045 else
26046   echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26048
26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h.  */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h.  */
26055 $ac_includes_default
26056 int
26057 main ()
26058 {
26059 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
26060 test_array [0] = 0
26061
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 rm -f conftest.$ac_objext
26067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26068   (eval $ac_compile) 2>conftest.er1
26069   ac_status=$?
26070   grep -v '^ *+' conftest.er1 >conftest.err
26071   rm -f conftest.er1
26072   cat conftest.err >&5
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); } &&
26075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26077   (eval $ac_try) 2>&5
26078   ac_status=$?
26079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); }; } &&
26081          { ac_try='test -s conftest.$ac_objext'
26082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083   (eval $ac_try) 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; }; then
26087   ac_hi=-1 ac_mid=-1
26088   while :; do
26089     cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h.  */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h.  */
26095 $ac_includes_default
26096 int
26097 main ()
26098 {
26099 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
26100 test_array [0] = 0
26101
26102   ;
26103   return 0;
26104 }
26105 _ACEOF
26106 rm -f conftest.$ac_objext
26107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26108   (eval $ac_compile) 2>conftest.er1
26109   ac_status=$?
26110   grep -v '^ *+' conftest.er1 >conftest.err
26111   rm -f conftest.er1
26112   cat conftest.err >&5
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); } &&
26115          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117   (eval $ac_try) 2>&5
26118   ac_status=$?
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); }; } &&
26121          { ac_try='test -s conftest.$ac_objext'
26122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123   (eval $ac_try) 2>&5
26124   ac_status=$?
26125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126   (exit $ac_status); }; }; then
26127   ac_lo=$ac_mid; break
26128 else
26129   echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26131
26132 ac_hi=`expr '(' $ac_mid ')' - 1`
26133                        if test $ac_mid -le $ac_hi; then
26134                          ac_lo= ac_hi=
26135                          break
26136                        fi
26137                        ac_mid=`expr 2 '*' $ac_mid`
26138 fi
26139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26140   done
26141 else
26142   echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26144
26145 ac_lo= ac_hi=
26146 fi
26147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26148 fi
26149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26150 # Binary search between lo and hi bounds.
26151 while test "x$ac_lo" != "x$ac_hi"; do
26152   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26153   cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159 $ac_includes_default
26160 int
26161 main ()
26162 {
26163 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
26164 test_array [0] = 0
26165
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 rm -f conftest.$ac_objext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26172   (eval $ac_compile) 2>conftest.er1
26173   ac_status=$?
26174   grep -v '^ *+' conftest.er1 >conftest.err
26175   rm -f conftest.er1
26176   cat conftest.err >&5
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); } &&
26179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181   (eval $ac_try) 2>&5
26182   ac_status=$?
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); }; } &&
26185          { ac_try='test -s conftest.$ac_objext'
26186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26187   (eval $ac_try) 2>&5
26188   ac_status=$?
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); }; }; then
26191   ac_hi=$ac_mid
26192 else
26193   echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26195
26196 ac_lo=`expr '(' $ac_mid ')' + 1`
26197 fi
26198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26199 done
26200 case $ac_lo in
26201 ?*) ac_cv_sizeof_short=$ac_lo;;
26202 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26203 See \`config.log' for more details." >&5
26204 echo "$as_me: error: cannot compute sizeof (short), 77
26205 See \`config.log' for more details." >&2;}
26206    { (exit 1); exit 1; }; } ;;
26207 esac
26208 else
26209   if test "$cross_compiling" = yes; then
26210   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26211 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26212    { (exit 1); exit 1; }; }
26213 else
26214   cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h.  */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h.  */
26220 $ac_includes_default
26221 long longval () { return (long) (sizeof (short)); }
26222 unsigned long ulongval () { return (long) (sizeof (short)); }
26223 #include <stdio.h>
26224 #include <stdlib.h>
26225 int
26226 main ()
26227 {
26228
26229   FILE *f = fopen ("conftest.val", "w");
26230   if (! f)
26231     exit (1);
26232   if (((long) (sizeof (short))) < 0)
26233     {
26234       long i = longval ();
26235       if (i != ((long) (sizeof (short))))
26236         exit (1);
26237       fprintf (f, "%ld\n", i);
26238     }
26239   else
26240     {
26241       unsigned long i = ulongval ();
26242       if (i != ((long) (sizeof (short))))
26243         exit (1);
26244       fprintf (f, "%lu\n", i);
26245     }
26246   exit (ferror (f) || fclose (f) != 0);
26247
26248   ;
26249   return 0;
26250 }
26251 _ACEOF
26252 rm -f conftest$ac_exeext
26253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26254   (eval $ac_link) 2>&5
26255   ac_status=$?
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259   (eval $ac_try) 2>&5
26260   ac_status=$?
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); }; }; then
26263   ac_cv_sizeof_short=`cat conftest.val`
26264 else
26265   echo "$as_me: program exited with status $ac_status" >&5
26266 echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26268
26269 ( exit $ac_status )
26270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26271 See \`config.log' for more details." >&5
26272 echo "$as_me: error: cannot compute sizeof (short), 77
26273 See \`config.log' for more details." >&2;}
26274    { (exit 1); exit 1; }; }
26275 fi
26276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26277 fi
26278 fi
26279 rm -f conftest.val
26280 else
26281   ac_cv_sizeof_short=0
26282 fi
26283 fi
26284 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26285 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26286 cat >>confdefs.h <<_ACEOF
26287 #define SIZEOF_SHORT $ac_cv_sizeof_short
26288 _ACEOF
26289
26290
26291 echo "$as_me:$LINENO: checking for int" >&5
26292 echo $ECHO_N "checking for int... $ECHO_C" >&6
26293 if test "${ac_cv_type_int+set}" = set; then
26294   echo $ECHO_N "(cached) $ECHO_C" >&6
26295 else
26296   cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h.  */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h.  */
26302 $ac_includes_default
26303 int
26304 main ()
26305 {
26306 if ((int *) 0)
26307   return 0;
26308 if (sizeof (int))
26309   return 0;
26310   ;
26311   return 0;
26312 }
26313 _ACEOF
26314 rm -f conftest.$ac_objext
26315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26316   (eval $ac_compile) 2>conftest.er1
26317   ac_status=$?
26318   grep -v '^ *+' conftest.er1 >conftest.err
26319   rm -f conftest.er1
26320   cat conftest.err >&5
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); } &&
26323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; } &&
26329          { ac_try='test -s conftest.$ac_objext'
26330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331   (eval $ac_try) 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   ac_cv_type_int=yes
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340 ac_cv_type_int=no
26341 fi
26342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343 fi
26344 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26345 echo "${ECHO_T}$ac_cv_type_int" >&6
26346
26347 echo "$as_me:$LINENO: checking size of int" >&5
26348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26349 if test "${ac_cv_sizeof_int+set}" = set; then
26350   echo $ECHO_N "(cached) $ECHO_C" >&6
26351 else
26352   if test "$ac_cv_type_int" = yes; then
26353   # The cast to unsigned long works around a bug in the HP C Compiler
26354   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26355   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26356   # This bug is HP SR number 8606223364.
26357   if test "$cross_compiling" = yes; then
26358   # Depending upon the size, compute the lo and hi bounds.
26359 cat >conftest.$ac_ext <<_ACEOF
26360 /* confdefs.h.  */
26361 _ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h.  */
26365 $ac_includes_default
26366 int
26367 main ()
26368 {
26369 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26370 test_array [0] = 0
26371
26372   ;
26373   return 0;
26374 }
26375 _ACEOF
26376 rm -f conftest.$ac_objext
26377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26378   (eval $ac_compile) 2>conftest.er1
26379   ac_status=$?
26380   grep -v '^ *+' conftest.er1 >conftest.err
26381   rm -f conftest.er1
26382   cat conftest.err >&5
26383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384   (exit $ac_status); } &&
26385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26387   (eval $ac_try) 2>&5
26388   ac_status=$?
26389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26390   (exit $ac_status); }; } &&
26391          { ac_try='test -s conftest.$ac_objext'
26392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26393   (eval $ac_try) 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); }; }; then
26397   ac_lo=0 ac_mid=0
26398   while :; do
26399     cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h.  */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h.  */
26405 $ac_includes_default
26406 int
26407 main ()
26408 {
26409 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26410 test_array [0] = 0
26411
26412   ;
26413   return 0;
26414 }
26415 _ACEOF
26416 rm -f conftest.$ac_objext
26417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26418   (eval $ac_compile) 2>conftest.er1
26419   ac_status=$?
26420   grep -v '^ *+' conftest.er1 >conftest.err
26421   rm -f conftest.er1
26422   cat conftest.err >&5
26423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424   (exit $ac_status); } &&
26425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; } &&
26431          { ac_try='test -s conftest.$ac_objext'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; }; then
26437   ac_hi=$ac_mid; break
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 ac_lo=`expr $ac_mid + 1`
26443                     if test $ac_lo -le $ac_mid; then
26444                       ac_lo= ac_hi=
26445                       break
26446                     fi
26447                     ac_mid=`expr 2 '*' $ac_mid + 1`
26448 fi
26449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26450   done
26451 else
26452   echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26454
26455 cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h.  */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h.  */
26461 $ac_includes_default
26462 int
26463 main ()
26464 {
26465 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26466 test_array [0] = 0
26467
26468   ;
26469   return 0;
26470 }
26471 _ACEOF
26472 rm -f conftest.$ac_objext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26474   (eval $ac_compile) 2>conftest.er1
26475   ac_status=$?
26476   grep -v '^ *+' conftest.er1 >conftest.err
26477   rm -f conftest.er1
26478   cat conftest.err >&5
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); } &&
26481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; } &&
26487          { ac_try='test -s conftest.$ac_objext'
26488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489   (eval $ac_try) 2>&5
26490   ac_status=$?
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); }; }; then
26493   ac_hi=-1 ac_mid=-1
26494   while :; do
26495     cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h.  */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h.  */
26501 $ac_includes_default
26502 int
26503 main ()
26504 {
26505 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26506 test_array [0] = 0
26507
26508   ;
26509   return 0;
26510 }
26511 _ACEOF
26512 rm -f conftest.$ac_objext
26513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26514   (eval $ac_compile) 2>conftest.er1
26515   ac_status=$?
26516   grep -v '^ *+' conftest.er1 >conftest.err
26517   rm -f conftest.er1
26518   cat conftest.err >&5
26519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520   (exit $ac_status); } &&
26521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523   (eval $ac_try) 2>&5
26524   ac_status=$?
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); }; } &&
26527          { ac_try='test -s conftest.$ac_objext'
26528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529   (eval $ac_try) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); }; }; then
26533   ac_lo=$ac_mid; break
26534 else
26535   echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26537
26538 ac_hi=`expr '(' $ac_mid ')' - 1`
26539                        if test $ac_mid -le $ac_hi; then
26540                          ac_lo= ac_hi=
26541                          break
26542                        fi
26543                        ac_mid=`expr 2 '*' $ac_mid`
26544 fi
26545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26546   done
26547 else
26548   echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551 ac_lo= ac_hi=
26552 fi
26553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26554 fi
26555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26556 # Binary search between lo and hi bounds.
26557 while test "x$ac_lo" != "x$ac_hi"; do
26558   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26559   cat >conftest.$ac_ext <<_ACEOF
26560 /* confdefs.h.  */
26561 _ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h.  */
26565 $ac_includes_default
26566 int
26567 main ()
26568 {
26569 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26570 test_array [0] = 0
26571
26572   ;
26573   return 0;
26574 }
26575 _ACEOF
26576 rm -f conftest.$ac_objext
26577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26578   (eval $ac_compile) 2>conftest.er1
26579   ac_status=$?
26580   grep -v '^ *+' conftest.er1 >conftest.err
26581   rm -f conftest.er1
26582   cat conftest.err >&5
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); } &&
26585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587   (eval $ac_try) 2>&5
26588   ac_status=$?
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); }; } &&
26591          { ac_try='test -s conftest.$ac_objext'
26592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593   (eval $ac_try) 2>&5
26594   ac_status=$?
26595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596   (exit $ac_status); }; }; then
26597   ac_hi=$ac_mid
26598 else
26599   echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.$ac_ext >&5
26601
26602 ac_lo=`expr '(' $ac_mid ')' + 1`
26603 fi
26604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26605 done
26606 case $ac_lo in
26607 ?*) ac_cv_sizeof_int=$ac_lo;;
26608 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26609 See \`config.log' for more details." >&5
26610 echo "$as_me: error: cannot compute sizeof (int), 77
26611 See \`config.log' for more details." >&2;}
26612    { (exit 1); exit 1; }; } ;;
26613 esac
26614 else
26615   if test "$cross_compiling" = yes; then
26616   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26617 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26618    { (exit 1); exit 1; }; }
26619 else
26620   cat >conftest.$ac_ext <<_ACEOF
26621 /* confdefs.h.  */
26622 _ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h.  */
26626 $ac_includes_default
26627 long longval () { return (long) (sizeof (int)); }
26628 unsigned long ulongval () { return (long) (sizeof (int)); }
26629 #include <stdio.h>
26630 #include <stdlib.h>
26631 int
26632 main ()
26633 {
26634
26635   FILE *f = fopen ("conftest.val", "w");
26636   if (! f)
26637     exit (1);
26638   if (((long) (sizeof (int))) < 0)
26639     {
26640       long i = longval ();
26641       if (i != ((long) (sizeof (int))))
26642         exit (1);
26643       fprintf (f, "%ld\n", i);
26644     }
26645   else
26646     {
26647       unsigned long i = ulongval ();
26648       if (i != ((long) (sizeof (int))))
26649         exit (1);
26650       fprintf (f, "%lu\n", i);
26651     }
26652   exit (ferror (f) || fclose (f) != 0);
26653
26654   ;
26655   return 0;
26656 }
26657 _ACEOF
26658 rm -f conftest$ac_exeext
26659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26660   (eval $ac_link) 2>&5
26661   ac_status=$?
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665   (eval $ac_try) 2>&5
26666   ac_status=$?
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); }; }; then
26669   ac_cv_sizeof_int=`cat conftest.val`
26670 else
26671   echo "$as_me: program exited with status $ac_status" >&5
26672 echo "$as_me: failed program was:" >&5
26673 sed 's/^/| /' conftest.$ac_ext >&5
26674
26675 ( exit $ac_status )
26676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26677 See \`config.log' for more details." >&5
26678 echo "$as_me: error: cannot compute sizeof (int), 77
26679 See \`config.log' for more details." >&2;}
26680    { (exit 1); exit 1; }; }
26681 fi
26682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26683 fi
26684 fi
26685 rm -f conftest.val
26686 else
26687   ac_cv_sizeof_int=0
26688 fi
26689 fi
26690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26691 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26692 cat >>confdefs.h <<_ACEOF
26693 #define SIZEOF_INT $ac_cv_sizeof_int
26694 _ACEOF
26695
26696
26697 echo "$as_me:$LINENO: checking for long" >&5
26698 echo $ECHO_N "checking for long... $ECHO_C" >&6
26699 if test "${ac_cv_type_long+set}" = set; then
26700   echo $ECHO_N "(cached) $ECHO_C" >&6
26701 else
26702   cat >conftest.$ac_ext <<_ACEOF
26703 /* confdefs.h.  */
26704 _ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h.  */
26708 $ac_includes_default
26709 int
26710 main ()
26711 {
26712 if ((long *) 0)
26713   return 0;
26714 if (sizeof (long))
26715   return 0;
26716   ;
26717   return 0;
26718 }
26719 _ACEOF
26720 rm -f conftest.$ac_objext
26721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26722   (eval $ac_compile) 2>conftest.er1
26723   ac_status=$?
26724   grep -v '^ *+' conftest.er1 >conftest.err
26725   rm -f conftest.er1
26726   cat conftest.err >&5
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); } &&
26729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731   (eval $ac_try) 2>&5
26732   ac_status=$?
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); }; } &&
26735          { ac_try='test -s conftest.$ac_objext'
26736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737   (eval $ac_try) 2>&5
26738   ac_status=$?
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); }; }; then
26741   ac_cv_type_long=yes
26742 else
26743   echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746 ac_cv_type_long=no
26747 fi
26748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26749 fi
26750 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26751 echo "${ECHO_T}$ac_cv_type_long" >&6
26752
26753 echo "$as_me:$LINENO: checking size of long" >&5
26754 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26755 if test "${ac_cv_sizeof_long+set}" = set; then
26756   echo $ECHO_N "(cached) $ECHO_C" >&6
26757 else
26758   if test "$ac_cv_type_long" = yes; then
26759   # The cast to unsigned long works around a bug in the HP C Compiler
26760   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26761   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26762   # This bug is HP SR number 8606223364.
26763   if test "$cross_compiling" = yes; then
26764   # Depending upon the size, compute the lo and hi bounds.
26765 cat >conftest.$ac_ext <<_ACEOF
26766 /* confdefs.h.  */
26767 _ACEOF
26768 cat confdefs.h >>conftest.$ac_ext
26769 cat >>conftest.$ac_ext <<_ACEOF
26770 /* end confdefs.h.  */
26771 $ac_includes_default
26772 int
26773 main ()
26774 {
26775 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26776 test_array [0] = 0
26777
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 rm -f conftest.$ac_objext
26783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26784   (eval $ac_compile) 2>conftest.er1
26785   ac_status=$?
26786   grep -v '^ *+' conftest.er1 >conftest.err
26787   rm -f conftest.er1
26788   cat conftest.err >&5
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); } &&
26791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26793   (eval $ac_try) 2>&5
26794   ac_status=$?
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); }; } &&
26797          { ac_try='test -s conftest.$ac_objext'
26798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799   (eval $ac_try) 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; }; then
26803   ac_lo=0 ac_mid=0
26804   while :; do
26805     cat >conftest.$ac_ext <<_ACEOF
26806 /* confdefs.h.  */
26807 _ACEOF
26808 cat confdefs.h >>conftest.$ac_ext
26809 cat >>conftest.$ac_ext <<_ACEOF
26810 /* end confdefs.h.  */
26811 $ac_includes_default
26812 int
26813 main ()
26814 {
26815 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26816 test_array [0] = 0
26817
26818   ;
26819   return 0;
26820 }
26821 _ACEOF
26822 rm -f conftest.$ac_objext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26824   (eval $ac_compile) 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } &&
26831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; } &&
26837          { ac_try='test -s conftest.$ac_objext'
26838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839   (eval $ac_try) 2>&5
26840   ac_status=$?
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); }; }; then
26843   ac_hi=$ac_mid; break
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848 ac_lo=`expr $ac_mid + 1`
26849                     if test $ac_lo -le $ac_mid; then
26850                       ac_lo= ac_hi=
26851                       break
26852                     fi
26853                     ac_mid=`expr 2 '*' $ac_mid + 1`
26854 fi
26855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26856   done
26857 else
26858   echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26860
26861 cat >conftest.$ac_ext <<_ACEOF
26862 /* confdefs.h.  */
26863 _ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h.  */
26867 $ac_includes_default
26868 int
26869 main ()
26870 {
26871 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26872 test_array [0] = 0
26873
26874   ;
26875   return 0;
26876 }
26877 _ACEOF
26878 rm -f conftest.$ac_objext
26879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26880   (eval $ac_compile) 2>conftest.er1
26881   ac_status=$?
26882   grep -v '^ *+' conftest.er1 >conftest.err
26883   rm -f conftest.er1
26884   cat conftest.err >&5
26885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); } &&
26887          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889   (eval $ac_try) 2>&5
26890   ac_status=$?
26891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892   (exit $ac_status); }; } &&
26893          { ac_try='test -s conftest.$ac_objext'
26894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895   (eval $ac_try) 2>&5
26896   ac_status=$?
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); }; }; then
26899   ac_hi=-1 ac_mid=-1
26900   while :; do
26901     cat >conftest.$ac_ext <<_ACEOF
26902 /* confdefs.h.  */
26903 _ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h.  */
26907 $ac_includes_default
26908 int
26909 main ()
26910 {
26911 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26912 test_array [0] = 0
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 rm -f conftest.$ac_objext
26919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26920   (eval $ac_compile) 2>conftest.er1
26921   ac_status=$?
26922   grep -v '^ *+' conftest.er1 >conftest.err
26923   rm -f conftest.er1
26924   cat conftest.err >&5
26925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926   (exit $ac_status); } &&
26927          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929   (eval $ac_try) 2>&5
26930   ac_status=$?
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); }; } &&
26933          { ac_try='test -s conftest.$ac_objext'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; }; then
26939   ac_lo=$ac_mid; break
26940 else
26941   echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944 ac_hi=`expr '(' $ac_mid ')' - 1`
26945                        if test $ac_mid -le $ac_hi; then
26946                          ac_lo= ac_hi=
26947                          break
26948                        fi
26949                        ac_mid=`expr 2 '*' $ac_mid`
26950 fi
26951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26952   done
26953 else
26954   echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26956
26957 ac_lo= ac_hi=
26958 fi
26959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26960 fi
26961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962 # Binary search between lo and hi bounds.
26963 while test "x$ac_lo" != "x$ac_hi"; do
26964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26965   cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 $ac_includes_default
26972 int
26973 main ()
26974 {
26975 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26976 test_array [0] = 0
26977
26978   ;
26979   return 0;
26980 }
26981 _ACEOF
26982 rm -f conftest.$ac_objext
26983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26984   (eval $ac_compile) 2>conftest.er1
26985   ac_status=$?
26986   grep -v '^ *+' conftest.er1 >conftest.err
26987   rm -f conftest.er1
26988   cat conftest.err >&5
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); } &&
26991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993   (eval $ac_try) 2>&5
26994   ac_status=$?
26995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996   (exit $ac_status); }; } &&
26997          { ac_try='test -s conftest.$ac_objext'
26998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999   (eval $ac_try) 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); }; }; then
27003   ac_hi=$ac_mid
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008 ac_lo=`expr '(' $ac_mid ')' + 1`
27009 fi
27010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27011 done
27012 case $ac_lo in
27013 ?*) ac_cv_sizeof_long=$ac_lo;;
27014 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27015 See \`config.log' for more details." >&5
27016 echo "$as_me: error: cannot compute sizeof (long), 77
27017 See \`config.log' for more details." >&2;}
27018    { (exit 1); exit 1; }; } ;;
27019 esac
27020 else
27021   if test "$cross_compiling" = yes; then
27022   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27023 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27024    { (exit 1); exit 1; }; }
27025 else
27026   cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032 $ac_includes_default
27033 long longval () { return (long) (sizeof (long)); }
27034 unsigned long ulongval () { return (long) (sizeof (long)); }
27035 #include <stdio.h>
27036 #include <stdlib.h>
27037 int
27038 main ()
27039 {
27040
27041   FILE *f = fopen ("conftest.val", "w");
27042   if (! f)
27043     exit (1);
27044   if (((long) (sizeof (long))) < 0)
27045     {
27046       long i = longval ();
27047       if (i != ((long) (sizeof (long))))
27048         exit (1);
27049       fprintf (f, "%ld\n", i);
27050     }
27051   else
27052     {
27053       unsigned long i = ulongval ();
27054       if (i != ((long) (sizeof (long))))
27055         exit (1);
27056       fprintf (f, "%lu\n", i);
27057     }
27058   exit (ferror (f) || fclose (f) != 0);
27059
27060   ;
27061   return 0;
27062 }
27063 _ACEOF
27064 rm -f conftest$ac_exeext
27065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27066   (eval $ac_link) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27071   (eval $ac_try) 2>&5
27072   ac_status=$?
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); }; }; then
27075   ac_cv_sizeof_long=`cat conftest.val`
27076 else
27077   echo "$as_me: program exited with status $ac_status" >&5
27078 echo "$as_me: failed program was:" >&5
27079 sed 's/^/| /' conftest.$ac_ext >&5
27080
27081 ( exit $ac_status )
27082 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27083 See \`config.log' for more details." >&5
27084 echo "$as_me: error: cannot compute sizeof (long), 77
27085 See \`config.log' for more details." >&2;}
27086    { (exit 1); exit 1; }; }
27087 fi
27088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27089 fi
27090 fi
27091 rm -f conftest.val
27092 else
27093   ac_cv_sizeof_long=0
27094 fi
27095 fi
27096 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27097 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27098 cat >>confdefs.h <<_ACEOF
27099 #define SIZEOF_LONG $ac_cv_sizeof_long
27100 _ACEOF
27101
27102
27103 echo "$as_me:$LINENO: checking for size_t" >&5
27104 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27105 if test "${ac_cv_type_size_t+set}" = set; then
27106   echo $ECHO_N "(cached) $ECHO_C" >&6
27107 else
27108   cat >conftest.$ac_ext <<_ACEOF
27109 /* confdefs.h.  */
27110 _ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h.  */
27114 $ac_includes_default
27115 int
27116 main ()
27117 {
27118 if ((size_t *) 0)
27119   return 0;
27120 if (sizeof (size_t))
27121   return 0;
27122   ;
27123   return 0;
27124 }
27125 _ACEOF
27126 rm -f conftest.$ac_objext
27127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27128   (eval $ac_compile) 2>conftest.er1
27129   ac_status=$?
27130   grep -v '^ *+' conftest.er1 >conftest.err
27131   rm -f conftest.er1
27132   cat conftest.err >&5
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); } &&
27135          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137   (eval $ac_try) 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; } &&
27141          { ac_try='test -s conftest.$ac_objext'
27142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143   (eval $ac_try) 2>&5
27144   ac_status=$?
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); }; }; then
27147   ac_cv_type_size_t=yes
27148 else
27149   echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27151
27152 ac_cv_type_size_t=no
27153 fi
27154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27155 fi
27156 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27157 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27158
27159 echo "$as_me:$LINENO: checking size of size_t" >&5
27160 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
27161 if test "${ac_cv_sizeof_size_t+set}" = set; then
27162   echo $ECHO_N "(cached) $ECHO_C" >&6
27163 else
27164   if test "$ac_cv_type_size_t" = yes; then
27165   # The cast to unsigned long works around a bug in the HP C Compiler
27166   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27167   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27168   # This bug is HP SR number 8606223364.
27169   if test "$cross_compiling" = yes; then
27170   # Depending upon the size, compute the lo and hi bounds.
27171 cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 $ac_includes_default
27178 int
27179 main ()
27180 {
27181 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
27182 test_array [0] = 0
27183
27184   ;
27185   return 0;
27186 }
27187 _ACEOF
27188 rm -f conftest.$ac_objext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27190   (eval $ac_compile) 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } &&
27197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199   (eval $ac_try) 2>&5
27200   ac_status=$?
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; } &&
27203          { ac_try='test -s conftest.$ac_objext'
27204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205   (eval $ac_try) 2>&5
27206   ac_status=$?
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); }; }; then
27209   ac_lo=0 ac_mid=0
27210   while :; do
27211     cat >conftest.$ac_ext <<_ACEOF
27212 /* confdefs.h.  */
27213 _ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h.  */
27217 $ac_includes_default
27218 int
27219 main ()
27220 {
27221 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27222 test_array [0] = 0
27223
27224   ;
27225   return 0;
27226 }
27227 _ACEOF
27228 rm -f conftest.$ac_objext
27229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27230   (eval $ac_compile) 2>conftest.er1
27231   ac_status=$?
27232   grep -v '^ *+' conftest.er1 >conftest.err
27233   rm -f conftest.er1
27234   cat conftest.err >&5
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); } &&
27237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239   (eval $ac_try) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; } &&
27243          { ac_try='test -s conftest.$ac_objext'
27244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245   (eval $ac_try) 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; }; then
27249   ac_hi=$ac_mid; break
27250 else
27251   echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254 ac_lo=`expr $ac_mid + 1`
27255                     if test $ac_lo -le $ac_mid; then
27256                       ac_lo= ac_hi=
27257                       break
27258                     fi
27259                     ac_mid=`expr 2 '*' $ac_mid + 1`
27260 fi
27261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27262   done
27263 else
27264   echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267 cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h.  */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h.  */
27273 $ac_includes_default
27274 int
27275 main ()
27276 {
27277 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27278 test_array [0] = 0
27279
27280   ;
27281   return 0;
27282 }
27283 _ACEOF
27284 rm -f conftest.$ac_objext
27285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27286   (eval $ac_compile) 2>conftest.er1
27287   ac_status=$?
27288   grep -v '^ *+' conftest.er1 >conftest.err
27289   rm -f conftest.er1
27290   cat conftest.err >&5
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); } &&
27293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295   (eval $ac_try) 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; } &&
27299          { ac_try='test -s conftest.$ac_objext'
27300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301   (eval $ac_try) 2>&5
27302   ac_status=$?
27303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); }; }; then
27305   ac_hi=-1 ac_mid=-1
27306   while :; do
27307     cat >conftest.$ac_ext <<_ACEOF
27308 /* confdefs.h.  */
27309 _ACEOF
27310 cat confdefs.h >>conftest.$ac_ext
27311 cat >>conftest.$ac_ext <<_ACEOF
27312 /* end confdefs.h.  */
27313 $ac_includes_default
27314 int
27315 main ()
27316 {
27317 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27318 test_array [0] = 0
27319
27320   ;
27321   return 0;
27322 }
27323 _ACEOF
27324 rm -f conftest.$ac_objext
27325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27326   (eval $ac_compile) 2>conftest.er1
27327   ac_status=$?
27328   grep -v '^ *+' conftest.er1 >conftest.err
27329   rm -f conftest.er1
27330   cat conftest.err >&5
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); } &&
27333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335   (eval $ac_try) 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; } &&
27339          { ac_try='test -s conftest.$ac_objext'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; }; then
27345   ac_lo=$ac_mid; break
27346 else
27347   echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27349
27350 ac_hi=`expr '(' $ac_mid ')' - 1`
27351                        if test $ac_mid -le $ac_hi; then
27352                          ac_lo= ac_hi=
27353                          break
27354                        fi
27355                        ac_mid=`expr 2 '*' $ac_mid`
27356 fi
27357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27358   done
27359 else
27360   echo "$as_me: failed program was:" >&5
27361 sed 's/^/| /' conftest.$ac_ext >&5
27362
27363 ac_lo= ac_hi=
27364 fi
27365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27366 fi
27367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27368 # Binary search between lo and hi bounds.
27369 while test "x$ac_lo" != "x$ac_hi"; do
27370   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27371   cat >conftest.$ac_ext <<_ACEOF
27372 /* confdefs.h.  */
27373 _ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h.  */
27377 $ac_includes_default
27378 int
27379 main ()
27380 {
27381 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27382 test_array [0] = 0
27383
27384   ;
27385   return 0;
27386 }
27387 _ACEOF
27388 rm -f conftest.$ac_objext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27390   (eval $ac_compile) 2>conftest.er1
27391   ac_status=$?
27392   grep -v '^ *+' conftest.er1 >conftest.err
27393   rm -f conftest.er1
27394   cat conftest.err >&5
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); } &&
27397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399   (eval $ac_try) 2>&5
27400   ac_status=$?
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); }; } &&
27403          { ac_try='test -s conftest.$ac_objext'
27404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405   (eval $ac_try) 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; }; then
27409   ac_hi=$ac_mid
27410 else
27411   echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27413
27414 ac_lo=`expr '(' $ac_mid ')' + 1`
27415 fi
27416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27417 done
27418 case $ac_lo in
27419 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27420 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27421 See \`config.log' for more details." >&5
27422 echo "$as_me: error: cannot compute sizeof (size_t), 77
27423 See \`config.log' for more details." >&2;}
27424    { (exit 1); exit 1; }; } ;;
27425 esac
27426 else
27427   if test "$cross_compiling" = yes; then
27428   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27429 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27430    { (exit 1); exit 1; }; }
27431 else
27432   cat >conftest.$ac_ext <<_ACEOF
27433 /* confdefs.h.  */
27434 _ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h.  */
27438 $ac_includes_default
27439 long longval () { return (long) (sizeof (size_t)); }
27440 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27441 #include <stdio.h>
27442 #include <stdlib.h>
27443 int
27444 main ()
27445 {
27446
27447   FILE *f = fopen ("conftest.val", "w");
27448   if (! f)
27449     exit (1);
27450   if (((long) (sizeof (size_t))) < 0)
27451     {
27452       long i = longval ();
27453       if (i != ((long) (sizeof (size_t))))
27454         exit (1);
27455       fprintf (f, "%ld\n", i);
27456     }
27457   else
27458     {
27459       unsigned long i = ulongval ();
27460       if (i != ((long) (sizeof (size_t))))
27461         exit (1);
27462       fprintf (f, "%lu\n", i);
27463     }
27464   exit (ferror (f) || fclose (f) != 0);
27465
27466   ;
27467   return 0;
27468 }
27469 _ACEOF
27470 rm -f conftest$ac_exeext
27471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27472   (eval $ac_link) 2>&5
27473   ac_status=$?
27474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477   (eval $ac_try) 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; }; then
27481   ac_cv_sizeof_size_t=`cat conftest.val`
27482 else
27483   echo "$as_me: program exited with status $ac_status" >&5
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487 ( exit $ac_status )
27488 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27489 See \`config.log' for more details." >&5
27490 echo "$as_me: error: cannot compute sizeof (size_t), 77
27491 See \`config.log' for more details." >&2;}
27492    { (exit 1); exit 1; }; }
27493 fi
27494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27495 fi
27496 fi
27497 rm -f conftest.val
27498 else
27499   ac_cv_sizeof_size_t=0
27500 fi
27501 fi
27502 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27503 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27504 cat >>confdefs.h <<_ACEOF
27505 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27506 _ACEOF
27507
27508
27509
27510
27511 cat >>confdefs.h <<_ACEOF
27512 #define NFS_STATEDIR "$statedir"
27513 _ACEOF
27514
27515
27516 if test "x$cross_compiling" = "xno"; then
27517         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27518         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27519         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27520         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27521 else
27522         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27523         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27524         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27525         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27526 fi
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538 case $host in
27539   alpha*)
27540     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27541   *)
27542     ARCHFLAGS="" ;;
27543 esac
27544
27545 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27546
27547 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27548
27549 AM_CFLAGS="$my_am_cflags"
27550
27551
27552 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27553 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27554
27555
27556                                                                                                                                                                                                                                                                                                             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"
27557
27558 cat >confcache <<\_ACEOF
27559 # This file is a shell script that caches the results of configure
27560 # tests run on this system so they can be shared between configure
27561 # scripts and configure runs, see configure's option --config-cache.
27562 # It is not useful on other systems.  If it contains results you don't
27563 # want to keep, you may remove or edit it.
27564 #
27565 # config.status only pays attention to the cache file if you give it
27566 # the --recheck option to rerun configure.
27567 #
27568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27570 # following values.
27571
27572 _ACEOF
27573
27574 # The following way of writing the cache mishandles newlines in values,
27575 # but we know of no workaround that is simple, portable, and efficient.
27576 # So, don't put newlines in cache variables' values.
27577 # Ultrix sh set writes to stderr and can't be redirected directly,
27578 # and sets the high bit in the cache file unless we assign to the vars.
27579 {
27580   (set) 2>&1 |
27581     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27582     *ac_space=\ *)
27583       # `set' does not quote correctly, so add quotes (double-quote
27584       # substitution turns \\\\ into \\, and sed turns \\ into \).
27585       sed -n \
27586         "s/'/'\\\\''/g;
27587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27588       ;;
27589     *)
27590       # `set' quotes correctly as required by POSIX, so do not add quotes.
27591       sed -n \
27592         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27593       ;;
27594     esac;
27595 } |
27596   sed '
27597      t clear
27598      : clear
27599      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27600      t end
27601      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27602      : end' >>confcache
27603 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27604   if test -w $cache_file; then
27605     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27606     cat confcache >$cache_file
27607   else
27608     echo "not updating unwritable cache $cache_file"
27609   fi
27610 fi
27611 rm -f confcache
27612
27613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27614 # Let make expand exec_prefix.
27615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27616
27617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27619 # trailing colons and then remove the whole line if VPATH becomes empty
27620 # (actually we leave an empty line to preserve line numbers).
27621 if test "x$srcdir" = x.; then
27622   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27623 s/:*\$(srcdir):*/:/;
27624 s/:*\${srcdir}:*/:/;
27625 s/:*@srcdir@:*/:/;
27626 s/^\([^=]*=[     ]*\):*/\1/;
27627 s/:*$//;
27628 s/^[^=]*=[       ]*$//;
27629 }'
27630 fi
27631
27632 DEFS=-DHAVE_CONFIG_H
27633
27634 ac_libobjs=
27635 ac_ltlibobjs=
27636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27637   # 1. Remove the extension, and $U if already installed.
27638   ac_i=`echo "$ac_i" |
27639          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27640   # 2. Add them.
27641   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27642   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27643 done
27644 LIBOBJS=$ac_libobjs
27645
27646 LTLIBOBJS=$ac_ltlibobjs
27647
27648
27649 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27650   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27651 Usually this means the macro was only invoked conditionally." >&5
27652 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27653 Usually this means the macro was only invoked conditionally." >&2;}
27654    { (exit 1); exit 1; }; }
27655 fi
27656 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27657   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27658 Usually this means the macro was only invoked conditionally." >&5
27659 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27660 Usually this means the macro was only invoked conditionally." >&2;}
27661    { (exit 1); exit 1; }; }
27662 fi
27663 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27664   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27665 Usually this means the macro was only invoked conditionally." >&5
27666 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27667 Usually this means the macro was only invoked conditionally." >&2;}
27668    { (exit 1); exit 1; }; }
27669 fi
27670 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27671   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27672 Usually this means the macro was only invoked conditionally." >&5
27673 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27674 Usually this means the macro was only invoked conditionally." >&2;}
27675    { (exit 1); exit 1; }; }
27676 fi
27677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27678   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27679 Usually this means the macro was only invoked conditionally." >&5
27680 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27681 Usually this means the macro was only invoked conditionally." >&2;}
27682    { (exit 1); exit 1; }; }
27683 fi
27684 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27685   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27686 Usually this means the macro was only invoked conditionally." >&5
27687 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27688 Usually this means the macro was only invoked conditionally." >&2;}
27689    { (exit 1); exit 1; }; }
27690 fi
27691 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27692   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27693 Usually this means the macro was only invoked conditionally." >&5
27694 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27695 Usually this means the macro was only invoked conditionally." >&2;}
27696    { (exit 1); exit 1; }; }
27697 fi
27698
27699 : ${CONFIG_STATUS=./config.status}
27700 ac_clean_files_save=$ac_clean_files
27701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27703 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27704 cat >$CONFIG_STATUS <<_ACEOF
27705 #! $SHELL
27706 # Generated by $as_me.
27707 # Run this file to recreate the current configuration.
27708 # Compiler output produced by configure, useful for debugging
27709 # configure, is in config.log if it exists.
27710
27711 debug=false
27712 ac_cs_recheck=false
27713 ac_cs_silent=false
27714 SHELL=\${CONFIG_SHELL-$SHELL}
27715 _ACEOF
27716
27717 cat >>$CONFIG_STATUS <<\_ACEOF
27718 ## --------------------- ##
27719 ## M4sh Initialization.  ##
27720 ## --------------------- ##
27721
27722 # Be Bourne compatible
27723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27724   emulate sh
27725   NULLCMD=:
27726   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27727   # is contrary to our usage.  Disable this feature.
27728   alias -g '${1+"$@"}'='"$@"'
27729 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27730   set -o posix
27731 fi
27732 DUALCASE=1; export DUALCASE # for MKS sh
27733
27734 # Support unset when possible.
27735 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27736   as_unset=unset
27737 else
27738   as_unset=false
27739 fi
27740
27741
27742 # Work around bugs in pre-3.0 UWIN ksh.
27743 $as_unset ENV MAIL MAILPATH
27744 PS1='$ '
27745 PS2='> '
27746 PS4='+ '
27747
27748 # NLS nuisances.
27749 for as_var in \
27750   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27751   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27752   LC_TELEPHONE LC_TIME
27753 do
27754   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27755     eval $as_var=C; export $as_var
27756   else
27757     $as_unset $as_var
27758   fi
27759 done
27760
27761 # Required to use basename.
27762 if expr a : '\(a\)' >/dev/null 2>&1; then
27763   as_expr=expr
27764 else
27765   as_expr=false
27766 fi
27767
27768 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27769   as_basename=basename
27770 else
27771   as_basename=false
27772 fi
27773
27774
27775 # Name of the executable.
27776 as_me=`$as_basename "$0" ||
27777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27778          X"$0" : 'X\(//\)$' \| \
27779          X"$0" : 'X\(/\)$' \| \
27780          .     : '\(.\)' 2>/dev/null ||
27781 echo X/"$0" |
27782     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27783           /^X\/\(\/\/\)$/{ s//\1/; q; }
27784           /^X\/\(\/\).*/{ s//\1/; q; }
27785           s/.*/./; q'`
27786
27787
27788 # PATH needs CR, and LINENO needs CR and PATH.
27789 # Avoid depending upon Character Ranges.
27790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27793 as_cr_digits='0123456789'
27794 as_cr_alnum=$as_cr_Letters$as_cr_digits
27795
27796 # The user is always right.
27797 if test "${PATH_SEPARATOR+set}" != set; then
27798   echo "#! /bin/sh" >conf$$.sh
27799   echo  "exit 0"   >>conf$$.sh
27800   chmod +x conf$$.sh
27801   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27802     PATH_SEPARATOR=';'
27803   else
27804     PATH_SEPARATOR=:
27805   fi
27806   rm -f conf$$.sh
27807 fi
27808
27809
27810   as_lineno_1=$LINENO
27811   as_lineno_2=$LINENO
27812   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27813   test "x$as_lineno_1" != "x$as_lineno_2" &&
27814   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27815   # Find who we are.  Look in the path if we contain no path at all
27816   # relative or not.
27817   case $0 in
27818     *[\\/]* ) as_myself=$0 ;;
27819     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27820 for as_dir in $PATH
27821 do
27822   IFS=$as_save_IFS
27823   test -z "$as_dir" && as_dir=.
27824   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27825 done
27826
27827        ;;
27828   esac
27829   # We did not find ourselves, most probably we were run as `sh COMMAND'
27830   # in which case we are not to be found in the path.
27831   if test "x$as_myself" = x; then
27832     as_myself=$0
27833   fi
27834   if test ! -f "$as_myself"; then
27835     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27836 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27837    { (exit 1); exit 1; }; }
27838   fi
27839   case $CONFIG_SHELL in
27840   '')
27841     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27842 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27843 do
27844   IFS=$as_save_IFS
27845   test -z "$as_dir" && as_dir=.
27846   for as_base in sh bash ksh sh5; do
27847          case $as_dir in
27848          /*)
27849            if ("$as_dir/$as_base" -c '
27850   as_lineno_1=$LINENO
27851   as_lineno_2=$LINENO
27852   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27853   test "x$as_lineno_1" != "x$as_lineno_2" &&
27854   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27855              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27856              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27857              CONFIG_SHELL=$as_dir/$as_base
27858              export CONFIG_SHELL
27859              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27860            fi;;
27861          esac
27862        done
27863 done
27864 ;;
27865   esac
27866
27867   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27868   # uniformly replaced by the line number.  The first 'sed' inserts a
27869   # line-number line before each line; the second 'sed' does the real
27870   # work.  The second script uses 'N' to pair each line-number line
27871   # with the numbered line, and appends trailing '-' during
27872   # substitution so that $LINENO is not a special case at line end.
27873   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27874   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27875   sed '=' <$as_myself |
27876     sed '
27877       N
27878       s,$,-,
27879       : loop
27880       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27881       t loop
27882       s,-$,,
27883       s,^['$as_cr_digits']*\n,,
27884     ' >$as_me.lineno &&
27885   chmod +x $as_me.lineno ||
27886     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27887 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27888    { (exit 1); exit 1; }; }
27889
27890   # Don't try to exec as it changes $[0], causing all sort of problems
27891   # (the dirname of $[0] is not the place where we might find the
27892   # original and so on.  Autoconf is especially sensible to this).
27893   . ./$as_me.lineno
27894   # Exit status is that of the last command.
27895   exit
27896 }
27897
27898
27899 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27900   *c*,-n*) ECHO_N= ECHO_C='
27901 ' ECHO_T='      ' ;;
27902   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27903   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27904 esac
27905
27906 if expr a : '\(a\)' >/dev/null 2>&1; then
27907   as_expr=expr
27908 else
27909   as_expr=false
27910 fi
27911
27912 rm -f conf$$ conf$$.exe conf$$.file
27913 echo >conf$$.file
27914 if ln -s conf$$.file conf$$ 2>/dev/null; then
27915   # We could just check for DJGPP; but this test a) works b) is more generic
27916   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27917   if test -f conf$$.exe; then
27918     # Don't use ln at all; we don't have any links
27919     as_ln_s='cp -p'
27920   else
27921     as_ln_s='ln -s'
27922   fi
27923 elif ln conf$$.file conf$$ 2>/dev/null; then
27924   as_ln_s=ln
27925 else
27926   as_ln_s='cp -p'
27927 fi
27928 rm -f conf$$ conf$$.exe conf$$.file
27929
27930 if mkdir -p . 2>/dev/null; then
27931   as_mkdir_p=:
27932 else
27933   test -d ./-p && rmdir ./-p
27934   as_mkdir_p=false
27935 fi
27936
27937 as_executable_p="test -f"
27938
27939 # Sed expression to map a string onto a valid CPP name.
27940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27941
27942 # Sed expression to map a string onto a valid variable name.
27943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27944
27945
27946 # IFS
27947 # We need space, tab and new line, in precisely that order.
27948 as_nl='
27949 '
27950 IFS="   $as_nl"
27951
27952 # CDPATH.
27953 $as_unset CDPATH
27954
27955 exec 6>&1
27956
27957 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27958 # report actual input values of CONFIG_FILES etc. instead of their
27959 # values after options handling.  Logging --version etc. is OK.
27960 exec 5>>config.log
27961 {
27962   echo
27963   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27964 ## Running $as_me. ##
27965 _ASBOX
27966 } >&5
27967 cat >&5 <<_CSEOF
27968
27969 This file was extended by linux nfs-utils $as_me 1.0.8-rc4, which was
27970 generated by GNU Autoconf 2.59.  Invocation command line was
27971
27972   CONFIG_FILES    = $CONFIG_FILES
27973   CONFIG_HEADERS  = $CONFIG_HEADERS
27974   CONFIG_LINKS    = $CONFIG_LINKS
27975   CONFIG_COMMANDS = $CONFIG_COMMANDS
27976   $ $0 $@
27977
27978 _CSEOF
27979 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27980 echo >&5
27981 _ACEOF
27982
27983 # Files that config.status was made for.
27984 if test -n "$ac_config_files"; then
27985   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27986 fi
27987
27988 if test -n "$ac_config_headers"; then
27989   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27990 fi
27991
27992 if test -n "$ac_config_links"; then
27993   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27994 fi
27995
27996 if test -n "$ac_config_commands"; then
27997   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27998 fi
27999
28000 cat >>$CONFIG_STATUS <<\_ACEOF
28001
28002 ac_cs_usage="\
28003 \`$as_me' instantiates files from templates according to the
28004 current configuration.
28005
28006 Usage: $0 [OPTIONS] [FILE]...
28007
28008   -h, --help       print this help, then exit
28009   -V, --version    print version number, then exit
28010   -q, --quiet      do not print progress messages
28011   -d, --debug      don't remove temporary files
28012       --recheck    update $as_me by reconfiguring in the same conditions
28013   --file=FILE[:TEMPLATE]
28014                    instantiate the configuration file FILE
28015   --header=FILE[:TEMPLATE]
28016                    instantiate the configuration header FILE
28017
28018 Configuration files:
28019 $config_files
28020
28021 Configuration headers:
28022 $config_headers
28023
28024 Configuration commands:
28025 $config_commands
28026
28027 Report bugs to <bug-autoconf@gnu.org>."
28028 _ACEOF
28029
28030 cat >>$CONFIG_STATUS <<_ACEOF
28031 ac_cs_version="\\
28032 linux nfs-utils config.status 1.0.8-rc4
28033 configured by $0, generated by GNU Autoconf 2.59,
28034   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28035
28036 Copyright (C) 2003 Free Software Foundation, Inc.
28037 This config.status script is free software; the Free Software Foundation
28038 gives unlimited permission to copy, distribute and modify it."
28039 srcdir=$srcdir
28040 INSTALL="$INSTALL"
28041 _ACEOF
28042
28043 cat >>$CONFIG_STATUS <<\_ACEOF
28044 # If no file are specified by the user, then we need to provide default
28045 # value.  By we need to know if files were specified by the user.
28046 ac_need_defaults=:
28047 while test $# != 0
28048 do
28049   case $1 in
28050   --*=*)
28051     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28052     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28053     ac_shift=:
28054     ;;
28055   -*)
28056     ac_option=$1
28057     ac_optarg=$2
28058     ac_shift=shift
28059     ;;
28060   *) # This is not an option, so the user has probably given explicit
28061      # arguments.
28062      ac_option=$1
28063      ac_need_defaults=false;;
28064   esac
28065
28066   case $ac_option in
28067   # Handling of the options.
28068 _ACEOF
28069 cat >>$CONFIG_STATUS <<\_ACEOF
28070   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28071     ac_cs_recheck=: ;;
28072   --version | --vers* | -V )
28073     echo "$ac_cs_version"; exit 0 ;;
28074   --he | --h)
28075     # Conflict between --help and --header
28076     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28077 Try \`$0 --help' for more information." >&5
28078 echo "$as_me: error: ambiguous option: $1
28079 Try \`$0 --help' for more information." >&2;}
28080    { (exit 1); exit 1; }; };;
28081   --help | --hel | -h )
28082     echo "$ac_cs_usage"; exit 0 ;;
28083   --debug | --d* | -d )
28084     debug=: ;;
28085   --file | --fil | --fi | --f )
28086     $ac_shift
28087     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28088     ac_need_defaults=false;;
28089   --header | --heade | --head | --hea )
28090     $ac_shift
28091     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28092     ac_need_defaults=false;;
28093   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28094   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28095     ac_cs_silent=: ;;
28096
28097   # This is an error.
28098   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28099 Try \`$0 --help' for more information." >&5
28100 echo "$as_me: error: unrecognized option: $1
28101 Try \`$0 --help' for more information." >&2;}
28102    { (exit 1); exit 1; }; } ;;
28103
28104   *) ac_config_targets="$ac_config_targets $1" ;;
28105
28106   esac
28107   shift
28108 done
28109
28110 ac_configure_extra_args=
28111
28112 if $ac_cs_silent; then
28113   exec 6>/dev/null
28114   ac_configure_extra_args="$ac_configure_extra_args --silent"
28115 fi
28116
28117 _ACEOF
28118 cat >>$CONFIG_STATUS <<_ACEOF
28119 if \$ac_cs_recheck; then
28120   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28121   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28122 fi
28123
28124 _ACEOF
28125
28126 cat >>$CONFIG_STATUS <<_ACEOF
28127 #
28128 # INIT-COMMANDS section.
28129 #
28130
28131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28132
28133 _ACEOF
28134
28135
28136
28137 cat >>$CONFIG_STATUS <<\_ACEOF
28138 for ac_config_target in $ac_config_targets
28139 do
28140   case "$ac_config_target" in
28141   # Handling of arguments.
28142   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28143   "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
28144   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
28145   "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
28146   "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
28147   "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
28148   "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
28149   "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
28150   "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
28151   "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
28152   "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
28153   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28154   "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
28155   "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
28156   "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
28157   "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
28158   "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
28159   "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
28160   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
28161   "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
28162   "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
28163   "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
28164   "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
28165   "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
28166   "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
28167   "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
28168   "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
28169   "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
28170   "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
28171   "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
28172   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28173   "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
28174   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28175 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28176    { (exit 1); exit 1; }; };;
28177   esac
28178 done
28179
28180 # If the user did not use the arguments to specify the items to instantiate,
28181 # then the envvar interface is used.  Set only those that are not.
28182 # We use the long form for the default assignment because of an extremely
28183 # bizarre bug on SunOS 4.1.3.
28184 if $ac_need_defaults; then
28185   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28186   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28187   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28188 fi
28189
28190 # Have a temporary directory for convenience.  Make it in the build tree
28191 # simply because there is no reason to put it here, and in addition,
28192 # creating and moving files from /tmp can sometimes cause problems.
28193 # Create a temporary directory, and hook for its removal unless debugging.
28194 $debug ||
28195 {
28196   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28197   trap '{ (exit 1); exit 1; }' 1 2 13 15
28198 }
28199
28200 # Create a (secure) tmp directory for tmp files.
28201
28202 {
28203   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28204   test -n "$tmp" && test -d "$tmp"
28205 }  ||
28206 {
28207   tmp=./confstat$$-$RANDOM
28208   (umask 077 && mkdir $tmp)
28209 } ||
28210 {
28211    echo "$me: cannot create a temporary directory in ." >&2
28212    { (exit 1); exit 1; }
28213 }
28214
28215 _ACEOF
28216
28217 cat >>$CONFIG_STATUS <<_ACEOF
28218
28219 #
28220 # CONFIG_FILES section.
28221 #
28222
28223 # No need to generate the scripts if there are no CONFIG_FILES.
28224 # This happens for instance when ./config.status config.h
28225 if test -n "\$CONFIG_FILES"; then
28226   # Protect against being on the right side of a sed subst in config.status.
28227   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28228    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28229 s,@SHELL@,$SHELL,;t t
28230 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28231 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28232 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28233 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28234 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28235 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28236 s,@exec_prefix@,$exec_prefix,;t t
28237 s,@prefix@,$prefix,;t t
28238 s,@program_transform_name@,$program_transform_name,;t t
28239 s,@bindir@,$bindir,;t t
28240 s,@sbindir@,$sbindir,;t t
28241 s,@libexecdir@,$libexecdir,;t t
28242 s,@datadir@,$datadir,;t t
28243 s,@sysconfdir@,$sysconfdir,;t t
28244 s,@sharedstatedir@,$sharedstatedir,;t t
28245 s,@localstatedir@,$localstatedir,;t t
28246 s,@libdir@,$libdir,;t t
28247 s,@includedir@,$includedir,;t t
28248 s,@oldincludedir@,$oldincludedir,;t t
28249 s,@infodir@,$infodir,;t t
28250 s,@mandir@,$mandir,;t t
28251 s,@build_alias@,$build_alias,;t t
28252 s,@host_alias@,$host_alias,;t t
28253 s,@target_alias@,$target_alias,;t t
28254 s,@DEFS@,$DEFS,;t t
28255 s,@ECHO_C@,$ECHO_C,;t t
28256 s,@ECHO_N@,$ECHO_N,;t t
28257 s,@ECHO_T@,$ECHO_T,;t t
28258 s,@LIBS@,$LIBS,;t t
28259 s,@build@,$build,;t t
28260 s,@build_cpu@,$build_cpu,;t t
28261 s,@build_vendor@,$build_vendor,;t t
28262 s,@build_os@,$build_os,;t t
28263 s,@host@,$host,;t t
28264 s,@host_cpu@,$host_cpu,;t t
28265 s,@host_vendor@,$host_vendor,;t t
28266 s,@host_os@,$host_os,;t t
28267 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28268 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28269 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28270 s,@CYGPATH_W@,$CYGPATH_W,;t t
28271 s,@PACKAGE@,$PACKAGE,;t t
28272 s,@VERSION@,$VERSION,;t t
28273 s,@ACLOCAL@,$ACLOCAL,;t t
28274 s,@AUTOCONF@,$AUTOCONF,;t t
28275 s,@AUTOMAKE@,$AUTOMAKE,;t t
28276 s,@AUTOHEADER@,$AUTOHEADER,;t t
28277 s,@MAKEINFO@,$MAKEINFO,;t t
28278 s,@install_sh@,$install_sh,;t t
28279 s,@STRIP@,$STRIP,;t t
28280 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28281 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28282 s,@mkdir_p@,$mkdir_p,;t t
28283 s,@AWK@,$AWK,;t t
28284 s,@SET_MAKE@,$SET_MAKE,;t t
28285 s,@am__leading_dot@,$am__leading_dot,;t t
28286 s,@AMTAR@,$AMTAR,;t t
28287 s,@am__tar@,$am__tar,;t t
28288 s,@am__untar@,$am__untar,;t t
28289 s,@RELEASE@,$RELEASE,;t t
28290 s,@statedir@,$statedir,;t t
28291 s,@statduser@,$statduser,;t t
28292 s,@enable_nfsv3@,$enable_nfsv3,;t t
28293 s,@IDMAPD@,$IDMAPD,;t t
28294 s,@enable_nfsv4@,$enable_nfsv4,;t t
28295 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28296 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28297 s,@GSSD@,$GSSD,;t t
28298 s,@SVCGSSD@,$SVCGSSD,;t t
28299 s,@enable_gss@,$enable_gss,;t t
28300 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28301 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28302 s,@kprefix@,$kprefix,;t t
28303 s,@secure_statd@,$secure_statd,;t t
28304 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28305 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28306 s,@CC@,$CC,;t t
28307 s,@CFLAGS@,$CFLAGS,;t t
28308 s,@LDFLAGS@,$LDFLAGS,;t t
28309 s,@CPPFLAGS@,$CPPFLAGS,;t t
28310 s,@ac_ct_CC@,$ac_ct_CC,;t t
28311 s,@EXEEXT@,$EXEEXT,;t t
28312 s,@OBJEXT@,$OBJEXT,;t t
28313 s,@DEPDIR@,$DEPDIR,;t t
28314 s,@am__include@,$am__include,;t t
28315 s,@am__quote@,$am__quote,;t t
28316 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28317 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28318 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28319 s,@CCDEPMODE@,$CCDEPMODE,;t t
28320 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28321 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28322 s,@LIBWRAP@,$LIBWRAP,;t t
28323 s,@HAVE_LIBWRAP@,$HAVE_LIBWRAP,;t t
28324 s,@HAVE_TCP_WRAPPER@,$HAVE_TCP_WRAPPER,;t t
28325 s,@CXX@,$CXX,;t t
28326 s,@CXXFLAGS@,$CXXFLAGS,;t t
28327 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28328 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28329 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28330 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28331 s,@CPP@,$CPP,;t t
28332 s,@LN_S@,$LN_S,;t t
28333 s,@EGREP@,$EGREP,;t t
28334 s,@ECHO@,$ECHO,;t t
28335 s,@AR@,$AR,;t t
28336 s,@ac_ct_AR@,$ac_ct_AR,;t t
28337 s,@RANLIB@,$RANLIB,;t t
28338 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28339 s,@CXXCPP@,$CXXCPP,;t t
28340 s,@F77@,$F77,;t t
28341 s,@FFLAGS@,$FFLAGS,;t t
28342 s,@ac_ct_F77@,$ac_ct_F77,;t t
28343 s,@LIBTOOL@,$LIBTOOL,;t t
28344 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28345 s,@LD@,$LD,;t t
28346 s,@ac_ct_LD@,$ac_ct_LD,;t t
28347 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28348 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28349 s,@RPCSECGSS_CFLAGS@,$RPCSECGSS_CFLAGS,;t t
28350 s,@RPCSECGSS_LIBS@,$RPCSECGSS_LIBS,;t t
28351 s,@LIBSOCKET@,$LIBSOCKET,;t t
28352 s,@LIBNSL@,$LIBNSL,;t t
28353 s,@LIBCRYPT@,$LIBCRYPT,;t t
28354 s,@LIBBSD@,$LIBBSD,;t t
28355 s,@KRBDIR@,$KRBDIR,;t t
28356 s,@KRBLIBS@,$KRBLIBS,;t t
28357 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28358 s,@K5VERS@,$K5VERS,;t t
28359 s,@ALLOCA@,$ALLOCA,;t t
28360 s,@LIBOBJS@,$LIBOBJS,;t t
28361 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28362 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28363 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28364 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28365 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28366 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28367 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28368 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28369 CEOF
28370
28371 _ACEOF
28372
28373   cat >>$CONFIG_STATUS <<\_ACEOF
28374   # Split the substitutions into bite-sized pieces for seds with
28375   # small command number limits, like on Digital OSF/1 and HP-UX.
28376   ac_max_sed_lines=48
28377   ac_sed_frag=1 # Number of current file.
28378   ac_beg=1 # First line for current file.
28379   ac_end=$ac_max_sed_lines # Line after last line for current file.
28380   ac_more_lines=:
28381   ac_sed_cmds=
28382   while $ac_more_lines; do
28383     if test $ac_beg -gt 1; then
28384       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28385     else
28386       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28387     fi
28388     if test ! -s $tmp/subs.frag; then
28389       ac_more_lines=false
28390     else
28391       # The purpose of the label and of the branching condition is to
28392       # speed up the sed processing (if there are no `@' at all, there
28393       # is no need to browse any of the substitutions).
28394       # These are the two extra sed commands mentioned above.
28395       (echo ':t
28396   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28397       if test -z "$ac_sed_cmds"; then
28398         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28399       else
28400         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28401       fi
28402       ac_sed_frag=`expr $ac_sed_frag + 1`
28403       ac_beg=$ac_end
28404       ac_end=`expr $ac_end + $ac_max_sed_lines`
28405     fi
28406   done
28407   if test -z "$ac_sed_cmds"; then
28408     ac_sed_cmds=cat
28409   fi
28410 fi # test -n "$CONFIG_FILES"
28411
28412 _ACEOF
28413 cat >>$CONFIG_STATUS <<\_ACEOF
28414 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28415   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28416   case $ac_file in
28417   - | *:- | *:-:* ) # input from stdin
28418         cat >$tmp/stdin
28419         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28420         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28421   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28422         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28423   * )   ac_file_in=$ac_file.in ;;
28424   esac
28425
28426   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28427   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28429          X"$ac_file" : 'X\(//\)[^/]' \| \
28430          X"$ac_file" : 'X\(//\)$' \| \
28431          X"$ac_file" : 'X\(/\)' \| \
28432          .     : '\(.\)' 2>/dev/null ||
28433 echo X"$ac_file" |
28434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28436           /^X\(\/\/\)$/{ s//\1/; q; }
28437           /^X\(\/\).*/{ s//\1/; q; }
28438           s/.*/./; q'`
28439   { if $as_mkdir_p; then
28440     mkdir -p "$ac_dir"
28441   else
28442     as_dir="$ac_dir"
28443     as_dirs=
28444     while test ! -d "$as_dir"; do
28445       as_dirs="$as_dir $as_dirs"
28446       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28448          X"$as_dir" : 'X\(//\)[^/]' \| \
28449          X"$as_dir" : 'X\(//\)$' \| \
28450          X"$as_dir" : 'X\(/\)' \| \
28451          .     : '\(.\)' 2>/dev/null ||
28452 echo X"$as_dir" |
28453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28455           /^X\(\/\/\)$/{ s//\1/; q; }
28456           /^X\(\/\).*/{ s//\1/; q; }
28457           s/.*/./; q'`
28458     done
28459     test ! -n "$as_dirs" || mkdir $as_dirs
28460   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28461 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28462    { (exit 1); exit 1; }; }; }
28463
28464   ac_builddir=.
28465
28466 if test "$ac_dir" != .; then
28467   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28468   # A "../" for each directory in $ac_dir_suffix.
28469   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28470 else
28471   ac_dir_suffix= ac_top_builddir=
28472 fi
28473
28474 case $srcdir in
28475   .)  # No --srcdir option.  We are building in place.
28476     ac_srcdir=.
28477     if test -z "$ac_top_builddir"; then
28478        ac_top_srcdir=.
28479     else
28480        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28481     fi ;;
28482   [\\/]* | ?:[\\/]* )  # Absolute path.
28483     ac_srcdir=$srcdir$ac_dir_suffix;
28484     ac_top_srcdir=$srcdir ;;
28485   *) # Relative path.
28486     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28487     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28488 esac
28489
28490 # Do not use `cd foo && pwd` to compute absolute paths, because
28491 # the directories may not exist.
28492 case `pwd` in
28493 .) ac_abs_builddir="$ac_dir";;
28494 *)
28495   case "$ac_dir" in
28496   .) ac_abs_builddir=`pwd`;;
28497   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28498   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28499   esac;;
28500 esac
28501 case $ac_abs_builddir in
28502 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28503 *)
28504   case ${ac_top_builddir}. in
28505   .) ac_abs_top_builddir=$ac_abs_builddir;;
28506   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28507   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28508   esac;;
28509 esac
28510 case $ac_abs_builddir in
28511 .) ac_abs_srcdir=$ac_srcdir;;
28512 *)
28513   case $ac_srcdir in
28514   .) ac_abs_srcdir=$ac_abs_builddir;;
28515   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28516   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28517   esac;;
28518 esac
28519 case $ac_abs_builddir in
28520 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28521 *)
28522   case $ac_top_srcdir in
28523   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28524   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28525   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28526   esac;;
28527 esac
28528
28529
28530   case $INSTALL in
28531   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28532   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28533   esac
28534
28535   # Let's still pretend it is `configure' which instantiates (i.e., don't
28536   # use $as_me), people would be surprised to read:
28537   #    /* config.h.  Generated by config.status.  */
28538   if test x"$ac_file" = x-; then
28539     configure_input=
28540   else
28541     configure_input="$ac_file.  "
28542   fi
28543   configure_input=$configure_input"Generated from `echo $ac_file_in |
28544                                      sed 's,.*/,,'` by configure."
28545
28546   # First look for the input files in the build tree, otherwise in the
28547   # src tree.
28548   ac_file_inputs=`IFS=:
28549     for f in $ac_file_in; do
28550       case $f in
28551       -) echo $tmp/stdin ;;
28552       [\\/$]*)
28553          # Absolute (can't be DOS-style, as IFS=:)
28554          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28555 echo "$as_me: error: cannot find input file: $f" >&2;}
28556    { (exit 1); exit 1; }; }
28557          echo "$f";;
28558       *) # Relative
28559          if test -f "$f"; then
28560            # Build tree
28561            echo "$f"
28562          elif test -f "$srcdir/$f"; then
28563            # Source tree
28564            echo "$srcdir/$f"
28565          else
28566            # /dev/null tree
28567            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28568 echo "$as_me: error: cannot find input file: $f" >&2;}
28569    { (exit 1); exit 1; }; }
28570          fi;;
28571       esac
28572     done` || { (exit 1); exit 1; }
28573
28574   if test x"$ac_file" != x-; then
28575     { echo "$as_me:$LINENO: creating $ac_file" >&5
28576 echo "$as_me: creating $ac_file" >&6;}
28577     rm -f "$ac_file"
28578   fi
28579 _ACEOF
28580 cat >>$CONFIG_STATUS <<_ACEOF
28581   sed "$ac_vpsub
28582 $extrasub
28583 _ACEOF
28584 cat >>$CONFIG_STATUS <<\_ACEOF
28585 :t
28586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28587 s,@configure_input@,$configure_input,;t t
28588 s,@srcdir@,$ac_srcdir,;t t
28589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28590 s,@top_srcdir@,$ac_top_srcdir,;t t
28591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28592 s,@builddir@,$ac_builddir,;t t
28593 s,@abs_builddir@,$ac_abs_builddir,;t t
28594 s,@top_builddir@,$ac_top_builddir,;t t
28595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28596 s,@INSTALL@,$ac_INSTALL,;t t
28597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28598   rm -f $tmp/stdin
28599   if test x"$ac_file" != x-; then
28600     mv $tmp/out $ac_file
28601   else
28602     cat $tmp/out
28603     rm -f $tmp/out
28604   fi
28605
28606 done
28607 _ACEOF
28608 cat >>$CONFIG_STATUS <<\_ACEOF
28609
28610 #
28611 # CONFIG_HEADER section.
28612 #
28613
28614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28616 #
28617 # ac_d sets the value in "#define NAME VALUE" lines.
28618 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28619 ac_dB='[         ].*$,\1#\2'
28620 ac_dC=' '
28621 ac_dD=',;t'
28622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28623 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28624 ac_uB='$,\1#\2define\3'
28625 ac_uC=' '
28626 ac_uD=',;t'
28627
28628 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28630   case $ac_file in
28631   - | *:- | *:-:* ) # input from stdin
28632         cat >$tmp/stdin
28633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28637   * )   ac_file_in=$ac_file.in ;;
28638   esac
28639
28640   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28641 echo "$as_me: creating $ac_file" >&6;}
28642
28643   # First look for the input files in the build tree, otherwise in the
28644   # src tree.
28645   ac_file_inputs=`IFS=:
28646     for f in $ac_file_in; do
28647       case $f in
28648       -) echo $tmp/stdin ;;
28649       [\\/$]*)
28650          # Absolute (can't be DOS-style, as IFS=:)
28651          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28652 echo "$as_me: error: cannot find input file: $f" >&2;}
28653    { (exit 1); exit 1; }; }
28654          # Do quote $f, to prevent DOS paths from being IFS'd.
28655          echo "$f";;
28656       *) # Relative
28657          if test -f "$f"; then
28658            # Build tree
28659            echo "$f"
28660          elif test -f "$srcdir/$f"; then
28661            # Source tree
28662            echo "$srcdir/$f"
28663          else
28664            # /dev/null tree
28665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28666 echo "$as_me: error: cannot find input file: $f" >&2;}
28667    { (exit 1); exit 1; }; }
28668          fi;;
28669       esac
28670     done` || { (exit 1); exit 1; }
28671   # Remove the trailing spaces.
28672   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28673
28674 _ACEOF
28675
28676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28677 # `conftest.undefs', that substitutes the proper values into
28678 # config.h.in to produce config.h.  The first handles `#define'
28679 # templates, and the second `#undef' templates.
28680 # And first: Protect against being on the right side of a sed subst in
28681 # config.status.  Protect against being in an unquoted here document
28682 # in config.status.
28683 rm -f conftest.defines conftest.undefs
28684 # Using a here document instead of a string reduces the quoting nightmare.
28685 # Putting comments in sed scripts is not portable.
28686 #
28687 # `end' is used to avoid that the second main sed command (meant for
28688 # 0-ary CPP macros) applies to n-ary macro definitions.
28689 # See the Autoconf documentation for `clear'.
28690 cat >confdef2sed.sed <<\_ACEOF
28691 s/[\\&,]/\\&/g
28692 s,[\\$`],\\&,g
28693 t clear
28694 : clear
28695 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28696 t end
28697 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28698 : end
28699 _ACEOF
28700 # If some macros were called several times there might be several times
28701 # the same #defines, which is useless.  Nevertheless, we may not want to
28702 # sort them, since we want the *last* AC-DEFINE to be honored.
28703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28705 rm -f confdef2sed.sed
28706
28707 # This sed command replaces #undef with comments.  This is necessary, for
28708 # example, in the case of _POSIX_SOURCE, which is predefined and required
28709 # on some systems where configure will not decide to define it.
28710 cat >>conftest.undefs <<\_ACEOF
28711 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28712 _ACEOF
28713
28714 # Break up conftest.defines because some shells have a limit on the size
28715 # of here documents, and old seds have small limits too (100 cmds).
28716 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28717 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28718 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28719 echo '  :' >>$CONFIG_STATUS
28720 rm -f conftest.tail
28721 while grep . conftest.defines >/dev/null
28722 do
28723   # Write a limited-size here document to $tmp/defines.sed.
28724   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28725   # Speed up: don't consider the non `#define' lines.
28726   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28727   # Work around the forget-to-reset-the-flag bug.
28728   echo 't clr' >>$CONFIG_STATUS
28729   echo ': clr' >>$CONFIG_STATUS
28730   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28731   echo 'CEOF
28732   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28733   rm -f $tmp/in
28734   mv $tmp/out $tmp/in
28735 ' >>$CONFIG_STATUS
28736   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28737   rm -f conftest.defines
28738   mv conftest.tail conftest.defines
28739 done
28740 rm -f conftest.defines
28741 echo '  fi # grep' >>$CONFIG_STATUS
28742 echo >>$CONFIG_STATUS
28743
28744 # Break up conftest.undefs because some shells have a limit on the size
28745 # of here documents, and old seds have small limits too (100 cmds).
28746 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28747 rm -f conftest.tail
28748 while grep . conftest.undefs >/dev/null
28749 do
28750   # Write a limited-size here document to $tmp/undefs.sed.
28751   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28752   # Speed up: don't consider the non `#undef'
28753   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28754   # Work around the forget-to-reset-the-flag bug.
28755   echo 't clr' >>$CONFIG_STATUS
28756   echo ': clr' >>$CONFIG_STATUS
28757   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28758   echo 'CEOF
28759   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28760   rm -f $tmp/in
28761   mv $tmp/out $tmp/in
28762 ' >>$CONFIG_STATUS
28763   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28764   rm -f conftest.undefs
28765   mv conftest.tail conftest.undefs
28766 done
28767 rm -f conftest.undefs
28768
28769 cat >>$CONFIG_STATUS <<\_ACEOF
28770   # Let's still pretend it is `configure' which instantiates (i.e., don't
28771   # use $as_me), people would be surprised to read:
28772   #    /* config.h.  Generated by config.status.  */
28773   if test x"$ac_file" = x-; then
28774     echo "/* Generated by configure.  */" >$tmp/config.h
28775   else
28776     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28777   fi
28778   cat $tmp/in >>$tmp/config.h
28779   rm -f $tmp/in
28780   if test x"$ac_file" != x-; then
28781     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28782       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28783 echo "$as_me: $ac_file is unchanged" >&6;}
28784     else
28785       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28787          X"$ac_file" : 'X\(//\)[^/]' \| \
28788          X"$ac_file" : 'X\(//\)$' \| \
28789          X"$ac_file" : 'X\(/\)' \| \
28790          .     : '\(.\)' 2>/dev/null ||
28791 echo X"$ac_file" |
28792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28794           /^X\(\/\/\)$/{ s//\1/; q; }
28795           /^X\(\/\).*/{ s//\1/; q; }
28796           s/.*/./; q'`
28797       { if $as_mkdir_p; then
28798     mkdir -p "$ac_dir"
28799   else
28800     as_dir="$ac_dir"
28801     as_dirs=
28802     while test ! -d "$as_dir"; do
28803       as_dirs="$as_dir $as_dirs"
28804       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28806          X"$as_dir" : 'X\(//\)[^/]' \| \
28807          X"$as_dir" : 'X\(//\)$' \| \
28808          X"$as_dir" : 'X\(/\)' \| \
28809          .     : '\(.\)' 2>/dev/null ||
28810 echo X"$as_dir" |
28811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28813           /^X\(\/\/\)$/{ s//\1/; q; }
28814           /^X\(\/\).*/{ s//\1/; q; }
28815           s/.*/./; q'`
28816     done
28817     test ! -n "$as_dirs" || mkdir $as_dirs
28818   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28820    { (exit 1); exit 1; }; }; }
28821
28822       rm -f $ac_file
28823       mv $tmp/config.h $ac_file
28824     fi
28825   else
28826     cat $tmp/config.h
28827     rm -f $tmp/config.h
28828   fi
28829 # Compute $ac_file's index in $config_headers.
28830 _am_stamp_count=1
28831 for _am_header in $config_headers :; do
28832   case $_am_header in
28833     $ac_file | $ac_file:* )
28834       break ;;
28835     * )
28836       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28837   esac
28838 done
28839 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28840 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28841          X$ac_file : 'X\(//\)[^/]' \| \
28842          X$ac_file : 'X\(//\)$' \| \
28843          X$ac_file : 'X\(/\)' \| \
28844          .     : '\(.\)' 2>/dev/null ||
28845 echo X$ac_file |
28846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28847           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28848           /^X\(\/\/\)$/{ s//\1/; q; }
28849           /^X\(\/\).*/{ s//\1/; q; }
28850           s/.*/./; q'`/stamp-h$_am_stamp_count
28851 done
28852 _ACEOF
28853 cat >>$CONFIG_STATUS <<\_ACEOF
28854
28855 #
28856 # CONFIG_COMMANDS section.
28857 #
28858 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28859   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28860   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28861   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28863          X"$ac_dest" : 'X\(//\)[^/]' \| \
28864          X"$ac_dest" : 'X\(//\)$' \| \
28865          X"$ac_dest" : 'X\(/\)' \| \
28866          .     : '\(.\)' 2>/dev/null ||
28867 echo X"$ac_dest" |
28868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28870           /^X\(\/\/\)$/{ s//\1/; q; }
28871           /^X\(\/\).*/{ s//\1/; q; }
28872           s/.*/./; q'`
28873   { if $as_mkdir_p; then
28874     mkdir -p "$ac_dir"
28875   else
28876     as_dir="$ac_dir"
28877     as_dirs=
28878     while test ! -d "$as_dir"; do
28879       as_dirs="$as_dir $as_dirs"
28880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28882          X"$as_dir" : 'X\(//\)[^/]' \| \
28883          X"$as_dir" : 'X\(//\)$' \| \
28884          X"$as_dir" : 'X\(/\)' \| \
28885          .     : '\(.\)' 2>/dev/null ||
28886 echo X"$as_dir" |
28887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28889           /^X\(\/\/\)$/{ s//\1/; q; }
28890           /^X\(\/\).*/{ s//\1/; q; }
28891           s/.*/./; q'`
28892     done
28893     test ! -n "$as_dirs" || mkdir $as_dirs
28894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28896    { (exit 1); exit 1; }; }; }
28897
28898   ac_builddir=.
28899
28900 if test "$ac_dir" != .; then
28901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28902   # A "../" for each directory in $ac_dir_suffix.
28903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28904 else
28905   ac_dir_suffix= ac_top_builddir=
28906 fi
28907
28908 case $srcdir in
28909   .)  # No --srcdir option.  We are building in place.
28910     ac_srcdir=.
28911     if test -z "$ac_top_builddir"; then
28912        ac_top_srcdir=.
28913     else
28914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28915     fi ;;
28916   [\\/]* | ?:[\\/]* )  # Absolute path.
28917     ac_srcdir=$srcdir$ac_dir_suffix;
28918     ac_top_srcdir=$srcdir ;;
28919   *) # Relative path.
28920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28922 esac
28923
28924 # Do not use `cd foo && pwd` to compute absolute paths, because
28925 # the directories may not exist.
28926 case `pwd` in
28927 .) ac_abs_builddir="$ac_dir";;
28928 *)
28929   case "$ac_dir" in
28930   .) ac_abs_builddir=`pwd`;;
28931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28933   esac;;
28934 esac
28935 case $ac_abs_builddir in
28936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28937 *)
28938   case ${ac_top_builddir}. in
28939   .) ac_abs_top_builddir=$ac_abs_builddir;;
28940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28942   esac;;
28943 esac
28944 case $ac_abs_builddir in
28945 .) ac_abs_srcdir=$ac_srcdir;;
28946 *)
28947   case $ac_srcdir in
28948   .) ac_abs_srcdir=$ac_abs_builddir;;
28949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28951   esac;;
28952 esac
28953 case $ac_abs_builddir in
28954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28955 *)
28956   case $ac_top_srcdir in
28957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28960   esac;;
28961 esac
28962
28963
28964   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28965 echo "$as_me: executing $ac_dest commands" >&6;}
28966   case $ac_dest in
28967     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28968   # Strip MF so we end up with the name of the file.
28969   mf=`echo "$mf" | sed -e 's/:.*$//'`
28970   # Check whether this is an Automake generated Makefile or not.
28971   # We used to match only the files named `Makefile.in', but
28972   # some people rename them; so instead we look at the file content.
28973   # Grep'ing the first line is not enough: some people post-process
28974   # each Makefile.in and add a new line on top of each file to say so.
28975   # So let's grep whole file.
28976   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28977     dirpart=`(dirname "$mf") 2>/dev/null ||
28978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28979          X"$mf" : 'X\(//\)[^/]' \| \
28980          X"$mf" : 'X\(//\)$' \| \
28981          X"$mf" : 'X\(/\)' \| \
28982          .     : '\(.\)' 2>/dev/null ||
28983 echo X"$mf" |
28984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28985           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28986           /^X\(\/\/\)$/{ s//\1/; q; }
28987           /^X\(\/\).*/{ s//\1/; q; }
28988           s/.*/./; q'`
28989   else
28990     continue
28991   fi
28992   # Extract the definition of DEPDIR, am__include, and am__quote
28993   # from the Makefile without running `make'.
28994   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28995   test -z "$DEPDIR" && continue
28996   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28997   test -z "am__include" && continue
28998   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28999   # When using ansi2knr, U may be empty or an underscore; expand it
29000   U=`sed -n 's/^U = //p' < "$mf"`
29001   # Find all dependency output files, they are included files with
29002   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29003   # simplest approach to changing $(DEPDIR) to its actual value in the
29004   # expansion.
29005   for file in `sed -n "
29006     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29007        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29008     # Make sure the directory exists.
29009     test -f "$dirpart/$file" && continue
29010     fdir=`(dirname "$file") 2>/dev/null ||
29011 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29012          X"$file" : 'X\(//\)[^/]' \| \
29013          X"$file" : 'X\(//\)$' \| \
29014          X"$file" : 'X\(/\)' \| \
29015          .     : '\(.\)' 2>/dev/null ||
29016 echo X"$file" |
29017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29019           /^X\(\/\/\)$/{ s//\1/; q; }
29020           /^X\(\/\).*/{ s//\1/; q; }
29021           s/.*/./; q'`
29022     { if $as_mkdir_p; then
29023     mkdir -p $dirpart/$fdir
29024   else
29025     as_dir=$dirpart/$fdir
29026     as_dirs=
29027     while test ! -d "$as_dir"; do
29028       as_dirs="$as_dir $as_dirs"
29029       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29031          X"$as_dir" : 'X\(//\)[^/]' \| \
29032          X"$as_dir" : 'X\(//\)$' \| \
29033          X"$as_dir" : 'X\(/\)' \| \
29034          .     : '\(.\)' 2>/dev/null ||
29035 echo X"$as_dir" |
29036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29037           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29038           /^X\(\/\/\)$/{ s//\1/; q; }
29039           /^X\(\/\).*/{ s//\1/; q; }
29040           s/.*/./; q'`
29041     done
29042     test ! -n "$as_dirs" || mkdir $as_dirs
29043   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29044 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29045    { (exit 1); exit 1; }; }; }
29046
29047     # echo "creating $dirpart/$file"
29048     echo '# dummy' > "$dirpart/$file"
29049   done
29050 done
29051  ;;
29052   esac
29053 done
29054 _ACEOF
29055
29056 cat >>$CONFIG_STATUS <<\_ACEOF
29057
29058 { (exit 0); exit 0; }
29059 _ACEOF
29060 chmod +x $CONFIG_STATUS
29061 ac_clean_files=$ac_clean_files_save
29062
29063
29064 # configure is writing to config.log, and then calls config.status.
29065 # config.status does its own redirection, appending to config.log.
29066 # Unfortunately, on DOS this fails, as config.log is still kept open
29067 # by configure, so config.status won't be able to write to it; its
29068 # output is simply discarded.  So we exec the FD to /dev/null,
29069 # effectively closing config.log, so it can be properly (re)opened and
29070 # appended to by config.status.  When coming back to configure, we
29071 # need to make the FD available again.
29072 if test "$no_create" != yes; then
29073   ac_cs_success=:
29074   ac_config_status_args=
29075   test "$silent" = yes &&
29076     ac_config_status_args="$ac_config_status_args --quiet"
29077   exec 5>/dev/null
29078   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29079   exec 5>>config.log
29080   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29081   # would make configure fail if this is the last instruction.
29082   $ac_cs_success || { (exit 1); exit 1; }
29083 fi
29084
29085