]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
13e8cf7dc65c185adea6bea73343be2959e69563
[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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CC_FOR_BUILD LD ac_ct_LD LIBSOCKET LIBNSL LIBCRYPT LIBBSD KRBDIR KRBLIBS KRBCFLAGS K5VERS ALLOCA LIBOBJS CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD AM_CPPFLAGS AM_CFLAGS ACLOCAL_AMFLAGS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
951
952 #
953 # Report the --help message.
954 #
955 if test "$ac_init_help" = "long"; then
956   # Omit some internal or obsolete options to make the list less imposing.
957   # This message is too long to be a string in the A/UX 3.1 sh.
958   cat <<_ACEOF
959 \`configure' configures linux nfs-utils 1.0.8-rc4 to adapt to many kinds of systems.
960
961 Usage: $0 [OPTION]... [VAR=VALUE]...
962
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966 Defaults for the options are specified in brackets.
967
968 Configuration:
969   -h, --help              display this help and exit
970       --help=short        display options specific to this package
971       --help=recursive    display the short help of all the included packages
972   -V, --version           display version information and exit
973   -q, --quiet, --silent   do not print \`checking...' messages
974       --cache-file=FILE   cache test results in FILE [disabled]
975   -C, --config-cache      alias for \`--cache-file=config.cache'
976   -n, --no-create         do not create output files
977       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979 _ACEOF
980
981   cat <<_ACEOF
982 Installation directories:
983   --prefix=PREFIX         install architecture-independent files in PREFIX
984                           [$ac_default_prefix]
985   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986                           [PREFIX]
987
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
992
993 For better control, use the options below.
994
995 Fine tuning of the installation directories:
996   --bindir=DIR           user executables [EPREFIX/bin]
997   --sbindir=DIR          system admin executables [EPREFIX/sbin]
998   --libexecdir=DIR       program executables [EPREFIX/libexec]
999   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003   --libdir=DIR           object code libraries [EPREFIX/lib]
1004   --includedir=DIR       C header files [PREFIX/include]
1005   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006   --infodir=DIR          info documentation [PREFIX/info]
1007   --mandir=DIR           man documentation [PREFIX/man]
1008 _ACEOF
1009
1010   cat <<\_ACEOF
1011
1012 Program names:
1013   --program-prefix=PREFIX            prepend PREFIX to installed program names
1014   --program-suffix=SUFFIX            append SUFFIX to installed program names
1015   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017 System types:
1018   --build=BUILD     configure for building on BUILD [guessed]
1019   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of linux nfs-utils 1.0.8-rc4:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-nfsv3          enable support for NFSv3 [default=yes]
1033   --enable-nfsv4          enable support for NFSv4 [default=yes]
1034   --enable-gss            enable support for rpcsec_gss [default=yes]
1035   --enable-kprefix        install progs as rpc.knfsd etc
1036   --enable-secure-statd   Only lockd can use statd (security)
1037   --enable-rquotad        enable rquotad [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --enable-shared[=PKGS]
1041                           build shared libraries [default=yes]
1042   --enable-static[=PKGS]
1043                           build static libraries [default=yes]
1044   --enable-fast-install[=PKGS]
1045                           optimize for fast installation [default=yes]
1046   --disable-libtool-lock  avoid locking (might break parallel builds)
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-release=XXX      set release to XXX [1]
1052   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1053   --with-statduser=rpcuser
1054                           statd to run under [rpcuser or nobody]
1055   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1056                  (optionally in PATH)
1057   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058   --with-pic              try to use only PIC/non-PIC objects [default=use
1059                           both]
1060   --with-tags[=TAGS]
1061                           include additional configurations [automatic]
1062   --with-krb5=DIR         use Kerberos v5 installation in DIR
1063
1064 Some influential environment variables:
1065   CC          C compiler command
1066   CFLAGS      C compiler flags
1067   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1068               nonstandard directory <lib dir>
1069   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070               headers in a nonstandard directory <include dir>
1071   CXX         C++ compiler command
1072   CXXFLAGS    C++ compiler flags
1073   CPP         C preprocessor
1074   CXXCPP      C++ preprocessor
1075   F77         Fortran 77 compiler command
1076   FFLAGS      Fortran 77 compiler flags
1077
1078 Use these variables to override the choices made by `configure' or to help
1079 it to find libraries and programs with nonstandard names/locations.
1080
1081 Report bugs to <nfs@lists.sf.net>.
1082 _ACEOF
1083 fi
1084
1085 if test "$ac_init_help" = "recursive"; then
1086   # If there are subdirs, report their specific --help.
1087   ac_popdir=`pwd`
1088   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1089     test -d $ac_dir || continue
1090     ac_builddir=.
1091
1092 if test "$ac_dir" != .; then
1093   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1094   # A "../" for each directory in $ac_dir_suffix.
1095   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096 else
1097   ac_dir_suffix= ac_top_builddir=
1098 fi
1099
1100 case $srcdir in
1101   .)  # No --srcdir option.  We are building in place.
1102     ac_srcdir=.
1103     if test -z "$ac_top_builddir"; then
1104        ac_top_srcdir=.
1105     else
1106        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107     fi ;;
1108   [\\/]* | ?:[\\/]* )  # Absolute path.
1109     ac_srcdir=$srcdir$ac_dir_suffix;
1110     ac_top_srcdir=$srcdir ;;
1111   *) # Relative path.
1112     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1113     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1114 esac
1115
1116 # Do not use `cd foo && pwd` to compute absolute paths, because
1117 # the directories may not exist.
1118 case `pwd` in
1119 .) ac_abs_builddir="$ac_dir";;
1120 *)
1121   case "$ac_dir" in
1122   .) ac_abs_builddir=`pwd`;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1124   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *)
1130   case ${ac_top_builddir}. in
1131   .) ac_abs_top_builddir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1133   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_srcdir=$ac_srcdir;;
1138 *)
1139   case $ac_srcdir in
1140   .) ac_abs_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1142   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1143   esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *)
1148   case $ac_top_srcdir in
1149   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1151   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1152   esac;;
1153 esac
1154
1155     cd $ac_dir
1156     # Check for guested configure; otherwise get Cygnus style configure.
1157     if test -f $ac_srcdir/configure.gnu; then
1158       echo
1159       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1160     elif test -f $ac_srcdir/configure; then
1161       echo
1162       $SHELL $ac_srcdir/configure  --help=recursive
1163     elif test -f $ac_srcdir/configure.ac ||
1164            test -f $ac_srcdir/configure.in; then
1165       echo
1166       $ac_configure --help
1167     else
1168       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169     fi
1170     cd "$ac_popdir"
1171   done
1172 fi
1173
1174 test -n "$ac_init_help" && exit 0
1175 if $ac_init_version; then
1176   cat <<\_ACEOF
1177 linux nfs-utils configure 1.0.8-rc4
1178 generated by GNU Autoconf 2.59
1179
1180 Copyright (C) 2003 Free Software Foundation, Inc.
1181 This configure script is free software; the Free Software Foundation
1182 gives unlimited permission to copy, distribute and modify it.
1183 _ACEOF
1184   exit 0
1185 fi
1186 exec 5>config.log
1187 cat >&5 <<_ACEOF
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1190
1191 It was created by linux nfs-utils $as_me 1.0.8-rc4, which was
1192 generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194   $ $0 $@
1195
1196 _ACEOF
1197 {
1198 cat <<_ASUNAME
1199 ## --------- ##
1200 ## Platform. ##
1201 ## --------- ##
1202
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220 _ASUNAME
1221
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 for as_dir in $PATH
1224 do
1225   IFS=$as_save_IFS
1226   test -z "$as_dir" && as_dir=.
1227   echo "PATH: $as_dir"
1228 done
1229
1230 } >&5
1231
1232 cat >&5 <<_ACEOF
1233
1234
1235 ## ----------- ##
1236 ## Core tests. ##
1237 ## ----------- ##
1238
1239 _ACEOF
1240
1241
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1247 ac_configure_args=
1248 ac_configure_args0=
1249 ac_configure_args1=
1250 ac_sep=
1251 ac_must_keep_next=false
1252 for ac_pass in 1 2
1253 do
1254   for ac_arg
1255   do
1256     case $ac_arg in
1257     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259     | -silent | --silent | --silen | --sile | --sil)
1260       continue ;;
1261     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     esac
1264     case $ac_pass in
1265     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266     2)
1267       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268       if test $ac_must_keep_next = true; then
1269         ac_must_keep_next=false # Got value, back to normal.
1270       else
1271         case $ac_arg in
1272           *=* | --config-cache | -C | -disable-* | --disable-* \
1273           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275           | -with-* | --with-* | -without-* | --without-* | --x)
1276             case "$ac_configure_args0 " in
1277               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278             esac
1279             ;;
1280           -* ) ac_must_keep_next=true ;;
1281         esac
1282       fi
1283       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284       # Get rid of the leading space.
1285       ac_sep=" "
1286       ;;
1287     esac
1288   done
1289 done
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log.  We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299   # Save into config.log some information that might help in debugging.
1300   {
1301     echo
1302
1303     cat <<\_ASBOX
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1307 _ASBOX
1308     echo
1309     # The following way of writing the cache mishandles newlines in values,
1310 {
1311   (set) 2>&1 |
1312     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313     *ac_space=\ *)
1314       sed -n \
1315         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317       ;;
1318     *)
1319       sed -n \
1320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321       ;;
1322     esac;
1323 }
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1330 _ASBOX
1331     echo
1332     for ac_var in $ac_subst_vars
1333     do
1334       eval ac_val=$`echo $ac_var`
1335       echo "$ac_var='"'"'$ac_val'"'"'"
1336     done | sort
1337     echo
1338
1339     if test -n "$ac_subst_files"; then
1340       cat <<\_ASBOX
1341 ## ------------- ##
1342 ## Output files. ##
1343 ## ------------- ##
1344 _ASBOX
1345       echo
1346       for ac_var in $ac_subst_files
1347       do
1348         eval ac_val=$`echo $ac_var`
1349         echo "$ac_var='"'"'$ac_val'"'"'"
1350       done | sort
1351       echo
1352     fi
1353
1354     if test -s confdefs.h; then
1355       cat <<\_ASBOX
1356 ## ----------- ##
1357 ## confdefs.h. ##
1358 ## ----------- ##
1359 _ASBOX
1360       echo
1361       sed "/^$/d" confdefs.h | sort
1362       echo
1363     fi
1364     test "$ac_signal" != 0 &&
1365       echo "$as_me: caught signal $ac_signal"
1366     echo "$as_me: exit $exit_status"
1367   } >&5
1368   rm -f core *.core &&
1369   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370     exit $exit_status
1371      ' 0
1372 for ac_signal in 1 2 13 15; do
1373   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 done
1375 ac_signal=0
1376
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 echo >confdefs.h
1381
1382 # Predefined preprocessor variables.
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 _ACEOF
1407
1408
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412   if test "x$prefix" != xNONE; then
1413     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414   else
1415     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416   fi
1417 fi
1418 for ac_site_file in $CONFIG_SITE; do
1419   if test -r "$ac_site_file"; then
1420     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422     sed 's/^/| /' "$ac_site_file" >&5
1423     . "$ac_site_file"
1424   fi
1425 done
1426
1427 if test -r "$cache_file"; then
1428   # Some versions of bash will fail to source /dev/null (special
1429   # files actually), so we avoid doing that.
1430   if test -f "$cache_file"; then
1431     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1433     case $cache_file in
1434       [\\/]* | ?:[\\/]* ) . $cache_file;;
1435       *)                      . ./$cache_file;;
1436     esac
1437   fi
1438 else
1439   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1441   >$cache_file
1442 fi
1443
1444 # Check that the precious variables saved in the cache have kept the same
1445 # value.
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450   eval ac_new_set=\$ac_env_${ac_var}_set
1451   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452   eval ac_new_val="\$ac_env_${ac_var}_value"
1453   case $ac_old_set,$ac_new_set in
1454     set,)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,set)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,);;
1463     *)
1464       if test "x$ac_old_val" != "x$ac_new_val"; then
1465         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468 echo "$as_me:   former value:  $ac_old_val" >&2;}
1469         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470 echo "$as_me:   current value: $ac_new_val" >&2;}
1471         ac_cache_corrupted=:
1472       fi;;
1473   esac
1474   # Pass precious variables to config.status.
1475   if test "$ac_new_set" = set; then
1476     case $ac_new_val in
1477     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479     *) ac_arg=$ac_var=$ac_new_val ;;
1480     esac
1481     case " $ac_configure_args " in
1482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484     esac
1485   fi
1486 done
1487 if $ac_cache_corrupted; then
1488   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492    { (exit 1); exit 1; }; }
1493 fi
1494
1495 ac_ext=c
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 ac_aux_dir=
1528 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1529   if test -f $ac_dir/install-sh; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/install-sh -c"
1532     break
1533   elif test -f $ac_dir/install.sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install.sh -c"
1536     break
1537   elif test -f $ac_dir/shtool; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/shtool install -c"
1540     break
1541   fi
1542 done
1543 if test -z "$ac_aux_dir"; then
1544   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1546    { (exit 1); exit 1; }; }
1547 fi
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1551
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565   ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569    { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 fi
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1578 build=$ac_cv_build
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591   ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 fi
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1600 host=$ac_cv_host
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606
1607 case aclocal in
1608   [\\/]* | ?:[\\/]* ) ac_macro_dir=aclocal         ;;
1609   *)                      ac_macro_dir=$srcdir/aclocal ;;
1610 esac
1611 if test -d "$ac_macro_dir"; then :
1612 else
1613   { { echo "$as_me:$LINENO: error: cannot find macro directory \`aclocal'" >&5
1614 echo "$as_me: error: cannot find macro directory \`aclocal'" >&2;}
1615    { (exit 1); exit 1; }; }
1616 fi
1617
1618 am__api_version="1.9"
1619 # Find a good install program.  We prefer a C program (faster),
1620 # so one script is as good as another.  But avoid the broken or
1621 # incompatible versions:
1622 # SysV /etc/install, /usr/sbin/install
1623 # SunOS /usr/etc/install
1624 # IRIX /sbin/install
1625 # AIX /bin/install
1626 # AmigaOS /C/install, which installs bootblocks on floppy discs
1627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1630 # OS/2's system install, which has a completely different semantic
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1633 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1634 if test -z "$INSTALL"; then
1635 if test "${ac_cv_path_install+set}" = set; then
1636   echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   # Account for people who put trailing slashes in PATH elements.
1644 case $as_dir/ in
1645   ./ | .// | /cC/* | \
1646   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1647   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1648   /usr/ucb/* ) ;;
1649   *)
1650     # OSF1 and SCO ODT 3.0 have their own names for install.
1651     # Don't use installbsd from OSF since it installs stuff as root
1652     # by default.
1653     for ac_prog in ginstall scoinst install; do
1654       for ac_exec_ext in '' $ac_executable_extensions; do
1655         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1656           if test $ac_prog = install &&
1657             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658             # AIX install.  It has an incompatible calling convention.
1659             :
1660           elif test $ac_prog = install &&
1661             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1662             # program-specific install script used by HP pwplus--don't use.
1663             :
1664           else
1665             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1666             break 3
1667           fi
1668         fi
1669       done
1670     done
1671     ;;
1672 esac
1673 done
1674
1675
1676 fi
1677   if test "${ac_cv_path_install+set}" = set; then
1678     INSTALL=$ac_cv_path_install
1679   else
1680     # As a last resort, use the slow shell script.  We don't cache a
1681     # path for INSTALL within a source directory, because that will
1682     # break other packages using the cache if that directory is
1683     # removed, or if the path is relative.
1684     INSTALL=$ac_install_sh
1685   fi
1686 fi
1687 echo "$as_me:$LINENO: result: $INSTALL" >&5
1688 echo "${ECHO_T}$INSTALL" >&6
1689
1690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1691 # It thinks the first close brace ends the variable substitution.
1692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693
1694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695
1696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697
1698 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1699 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1700 # Just in case
1701 sleep 1
1702 echo timestamp > conftest.file
1703 # Do `set' in a subshell so we don't clobber the current shell's
1704 # arguments.  Must try -L first in case configure is actually a
1705 # symlink; some systems play weird games with the mod time of symlinks
1706 # (eg FreeBSD returns the mod time of the symlink's containing
1707 # directory).
1708 if (
1709    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1710    if test "$*" = "X"; then
1711       # -L didn't work.
1712       set X `ls -t $srcdir/configure conftest.file`
1713    fi
1714    rm -f conftest.file
1715    if test "$*" != "X $srcdir/configure conftest.file" \
1716       && test "$*" != "X conftest.file $srcdir/configure"; then
1717
1718       # If neither matched, then we have a broken ls.  This can happen
1719       # if, for instance, CONFIG_SHELL is bash and it inherits a
1720       # broken ls alias from the environment.  This has actually
1721       # happened.  Such a system could not be considered "sane".
1722       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1723 alias in your environment" >&5
1724 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1725 alias in your environment" >&2;}
1726    { (exit 1); exit 1; }; }
1727    fi
1728
1729    test "$2" = conftest.file
1730    )
1731 then
1732    # Ok.
1733    :
1734 else
1735    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1736 Check your system clock" >&5
1737 echo "$as_me: error: newly created file is older than distributed files!
1738 Check your system clock" >&2;}
1739    { (exit 1); exit 1; }; }
1740 fi
1741 echo "$as_me:$LINENO: result: yes" >&5
1742 echo "${ECHO_T}yes" >&6
1743 test "$program_prefix" != NONE &&
1744   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1745 # Use a double $ so make ignores it.
1746 test "$program_suffix" != NONE &&
1747   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1748 # Double any \ or $.  echo might interpret backslashes.
1749 # By default was `s,x,x', remove it if useless.
1750 cat <<\_ACEOF >conftest.sed
1751 s/[\\$]/&&/g;s/;s,x,x,$//
1752 _ACEOF
1753 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1754 rm conftest.sed
1755
1756 # expand $ac_aux_dir to an absolute path
1757 am_aux_dir=`cd $ac_aux_dir && pwd`
1758
1759 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760 # Use eval to expand $SHELL
1761 if eval "$MISSING --run true"; then
1762   am_missing_run="$MISSING --run "
1763 else
1764   am_missing_run=
1765   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1767 fi
1768
1769 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1770   # We used to keeping the `.' as first argument, in order to
1771   # allow $(mkdir_p) to be used without argument.  As in
1772   #   $(mkdir_p) $(somedir)
1773   # where $(somedir) is conditionally defined.  However this is wrong
1774   # for two reasons:
1775   #  1. if the package is installed by a user who cannot write `.'
1776   #     make install will fail,
1777   #  2. the above comment should most certainly read
1778   #     $(mkdir_p) $(DESTDIR)$(somedir)
1779   #     so it does not work when $(somedir) is undefined and
1780   #     $(DESTDIR) is not.
1781   #  To support the latter case, we have to write
1782   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1783   #  so the `.' trick is pointless.
1784   mkdir_p='mkdir -p --'
1785 else
1786   # On NextStep and OpenStep, the `mkdir' command does not
1787   # recognize any option.  It will interpret all options as
1788   # directories to create, and then abort because `.' already
1789   # exists.
1790   for d in ./-p ./--version;
1791   do
1792     test -d $d && rmdir $d
1793   done
1794   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1795   if test -f "$ac_aux_dir/mkinstalldirs"; then
1796     mkdir_p='$(mkinstalldirs)'
1797   else
1798     mkdir_p='$(install_sh) -d'
1799   fi
1800 fi
1801
1802 for ac_prog in gawk mawk nawk awk
1803 do
1804   # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_AWK+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$AWK"; then
1812   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_AWK="$ac_prog"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 AWK=$ac_cv_prog_AWK
1831 if test -n "$AWK"; then
1832   echo "$as_me:$LINENO: result: $AWK" >&5
1833 echo "${ECHO_T}$AWK" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839   test -n "$AWK" && break
1840 done
1841
1842 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1843 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1844 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1845 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   cat >conftest.make <<\_ACEOF
1849 all:
1850         @echo 'ac_maketemp="$(MAKE)"'
1851 _ACEOF
1852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1853 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1854 if test -n "$ac_maketemp"; then
1855   eval ac_cv_prog_make_${ac_make}_set=yes
1856 else
1857   eval ac_cv_prog_make_${ac_make}_set=no
1858 fi
1859 rm -f conftest.make
1860 fi
1861 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1862   echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864   SET_MAKE=
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868   SET_MAKE="MAKE=${MAKE-make}"
1869 fi
1870
1871 rm -rf .tst 2>/dev/null
1872 mkdir .tst 2>/dev/null
1873 if test -d .tst; then
1874   am__leading_dot=.
1875 else
1876   am__leading_dot=_
1877 fi
1878 rmdir .tst 2>/dev/null
1879
1880 # test to see if srcdir already configured
1881 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1882    test -f $srcdir/config.status; then
1883   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1884 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1885    { (exit 1); exit 1; }; }
1886 fi
1887
1888 # test whether we have cygpath
1889 if test -z "$CYGPATH_W"; then
1890   if (cygpath --version) >/dev/null 2>/dev/null; then
1891     CYGPATH_W='cygpath -w'
1892   else
1893     CYGPATH_W=echo
1894   fi
1895 fi
1896
1897
1898 # Define the identity of the package.
1899  PACKAGE='nfs-utils'
1900  VERSION='1.0.8-rc4'
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE "$PACKAGE"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define VERSION "$VERSION"
1910 _ACEOF
1911
1912 # Some tools Automake needs.
1913
1914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1915
1916
1917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1918
1919
1920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1921
1922
1923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1924
1925
1926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1927
1928 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1929
1930 # Installed binaries are usually stripped using `strip' when the user
1931 # run `make install-strip'.  However `strip' might not be the right
1932 # tool to use in cross-compilation environments, therefore Automake
1933 # will honor the `STRIP' environment variable to overrule this program.
1934 if test "$cross_compiling" != no; then
1935   if test -n "$ac_tool_prefix"; then
1936   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$STRIP"; then
1944   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 STRIP=$ac_cv_prog_STRIP
1963 if test -n "$STRIP"; then
1964   echo "$as_me:$LINENO: result: $STRIP" >&5
1965 echo "${ECHO_T}$STRIP" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971 fi
1972 if test -z "$ac_cv_prog_STRIP"; then
1973   ac_ct_STRIP=$STRIP
1974   # Extract the first word of "strip", so it can be a program name with args.
1975 set dummy strip; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_STRIP"; then
1982   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991     ac_cv_prog_ac_ct_STRIP="strip"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1999 fi
2000 fi
2001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2002 if test -n "$ac_ct_STRIP"; then
2003   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2004 echo "${ECHO_T}$ac_ct_STRIP" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010   STRIP=$ac_ct_STRIP
2011 else
2012   STRIP="$ac_cv_prog_STRIP"
2013 fi
2014
2015 fi
2016 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2017
2018 # We need awk for the "check" target.  The system "awk" is bad on
2019 # some platforms.
2020 # Always define AMTAR for backward compatibility.
2021
2022 AMTAR=${AMTAR-"${am_missing_run}tar"}
2023
2024 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034 # Check whether --with-release or --without-release was given.
2035 if test "${with_release+set}" = set; then
2036   withval="$with_release"
2037   RELEASE=$withval
2038 else
2039   RELEASE=1
2040 fi;
2041
2042
2043 # Check whether --with-statedir or --without-statedir was given.
2044 if test "${with_statedir+set}" = set; then
2045   withval="$with_statedir"
2046   statedir=$withval
2047 else
2048   statedir=/var/lib/nfs
2049 fi;
2050
2051
2052 # Check whether --with-statduser or --without-statduser was given.
2053 if test "${with_statduser+set}" = set; then
2054   withval="$with_statduser"
2055   statduser=$withval
2056 else
2057   if test "x$cross_compiling" = "xno"; then
2058                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2059                         statduser=rpcuser
2060                 else
2061                         statduser=nobody
2062                 fi
2063         else
2064                 statduser=nobody
2065         fi
2066 fi;
2067
2068 # Check whether --enable-nfsv3 or --disable-nfsv3 was given.
2069 if test "${enable_nfsv3+set}" = set; then
2070   enableval="$enable_nfsv3"
2071   enable_nfsv3=$enableval
2072 else
2073   enable_nfsv3=yes
2074 fi;
2075         if test "$enable_nfsv3" = yes; then
2076
2077 cat >>confdefs.h <<\_ACEOF
2078 #define NFS3_SUPPORTED 1
2079 _ACEOF
2080
2081         else
2082                 enable_nfsv3=
2083         fi
2084
2085 # Check whether --enable-nfsv4 or --disable-nfsv4 was given.
2086 if test "${enable_nfsv4+set}" = set; then
2087   enableval="$enable_nfsv4"
2088   enable_nfsv4=$enableval
2089 else
2090   enable_nfsv4=yes
2091 fi;
2092         if test "$enable_nfsv4" = yes; then
2093
2094 cat >>confdefs.h <<\_ACEOF
2095 #define NFS4_SUPPORTED 1
2096 _ACEOF
2097
2098                 IDMAPD=idmapd
2099         else
2100                 enable_nfsv4=
2101                 IDMAPD=
2102         fi
2103
2104
2105
2106
2107 if test "$enable_nfsv4" = "yes"; then
2108   CONFIG_NFSV4_TRUE=
2109   CONFIG_NFSV4_FALSE='#'
2110 else
2111   CONFIG_NFSV4_TRUE='#'
2112   CONFIG_NFSV4_FALSE=
2113 fi
2114
2115 # Check whether --enable-gss or --disable-gss was given.
2116 if test "${enable_gss+set}" = set; then
2117   enableval="$enable_gss"
2118   enable_gss=$enableval
2119 else
2120   enable_gss=yes
2121 fi;
2122         if test "$enable_gss" = yes; then
2123
2124 cat >>confdefs.h <<\_ACEOF
2125 #define GSS_SUPPORTED 1
2126 _ACEOF
2127
2128                 GSSD=gssd
2129                 SVCGSSD=svcgssd
2130         else
2131                 enable_gss=
2132                 GSSD=
2133                 SVCGSSD=
2134         fi
2135
2136
2137
2138
2139
2140 if test "$enable_gss" = "yes"; then
2141   CONFIG_GSS_TRUE=
2142   CONFIG_GSS_FALSE='#'
2143 else
2144   CONFIG_GSS_TRUE='#'
2145   CONFIG_GSS_FALSE=
2146 fi
2147
2148 # Check whether --enable-kprefix or --disable-kprefix was given.
2149 if test "${enable_kprefix+set}" = set; then
2150   enableval="$enable_kprefix"
2151   test "$enableval" = "yes" && kprefix=k
2152 else
2153   kprefix=
2154 fi;
2155
2156 # Check whether --enable-secure-statd or --disable-secure-statd was given.
2157 if test "${enable_secure_statd+set}" = set; then
2158   enableval="$enable_secure_statd"
2159   test "$enableval" = "yes" && secure_statd=yes
2160 else
2161   secure_statd=no
2162 fi;
2163         if test "$secure_statd" = yes; then
2164
2165 cat >>confdefs.h <<\_ACEOF
2166 #define RESTRICTED_STATD 1
2167 _ACEOF
2168
2169         fi
2170
2171 # Check whether --enable-rquotad or --disable-rquotad was given.
2172 if test "${enable_rquotad+set}" = set; then
2173   enableval="$enable_rquotad"
2174   enable_rquotad=$enableval
2175 else
2176   enable_rquotad=yes
2177 fi;
2178         if test "$enable_rquotad" = yes; then
2179                 RQUOTAD=rquotad
2180         else
2181                 RQUOTAD=
2182         fi
2183
2184
2185 if test "$enable_rquotad" = "yes"; then
2186   CONFIG_RQUOTAD_TRUE=
2187   CONFIG_RQUOTAD_FALSE='#'
2188 else
2189   CONFIG_RQUOTAD_TRUE='#'
2190   CONFIG_RQUOTAD_FALSE=
2191 fi
2192
2193
2194 # Check whether user wants TCP wrappers support
2195 DEPDIR="${am__leading_dot}deps"
2196
2197           ac_config_commands="$ac_config_commands depfiles"
2198
2199
2200 am_make=${MAKE-make}
2201 cat > confinc << 'END'
2202 am__doit:
2203         @echo done
2204 .PHONY: am__doit
2205 END
2206 # If we don't find an include directive, just comment out the code.
2207 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2208 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2209 am__include="#"
2210 am__quote=
2211 _am_result=none
2212 # First try GNU make style include.
2213 echo "include confinc" > confmf
2214 # We grep out `Entering directory' and `Leaving directory'
2215 # messages which can occur if `w' ends up in MAKEFLAGS.
2216 # In particular we don't look at `^make:' because GNU make might
2217 # be invoked under some other name (usually "gmake"), in which
2218 # case it prints its new name instead of `make'.
2219 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2220    am__include=include
2221    am__quote=
2222    _am_result=GNU
2223 fi
2224 # Now try BSD make style include.
2225 if test "$am__include" = "#"; then
2226    echo '.include "confinc"' > confmf
2227    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2228       am__include=.include
2229       am__quote="\""
2230       _am_result=BSD
2231    fi
2232 fi
2233
2234
2235 echo "$as_me:$LINENO: result: $_am_result" >&5
2236 echo "${ECHO_T}$_am_result" >&6
2237 rm -f confinc confmf
2238
2239 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2240 if test "${enable_dependency_tracking+set}" = set; then
2241   enableval="$enable_dependency_tracking"
2242
2243 fi;
2244 if test "x$enable_dependency_tracking" != xno; then
2245   am_depcomp="$ac_aux_dir/depcomp"
2246   AMDEPBACKSLASH='\'
2247 fi
2248
2249
2250 if test "x$enable_dependency_tracking" != xno; then
2251   AMDEP_TRUE=
2252   AMDEP_FALSE='#'
2253 else
2254   AMDEP_TRUE='#'
2255   AMDEP_FALSE=
2256 fi
2257
2258
2259
2260 ac_ext=c
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294   echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301 fi
2302 if test -z "$ac_cv_prog_CC"; then
2303   ac_ct_CC=$CC
2304   # Extract the first word of "gcc", so it can be a program name with args.
2305 set dummy gcc; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$ac_ct_CC"; then
2312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321     ac_cv_prog_ac_ct_CC="gcc"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327
2328 fi
2329 fi
2330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2331 if test -n "$ac_ct_CC"; then
2332   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2333 echo "${ECHO_T}$ac_ct_CC" >&6
2334 else
2335   echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339   CC=$ac_ct_CC
2340 else
2341   CC="$ac_cv_prog_CC"
2342 fi
2343
2344 if test -z "$CC"; then
2345   if test -n "$ac_tool_prefix"; then
2346   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}cc; ac_word=$2
2348 echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   if test -n "$CC"; then
2354   ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359   IFS=$as_save_IFS
2360   test -z "$as_dir" && as_dir=.
2361   for ac_exec_ext in '' $ac_executable_extensions; do
2362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363     ac_cv_prog_CC="${ac_tool_prefix}cc"
2364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365     break 2
2366   fi
2367 done
2368 done
2369
2370 fi
2371 fi
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374   echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2376 else
2377   echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2379 fi
2380
2381 fi
2382 if test -z "$ac_cv_prog_CC"; then
2383   ac_ct_CC=$CC
2384   # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$ac_ct_CC"; then
2392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401     ac_cv_prog_ac_ct_CC="cc"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407
2408 fi
2409 fi
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6
2414 else
2415   echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6
2417 fi
2418
2419   CC=$ac_ct_CC
2420 else
2421   CC="$ac_cv_prog_CC"
2422 fi
2423
2424 fi
2425 if test -z "$CC"; then
2426   # Extract the first word of "cc", so it can be a program name with args.
2427 set dummy cc; ac_word=$2
2428 echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436   ac_prog_rejected=no
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2445        ac_prog_rejected=yes
2446        continue
2447      fi
2448     ac_cv_prog_CC="cc"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454
2455 if test $ac_prog_rejected = yes; then
2456   # We found a bogon in the path, so make sure we never use it.
2457   set dummy $ac_cv_prog_CC
2458   shift
2459   if test $# != 0; then
2460     # We chose a different compiler from the bogus one.
2461     # However, it has the same basename, so the bogon will be chosen
2462     # first if we set CC to just the basename; use the full file name.
2463     shift
2464     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2465   fi
2466 fi
2467 fi
2468 fi
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471   echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6
2473 else
2474   echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2476 fi
2477
2478 fi
2479 if test -z "$CC"; then
2480   if test -n "$ac_tool_prefix"; then
2481   for ac_prog in cl
2482   do
2483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$CC"; then
2491   ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511   echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518     test -n "$CC" && break
2519   done
2520 fi
2521 if test -z "$CC"; then
2522   ac_ct_CC=$CC
2523   for ac_prog in cl
2524 do
2525   # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$ac_ct_CC"; then
2533   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542     ac_cv_prog_ac_ct_CC="$ac_prog"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548
2549 fi
2550 fi
2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552 if test -n "$ac_ct_CC"; then
2553   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2554 echo "${ECHO_T}$ac_ct_CC" >&6
2555 else
2556   echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6
2558 fi
2559
2560   test -n "$ac_ct_CC" && break
2561 done
2562
2563   CC=$ac_ct_CC
2564 fi
2565
2566 fi
2567
2568
2569 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details." >&2;}
2573    { (exit 1); exit 1; }; }
2574
2575 # Provide some information about the compiler.
2576 echo "$as_me:$LINENO:" \
2577      "checking for C compiler version" >&5
2578 ac_compiler=`set X $ac_compile; echo $2`
2579 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2580   (eval $ac_compiler --version </dev/null >&5) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }
2584 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2585   (eval $ac_compiler -v </dev/null >&5) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }
2589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2590   (eval $ac_compiler -V </dev/null >&5) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }
2594
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 ac_clean_files_save=$ac_clean_files
2611 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2612 # Try to create an executable without -o first, disregard a.out.
2613 # It will help us diagnose broken compilers, and finding out an intuition
2614 # of exeext.
2615 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2616 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2617 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2619   (eval $ac_link_default) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; then
2623   # Find the output, starting from the most likely.  This scheme is
2624 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2625 # resort.
2626
2627 # Be careful to initialize this variable, since it used to be cached.
2628 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2629 ac_cv_exeext=
2630 # b.out is created by i960 compilers.
2631 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2632 do
2633   test -f "$ac_file" || continue
2634   case $ac_file in
2635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2636         ;;
2637     conftest.$ac_ext )
2638         # This is the source file.
2639         ;;
2640     [ab].out )
2641         # We found the default executable, but exeext='' is most
2642         # certainly right.
2643         break;;
2644     *.* )
2645         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646         # FIXME: I believe we export ac_cv_exeext for Libtool,
2647         # but it would be cool to find out if it's true.  Does anybody
2648         # maintain Libtool? --akim.
2649         export ac_cv_exeext
2650         break;;
2651     * )
2652         break;;
2653   esac
2654 done
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: C compiler cannot create executables
2662 See \`config.log' for more details." >&2;}
2663    { (exit 77); exit 77; }; }
2664 fi
2665
2666 ac_exeext=$ac_cv_exeext
2667 echo "$as_me:$LINENO: result: $ac_file" >&5
2668 echo "${ECHO_T}$ac_file" >&6
2669
2670 # Check the compiler produces executables we can run.  If not, either
2671 # the compiler is broken, or we cross compile.
2672 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2673 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2674 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2675 # If not cross compiling, check that we can run a simple program.
2676 if test "$cross_compiling" != yes; then
2677   if { ac_try='./$ac_file'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683     cross_compiling=no
2684   else
2685     if test "$cross_compiling" = maybe; then
2686         cross_compiling=yes
2687     else
2688         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'.
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot run C compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695     fi
2696   fi
2697 fi
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2700
2701 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2702 ac_clean_files=$ac_clean_files_save
2703 # Check the compiler produces executables we can run.  If not, either
2704 # the compiler is broken, or we cross compile.
2705 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2706 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2707 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2708 echo "${ECHO_T}$cross_compiling" >&6
2709
2710 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2711 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713   (eval $ac_link) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; then
2717   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2718 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2719 # work properly (i.e., refer to `conftest.exe'), while it won't with
2720 # `rm'.
2721 for ac_file in conftest.exe conftest conftest.*; do
2722   test -f "$ac_file" || continue
2723   case $ac_file in
2724     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2725     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2726           export ac_cv_exeext
2727           break;;
2728     * ) break;;
2729   esac
2730 done
2731 else
2732   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 rm -f conftest$ac_cv_exeext
2740 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6
2742
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2745 ac_exeext=$EXEEXT
2746 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2748 if test "${ac_cv_objext+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; then
2772   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2775     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776        break;;
2777   esac
2778 done
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784 See \`config.log' for more details." >&5
2785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786 See \`config.log' for more details." >&2;}
2787    { (exit 1); exit 1; }; }
2788 fi
2789
2790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791 fi
2792 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793 echo "${ECHO_T}$ac_cv_objext" >&6
2794 OBJEXT=$ac_cv_objext
2795 ac_objext=$OBJEXT
2796 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799   echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801   cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807
2808 int
2809 main ()
2810 {
2811 #ifndef __GNUC__
2812        choke me
2813 #endif
2814
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821   (eval $ac_compile) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   ac_compiler_gnu=yes
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 ac_compiler_gnu=no
2846 fi
2847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2852 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2853 GCC=`test $ac_compiler_gnu = yes && echo yes`
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 CFLAGS="-g"
2857 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2858 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2859 if test "${ac_cv_prog_cc_g+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868
2869 int
2870 main ()
2871 {
2872
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879   (eval $ac_compile) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } &&
2886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; } &&
2892          { ac_try='test -s conftest.$ac_objext'
2893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894   (eval $ac_try) 2>&5
2895   ac_status=$?
2896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897   (exit $ac_status); }; }; then
2898   ac_cv_prog_cc_g=yes
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903 ac_cv_prog_cc_g=no
2904 fi
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2908 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2909 if test "$ac_test_CFLAGS" = set; then
2910   CFLAGS=$ac_save_CFLAGS
2911 elif test $ac_cv_prog_cc_g = yes; then
2912   if test "$GCC" = yes; then
2913     CFLAGS="-g -O2"
2914   else
2915     CFLAGS="-g"
2916   fi
2917 else
2918   if test "$GCC" = yes; then
2919     CFLAGS="-O2"
2920   else
2921     CFLAGS=
2922   fi
2923 fi
2924 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2925 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2926 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2927   echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929   ac_cv_prog_cc_stdc=no
2930 ac_save_CC=$CC
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #include <stdarg.h>
2938 #include <stdio.h>
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2945      char **p;
2946      int i;
2947 {
2948   return p[i];
2949 }
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2951 {
2952   char *s;
2953   va_list v;
2954   va_start (v,p);
2955   s = g (p, va_arg (v,int));
2956   va_end (v);
2957   return s;
2958 }
2959
2960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2961    function prototypes and stuff, but not '\xHH' hex character constants.
2962    These don't provoke an error unfortunately, instead are silently treated
2963    as 'x'.  The following induces an error, until -std1 is added to get
2964    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2965    array size at least.  It's necessary to write '\x00'==0 to get something
2966    that's true only with -std1.  */
2967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2968
2969 int test (int i, double x);
2970 struct s1 {int (*f) (int a);};
2971 struct s2 {int (*f) (double a);};
2972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2973 int argc;
2974 char **argv;
2975 int
2976 main ()
2977 {
2978 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 # Don't try gcc -ansi; that turns off useful extensions and
2984 # breaks some systems' header files.
2985 # AIX                   -qlanglvl=ansi
2986 # Ultrix and OSF/1      -std1
2987 # HP-UX 10.20 and later -Ae
2988 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2989 # SVR4                  -Xc -D__EXTENSIONS__
2990 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2991 do
2992   CC="$ac_save_CC $ac_arg"
2993   rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995   (eval $ac_compile) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } &&
3002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; } &&
3008          { ac_try='test -s conftest.$ac_objext'
3009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; }; then
3014   ac_cv_prog_cc_stdc=$ac_arg
3015 break
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 fi
3021 rm -f conftest.err conftest.$ac_objext
3022 done
3023 rm -f conftest.$ac_ext conftest.$ac_objext
3024 CC=$ac_save_CC
3025
3026 fi
3027
3028 case "x$ac_cv_prog_cc_stdc" in
3029   x|xno)
3030     echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6 ;;
3032   *)
3033     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3034 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3035     CC="$CC $ac_cv_prog_cc_stdc" ;;
3036 esac
3037
3038 # Some people use a C++ compiler to compile C.  Since we use `exit',
3039 # in C++ we need to declare it.  In case someone uses the same compiler
3040 # for both compiling C and C++ we need to have the C++ compiler decide
3041 # the declaration of exit, since it's the most demanding environment.
3042 cat >conftest.$ac_ext <<_ACEOF
3043 #ifndef __cplusplus
3044   choke me
3045 #endif
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049   (eval $ac_compile) 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064   (eval $ac_try) 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }; }; then
3068   for ac_declaration in \
3069    '' \
3070    'extern "C" void std::exit (int) throw (); using std::exit;' \
3071    'extern "C" void std::exit (int); using std::exit;' \
3072    'extern "C" void exit (int) throw ();' \
3073    'extern "C" void exit (int);' \
3074    'void exit (int);'
3075 do
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 $ac_declaration
3083 #include <stdlib.h>
3084 int
3085 main ()
3086 {
3087 exit (42);
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094   (eval $ac_compile) 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } &&
3101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103   (eval $ac_try) 2>&5
3104   ac_status=$?
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; } &&
3107          { ac_try='test -s conftest.$ac_objext'
3108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109   (eval $ac_try) 2>&5
3110   ac_status=$?
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); }; }; then
3113   :
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 continue
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 $ac_declaration
3128 int
3129 main ()
3130 {
3131 exit (42);
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3138   (eval $ac_compile) 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147   (eval $ac_try) 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; } &&
3151          { ac_try='test -s conftest.$ac_objext'
3152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153   (eval $ac_try) 2>&5
3154   ac_status=$?
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); }; }; then
3157   break
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 fi
3163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164 done
3165 rm -f conftest*
3166 if test -n "$ac_declaration"; then
3167   echo '#ifdef __cplusplus' >>confdefs.h
3168   echo $ac_declaration      >>confdefs.h
3169   echo '#endif'             >>confdefs.h
3170 fi
3171
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 fi
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_ext=c
3179 ac_cpp='$CPP $CPPFLAGS'
3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
3184 depcc="$CC"   am_compiler_list=
3185
3186 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3187 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3188 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3189   echo $ECHO_N "(cached) $ECHO_C" >&6
3190 else
3191   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3192   # We make a subdir and do the tests there.  Otherwise we can end up
3193   # making bogus files that we don't know about and never remove.  For
3194   # instance it was reported that on HP-UX the gcc test will end up
3195   # making a dummy file named `D' -- because `-MD' means `put the output
3196   # in D'.
3197   mkdir conftest.dir
3198   # Copy depcomp to subdir because otherwise we won't find it if we're
3199   # using a relative directory.
3200   cp "$am_depcomp" conftest.dir
3201   cd conftest.dir
3202   # We will build objects and dependencies in a subdirectory because
3203   # it helps to detect inapplicable dependency modes.  For instance
3204   # both Tru64's cc and ICC support -MD to output dependencies as a
3205   # side effect of compilation, but ICC will put the dependencies in
3206   # the current directory while Tru64 will put them in the object
3207   # directory.
3208   mkdir sub
3209
3210   am_cv_CC_dependencies_compiler_type=none
3211   if test "$am_compiler_list" = ""; then
3212      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3213   fi
3214   for depmode in $am_compiler_list; do
3215     # Setup a source with many dependencies, because some compilers
3216     # like to wrap large dependency lists on column 80 (with \), and
3217     # we should not choose a depcomp mode which is confused by this.
3218     #
3219     # We need to recreate these files for each test, as the compiler may
3220     # overwrite some of them when testing with obscure command lines.
3221     # This happens at least with the AIX C compiler.
3222     : > sub/conftest.c
3223     for i in 1 2 3 4 5 6; do
3224       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3225       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3226       # Solaris 8's {/usr,}/bin/sh.
3227       touch sub/conftst$i.h
3228     done
3229     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3230
3231     case $depmode in
3232     nosideeffect)
3233       # after this tag, mechanisms are not by side-effect, so they'll
3234       # only be used when explicitly requested
3235       if test "x$enable_dependency_tracking" = xyes; then
3236         continue
3237       else
3238         break
3239       fi
3240       ;;
3241     none) break ;;
3242     esac
3243     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3244     # mode.  It turns out that the SunPro C++ compiler does not properly
3245     # handle `-M -o', and we need to detect this.
3246     if depmode=$depmode \
3247        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3248        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3249        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3250          >/dev/null 2>conftest.err &&
3251        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3252        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3253        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3254       # icc doesn't choke on unknown options, it will just issue warnings
3255       # or remarks (even with -Werror).  So we grep stderr for any message
3256       # that says an option was ignored or not supported.
3257       # When given -MP, icc 7.0 and 7.1 complain thusly:
3258       #   icc: Command line warning: ignoring option '-M'; no argument required
3259       # The diagnosis changed in icc 8.0:
3260       #   icc: Command line remark: option '-MP' not supported
3261       if (grep 'ignoring option' conftest.err ||
3262           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3263         am_cv_CC_dependencies_compiler_type=$depmode
3264         break
3265       fi
3266     fi
3267   done
3268
3269   cd ..
3270   rm -rf conftest.dir
3271 else
3272   am_cv_CC_dependencies_compiler_type=none
3273 fi
3274
3275 fi
3276 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3277 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3278 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3279
3280
3281
3282 if
3283   test "x$enable_dependency_tracking" != xno \
3284   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3285   am__fastdepCC_TRUE=
3286   am__fastdepCC_FALSE='#'
3287 else
3288   am__fastdepCC_TRUE='#'
3289   am__fastdepCC_FALSE=
3290 fi
3291
3292
3293
3294
3295   TCPW_MSG="no"
3296
3297 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
3298 if test "${with_tcp_wrappers+set}" = set; then
3299   withval="$with_tcp_wrappers"
3300
3301         if test "x$withval" != "xno" ; then
3302             saved_LIBS="$LIBS"
3303             saved_LDFLAGS="$LDFLAGS"
3304             saved_CPPFLAGS="$CPPFLAGS"
3305             if test -n "${withval}" -a "${withval}" != "yes"; then
3306                 if test -d "${withval}/lib"; then
3307                     if test -n "${need_dash_r}"; then
3308                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3309                     else
3310                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3311                     fi
3312                 else
3313                     if test -n "${need_dash_r}"; then
3314                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3315                     else
3316                         LDFLAGS="-L${withval} ${LDFLAGS}"
3317                     fi
3318                 fi
3319                 if test -d "${withval}/include"; then
3320                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3321                 else
3322                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3323                 fi
3324             fi
3325             LIBWRAP="-lwrap"
3326             LIBS="$LIBWRAP $LIBS"
3327             echo "$as_me:$LINENO: checking for libwrap" >&5
3328 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
3329             cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335
3336                 #include <tcpd.h>
3337                 int deny_severity = 0, allow_severity = 0;
3338
3339 int
3340 main ()
3341 {
3342 hosts_access(0);
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext conftest$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349   (eval $ac_link) 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } &&
3356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; } &&
3362          { ac_try='test -s conftest$ac_exeext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368
3369                 echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3371
3372
3373 cat >>confdefs.h <<\_ACEOF
3374 #define LIBWRAP 1
3375 _ACEOF
3376
3377                 TCPW_MSG="yes"
3378
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3385 echo "$as_me: error: *** libwrap missing" >&2;}
3386    { (exit 1); exit 1; }; }
3387
3388
3389 fi
3390 rm -f conftest.err conftest.$ac_objext \
3391       conftest$ac_exeext conftest.$ac_ext
3392             LIBS="$saved_LIBS"
3393         fi
3394
3395
3396 fi;
3397
3398
3399
3400
3401           ac_config_headers="$ac_config_headers support/include/config.h"
3402
3403
3404 # Checks for programs.
3405 ac_ext=cc
3406 ac_cpp='$CXXCPP $CPPFLAGS'
3407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3410 if test -n "$ac_tool_prefix"; then
3411   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3412   do
3413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_CXX+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -n "$CXX"; then
3421   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428   for ac_exec_ext in '' $ac_executable_extensions; do
3429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435 done
3436
3437 fi
3438 fi
3439 CXX=$ac_cv_prog_CXX
3440 if test -n "$CXX"; then
3441   echo "$as_me:$LINENO: result: $CXX" >&5
3442 echo "${ECHO_T}$CXX" >&6
3443 else
3444   echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3446 fi
3447
3448     test -n "$CXX" && break
3449   done
3450 fi
3451 if test -z "$CXX"; then
3452   ac_ct_CXX=$CXX
3453   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3454 do
3455   # Extract the first word of "$ac_prog", so it can be a program name with args.
3456 set dummy $ac_prog; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   if test -n "$ac_ct_CXX"; then
3463   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468   IFS=$as_save_IFS
3469   test -z "$as_dir" && as_dir=.
3470   for ac_exec_ext in '' $ac_executable_extensions; do
3471   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472     ac_cv_prog_ac_ct_CXX="$ac_prog"
3473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474     break 2
3475   fi
3476 done
3477 done
3478
3479 fi
3480 fi
3481 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3482 if test -n "$ac_ct_CXX"; then
3483   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3484 echo "${ECHO_T}$ac_ct_CXX" >&6
3485 else
3486   echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3488 fi
3489
3490   test -n "$ac_ct_CXX" && break
3491 done
3492 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3493
3494   CXX=$ac_ct_CXX
3495 fi
3496
3497
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500      "checking for C++ compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503   (eval $ac_compiler --version </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508   (eval $ac_compiler -v </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513   (eval $ac_compiler -V </dev/null >&5) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }
3517
3518 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3519 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533 #ifndef __GNUC__
3534        choke me
3535 #endif
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543   (eval $ac_compile) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552   (eval $ac_try) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; }; then
3562   ac_compiler_gnu=yes
3563 else
3564   echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 ac_compiler_gnu=no
3568 fi
3569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3571
3572 fi
3573 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3574 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3575 GXX=`test $ac_compiler_gnu = yes && echo yes`
3576 ac_test_CXXFLAGS=${CXXFLAGS+set}
3577 ac_save_CXXFLAGS=$CXXFLAGS
3578 CXXFLAGS="-g"
3579 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3580 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3581 if test "${ac_cv_prog_cxx_g+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 rm -f conftest.$ac_objext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3601   (eval $ac_compile) 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } &&
3608          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; } &&
3614          { ac_try='test -s conftest.$ac_objext'
3615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616   (eval $ac_try) 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620   ac_cv_prog_cxx_g=yes
3621 else
3622   echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 ac_cv_prog_cxx_g=no
3626 fi
3627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3631 if test "$ac_test_CXXFLAGS" = set; then
3632   CXXFLAGS=$ac_save_CXXFLAGS
3633 elif test $ac_cv_prog_cxx_g = yes; then
3634   if test "$GXX" = yes; then
3635     CXXFLAGS="-g -O2"
3636   else
3637     CXXFLAGS="-g"
3638   fi
3639 else
3640   if test "$GXX" = yes; then
3641     CXXFLAGS="-O2"
3642   else
3643     CXXFLAGS=
3644   fi
3645 fi
3646 for ac_declaration in \
3647    '' \
3648    'extern "C" void std::exit (int) throw (); using std::exit;' \
3649    'extern "C" void std::exit (int); using std::exit;' \
3650    'extern "C" void exit (int) throw ();' \
3651    'extern "C" void exit (int);' \
3652    'void exit (int);'
3653 do
3654   cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h.  */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h.  */
3660 $ac_declaration
3661 #include <stdlib.h>
3662 int
3663 main ()
3664 {
3665 exit (42);
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672   (eval $ac_compile) 2>conftest.er1
3673   ac_status=$?
3674   grep -v '^ *+' conftest.er1 >conftest.err
3675   rm -f conftest.er1
3676   cat conftest.err >&5
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); } &&
3679          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; } &&
3685          { ac_try='test -s conftest.$ac_objext'
3686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687   (eval $ac_try) 2>&5
3688   ac_status=$?
3689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690   (exit $ac_status); }; }; then
3691   :
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 continue
3697 fi
3698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699   cat >conftest.$ac_ext <<_ACEOF
3700 /* confdefs.h.  */
3701 _ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h.  */
3705 $ac_declaration
3706 int
3707 main ()
3708 {
3709 exit (42);
3710   ;
3711   return 0;
3712 }
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } &&
3723          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725   (eval $ac_try) 2>&5
3726   ac_status=$?
3727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728   (exit $ac_status); }; } &&
3729          { ac_try='test -s conftest.$ac_objext'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   break
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 fi
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742 done
3743 rm -f conftest*
3744 if test -n "$ac_declaration"; then
3745   echo '#ifdef __cplusplus' >>confdefs.h
3746   echo $ac_declaration      >>confdefs.h
3747   echo '#endif'             >>confdefs.h
3748 fi
3749
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755
3756 depcc="$CXX"  am_compiler_list=
3757
3758 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3759 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3760 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764   # We make a subdir and do the tests there.  Otherwise we can end up
3765   # making bogus files that we don't know about and never remove.  For
3766   # instance it was reported that on HP-UX the gcc test will end up
3767   # making a dummy file named `D' -- because `-MD' means `put the output
3768   # in D'.
3769   mkdir conftest.dir
3770   # Copy depcomp to subdir because otherwise we won't find it if we're
3771   # using a relative directory.
3772   cp "$am_depcomp" conftest.dir
3773   cd conftest.dir
3774   # We will build objects and dependencies in a subdirectory because
3775   # it helps to detect inapplicable dependency modes.  For instance
3776   # both Tru64's cc and ICC support -MD to output dependencies as a
3777   # side effect of compilation, but ICC will put the dependencies in
3778   # the current directory while Tru64 will put them in the object
3779   # directory.
3780   mkdir sub
3781
3782   am_cv_CXX_dependencies_compiler_type=none
3783   if test "$am_compiler_list" = ""; then
3784      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785   fi
3786   for depmode in $am_compiler_list; do
3787     # Setup a source with many dependencies, because some compilers
3788     # like to wrap large dependency lists on column 80 (with \), and
3789     # we should not choose a depcomp mode which is confused by this.
3790     #
3791     # We need to recreate these files for each test, as the compiler may
3792     # overwrite some of them when testing with obscure command lines.
3793     # This happens at least with the AIX C compiler.
3794     : > sub/conftest.c
3795     for i in 1 2 3 4 5 6; do
3796       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3797       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3798       # Solaris 8's {/usr,}/bin/sh.
3799       touch sub/conftst$i.h
3800     done
3801     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3802
3803     case $depmode in
3804     nosideeffect)
3805       # after this tag, mechanisms are not by side-effect, so they'll
3806       # only be used when explicitly requested
3807       if test "x$enable_dependency_tracking" = xyes; then
3808         continue
3809       else
3810         break
3811       fi
3812       ;;
3813     none) break ;;
3814     esac
3815     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816     # mode.  It turns out that the SunPro C++ compiler does not properly
3817     # handle `-M -o', and we need to detect this.
3818     if depmode=$depmode \
3819        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3820        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3822          >/dev/null 2>conftest.err &&
3823        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3825        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826       # icc doesn't choke on unknown options, it will just issue warnings
3827       # or remarks (even with -Werror).  So we grep stderr for any message
3828       # that says an option was ignored or not supported.
3829       # When given -MP, icc 7.0 and 7.1 complain thusly:
3830       #   icc: Command line warning: ignoring option '-M'; no argument required
3831       # The diagnosis changed in icc 8.0:
3832       #   icc: Command line remark: option '-MP' not supported
3833       if (grep 'ignoring option' conftest.err ||
3834           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835         am_cv_CXX_dependencies_compiler_type=$depmode
3836         break
3837       fi
3838     fi
3839   done
3840
3841   cd ..
3842   rm -rf conftest.dir
3843 else
3844   am_cv_CXX_dependencies_compiler_type=none
3845 fi
3846
3847 fi
3848 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3849 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3850 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3851
3852
3853
3854 if
3855   test "x$enable_dependency_tracking" != xno \
3856   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3857   am__fastdepCXX_TRUE=
3858   am__fastdepCXX_FALSE='#'
3859 else
3860   am__fastdepCXX_TRUE='#'
3861   am__fastdepCXX_FALSE=
3862 fi
3863
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test -n "$ac_tool_prefix"; then
3871   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3873 echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_CC+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if test -n "$CC"; then
3879   ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895 fi
3896 fi
3897 CC=$ac_cv_prog_CC
3898 if test -n "$CC"; then
3899   echo "$as_me:$LINENO: result: $CC" >&5
3900 echo "${ECHO_T}$CC" >&6
3901 else
3902   echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6
3904 fi
3905
3906 fi
3907 if test -z "$ac_cv_prog_CC"; then
3908   ac_ct_CC=$CC
3909   # Extract the first word of "gcc", so it can be a program name with args.
3910 set dummy gcc; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$ac_ct_CC"; then
3917   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922   IFS=$as_save_IFS
3923   test -z "$as_dir" && as_dir=.
3924   for ac_exec_ext in '' $ac_executable_extensions; do
3925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926     ac_cv_prog_ac_ct_CC="gcc"
3927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928     break 2
3929   fi
3930 done
3931 done
3932
3933 fi
3934 fi
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938 echo "${ECHO_T}$ac_ct_CC" >&6
3939 else
3940   echo "$as_me:$LINENO: result: no" >&5
3941 echo "${ECHO_T}no" >&6
3942 fi
3943
3944   CC=$ac_ct_CC
3945 else
3946   CC="$ac_cv_prog_CC"
3947 fi
3948
3949 if test -z "$CC"; then
3950   if test -n "$ac_tool_prefix"; then
3951   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3952 set dummy ${ac_tool_prefix}cc; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_CC+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$CC"; then
3959   ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_prog_CC="${ac_tool_prefix}cc"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975 fi
3976 fi
3977 CC=$ac_cv_prog_CC
3978 if test -n "$CC"; then
3979   echo "$as_me:$LINENO: result: $CC" >&5
3980 echo "${ECHO_T}$CC" >&6
3981 else
3982   echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986 fi
3987 if test -z "$ac_cv_prog_CC"; then
3988   ac_ct_CC=$CC
3989   # Extract the first word of "cc", so it can be a program name with args.
3990 set dummy cc; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$ac_ct_CC"; then
3997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_ac_ct_CC="cc"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012
4013 fi
4014 fi
4015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4016 if test -n "$ac_ct_CC"; then
4017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4018 echo "${ECHO_T}$ac_ct_CC" >&6
4019 else
4020   echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022 fi
4023
4024   CC=$ac_ct_CC
4025 else
4026   CC="$ac_cv_prog_CC"
4027 fi
4028
4029 fi
4030 if test -z "$CC"; then
4031   # Extract the first word of "cc", so it can be a program name with args.
4032 set dummy cc; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_CC+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$CC"; then
4039   ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041   ac_prog_rejected=no
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4050        ac_prog_rejected=yes
4051        continue
4052      fi
4053     ac_cv_prog_CC="cc"
4054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058 done
4059
4060 if test $ac_prog_rejected = yes; then
4061   # We found a bogon in the path, so make sure we never use it.
4062   set dummy $ac_cv_prog_CC
4063   shift
4064   if test $# != 0; then
4065     # We chose a different compiler from the bogus one.
4066     # However, it has the same basename, so the bogon will be chosen
4067     # first if we set CC to just the basename; use the full file name.
4068     shift
4069     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4070   fi
4071 fi
4072 fi
4073 fi
4074 CC=$ac_cv_prog_CC
4075 if test -n "$CC"; then
4076   echo "$as_me:$LINENO: result: $CC" >&5
4077 echo "${ECHO_T}$CC" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 fi
4084 if test -z "$CC"; then
4085   if test -n "$ac_tool_prefix"; then
4086   for ac_prog in cl
4087   do
4088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_CC+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   if test -n "$CC"; then
4096   ac_cv_prog_CC="$CC" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4100 do
4101   IFS=$as_save_IFS
4102   test -z "$as_dir" && as_dir=.
4103   for ac_exec_ext in '' $ac_executable_extensions; do
4104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107     break 2
4108   fi
4109 done
4110 done
4111
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116   echo "$as_me:$LINENO: result: $CC" >&5
4117 echo "${ECHO_T}$CC" >&6
4118 else
4119   echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4121 fi
4122
4123     test -n "$CC" && break
4124   done
4125 fi
4126 if test -z "$CC"; then
4127   ac_ct_CC=$CC
4128   for ac_prog in cl
4129 do
4130   # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   if test -n "$ac_ct_CC"; then
4138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145   for ac_exec_ext in '' $ac_executable_extensions; do
4146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147     ac_cv_prog_ac_ct_CC="$ac_prog"
4148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149     break 2
4150   fi
4151 done
4152 done
4153
4154 fi
4155 fi
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4159 echo "${ECHO_T}$ac_ct_CC" >&6
4160 else
4161   echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6
4163 fi
4164
4165   test -n "$ac_ct_CC" && break
4166 done
4167
4168   CC=$ac_ct_CC
4169 fi
4170
4171 fi
4172
4173
4174 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4175 See \`config.log' for more details." >&5
4176 echo "$as_me: error: no acceptable C compiler found in \$PATH
4177 See \`config.log' for more details." >&2;}
4178    { (exit 1); exit 1; }; }
4179
4180 # Provide some information about the compiler.
4181 echo "$as_me:$LINENO:" \
4182      "checking for C compiler version" >&5
4183 ac_compiler=`set X $ac_compile; echo $2`
4184 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4185   (eval $ac_compiler --version </dev/null >&5) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }
4189 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4190   (eval $ac_compiler -v </dev/null >&5) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); }
4194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4195   (eval $ac_compiler -V </dev/null >&5) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }
4199
4200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211
4212 int
4213 main ()
4214 {
4215 #ifndef __GNUC__
4216        choke me
4217 #endif
4218
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 rm -f conftest.$ac_objext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>conftest.er1
4226   ac_status=$?
4227   grep -v '^ *+' conftest.er1 >conftest.err
4228   rm -f conftest.er1
4229   cat conftest.err >&5
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); } &&
4232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   ac_compiler_gnu=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 ac_compiler_gnu=no
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4253
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4257 GCC=`test $ac_compiler_gnu = yes && echo yes`
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4260 CFLAGS="-g"
4261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4263 if test "${ac_cv_prog_cc_g+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h.  */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283   (eval $ac_compile) 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } &&
4290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292   (eval $ac_try) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; } &&
4296          { ac_try='test -s conftest.$ac_objext'
4297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298   (eval $ac_try) 2>&5
4299   ac_status=$?
4300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301   (exit $ac_status); }; }; then
4302   ac_cv_prog_cc_g=yes
4303 else
4304   echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_prog_cc_g=no
4308 fi
4309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4310 fi
4311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4313 if test "$ac_test_CFLAGS" = set; then
4314   CFLAGS=$ac_save_CFLAGS
4315 elif test $ac_cv_prog_cc_g = yes; then
4316   if test "$GCC" = yes; then
4317     CFLAGS="-g -O2"
4318   else
4319     CFLAGS="-g"
4320   fi
4321 else
4322   if test "$GCC" = yes; then
4323     CFLAGS="-O2"
4324   else
4325     CFLAGS=
4326   fi
4327 fi
4328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   ac_cv_prog_cc_stdc=no
4334 ac_save_CC=$CC
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <stdarg.h>
4342 #include <stdio.h>
4343 #include <sys/types.h>
4344 #include <sys/stat.h>
4345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4346 struct buf { int x; };
4347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4348 static char *e (p, i)
4349      char **p;
4350      int i;
4351 {
4352   return p[i];
4353 }
4354 static char *f (char * (*g) (char **, int), char **p, ...)
4355 {
4356   char *s;
4357   va_list v;
4358   va_start (v,p);
4359   s = g (p, va_arg (v,int));
4360   va_end (v);
4361   return s;
4362 }
4363
4364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4365    function prototypes and stuff, but not '\xHH' hex character constants.
4366    These don't provoke an error unfortunately, instead are silently treated
4367    as 'x'.  The following induces an error, until -std1 is added to get
4368    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4369    array size at least.  It's necessary to write '\x00'==0 to get something
4370    that's true only with -std1.  */
4371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4372
4373 int test (int i, double x);
4374 struct s1 {int (*f) (int a);};
4375 struct s2 {int (*f) (double a);};
4376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4377 int argc;
4378 char **argv;
4379 int
4380 main ()
4381 {
4382 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 # Don't try gcc -ansi; that turns off useful extensions and
4388 # breaks some systems' header files.
4389 # AIX                   -qlanglvl=ansi
4390 # Ultrix and OSF/1      -std1
4391 # HP-UX 10.20 and later -Ae
4392 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4393 # SVR4                  -Xc -D__EXTENSIONS__
4394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4395 do
4396   CC="$ac_save_CC $ac_arg"
4397   rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399   (eval $ac_compile) 2>conftest.er1
4400   ac_status=$?
4401   grep -v '^ *+' conftest.er1 >conftest.err
4402   rm -f conftest.er1
4403   cat conftest.err >&5
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); } &&
4406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_cv_prog_cc_stdc=$ac_arg
4419 break
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 fi
4425 rm -f conftest.err conftest.$ac_objext
4426 done
4427 rm -f conftest.$ac_ext conftest.$ac_objext
4428 CC=$ac_save_CC
4429
4430 fi
4431
4432 case "x$ac_cv_prog_cc_stdc" in
4433   x|xno)
4434     echo "$as_me:$LINENO: result: none needed" >&5
4435 echo "${ECHO_T}none needed" >&6 ;;
4436   *)
4437     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4439     CC="$CC $ac_cv_prog_cc_stdc" ;;
4440 esac
4441
4442 # Some people use a C++ compiler to compile C.  Since we use `exit',
4443 # in C++ we need to declare it.  In case someone uses the same compiler
4444 # for both compiling C and C++ we need to have the C++ compiler decide
4445 # the declaration of exit, since it's the most demanding environment.
4446 cat >conftest.$ac_ext <<_ACEOF
4447 #ifndef __cplusplus
4448   choke me
4449 #endif
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   for ac_declaration in \
4473    '' \
4474    'extern "C" void std::exit (int) throw (); using std::exit;' \
4475    'extern "C" void std::exit (int); using std::exit;' \
4476    'extern "C" void exit (int) throw ();' \
4477    'extern "C" void exit (int);' \
4478    'void exit (int);'
4479 do
4480   cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 $ac_declaration
4487 #include <stdlib.h>
4488 int
4489 main ()
4490 {
4491 exit (42);
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498   (eval $ac_compile) 2>conftest.er1
4499   ac_status=$?
4500   grep -v '^ *+' conftest.er1 >conftest.err
4501   rm -f conftest.er1
4502   cat conftest.err >&5
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); } &&
4505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; } &&
4511          { ac_try='test -s conftest.$ac_objext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   :
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 continue
4523 fi
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 $ac_declaration
4532 int
4533 main ()
4534 {
4535 exit (42);
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } &&
4549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   break
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 fi
4567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4568 done
4569 rm -f conftest*
4570 if test -n "$ac_declaration"; then
4571   echo '#ifdef __cplusplus' >>confdefs.h
4572   echo $ac_declaration      >>confdefs.h
4573   echo '#endif'             >>confdefs.h
4574 fi
4575
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 fi
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588 depcc="$CC"   am_compiler_list=
4589
4590 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4591 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4592 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596   # We make a subdir and do the tests there.  Otherwise we can end up
4597   # making bogus files that we don't know about and never remove.  For
4598   # instance it was reported that on HP-UX the gcc test will end up
4599   # making a dummy file named `D' -- because `-MD' means `put the output
4600   # in D'.
4601   mkdir conftest.dir
4602   # Copy depcomp to subdir because otherwise we won't find it if we're
4603   # using a relative directory.
4604   cp "$am_depcomp" conftest.dir
4605   cd conftest.dir
4606   # We will build objects and dependencies in a subdirectory because
4607   # it helps to detect inapplicable dependency modes.  For instance
4608   # both Tru64's cc and ICC support -MD to output dependencies as a
4609   # side effect of compilation, but ICC will put the dependencies in
4610   # the current directory while Tru64 will put them in the object
4611   # directory.
4612   mkdir sub
4613
4614   am_cv_CC_dependencies_compiler_type=none
4615   if test "$am_compiler_list" = ""; then
4616      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4617   fi
4618   for depmode in $am_compiler_list; do
4619     # Setup a source with many dependencies, because some compilers
4620     # like to wrap large dependency lists on column 80 (with \), and
4621     # we should not choose a depcomp mode which is confused by this.
4622     #
4623     # We need to recreate these files for each test, as the compiler may
4624     # overwrite some of them when testing with obscure command lines.
4625     # This happens at least with the AIX C compiler.
4626     : > sub/conftest.c
4627     for i in 1 2 3 4 5 6; do
4628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4630       # Solaris 8's {/usr,}/bin/sh.
4631       touch sub/conftst$i.h
4632     done
4633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635     case $depmode in
4636     nosideeffect)
4637       # after this tag, mechanisms are not by side-effect, so they'll
4638       # only be used when explicitly requested
4639       if test "x$enable_dependency_tracking" = xyes; then
4640         continue
4641       else
4642         break
4643       fi
4644       ;;
4645     none) break ;;
4646     esac
4647     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4648     # mode.  It turns out that the SunPro C++ compiler does not properly
4649     # handle `-M -o', and we need to detect this.
4650     if depmode=$depmode \
4651        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4652        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4654          >/dev/null 2>conftest.err &&
4655        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4657        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658       # icc doesn't choke on unknown options, it will just issue warnings
4659       # or remarks (even with -Werror).  So we grep stderr for any message
4660       # that says an option was ignored or not supported.
4661       # When given -MP, icc 7.0 and 7.1 complain thusly:
4662       #   icc: Command line warning: ignoring option '-M'; no argument required
4663       # The diagnosis changed in icc 8.0:
4664       #   icc: Command line remark: option '-MP' not supported
4665       if (grep 'ignoring option' conftest.err ||
4666           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667         am_cv_CC_dependencies_compiler_type=$depmode
4668         break
4669       fi
4670     fi
4671   done
4672
4673   cd ..
4674   rm -rf conftest.dir
4675 else
4676   am_cv_CC_dependencies_compiler_type=none
4677 fi
4678
4679 fi
4680 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4683
4684
4685
4686 if
4687   test "x$enable_dependency_tracking" != xno \
4688   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4689   am__fastdepCC_TRUE=
4690   am__fastdepCC_FALSE='#'
4691 else
4692   am__fastdepCC_TRUE='#'
4693   am__fastdepCC_FALSE=
4694 fi
4695
4696
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4706   CPP=
4707 fi
4708 if test -z "$CPP"; then
4709   if test "${ac_cv_prog_CPP+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712       # Double quotes because CPP needs to be expanded
4713     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4714     do
4715       ac_preproc_ok=false
4716 for ac_c_preproc_warn_flag in '' yes
4717 do
4718   # Use a header file that comes with gcc, so configuring glibc
4719   # with a fresh cross-compiler works.
4720   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721   # <limits.h> exists even on freestanding compilers.
4722   # On the NeXT, cc -E runs the code through the compiler's parser,
4723   # not just through cpp. "Syntax error" is here to catch this case.
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #ifdef __STDC__
4731 # include <limits.h>
4732 #else
4733 # include <assert.h>
4734 #endif
4735                      Syntax error
4736 _ACEOF
4737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } >/dev/null; then
4745   if test -s conftest.err; then
4746     ac_cpp_err=$ac_c_preproc_warn_flag
4747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4748   else
4749     ac_cpp_err=
4750   fi
4751 else
4752   ac_cpp_err=yes
4753 fi
4754 if test -z "$ac_cpp_err"; then
4755   :
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760   # Broken: fails on valid input.
4761 continue
4762 fi
4763 rm -f conftest.err conftest.$ac_ext
4764
4765   # OK, works on sane cases.  Now check whether non-existent headers
4766   # can be detected and how.
4767   cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773 #include <ac_nonexistent.h>
4774 _ACEOF
4775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } >/dev/null; then
4783   if test -s conftest.err; then
4784     ac_cpp_err=$ac_c_preproc_warn_flag
4785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4786   else
4787     ac_cpp_err=
4788   fi
4789 else
4790   ac_cpp_err=yes
4791 fi
4792 if test -z "$ac_cpp_err"; then
4793   # Broken: success on invalid input.
4794 continue
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799   # Passes both tests.
4800 ac_preproc_ok=:
4801 break
4802 fi
4803 rm -f conftest.err conftest.$ac_ext
4804
4805 done
4806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4807 rm -f conftest.err conftest.$ac_ext
4808 if $ac_preproc_ok; then
4809   break
4810 fi
4811
4812     done
4813     ac_cv_prog_CPP=$CPP
4814
4815 fi
4816   CPP=$ac_cv_prog_CPP
4817 else
4818   ac_cv_prog_CPP=$CPP
4819 fi
4820 echo "$as_me:$LINENO: result: $CPP" >&5
4821 echo "${ECHO_T}$CPP" >&6
4822 ac_preproc_ok=false
4823 for ac_c_preproc_warn_flag in '' yes
4824 do
4825   # Use a header file that comes with gcc, so configuring glibc
4826   # with a fresh cross-compiler works.
4827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4828   # <limits.h> exists even on freestanding compilers.
4829   # On the NeXT, cc -E runs the code through the compiler's parser,
4830   # not just through cpp. "Syntax error" is here to catch this case.
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 #ifdef __STDC__
4838 # include <limits.h>
4839 #else
4840 # include <assert.h>
4841 #endif
4842                      Syntax error
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } >/dev/null; then
4852   if test -s conftest.err; then
4853     ac_cpp_err=$ac_c_preproc_warn_flag
4854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855   else
4856     ac_cpp_err=
4857   fi
4858 else
4859   ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862   :
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867   # Broken: fails on valid input.
4868 continue
4869 fi
4870 rm -f conftest.err conftest.$ac_ext
4871
4872   # OK, works on sane cases.  Now check whether non-existent headers
4873   # can be detected and how.
4874   cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h.  */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h.  */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } >/dev/null; then
4890   if test -s conftest.err; then
4891     ac_cpp_err=$ac_c_preproc_warn_flag
4892     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4893   else
4894     ac_cpp_err=
4895   fi
4896 else
4897   ac_cpp_err=yes
4898 fi
4899 if test -z "$ac_cpp_err"; then
4900   # Broken: success on invalid input.
4901 continue
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906   # Passes both tests.
4907 ac_preproc_ok=:
4908 break
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911
4912 done
4913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4914 rm -f conftest.err conftest.$ac_ext
4915 if $ac_preproc_ok; then
4916   :
4917 else
4918   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4919 See \`config.log' for more details." >&5
4920 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4921 See \`config.log' for more details." >&2;}
4922    { (exit 1); exit 1; }; }
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931 # Find a good install program.  We prefer a C program (faster),
4932 # so one script is as good as another.  But avoid the broken or
4933 # incompatible versions:
4934 # SysV /etc/install, /usr/sbin/install
4935 # SunOS /usr/etc/install
4936 # IRIX /sbin/install
4937 # AIX /bin/install
4938 # AmigaOS /C/install, which installs bootblocks on floppy discs
4939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4942 # OS/2's system install, which has a completely different semantic
4943 # ./install, which can be erroneously created by make from ./install.sh.
4944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4946 if test -z "$INSTALL"; then
4947 if test "${ac_cv_path_install+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   # Account for people who put trailing slashes in PATH elements.
4956 case $as_dir/ in
4957   ./ | .// | /cC/* | \
4958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4959   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4960   /usr/ucb/* ) ;;
4961   *)
4962     # OSF1 and SCO ODT 3.0 have their own names for install.
4963     # Don't use installbsd from OSF since it installs stuff as root
4964     # by default.
4965     for ac_prog in ginstall scoinst install; do
4966       for ac_exec_ext in '' $ac_executable_extensions; do
4967         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4968           if test $ac_prog = install &&
4969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4970             # AIX install.  It has an incompatible calling convention.
4971             :
4972           elif test $ac_prog = install &&
4973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4974             # program-specific install script used by HP pwplus--don't use.
4975             :
4976           else
4977             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4978             break 3
4979           fi
4980         fi
4981       done
4982     done
4983     ;;
4984 esac
4985 done
4986
4987
4988 fi
4989   if test "${ac_cv_path_install+set}" = set; then
4990     INSTALL=$ac_cv_path_install
4991   else
4992     # As a last resort, use the slow shell script.  We don't cache a
4993     # path for INSTALL within a source directory, because that will
4994     # break other packages using the cache if that directory is
4995     # removed, or if the path is relative.
4996     INSTALL=$ac_install_sh
4997   fi
4998 fi
4999 echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6
5001
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5005
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5007
5008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5009
5010 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5012 LN_S=$as_ln_s
5013 if test "$LN_S" = "ln -s"; then
5014   echo "$as_me:$LINENO: result: yes" >&5
5015 echo "${ECHO_T}yes" >&6
5016 else
5017   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5018 echo "${ECHO_T}no, using $LN_S" >&6
5019 fi
5020
5021 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5023 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5024 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   cat >conftest.make <<\_ACEOF
5028 all:
5029         @echo 'ac_maketemp="$(MAKE)"'
5030 _ACEOF
5031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5032 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5033 if test -n "$ac_maketemp"; then
5034   eval ac_cv_prog_make_${ac_make}_set=yes
5035 else
5036   eval ac_cv_prog_make_${ac_make}_set=no
5037 fi
5038 rm -f conftest.make
5039 fi
5040 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5041   echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043   SET_MAKE=
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047   SET_MAKE="MAKE=${MAKE-make}"
5048 fi
5049
5050 # Check whether --enable-shared or --disable-shared was given.
5051 if test "${enable_shared+set}" = set; then
5052   enableval="$enable_shared"
5053   p=${PACKAGE-default}
5054     case $enableval in
5055     yes) enable_shared=yes ;;
5056     no) enable_shared=no ;;
5057     *)
5058       enable_shared=no
5059       # Look at the argument we got.  We use all the common list separators.
5060       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5061       for pkg in $enableval; do
5062         IFS="$lt_save_ifs"
5063         if test "X$pkg" = "X$p"; then
5064           enable_shared=yes
5065         fi
5066       done
5067       IFS="$lt_save_ifs"
5068       ;;
5069     esac
5070 else
5071   enable_shared=yes
5072 fi;
5073
5074 # Check whether --enable-static or --disable-static was given.
5075 if test "${enable_static+set}" = set; then
5076   enableval="$enable_static"
5077   p=${PACKAGE-default}
5078     case $enableval in
5079     yes) enable_static=yes ;;
5080     no) enable_static=no ;;
5081     *)
5082      enable_static=no
5083       # Look at the argument we got.  We use all the common list separators.
5084       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5085       for pkg in $enableval; do
5086         IFS="$lt_save_ifs"
5087         if test "X$pkg" = "X$p"; then
5088           enable_static=yes
5089         fi
5090       done
5091       IFS="$lt_save_ifs"
5092       ;;
5093     esac
5094 else
5095   enable_static=yes
5096 fi;
5097
5098 # Check whether --enable-fast-install or --disable-fast-install was given.
5099 if test "${enable_fast_install+set}" = set; then
5100   enableval="$enable_fast_install"
5101   p=${PACKAGE-default}
5102     case $enableval in
5103     yes) enable_fast_install=yes ;;
5104     no) enable_fast_install=no ;;
5105     *)
5106       enable_fast_install=no
5107       # Look at the argument we got.  We use all the common list separators.
5108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5109       for pkg in $enableval; do
5110         IFS="$lt_save_ifs"
5111         if test "X$pkg" = "X$p"; then
5112           enable_fast_install=yes
5113         fi
5114       done
5115       IFS="$lt_save_ifs"
5116       ;;
5117     esac
5118 else
5119   enable_fast_install=yes
5120 fi;
5121
5122 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5123 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5124 if test "${lt_cv_path_SED+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   # Loop through the user's path and test for sed and gsed.
5128 # Then use that list of sed's as ones to test for truncation.
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for lt_ac_prog in sed gsed; do
5135     for ac_exec_ext in '' $ac_executable_extensions; do
5136       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5137         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5138       fi
5139     done
5140   done
5141 done
5142 lt_ac_max=0
5143 lt_ac_count=0
5144 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5145 # along with /bin/sed that truncates output.
5146 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5147   test ! -f $lt_ac_sed && continue
5148   cat /dev/null > conftest.in
5149   lt_ac_count=0
5150   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5151   # Check for GNU sed and select it if it is found.
5152   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5153     lt_cv_path_SED=$lt_ac_sed
5154     break
5155   fi
5156   while true; do
5157     cat conftest.in conftest.in >conftest.tmp
5158     mv conftest.tmp conftest.in
5159     cp conftest.in conftest.nl
5160     echo >>conftest.nl
5161     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5162     cmp -s conftest.out conftest.nl || break
5163     # 10000 chars as input seems more than enough
5164     test $lt_ac_count -gt 10 && break
5165     lt_ac_count=`expr $lt_ac_count + 1`
5166     if test $lt_ac_count -gt $lt_ac_max; then
5167       lt_ac_max=$lt_ac_count
5168       lt_cv_path_SED=$lt_ac_sed
5169     fi
5170   done
5171 done
5172
5173 fi
5174
5175 SED=$lt_cv_path_SED
5176 echo "$as_me:$LINENO: result: $SED" >&5
5177 echo "${ECHO_T}$SED" >&6
5178
5179 echo "$as_me:$LINENO: checking for egrep" >&5
5180 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5181 if test "${ac_cv_prog_egrep+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5185     then ac_cv_prog_egrep='grep -E'
5186     else ac_cv_prog_egrep='egrep'
5187     fi
5188 fi
5189 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5190 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5191  EGREP=$ac_cv_prog_egrep
5192
5193
5194
5195 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5196 if test "${with_gnu_ld+set}" = set; then
5197   withval="$with_gnu_ld"
5198   test "$withval" = no || with_gnu_ld=yes
5199 else
5200   with_gnu_ld=no
5201 fi;
5202 ac_prog=ld
5203 if test "$GCC" = yes; then
5204   # Check if gcc -print-prog-name=ld gives a path.
5205   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5206 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5207   case $host in
5208   *-*-mingw*)
5209     # gcc leaves a trailing carriage return which upsets mingw
5210     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5211   *)
5212     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5213   esac
5214   case $ac_prog in
5215     # Accept absolute paths.
5216     [\\/]* | ?:[\\/]*)
5217       re_direlt='/[^/][^/]*/\.\./'
5218       # Canonicalize the pathname of ld
5219       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5220       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5221         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5222       done
5223       test -z "$LD" && LD="$ac_prog"
5224       ;;
5225   "")
5226     # If it fails, then pretend we aren't using GCC.
5227     ac_prog=ld
5228     ;;
5229   *)
5230     # If it is relative, then search for the first ld in PATH.
5231     with_gnu_ld=unknown
5232     ;;
5233   esac
5234 elif test "$with_gnu_ld" = yes; then
5235   echo "$as_me:$LINENO: checking for GNU ld" >&5
5236 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5237 else
5238   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5239 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5240 fi
5241 if test "${lt_cv_path_LD+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   if test -z "$LD"; then
5245   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246   for ac_dir in $PATH; do
5247     IFS="$lt_save_ifs"
5248     test -z "$ac_dir" && ac_dir=.
5249     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5250       lt_cv_path_LD="$ac_dir/$ac_prog"
5251       # Check to see if the program is GNU ld.  I'd rather use --version,
5252       # but apparently some variants of GNU ld only accept -v.
5253       # Break only if it was the GNU/non-GNU ld that we prefer.
5254       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5255       *GNU* | *'with BFD'*)
5256         test "$with_gnu_ld" != no && break
5257         ;;
5258       *)
5259         test "$with_gnu_ld" != yes && break
5260         ;;
5261       esac
5262     fi
5263   done
5264   IFS="$lt_save_ifs"
5265 else
5266   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5267 fi
5268 fi
5269
5270 LD="$lt_cv_path_LD"
5271 if test -n "$LD"; then
5272   echo "$as_me:$LINENO: result: $LD" >&5
5273 echo "${ECHO_T}$LD" >&6
5274 else
5275   echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5279 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5280    { (exit 1); exit 1; }; }
5281 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5282 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5283 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5287 case `$LD -v 2>&1 </dev/null` in
5288 *GNU* | *'with BFD'*)
5289   lt_cv_prog_gnu_ld=yes
5290   ;;
5291 *)
5292   lt_cv_prog_gnu_ld=no
5293   ;;
5294 esac
5295 fi
5296 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5297 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5298 with_gnu_ld=$lt_cv_prog_gnu_ld
5299
5300
5301 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5302 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5303 if test "${lt_cv_ld_reload_flag+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   lt_cv_ld_reload_flag='-r'
5307 fi
5308 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5309 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5310 reload_flag=$lt_cv_ld_reload_flag
5311 case $reload_flag in
5312 "" | " "*) ;;
5313 *) reload_flag=" $reload_flag" ;;
5314 esac
5315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5316 case $host_os in
5317   darwin*)
5318     if test "$GCC" = yes; then
5319       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5320     else
5321       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5322     fi
5323     ;;
5324 esac
5325
5326 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5327 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5328 if test "${lt_cv_path_NM+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -n "$NM"; then
5332   # Let the user override the test.
5333   lt_cv_path_NM="$NM"
5334 else
5335   lt_nm_to_check="${ac_tool_prefix}nm"
5336   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5337     lt_nm_to_check="$lt_nm_to_check nm"
5338   fi
5339   for lt_tmp_nm in $lt_nm_to_check; do
5340     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5341     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5342       IFS="$lt_save_ifs"
5343       test -z "$ac_dir" && ac_dir=.
5344       tmp_nm="$ac_dir/$lt_tmp_nm"
5345       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5346         # Check to see if the nm accepts a BSD-compat flag.
5347         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5348         #   nm: unknown option "B" ignored
5349         # Tru64's nm complains that /dev/null is an invalid object file
5350         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5351         */dev/null* | *'Invalid file or object type'*)
5352           lt_cv_path_NM="$tmp_nm -B"
5353           break
5354           ;;
5355         *)
5356           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5357           */dev/null*)
5358             lt_cv_path_NM="$tmp_nm -p"
5359             break
5360             ;;
5361           *)
5362             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5363             continue # so that we can try to find one that supports BSD flags
5364             ;;
5365           esac
5366           ;;
5367         esac
5368       fi
5369     done
5370     IFS="$lt_save_ifs"
5371   done
5372   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5373 fi
5374 fi
5375 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5376 echo "${ECHO_T}$lt_cv_path_NM" >&6
5377 NM="$lt_cv_path_NM"
5378
5379 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5380 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5381 if test "${lt_cv_deplibs_check_method+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   lt_cv_file_magic_cmd='$MAGIC_CMD'
5385 lt_cv_file_magic_test_file=
5386 lt_cv_deplibs_check_method='unknown'
5387 # Need to set the preceding variable on all platforms that support
5388 # interlibrary dependencies.
5389 # 'none' -- dependencies not supported.
5390 # `unknown' -- same as none, but documents that we really don't know.
5391 # 'pass_all' -- all dependencies passed with no checks.
5392 # 'test_compile' -- check by making test program.
5393 # 'file_magic [[regex]]' -- check by looking for files in library path
5394 # which responds to the $file_magic_cmd with a given extended regex.
5395 # If you have `file' or equivalent on your system and you're not sure
5396 # whether `pass_all' will *always* work, you probably want this one.
5397
5398 case $host_os in
5399 aix4* | aix5*)
5400   lt_cv_deplibs_check_method=pass_all
5401   ;;
5402
5403 beos*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5406
5407 bsdi[45]*)
5408   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5409   lt_cv_file_magic_cmd='/usr/bin/file -L'
5410   lt_cv_file_magic_test_file=/shlib/libc.so
5411   ;;
5412
5413 cygwin*)
5414   # func_win32_libid is a shell function defined in ltmain.sh
5415   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5416   lt_cv_file_magic_cmd='func_win32_libid'
5417   ;;
5418
5419 mingw* | pw32*)
5420   # Base MSYS/MinGW do not provide the 'file' command needed by
5421   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5422   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5423   lt_cv_file_magic_cmd='$OBJDUMP -f'
5424   ;;
5425
5426 darwin* | rhapsody*)
5427   lt_cv_deplibs_check_method=pass_all
5428   ;;
5429
5430 freebsd* | dragonfly*)
5431   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5432     case $host_cpu in
5433     i*86 )
5434       # Not sure whether the presence of OpenBSD here was a mistake.
5435       # Let's accept both of them until this is cleared up.
5436       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437       lt_cv_file_magic_cmd=/usr/bin/file
5438       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5439       ;;
5440     esac
5441   else
5442     lt_cv_deplibs_check_method=pass_all
5443   fi
5444   ;;
5445
5446 gnu*)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 hpux10.20* | hpux11*)
5451   lt_cv_file_magic_cmd=/usr/bin/file
5452   case $host_cpu in
5453   ia64*)
5454     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5455     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456     ;;
5457   hppa*64*)
5458     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5459     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460     ;;
5461   *)
5462     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5463     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5464     ;;
5465   esac
5466   ;;
5467
5468 interix3*)
5469   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5470   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471   ;;
5472
5473 irix5* | irix6* | nonstopux*)
5474   case $LD in
5475   *-32|*"-32 ") libmagic=32-bit;;
5476   *-n32|*"-n32 ") libmagic=N32;;
5477   *-64|*"-64 ") libmagic=64-bit;;
5478   *) libmagic=never-match;;
5479   esac
5480   lt_cv_deplibs_check_method=pass_all
5481   ;;
5482
5483 # This must be Linux ELF.
5484 linux* | k*bsd*-gnu)
5485   lt_cv_deplibs_check_method=pass_all
5486   ;;
5487
5488 netbsd* | netbsdelf*-gnu)
5489   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5490     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5491   else
5492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5493   fi
5494   ;;
5495
5496 newos6*)
5497   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5498   lt_cv_file_magic_cmd=/usr/bin/file
5499   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5500   ;;
5501
5502 nto-qnx*)
5503   lt_cv_deplibs_check_method=unknown
5504   ;;
5505
5506 openbsd*)
5507   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5508     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5509   else
5510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511   fi
5512   ;;
5513
5514 osf3* | osf4* | osf5*)
5515   lt_cv_deplibs_check_method=pass_all
5516   ;;
5517
5518 solaris*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 sysv4 | sysv4.3*)
5523   case $host_vendor in
5524   motorola)
5525     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5526     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5527     ;;
5528   ncr)
5529     lt_cv_deplibs_check_method=pass_all
5530     ;;
5531   sequent)
5532     lt_cv_file_magic_cmd='/bin/file'
5533     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5534     ;;
5535   sni)
5536     lt_cv_file_magic_cmd='/bin/file'
5537     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5538     lt_cv_file_magic_test_file=/lib/libc.so
5539     ;;
5540   siemens)
5541     lt_cv_deplibs_check_method=pass_all
5542     ;;
5543   pc)
5544     lt_cv_deplibs_check_method=pass_all
5545     ;;
5546   esac
5547   ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552 esac
5553
5554 fi
5555 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5556 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5557 file_magic_cmd=$lt_cv_file_magic_cmd
5558 deplibs_check_method=$lt_cv_deplibs_check_method
5559 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5560
5561
5562
5563
5564 # If no C compiler was specified, use CC.
5565 LTCC=${LTCC-"$CC"}
5566
5567 # If no C compiler flags were specified, use CFLAGS.
5568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5569
5570 # Allow CC to be a program name with arguments.
5571 compiler=$CC
5572
5573 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5574 if test "${enable_libtool_lock+set}" = set; then
5575   enableval="$enable_libtool_lock"
5576
5577 fi;
5578 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5579
5580 # Some flags need to be propagated to the compiler or linker for good
5581 # libtool support.
5582 case $host in
5583 ia64-*-hpux*)
5584   # Find out which ABI we are using.
5585   echo 'int i;' > conftest.$ac_ext
5586   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587   (eval $ac_compile) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; then
5591     case `/usr/bin/file conftest.$ac_objext` in
5592     *ELF-32*)
5593       HPUX_IA64_MODE="32"
5594       ;;
5595     *ELF-64*)
5596       HPUX_IA64_MODE="64"
5597       ;;
5598     esac
5599   fi
5600   rm -rf conftest*
5601   ;;
5602 *-*-irix6*)
5603   # Find out which ABI we are using.
5604   echo '#line 5604 "configure"' > conftest.$ac_ext
5605   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; then
5610    if test "$lt_cv_prog_gnu_ld" = yes; then
5611     case `/usr/bin/file conftest.$ac_objext` in
5612     *32-bit*)
5613       LD="${LD-ld} -melf32bsmip"
5614       ;;
5615     *N32*)
5616       LD="${LD-ld} -melf32bmipn32"
5617       ;;
5618     *64-bit*)
5619       LD="${LD-ld} -melf64bmip"
5620       ;;
5621     esac
5622    else
5623     case `/usr/bin/file conftest.$ac_objext` in
5624     *32-bit*)
5625       LD="${LD-ld} -32"
5626       ;;
5627     *N32*)
5628       LD="${LD-ld} -n32"
5629       ;;
5630     *64-bit*)
5631       LD="${LD-ld} -64"
5632       ;;
5633     esac
5634    fi
5635   fi
5636   rm -rf conftest*
5637   ;;
5638
5639 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5640   # Find out which ABI we are using.
5641   echo 'int i;' > conftest.$ac_ext
5642   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643   (eval $ac_compile) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); }; then
5647     case `/usr/bin/file conftest.o` in
5648     *32-bit*)
5649       case $host in
5650         x86_64-*linux*)
5651           LD="${LD-ld} -m elf_i386"
5652           ;;
5653         ppc64-*linux*|powerpc64-*linux*)
5654           LD="${LD-ld} -m elf32ppclinux"
5655           ;;
5656         s390x-*linux*)
5657           LD="${LD-ld} -m elf_s390"
5658           ;;
5659         sparc64-*linux*)
5660           LD="${LD-ld} -m elf32_sparc"
5661           ;;
5662       esac
5663       ;;
5664     *64-bit*)
5665       case $host in
5666         x86_64-*linux*)
5667           LD="${LD-ld} -m elf_x86_64"
5668           ;;
5669         ppc*-*linux*|powerpc*-*linux*)
5670           LD="${LD-ld} -m elf64ppc"
5671           ;;
5672         s390*-*linux*)
5673           LD="${LD-ld} -m elf64_s390"
5674           ;;
5675         sparc*-*linux*)
5676           LD="${LD-ld} -m elf64_sparc"
5677           ;;
5678       esac
5679       ;;
5680     esac
5681   fi
5682   rm -rf conftest*
5683   ;;
5684
5685 *-*-sco3.2v5*)
5686   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5687   SAVE_CFLAGS="$CFLAGS"
5688   CFLAGS="$CFLAGS -belf"
5689   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5690 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5691 if test "${lt_cv_cc_needs_belf+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   ac_ext=c
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700      cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706
5707 int
5708 main ()
5709 {
5710
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717   (eval $ac_link) 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest$ac_exeext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   lt_cv_cc_needs_belf=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 lt_cv_cc_needs_belf=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext \
5744       conftest$ac_exeext conftest.$ac_ext
5745      ac_ext=c
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750
5751 fi
5752 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5753 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5754   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5755     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5756     CFLAGS="$SAVE_CFLAGS"
5757   fi
5758   ;;
5759 sparc*-*solaris*)
5760   # Find out which ABI we are using.
5761   echo 'int i;' > conftest.$ac_ext
5762   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; then
5767     case `/usr/bin/file conftest.o` in
5768     *64-bit*)
5769       case $lt_cv_prog_gnu_ld in
5770       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5771       *)    LD="${LD-ld} -64" ;;
5772       esac
5773       ;;
5774     esac
5775   fi
5776   rm -rf conftest*
5777   ;;
5778
5779
5780 esac
5781
5782 need_locks="$enable_libtool_lock"
5783
5784
5785
5786 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5787 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5788 if test "${ac_cv_header_stdc+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 #include <stdlib.h>
5798 #include <stdarg.h>
5799 #include <string.h>
5800 #include <float.h>
5801
5802 int
5803 main ()
5804 {
5805
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812   (eval $ac_compile) 2>conftest.er1
5813   ac_status=$?
5814   grep -v '^ *+' conftest.er1 >conftest.err
5815   rm -f conftest.er1
5816   cat conftest.err >&5
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); } &&
5819          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821   (eval $ac_try) 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; } &&
5825          { ac_try='test -s conftest.$ac_objext'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831   ac_cv_header_stdc=yes
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 ac_cv_header_stdc=no
5837 fi
5838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5839
5840 if test $ac_cv_header_stdc = yes; then
5841   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5842   cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 #include <string.h>
5849
5850 _ACEOF
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852   $EGREP "memchr" >/dev/null 2>&1; then
5853   :
5854 else
5855   ac_cv_header_stdc=no
5856 fi
5857 rm -f conftest*
5858
5859 fi
5860
5861 if test $ac_cv_header_stdc = yes; then
5862   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5863   cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h.  */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h.  */
5869 #include <stdlib.h>
5870
5871 _ACEOF
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873   $EGREP "free" >/dev/null 2>&1; then
5874   :
5875 else
5876   ac_cv_header_stdc=no
5877 fi
5878 rm -f conftest*
5879
5880 fi
5881
5882 if test $ac_cv_header_stdc = yes; then
5883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5884   if test "$cross_compiling" = yes; then
5885   :
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <ctype.h>
5894 #if ((' ' & 0x0FF) == 0x020)
5895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5897 #else
5898 # define ISLOWER(c) \
5899                    (('a' <= (c) && (c) <= 'i') \
5900                      || ('j' <= (c) && (c) <= 'r') \
5901                      || ('s' <= (c) && (c) <= 'z'))
5902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5903 #endif
5904
5905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5906 int
5907 main ()
5908 {
5909   int i;
5910   for (i = 0; i < 256; i++)
5911     if (XOR (islower (i), ISLOWER (i))
5912         || toupper (i) != TOUPPER (i))
5913       exit(2);
5914   exit (0);
5915 }
5916 _ACEOF
5917 rm -f conftest$ac_exeext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5919   (eval $ac_link) 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   :
5929 else
5930   echo "$as_me: program exited with status $ac_status" >&5
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 ( exit $ac_status )
5935 ac_cv_header_stdc=no
5936 fi
5937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938 fi
5939 fi
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5942 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5943 if test $ac_cv_header_stdc = yes; then
5944
5945 cat >>confdefs.h <<\_ACEOF
5946 #define STDC_HEADERS 1
5947 _ACEOF
5948
5949 fi
5950
5951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962                   inttypes.h stdint.h unistd.h
5963 do
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 echo "$as_me:$LINENO: checking for $ac_header" >&5
5966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976 $ac_includes_default
5977
5978 #include <$ac_header>
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982   (eval $ac_compile) 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; } &&
5995          { ac_try='test -s conftest.$ac_objext'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; }; then
6001   eval "$as_ac_Header=yes"
6002 else
6003   echo "$as_me: failed program was:" >&5
6004 sed 's/^/| /' conftest.$ac_ext >&5
6005
6006 eval "$as_ac_Header=no"
6007 fi
6008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009 fi
6010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013   cat >>confdefs.h <<_ACEOF
6014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015 _ACEOF
6016
6017 fi
6018
6019 done
6020
6021
6022
6023 for ac_header in dlfcn.h
6024 do
6025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027   echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 fi
6032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034 else
6035   # Is the header compilable?
6036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 $ac_includes_default
6045 #include <$ac_header>
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049   (eval $ac_compile) 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; } &&
6062          { ac_try='test -s conftest.$ac_objext'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068   ac_header_compiler=yes
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ac_header_compiler=no
6074 fi
6075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6077 echo "${ECHO_T}$ac_header_compiler" >&6
6078
6079 # Is the header present?
6080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h.  */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h.  */
6088 #include <$ac_header>
6089 _ACEOF
6090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6092   ac_status=$?
6093   grep -v '^ *+' conftest.er1 >conftest.err
6094   rm -f conftest.er1
6095   cat conftest.err >&5
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); } >/dev/null; then
6098   if test -s conftest.err; then
6099     ac_cpp_err=$ac_c_preproc_warn_flag
6100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6101   else
6102     ac_cpp_err=
6103   fi
6104 else
6105   ac_cpp_err=yes
6106 fi
6107 if test -z "$ac_cpp_err"; then
6108   ac_header_preproc=yes
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113   ac_header_preproc=no
6114 fi
6115 rm -f conftest.err conftest.$ac_ext
6116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6117 echo "${ECHO_T}$ac_header_preproc" >&6
6118
6119 # So?  What about this header?
6120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6121   yes:no: )
6122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6126     ac_header_preproc=yes
6127     ;;
6128   no:yes:* )
6129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6141     (
6142       cat <<\_ASBOX
6143 ## ------------------------------- ##
6144 ## Report this to nfs@lists.sf.net ##
6145 ## ------------------------------- ##
6146 _ASBOX
6147     ) |
6148       sed "s/^/$as_me: WARNING:     /" >&2
6149     ;;
6150 esac
6151 echo "$as_me:$LINENO: checking for $ac_header" >&5
6152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   eval "$as_ac_Header=\$ac_header_preproc"
6157 fi
6158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6160
6161 fi
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163   cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6165 _ACEOF
6166
6167 fi
6168
6169 done
6170
6171
6172
6173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6174     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6175     (test "X$CXX" != "Xg++"))) ; then
6176   ac_ext=cc
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6182 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6183 if test -z "$CXXCPP"; then
6184   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187       # Double quotes because CXXCPP needs to be expanded
6188     for CXXCPP in "$CXX -E" "/lib/cpp"
6189     do
6190       ac_preproc_ok=false
6191 for ac_cxx_preproc_warn_flag in '' yes
6192 do
6193   # Use a header file that comes with gcc, so configuring glibc
6194   # with a fresh cross-compiler works.
6195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196   # <limits.h> exists even on freestanding compilers.
6197   # On the NeXT, cc -E runs the code through the compiler's parser,
6198   # not just through cpp. "Syntax error" is here to catch this case.
6199   cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #ifdef __STDC__
6206 # include <limits.h>
6207 #else
6208 # include <assert.h>
6209 #endif
6210                      Syntax error
6211 _ACEOF
6212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } >/dev/null; then
6220   if test -s conftest.err; then
6221     ac_cpp_err=$ac_cxx_preproc_warn_flag
6222     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6223   else
6224     ac_cpp_err=
6225   fi
6226 else
6227   ac_cpp_err=yes
6228 fi
6229 if test -z "$ac_cpp_err"; then
6230   :
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235   # Broken: fails on valid input.
6236 continue
6237 fi
6238 rm -f conftest.err conftest.$ac_ext
6239
6240   # OK, works on sane cases.  Now check whether non-existent headers
6241   # can be detected and how.
6242   cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h.  */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h.  */
6248 #include <ac_nonexistent.h>
6249 _ACEOF
6250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252   ac_status=$?
6253   grep -v '^ *+' conftest.er1 >conftest.err
6254   rm -f conftest.er1
6255   cat conftest.err >&5
6256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257   (exit $ac_status); } >/dev/null; then
6258   if test -s conftest.err; then
6259     ac_cpp_err=$ac_cxx_preproc_warn_flag
6260     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6261   else
6262     ac_cpp_err=
6263   fi
6264 else
6265   ac_cpp_err=yes
6266 fi
6267 if test -z "$ac_cpp_err"; then
6268   # Broken: success on invalid input.
6269 continue
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274   # Passes both tests.
6275 ac_preproc_ok=:
6276 break
6277 fi
6278 rm -f conftest.err conftest.$ac_ext
6279
6280 done
6281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6282 rm -f conftest.err conftest.$ac_ext
6283 if $ac_preproc_ok; then
6284   break
6285 fi
6286
6287     done
6288     ac_cv_prog_CXXCPP=$CXXCPP
6289
6290 fi
6291   CXXCPP=$ac_cv_prog_CXXCPP
6292 else
6293   ac_cv_prog_CXXCPP=$CXXCPP
6294 fi
6295 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6296 echo "${ECHO_T}$CXXCPP" >&6
6297 ac_preproc_ok=false
6298 for ac_cxx_preproc_warn_flag in '' yes
6299 do
6300   # Use a header file that comes with gcc, so configuring glibc
6301   # with a fresh cross-compiler works.
6302   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303   # <limits.h> exists even on freestanding compilers.
6304   # On the NeXT, cc -E runs the code through the compiler's parser,
6305   # not just through cpp. "Syntax error" is here to catch this case.
6306   cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 #ifdef __STDC__
6313 # include <limits.h>
6314 #else
6315 # include <assert.h>
6316 #endif
6317                      Syntax error
6318 _ACEOF
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321   ac_status=$?
6322   grep -v '^ *+' conftest.er1 >conftest.err
6323   rm -f conftest.er1
6324   cat conftest.err >&5
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } >/dev/null; then
6327   if test -s conftest.err; then
6328     ac_cpp_err=$ac_cxx_preproc_warn_flag
6329     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6330   else
6331     ac_cpp_err=
6332   fi
6333 else
6334   ac_cpp_err=yes
6335 fi
6336 if test -z "$ac_cpp_err"; then
6337   :
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342   # Broken: fails on valid input.
6343 continue
6344 fi
6345 rm -f conftest.err conftest.$ac_ext
6346
6347   # OK, works on sane cases.  Now check whether non-existent headers
6348   # can be detected and how.
6349   cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355 #include <ac_nonexistent.h>
6356 _ACEOF
6357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } >/dev/null; then
6365   if test -s conftest.err; then
6366     ac_cpp_err=$ac_cxx_preproc_warn_flag
6367     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6368   else
6369     ac_cpp_err=
6370   fi
6371 else
6372   ac_cpp_err=yes
6373 fi
6374 if test -z "$ac_cpp_err"; then
6375   # Broken: success on invalid input.
6376 continue
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381   # Passes both tests.
6382 ac_preproc_ok=:
6383 break
6384 fi
6385 rm -f conftest.err conftest.$ac_ext
6386
6387 done
6388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6389 rm -f conftest.err conftest.$ac_ext
6390 if $ac_preproc_ok; then
6391   :
6392 else
6393   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6394 See \`config.log' for more details." >&5
6395 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6396 See \`config.log' for more details." >&2;}
6397    { (exit 1); exit 1; }; }
6398 fi
6399
6400 ac_ext=cc
6401 ac_cpp='$CXXCPP $CPPFLAGS'
6402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6405
6406 fi
6407
6408
6409 ac_ext=f
6410 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6411 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6413 if test -n "$ac_tool_prefix"; then
6414   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6415   do
6416     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6418 echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6420 if test "${ac_cv_prog_F77+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   if test -n "$F77"; then
6424   ac_cv_prog_F77="$F77" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431   for ac_exec_ext in '' $ac_executable_extensions; do
6432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438 done
6439
6440 fi
6441 fi
6442 F77=$ac_cv_prog_F77
6443 if test -n "$F77"; then
6444   echo "$as_me:$LINENO: result: $F77" >&5
6445 echo "${ECHO_T}$F77" >&6
6446 else
6447   echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6
6449 fi
6450
6451     test -n "$F77" && break
6452   done
6453 fi
6454 if test -z "$F77"; then
6455   ac_ct_F77=$F77
6456   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6457 do
6458   # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6462 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   if test -n "$ac_ct_F77"; then
6466   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473   for ac_exec_ext in '' $ac_executable_extensions; do
6474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_ac_ct_F77="$ac_prog"
6476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480 done
6481
6482 fi
6483 fi
6484 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6485 if test -n "$ac_ct_F77"; then
6486   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6487 echo "${ECHO_T}$ac_ct_F77" >&6
6488 else
6489   echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6491 fi
6492
6493   test -n "$ac_ct_F77" && break
6494 done
6495
6496   F77=$ac_ct_F77
6497 fi
6498
6499
6500 # Provide some information about the compiler.
6501 echo "$as_me:6501:" \
6502      "checking for Fortran 77 compiler version" >&5
6503 ac_compiler=`set X $ac_compile; echo $2`
6504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6505   (eval $ac_compiler --version </dev/null >&5) 2>&5
6506   ac_status=$?
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); }
6509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6510   (eval $ac_compiler -v </dev/null >&5) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }
6514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6515   (eval $ac_compiler -V </dev/null >&5) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }
6519 rm -f a.out
6520
6521 # If we don't use `.F' as extension, the preprocessor is not run on the
6522 # input file.  (Note that this only needs to work for GNU compilers.)
6523 ac_save_ext=$ac_ext
6524 ac_ext=F
6525 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6526 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6527 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   cat >conftest.$ac_ext <<_ACEOF
6531       program main
6532 #ifndef __GNUC__
6533        choke me
6534 #endif
6535
6536       end
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540   (eval $ac_compile) 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549   (eval $ac_try) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; } &&
6553          { ac_try='test -s conftest.$ac_objext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559   ac_compiler_gnu=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_compiler_gnu=no
6565 fi
6566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6568
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6571 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6572 ac_ext=$ac_save_ext
6573 ac_test_FFLAGS=${FFLAGS+set}
6574 ac_save_FFLAGS=$FFLAGS
6575 FFLAGS=
6576 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6577 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6578 if test "${ac_cv_prog_f77_g+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   FFLAGS=-g
6582 cat >conftest.$ac_ext <<_ACEOF
6583       program main
6584
6585       end
6586 _ACEOF
6587 rm -f conftest.$ac_objext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589   (eval $ac_compile) 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; } &&
6602          { ac_try='test -s conftest.$ac_objext'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   ac_cv_prog_f77_g=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_cv_prog_f77_g=no
6614 fi
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616
6617 fi
6618 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6619 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6620 if test "$ac_test_FFLAGS" = set; then
6621   FFLAGS=$ac_save_FFLAGS
6622 elif test $ac_cv_prog_f77_g = yes; then
6623   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6624     FFLAGS="-g -O2"
6625   else
6626     FFLAGS="-g"
6627   fi
6628 else
6629   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6630     FFLAGS="-O2"
6631   else
6632     FFLAGS=
6633   fi
6634 fi
6635
6636 G77=`test $ac_compiler_gnu = yes && echo yes`
6637 ac_ext=c
6638 ac_cpp='$CPP $CPPFLAGS'
6639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642
6643
6644
6645 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6646
6647 # find the maximum length of command line arguments
6648 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6649 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6650 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653     i=0
6654   teststring="ABCD"
6655
6656   case $build_os in
6657   msdosdjgpp*)
6658     # On DJGPP, this test can blow up pretty badly due to problems in libc
6659     # (any single argument exceeding 2000 bytes causes a buffer overrun
6660     # during glob expansion).  Even if it were fixed, the result of this
6661     # check would be larger than it should be.
6662     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6663     ;;
6664
6665   gnu*)
6666     # Under GNU Hurd, this test is not required because there is
6667     # no limit to the length of command line arguments.
6668     # Libtool will interpret -1 as no limit whatsoever
6669     lt_cv_sys_max_cmd_len=-1;
6670     ;;
6671
6672   cygwin* | mingw*)
6673     # On Win9x/ME, this test blows up -- it succeeds, but takes
6674     # about 5 minutes as the teststring grows exponentially.
6675     # Worse, since 9x/ME are not pre-emptively multitasking,
6676     # you end up with a "frozen" computer, even though with patience
6677     # the test eventually succeeds (with a max line length of 256k).
6678     # Instead, let's just punt: use the minimum linelength reported by
6679     # all of the supported platforms: 8192 (on NT/2K/XP).
6680     lt_cv_sys_max_cmd_len=8192;
6681     ;;
6682
6683   amigaos*)
6684     # On AmigaOS with pdksh, this test takes hours, literally.
6685     # So we just punt and use a minimum line length of 8192.
6686     lt_cv_sys_max_cmd_len=8192;
6687     ;;
6688
6689   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6690     # This has been around since 386BSD, at least.  Likely further.
6691     if test -x /sbin/sysctl; then
6692       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6693     elif test -x /usr/sbin/sysctl; then
6694       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6695     else
6696       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6697     fi
6698     # And add a safety zone
6699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6700     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6701     ;;
6702
6703   interix*)
6704     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6705     lt_cv_sys_max_cmd_len=196608
6706     ;;
6707
6708   osf*)
6709     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6710     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6711     # nice to cause kernel panics so lets avoid the loop below.
6712     # First set a reasonable default.
6713     lt_cv_sys_max_cmd_len=16384
6714     #
6715     if test -x /sbin/sysconfig; then
6716       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6717         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6718       esac
6719     fi
6720     ;;
6721   sco3.2v5*)
6722     lt_cv_sys_max_cmd_len=102400
6723     ;;
6724   sysv5* | sco5v6* | sysv4.2uw2*)
6725     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6726     if test -n "$kargmax"; then
6727       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6728     else
6729       lt_cv_sys_max_cmd_len=32768
6730     fi
6731     ;;
6732   *)
6733     # If test is not a shell built-in, we'll probably end up computing a
6734     # maximum length that is only half of the actual maximum length, but
6735     # we can't tell.
6736     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6737     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6738                = "XX$teststring") >/dev/null 2>&1 &&
6739             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6740             lt_cv_sys_max_cmd_len=$new_result &&
6741             test $i != 17 # 1/2 MB should be enough
6742     do
6743       i=`expr $i + 1`
6744       teststring=$teststring$teststring
6745     done
6746     teststring=
6747     # Add a significant safety factor because C++ compilers can tack on massive
6748     # amounts of additional arguments before passing them to the linker.
6749     # It appears as though 1/2 is a usable value.
6750     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6751     ;;
6752   esac
6753
6754 fi
6755
6756 if test -n $lt_cv_sys_max_cmd_len ; then
6757   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6758 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6759 else
6760   echo "$as_me:$LINENO: result: none" >&5
6761 echo "${ECHO_T}none" >&6
6762 fi
6763
6764
6765
6766
6767 # Check for command to grab the raw symbol name followed by C symbol from nm.
6768 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6769 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6770 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773
6774 # These are sane defaults that work on at least a few old systems.
6775 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6776
6777 # Character class describing NM global symbol codes.
6778 symcode='[BCDEGRST]'
6779
6780 # Regexp to match symbols that can be accessed directly from C.
6781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6782
6783 # Transform an extracted symbol line into a proper C declaration
6784 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6785
6786 # Transform an extracted symbol line into symbol name and symbol address
6787 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6788
6789 # Define system-specific variables.
6790 case $host_os in
6791 aix*)
6792   symcode='[BCDT]'
6793   ;;
6794 cygwin* | mingw* | pw32*)
6795   symcode='[ABCDGISTW]'
6796   ;;
6797 hpux*) # Its linker distinguishes data from code symbols
6798   if test "$host_cpu" = ia64; then
6799     symcode='[ABCDEGRST]'
6800   fi
6801   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6802   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6803   ;;
6804 linux* | k*bsd*-gnu)
6805   if test "$host_cpu" = ia64; then
6806     symcode='[ABCDGIRSTW]'
6807     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6808     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6809   fi
6810   ;;
6811 irix* | nonstopux*)
6812   symcode='[BCDEGRST]'
6813   ;;
6814 osf*)
6815   symcode='[BCDEGQRST]'
6816   ;;
6817 solaris*)
6818   symcode='[BDRT]'
6819   ;;
6820 sco3.2v5*)
6821   symcode='[DT]'
6822   ;;
6823 sysv4.2uw2*)
6824   symcode='[DT]'
6825   ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827   symcode='[ABDT]'
6828   ;;
6829 sysv4)
6830   symcode='[DFNSTU]'
6831   ;;
6832 esac
6833
6834 # Handle CRLF in mingw tool chain
6835 opt_cr=
6836 case $build_os in
6837 mingw*)
6838   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6839   ;;
6840 esac
6841
6842 # If we're using GNU nm, then use its standard symbol codes.
6843 case `$NM -V 2>&1` in
6844 *GNU* | *'with BFD'*)
6845   symcode='[ABCDGIRSTW]' ;;
6846 esac
6847
6848 # Try without a prefix undercore, then with it.
6849 for ac_symprfx in "" "_"; do
6850
6851   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6852   symxfrm="\\1 $ac_symprfx\\2 \\2"
6853
6854   # Write the raw and C identifiers.
6855   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6856
6857   # Check to see that the pipe works correctly.
6858   pipe_works=no
6859
6860   rm -f conftest*
6861   cat > conftest.$ac_ext <<EOF
6862 #ifdef __cplusplus
6863 extern "C" {
6864 #endif
6865 char nm_test_var;
6866 void nm_test_func(){}
6867 #ifdef __cplusplus
6868 }
6869 #endif
6870 int main(){nm_test_var='a';nm_test_func();return(0);}
6871 EOF
6872
6873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; then
6878     # Now try to grab the symbols.
6879     nlist=conftest.nm
6880     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6881   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } && test -s "$nlist"; then
6885       # Try sorting and uniquifying the output.
6886       if sort "$nlist" | uniq > "$nlist"T; then
6887         mv -f "$nlist"T "$nlist"
6888       else
6889         rm -f "$nlist"T
6890       fi
6891
6892       # Make sure that we snagged all the symbols we need.
6893       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6894         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6895           cat <<EOF > conftest.$ac_ext
6896 #ifdef __cplusplus
6897 extern "C" {
6898 #endif
6899
6900 EOF
6901           # Now generate the symbol file.
6902           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6903
6904           cat <<EOF >> conftest.$ac_ext
6905 #if defined (__STDC__) && __STDC__
6906 # define lt_ptr_t void *
6907 #else
6908 # define lt_ptr_t char *
6909 # define const
6910 #endif
6911
6912 /* The mapping between symbol names and symbols. */
6913 const struct {
6914   const char *name;
6915   lt_ptr_t address;
6916 }
6917 lt_preloaded_symbols[] =
6918 {
6919 EOF
6920           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6921           cat <<\EOF >> conftest.$ac_ext
6922   {0, (lt_ptr_t) 0}
6923 };
6924
6925 #ifdef __cplusplus
6926 }
6927 #endif
6928 EOF
6929           # Now try linking the two files.
6930           mv conftest.$ac_objext conftstm.$ac_objext
6931           lt_save_LIBS="$LIBS"
6932           lt_save_CFLAGS="$CFLAGS"
6933           LIBS="conftstm.$ac_objext"
6934           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6935           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936   (eval $ac_link) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6940             pipe_works=yes
6941           fi
6942           LIBS="$lt_save_LIBS"
6943           CFLAGS="$lt_save_CFLAGS"
6944         else
6945           echo "cannot find nm_test_func in $nlist" >&5
6946         fi
6947       else
6948         echo "cannot find nm_test_var in $nlist" >&5
6949       fi
6950     else
6951       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6952     fi
6953   else
6954     echo "$progname: failed program was:" >&5
6955     cat conftest.$ac_ext >&5
6956   fi
6957   rm -f conftest* conftst*
6958
6959   # Do not use the global_symbol_pipe unless it works.
6960   if test "$pipe_works" = yes; then
6961     break
6962   else
6963     lt_cv_sys_global_symbol_pipe=
6964   fi
6965 done
6966
6967 fi
6968
6969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6970   lt_cv_sys_global_symbol_to_cdecl=
6971 fi
6972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6973   echo "$as_me:$LINENO: result: failed" >&5
6974 echo "${ECHO_T}failed" >&6
6975 else
6976   echo "$as_me:$LINENO: result: ok" >&5
6977 echo "${ECHO_T}ok" >&6
6978 fi
6979
6980 echo "$as_me:$LINENO: checking for objdir" >&5
6981 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6982 if test "${lt_cv_objdir+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   rm -f .libs 2>/dev/null
6986 mkdir .libs 2>/dev/null
6987 if test -d .libs; then
6988   lt_cv_objdir=.libs
6989 else
6990   # MS-DOS does not allow filenames that begin with a dot.
6991   lt_cv_objdir=_libs
6992 fi
6993 rmdir .libs 2>/dev/null
6994 fi
6995 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6996 echo "${ECHO_T}$lt_cv_objdir" >&6
6997 objdir=$lt_cv_objdir
6998
6999
7000
7001
7002
7003 case $host_os in
7004 aix3*)
7005   # AIX sometimes has problems with the GCC collect2 program.  For some
7006   # reason, if we set the COLLECT_NAMES environment variable, the problems
7007   # vanish in a puff of smoke.
7008   if test "X${COLLECT_NAMES+set}" != Xset; then
7009     COLLECT_NAMES=
7010     export COLLECT_NAMES
7011   fi
7012   ;;
7013 esac
7014
7015 # Sed substitution that helps us do robust quoting.  It backslashifies
7016 # metacharacters that are still active within double-quoted strings.
7017 Xsed='sed -e 1s/^X//'
7018 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7019
7020 # Same as above, but do not quote variable references.
7021 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7022
7023 # Sed substitution to delay expansion of an escaped shell variable in a
7024 # double_quote_subst'ed string.
7025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7026
7027 # Sed substitution to avoid accidental globbing in evaled expressions
7028 no_glob_subst='s/\*/\\\*/g'
7029
7030 # Constants:
7031 rm="rm -f"
7032
7033 # Global variables:
7034 default_ofile=libtool
7035 can_build_shared=yes
7036
7037 # All known linkers require a `.a' archive for static linking (except MSVC,
7038 # which needs '.lib').
7039 libext=a
7040 ltmain="$ac_aux_dir/ltmain.sh"
7041 ofile="$default_ofile"
7042 with_gnu_ld="$lt_cv_prog_gnu_ld"
7043
7044 if test -n "$ac_tool_prefix"; then
7045   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}ar; ac_word=$2
7047 echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049 if test "${ac_cv_prog_AR+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   if test -n "$AR"; then
7053   ac_cv_prog_AR="$AR" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062     ac_cv_prog_AR="${ac_tool_prefix}ar"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068
7069 fi
7070 fi
7071 AR=$ac_cv_prog_AR
7072 if test -n "$AR"; then
7073   echo "$as_me:$LINENO: result: $AR" >&5
7074 echo "${ECHO_T}$AR" >&6
7075 else
7076   echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6
7078 fi
7079
7080 fi
7081 if test -z "$ac_cv_prog_AR"; then
7082   ac_ct_AR=$AR
7083   # Extract the first word of "ar", so it can be a program name with args.
7084 set dummy ar; ac_word=$2
7085 echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7087 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   if test -n "$ac_ct_AR"; then
7091   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096   IFS=$as_save_IFS
7097   test -z "$as_dir" && as_dir=.
7098   for ac_exec_ext in '' $ac_executable_extensions; do
7099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100     ac_cv_prog_ac_ct_AR="ar"
7101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102     break 2
7103   fi
7104 done
7105 done
7106
7107   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7108 fi
7109 fi
7110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7111 if test -n "$ac_ct_AR"; then
7112   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7113 echo "${ECHO_T}$ac_ct_AR" >&6
7114 else
7115   echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7117 fi
7118
7119   AR=$ac_ct_AR
7120 else
7121   AR="$ac_cv_prog_AR"
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7127 echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129 if test "${ac_cv_prog_RANLIB+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$RANLIB"; then
7133   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148
7149 fi
7150 fi
7151 RANLIB=$ac_cv_prog_RANLIB
7152 if test -n "$RANLIB"; then
7153   echo "$as_me:$LINENO: result: $RANLIB" >&5
7154 echo "${ECHO_T}$RANLIB" >&6
7155 else
7156   echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7158 fi
7159
7160 fi
7161 if test -z "$ac_cv_prog_RANLIB"; then
7162   ac_ct_RANLIB=$RANLIB
7163   # Extract the first word of "ranlib", so it can be a program name with args.
7164 set dummy ranlib; ac_word=$2
7165 echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   if test -n "$ac_ct_RANLIB"; then
7171   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_ac_ct_RANLIB="ranlib"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186
7187   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7188 fi
7189 fi
7190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7191 if test -n "$ac_ct_RANLIB"; then
7192   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7193 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7194 else
7195   echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6
7197 fi
7198
7199   RANLIB=$ac_ct_RANLIB
7200 else
7201   RANLIB="$ac_cv_prog_RANLIB"
7202 fi
7203
7204 if test -n "$ac_tool_prefix"; then
7205   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}strip; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_STRIP+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   if test -n "$STRIP"; then
7213   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228
7229 fi
7230 fi
7231 STRIP=$ac_cv_prog_STRIP
7232 if test -n "$STRIP"; then
7233   echo "$as_me:$LINENO: result: $STRIP" >&5
7234 echo "${ECHO_T}$STRIP" >&6
7235 else
7236   echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7238 fi
7239
7240 fi
7241 if test -z "$ac_cv_prog_STRIP"; then
7242   ac_ct_STRIP=$STRIP
7243   # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   if test -n "$ac_ct_STRIP"; then
7251   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260     ac_cv_prog_ac_ct_STRIP="strip"
7261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266
7267   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7268 fi
7269 fi
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7273 echo "${ECHO_T}$ac_ct_STRIP" >&6
7274 else
7275   echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 fi
7278
7279   STRIP=$ac_ct_STRIP
7280 else
7281   STRIP="$ac_cv_prog_STRIP"
7282 fi
7283
7284
7285 old_CC="$CC"
7286 old_CFLAGS="$CFLAGS"
7287
7288 # Set sane defaults for various variables
7289 test -z "$AR" && AR=ar
7290 test -z "$AR_FLAGS" && AR_FLAGS=cru
7291 test -z "$AS" && AS=as
7292 test -z "$CC" && CC=cc
7293 test -z "$LTCC" && LTCC=$CC
7294 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7295 test -z "$DLLTOOL" && DLLTOOL=dlltool
7296 test -z "$LD" && LD=ld
7297 test -z "$LN_S" && LN_S="ln -s"
7298 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7299 test -z "$NM" && NM=nm
7300 test -z "$SED" && SED=sed
7301 test -z "$OBJDUMP" && OBJDUMP=objdump
7302 test -z "$RANLIB" && RANLIB=:
7303 test -z "$STRIP" && STRIP=:
7304 test -z "$ac_objext" && ac_objext=o
7305
7306 # Determine commands to create old-style static archives.
7307 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7308 old_postinstall_cmds='chmod 644 $oldlib'
7309 old_postuninstall_cmds=
7310
7311 if test -n "$RANLIB"; then
7312   case $host_os in
7313   openbsd*)
7314     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7315     ;;
7316   *)
7317     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7318     ;;
7319   esac
7320   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7321 fi
7322
7323 for cc_temp in $compiler""; do
7324   case $cc_temp in
7325     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7326     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7327     \-*) ;;
7328     *) break;;
7329   esac
7330 done
7331 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7332
7333
7334 # Only perform the check for file, if the check method requires it
7335 case $deplibs_check_method in
7336 file_magic*)
7337   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7338     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7339 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7340 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   case $MAGIC_CMD in
7344 [\\/*] |  ?:[\\/]*)
7345   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7346   ;;
7347 *)
7348   lt_save_MAGIC_CMD="$MAGIC_CMD"
7349   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7350   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7351   for ac_dir in $ac_dummy; do
7352     IFS="$lt_save_ifs"
7353     test -z "$ac_dir" && ac_dir=.
7354     if test -f $ac_dir/${ac_tool_prefix}file; then
7355       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7356       if test -n "$file_magic_test_file"; then
7357         case $deplibs_check_method in
7358         "file_magic "*)
7359           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7360           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7361           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7362             $EGREP "$file_magic_regex" > /dev/null; then
7363             :
7364           else
7365             cat <<EOF 1>&2
7366
7367 *** Warning: the command libtool uses to detect shared libraries,
7368 *** $file_magic_cmd, produces output that libtool cannot recognize.
7369 *** The result is that libtool may fail to recognize shared libraries
7370 *** as such.  This will affect the creation of libtool libraries that
7371 *** depend on shared libraries, but programs linked with such libtool
7372 *** libraries will work regardless of this problem.  Nevertheless, you
7373 *** may want to report the problem to your system manager and/or to
7374 *** bug-libtool@gnu.org
7375
7376 EOF
7377           fi ;;
7378         esac
7379       fi
7380       break
7381     fi
7382   done
7383   IFS="$lt_save_ifs"
7384   MAGIC_CMD="$lt_save_MAGIC_CMD"
7385   ;;
7386 esac
7387 fi
7388
7389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7390 if test -n "$MAGIC_CMD"; then
7391   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7392 echo "${ECHO_T}$MAGIC_CMD" >&6
7393 else
7394   echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7396 fi
7397
7398 if test -z "$lt_cv_path_MAGIC_CMD"; then
7399   if test -n "$ac_tool_prefix"; then
7400     echo "$as_me:$LINENO: checking for file" >&5
7401 echo $ECHO_N "checking for file... $ECHO_C" >&6
7402 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   case $MAGIC_CMD in
7406 [\\/*] |  ?:[\\/]*)
7407   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408   ;;
7409 *)
7410   lt_save_MAGIC_CMD="$MAGIC_CMD"
7411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7412   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7413   for ac_dir in $ac_dummy; do
7414     IFS="$lt_save_ifs"
7415     test -z "$ac_dir" && ac_dir=.
7416     if test -f $ac_dir/file; then
7417       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7418       if test -n "$file_magic_test_file"; then
7419         case $deplibs_check_method in
7420         "file_magic "*)
7421           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7422           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7424             $EGREP "$file_magic_regex" > /dev/null; then
7425             :
7426           else
7427             cat <<EOF 1>&2
7428
7429 *** Warning: the command libtool uses to detect shared libraries,
7430 *** $file_magic_cmd, produces output that libtool cannot recognize.
7431 *** The result is that libtool may fail to recognize shared libraries
7432 *** as such.  This will affect the creation of libtool libraries that
7433 *** depend on shared libraries, but programs linked with such libtool
7434 *** libraries will work regardless of this problem.  Nevertheless, you
7435 *** may want to report the problem to your system manager and/or to
7436 *** bug-libtool@gnu.org
7437
7438 EOF
7439           fi ;;
7440         esac
7441       fi
7442       break
7443     fi
7444   done
7445   IFS="$lt_save_ifs"
7446   MAGIC_CMD="$lt_save_MAGIC_CMD"
7447   ;;
7448 esac
7449 fi
7450
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if test -n "$MAGIC_CMD"; then
7453   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7454 echo "${ECHO_T}$MAGIC_CMD" >&6
7455 else
7456   echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6
7458 fi
7459
7460   else
7461     MAGIC_CMD=:
7462   fi
7463 fi
7464
7465   fi
7466   ;;
7467 esac
7468
7469 enable_dlopen=no
7470 enable_win32_dll=no
7471
7472 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7473 if test "${enable_libtool_lock+set}" = set; then
7474   enableval="$enable_libtool_lock"
7475
7476 fi;
7477 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7478
7479
7480 # Check whether --with-pic or --without-pic was given.
7481 if test "${with_pic+set}" = set; then
7482   withval="$with_pic"
7483   pic_mode="$withval"
7484 else
7485   pic_mode=default
7486 fi;
7487 test -z "$pic_mode" && pic_mode=default
7488
7489 # Use C for the default configuration in the libtool script
7490 tagname=
7491 lt_save_CC="$CC"
7492 ac_ext=c
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498
7499 # Source file extension for C test sources.
7500 ac_ext=c
7501
7502 # Object file extension for compiled C test sources.
7503 objext=o
7504 objext=$objext
7505
7506 # Code to be used in simple compile tests
7507 lt_simple_compile_test_code="int some_variable = 0;\n"
7508
7509 # Code to be used in simple link tests
7510 lt_simple_link_test_code='int main(){return(0);}\n'
7511
7512
7513 # If no C compiler was specified, use CC.
7514 LTCC=${LTCC-"$CC"}
7515
7516 # If no C compiler flags were specified, use CFLAGS.
7517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7518
7519 # Allow CC to be a program name with arguments.
7520 compiler=$CC
7521
7522
7523 # save warnings/boilerplate of simple test code
7524 ac_outfile=conftest.$ac_objext
7525 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527 _lt_compiler_boilerplate=`cat conftest.err`
7528 $rm conftest*
7529
7530 ac_outfile=conftest.$ac_objext
7531 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533 _lt_linker_boilerplate=`cat conftest.err`
7534 $rm conftest*
7535
7536
7537
7538 lt_prog_compiler_no_builtin_flag=
7539
7540 if test "$GCC" = yes; then
7541   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7542
7543
7544 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7546 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   lt_cv_prog_compiler_rtti_exceptions=no
7550   ac_outfile=conftest.$ac_objext
7551    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552    lt_compiler_flag="-fno-rtti -fno-exceptions"
7553    # Insert the option either (1) after the last *FLAGS variable, or
7554    # (2) before a word containing "conftest.", or (3) at the end.
7555    # Note that $ac_compile itself does not contain backslashes and begins
7556    # with a dollar sign (not a hyphen), so the echo should work correctly.
7557    # The option is referenced via a variable to avoid confusing sed.
7558    lt_compile=`echo "$ac_compile" | $SED \
7559    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561    -e 's:$: $lt_compiler_flag:'`
7562    (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563    (eval "$lt_compile" 2>conftest.err)
7564    ac_status=$?
7565    cat conftest.err >&5
7566    echo "$as_me:7566: \$? = $ac_status" >&5
7567    if (exit $ac_status) && test -s "$ac_outfile"; then
7568      # The compiler can only warn and ignore the option if not recognized
7569      # So say no if there are warnings other than the usual output.
7570      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573        lt_cv_prog_compiler_rtti_exceptions=yes
7574      fi
7575    fi
7576    $rm conftest*
7577
7578 fi
7579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7581
7582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7584 else
7585     :
7586 fi
7587
7588 fi
7589
7590 lt_prog_compiler_wl=
7591 lt_prog_compiler_pic=
7592 lt_prog_compiler_static=
7593
7594 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7595 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7596
7597   if test "$GCC" = yes; then
7598     lt_prog_compiler_wl='-Wl,'
7599     lt_prog_compiler_static='-static'
7600
7601     case $host_os in
7602       aix*)
7603       # All AIX code is PIC.
7604       if test "$host_cpu" = ia64; then
7605         # AIX 5 now supports IA64 processor
7606         lt_prog_compiler_static='-Bstatic'
7607       fi
7608       ;;
7609
7610     amigaos*)
7611       # FIXME: we need at least 68020 code to build shared libraries, but
7612       # adding the `-m68020' flag to GCC prevents building anything better,
7613       # like `-m68040'.
7614       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615       ;;
7616
7617     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7618       # PIC is the default for these OSes.
7619       ;;
7620
7621     mingw* | pw32* | os2*)
7622       # This hack is so that the source file can tell whether it is being
7623       # built for inclusion in a dll (and should export symbols for example).
7624       lt_prog_compiler_pic='-DDLL_EXPORT'
7625       ;;
7626
7627     darwin* | rhapsody*)
7628       # PIC is the default on this platform
7629       # Common symbols not allowed in MH_DYLIB files
7630       lt_prog_compiler_pic='-fno-common'
7631       ;;
7632
7633     interix3*)
7634       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7635       # Instead, we relocate shared libraries at runtime.
7636       ;;
7637
7638     msdosdjgpp*)
7639       # Just because we use GCC doesn't mean we suddenly get shared libraries
7640       # on systems that don't support them.
7641       lt_prog_compiler_can_build_shared=no
7642       enable_shared=no
7643       ;;
7644
7645     sysv4*MP*)
7646       if test -d /usr/nec; then
7647         lt_prog_compiler_pic=-Kconform_pic
7648       fi
7649       ;;
7650
7651     hpux*)
7652       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7653       # not for PA HP-UX.
7654       case $host_cpu in
7655       hppa*64*|ia64*)
7656         # +Z the default
7657         ;;
7658       *)
7659         lt_prog_compiler_pic='-fPIC'
7660         ;;
7661       esac
7662       ;;
7663
7664     *)
7665       lt_prog_compiler_pic='-fPIC'
7666       ;;
7667     esac
7668   else
7669     # PORTME Check for flag to pass linker flags through the system compiler.
7670     case $host_os in
7671     aix*)
7672       lt_prog_compiler_wl='-Wl,'
7673       if test "$host_cpu" = ia64; then
7674         # AIX 5 now supports IA64 processor
7675         lt_prog_compiler_static='-Bstatic'
7676       else
7677         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7678       fi
7679       ;;
7680       darwin*)
7681         # PIC is the default on this platform
7682         # Common symbols not allowed in MH_DYLIB files
7683        case $cc_basename in
7684          xlc*)
7685          lt_prog_compiler_pic='-qnocommon'
7686          lt_prog_compiler_wl='-Wl,'
7687          ;;
7688        esac
7689        ;;
7690
7691     mingw* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       lt_prog_compiler_pic='-DDLL_EXPORT'
7695       ;;
7696
7697     hpux9* | hpux10* | hpux11*)
7698       lt_prog_compiler_wl='-Wl,'
7699       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700       # not for PA HP-UX.
7701       case $host_cpu in
7702       hppa*64*|ia64*)
7703         # +Z the default
7704         ;;
7705       *)
7706         lt_prog_compiler_pic='+Z'
7707         ;;
7708       esac
7709       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710       lt_prog_compiler_static='${wl}-a ${wl}archive'
7711       ;;
7712
7713     irix5* | irix6* | nonstopux*)
7714       lt_prog_compiler_wl='-Wl,'
7715       # PIC (with -KPIC) is the default.
7716       lt_prog_compiler_static='-non_shared'
7717       ;;
7718
7719     newsos6)
7720       lt_prog_compiler_pic='-KPIC'
7721       lt_prog_compiler_static='-Bstatic'
7722       ;;
7723
7724     linux* | k*bsd*-gnu)
7725       case $cc_basename in
7726       icc* | ecc*)
7727         lt_prog_compiler_wl='-Wl,'
7728         lt_prog_compiler_pic='-KPIC'
7729         lt_prog_compiler_static='-static'
7730         ;;
7731       pgcc* | pgf77* | pgf90* | pgf95*)
7732         # Portland Group compilers (*not* the Pentium gcc compiler,
7733         # which looks to be a dead project)
7734         lt_prog_compiler_wl='-Wl,'
7735         lt_prog_compiler_pic='-fpic'
7736         lt_prog_compiler_static='-Bstatic'
7737         ;;
7738       ccc*)
7739         lt_prog_compiler_wl='-Wl,'
7740         # All Alpha code is PIC.
7741         lt_prog_compiler_static='-non_shared'
7742         ;;
7743       esac
7744       ;;
7745
7746     osf3* | osf4* | osf5*)
7747       lt_prog_compiler_wl='-Wl,'
7748       # All OSF/1 code is PIC.
7749       lt_prog_compiler_static='-non_shared'
7750       ;;
7751
7752     solaris*)
7753       lt_prog_compiler_pic='-KPIC'
7754       lt_prog_compiler_static='-Bstatic'
7755       case $cc_basename in
7756       f77* | f90* | f95*)
7757         lt_prog_compiler_wl='-Qoption ld ';;
7758       *)
7759         lt_prog_compiler_wl='-Wl,';;
7760       esac
7761       ;;
7762
7763     sunos4*)
7764       lt_prog_compiler_wl='-Qoption ld '
7765       lt_prog_compiler_pic='-PIC'
7766       lt_prog_compiler_static='-Bstatic'
7767       ;;
7768
7769     sysv4 | sysv4.2uw2* | sysv4.3*)
7770       lt_prog_compiler_wl='-Wl,'
7771       lt_prog_compiler_pic='-KPIC'
7772       lt_prog_compiler_static='-Bstatic'
7773       ;;
7774
7775     sysv4*MP*)
7776       if test -d /usr/nec ;then
7777         lt_prog_compiler_pic='-Kconform_pic'
7778         lt_prog_compiler_static='-Bstatic'
7779       fi
7780       ;;
7781
7782     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7783       lt_prog_compiler_wl='-Wl,'
7784       lt_prog_compiler_pic='-KPIC'
7785       lt_prog_compiler_static='-Bstatic'
7786       ;;
7787
7788     unicos*)
7789       lt_prog_compiler_wl='-Wl,'
7790       lt_prog_compiler_can_build_shared=no
7791       ;;
7792
7793     uts4*)
7794       lt_prog_compiler_pic='-pic'
7795       lt_prog_compiler_static='-Bstatic'
7796       ;;
7797
7798     *)
7799       lt_prog_compiler_can_build_shared=no
7800       ;;
7801     esac
7802   fi
7803
7804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7805 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7806
7807 #
7808 # Check to make sure the PIC flag actually works.
7809 #
7810 if test -n "$lt_prog_compiler_pic"; then
7811
7812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7814 if test "${lt_prog_compiler_pic_works+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   lt_prog_compiler_pic_works=no
7818   ac_outfile=conftest.$ac_objext
7819    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7820    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7821    # Insert the option either (1) after the last *FLAGS variable, or
7822    # (2) before a word containing "conftest.", or (3) at the end.
7823    # Note that $ac_compile itself does not contain backslashes and begins
7824    # with a dollar sign (not a hyphen), so the echo should work correctly.
7825    # The option is referenced via a variable to avoid confusing sed.
7826    lt_compile=`echo "$ac_compile" | $SED \
7827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829    -e 's:$: $lt_compiler_flag:'`
7830    (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831    (eval "$lt_compile" 2>conftest.err)
7832    ac_status=$?
7833    cat conftest.err >&5
7834    echo "$as_me:7834: \$? = $ac_status" >&5
7835    if (exit $ac_status) && test -s "$ac_outfile"; then
7836      # The compiler can only warn and ignore the option if not recognized
7837      # So say no if there are warnings other than the usual output.
7838      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7839      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7840      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7841        lt_prog_compiler_pic_works=yes
7842      fi
7843    fi
7844    $rm conftest*
7845
7846 fi
7847 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7848 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7849
7850 if test x"$lt_prog_compiler_pic_works" = xyes; then
7851     case $lt_prog_compiler_pic in
7852      "" | " "*) ;;
7853      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7854      esac
7855 else
7856     lt_prog_compiler_pic=
7857      lt_prog_compiler_can_build_shared=no
7858 fi
7859
7860 fi
7861 case $host_os in
7862   # For platforms which do not support PIC, -DPIC is meaningless:
7863   *djgpp*)
7864     lt_prog_compiler_pic=
7865     ;;
7866   *)
7867     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868     ;;
7869 esac
7870
7871 #
7872 # Check to make sure the static flag actually works.
7873 #
7874 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7875 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7876 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7877 if test "${lt_prog_compiler_static_works+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   lt_prog_compiler_static_works=no
7881    save_LDFLAGS="$LDFLAGS"
7882    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7883    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7884    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7885      # The linker can only warn and ignore the option if not recognized
7886      # So say no if there are warnings
7887      if test -s conftest.err; then
7888        # Append any errors to the config.log.
7889        cat conftest.err 1>&5
7890        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7891        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7892        if diff conftest.exp conftest.er2 >/dev/null; then
7893          lt_prog_compiler_static_works=yes
7894        fi
7895      else
7896        lt_prog_compiler_static_works=yes
7897      fi
7898    fi
7899    $rm conftest*
7900    LDFLAGS="$save_LDFLAGS"
7901
7902 fi
7903 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7904 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7905
7906 if test x"$lt_prog_compiler_static_works" = xyes; then
7907     :
7908 else
7909     lt_prog_compiler_static=
7910 fi
7911
7912
7913 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7914 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7915 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   lt_cv_prog_compiler_c_o=no
7919    $rm -r conftest 2>/dev/null
7920    mkdir conftest
7921    cd conftest
7922    mkdir out
7923    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7924
7925    lt_compiler_flag="-o out/conftest2.$ac_objext"
7926    # Insert the option either (1) after the last *FLAGS variable, or
7927    # (2) before a word containing "conftest.", or (3) at the end.
7928    # Note that $ac_compile itself does not contain backslashes and begins
7929    # with a dollar sign (not a hyphen), so the echo should work correctly.
7930    lt_compile=`echo "$ac_compile" | $SED \
7931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933    -e 's:$: $lt_compiler_flag:'`
7934    (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935    (eval "$lt_compile" 2>out/conftest.err)
7936    ac_status=$?
7937    cat out/conftest.err >&5
7938    echo "$as_me:7938: \$? = $ac_status" >&5
7939    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7940    then
7941      # The compiler can only warn and ignore the option if not recognized
7942      # So say no if there are warnings
7943      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7944      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7945      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7946        lt_cv_prog_compiler_c_o=yes
7947      fi
7948    fi
7949    chmod u+w . 2>&5
7950    $rm conftest*
7951    # SGI C++ compiler will create directory out/ii_files/ for
7952    # template instantiation
7953    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7954    $rm out/* && rmdir out
7955    cd ..
7956    rmdir conftest
7957    $rm conftest*
7958
7959 fi
7960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7961 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7962
7963
7964 hard_links="nottested"
7965 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7966   # do not overwrite the value of need_locks provided by the user
7967   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7968 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7969   hard_links=yes
7970   $rm conftest*
7971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7972   touch conftest.a
7973   ln conftest.a conftest.b 2>&5 || hard_links=no
7974   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7975   echo "$as_me:$LINENO: result: $hard_links" >&5
7976 echo "${ECHO_T}$hard_links" >&6
7977   if test "$hard_links" = no; then
7978     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7979 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7980     need_locks=warn
7981   fi
7982 else
7983   need_locks=no
7984 fi
7985
7986 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7987 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7988
7989   runpath_var=
7990   allow_undefined_flag=
7991   enable_shared_with_static_runtimes=no
7992   archive_cmds=
7993   archive_expsym_cmds=
7994   old_archive_From_new_cmds=
7995   old_archive_from_expsyms_cmds=
7996   export_dynamic_flag_spec=
7997   whole_archive_flag_spec=
7998   thread_safe_flag_spec=
7999   hardcode_libdir_flag_spec=
8000   hardcode_libdir_flag_spec_ld=
8001   hardcode_libdir_separator=
8002   hardcode_direct=no
8003   hardcode_minus_L=no
8004   hardcode_shlibpath_var=unsupported
8005   link_all_deplibs=unknown
8006   hardcode_automatic=no
8007   module_cmds=
8008   module_expsym_cmds=
8009   always_export_symbols=no
8010   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8011   # include_expsyms should be a list of space-separated symbols to be *always*
8012   # included in the symbol list
8013   include_expsyms=
8014   # exclude_expsyms can be an extended regexp of symbols to exclude
8015   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8016   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8017   # as well as any symbol that contains `d'.
8018   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8019   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8020   # platforms (ab)use it in PIC code, but their linkers get confused if
8021   # the symbol is explicitly referenced.  Since portable code cannot
8022   # rely on this symbol name, it's probably fine to never include it in
8023   # preloaded symbol tables.
8024   extract_expsyms_cmds=
8025   # Just being paranoid about ensuring that cc_basename is set.
8026   for cc_temp in $compiler""; do
8027   case $cc_temp in
8028     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8030     \-*) ;;
8031     *) break;;
8032   esac
8033 done
8034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8035
8036   case $host_os in
8037   cygwin* | mingw* | pw32*)
8038     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8039     # When not using gcc, we currently assume that we are using
8040     # Microsoft Visual C++.
8041     if test "$GCC" != yes; then
8042       with_gnu_ld=no
8043     fi
8044     ;;
8045   interix*)
8046     # we just hope/assume this is gcc and not c89 (= MSVC++)
8047     with_gnu_ld=yes
8048     ;;
8049   openbsd*)
8050     with_gnu_ld=no
8051     ;;
8052   esac
8053
8054   ld_shlibs=yes
8055   if test "$with_gnu_ld" = yes; then
8056     # If archive_cmds runs LD, not CC, wlarc should be empty
8057     wlarc='${wl}'
8058
8059     # Set some defaults for GNU ld with shared library support. These
8060     # are reset later if shared libraries are not supported. Putting them
8061     # here allows them to be overridden if necessary.
8062     runpath_var=LD_RUN_PATH
8063     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8064     export_dynamic_flag_spec='${wl}--export-dynamic'
8065     # ancient GNU ld didn't support --whole-archive et. al.
8066     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8067         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068       else
8069         whole_archive_flag_spec=
8070     fi
8071     supports_anon_versioning=no
8072     case `$LD -v 2>/dev/null` in
8073       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076       *\ 2.11.*) ;; # other 2.11 versions
8077       *) supports_anon_versioning=yes ;;
8078     esac
8079
8080     # See if GNU ld supports shared libraries.
8081     case $host_os in
8082     aix3* | aix4* | aix5*)
8083       # On AIX/PPC, the GNU linker is very broken
8084       if test "$host_cpu" != ia64; then
8085         ld_shlibs=no
8086         cat <<EOF 1>&2
8087
8088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8089 *** to be unable to reliably create shared libraries on AIX.
8090 *** Therefore, libtool is disabling shared libraries support.  If you
8091 *** really care for shared libraries, you may want to modify your PATH
8092 *** so that a non-GNU linker is found, and then restart.
8093
8094 EOF
8095       fi
8096       ;;
8097
8098     amigaos*)
8099       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8100       hardcode_libdir_flag_spec='-L$libdir'
8101       hardcode_minus_L=yes
8102
8103       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8104       # that the semantics of dynamic libraries on AmigaOS, at least up
8105       # to version 4, is to share data among multiple programs linked
8106       # with the same dynamic library.  Since this doesn't match the
8107       # behavior of shared libraries on other platforms, we can't use
8108       # them.
8109       ld_shlibs=no
8110       ;;
8111
8112     beos*)
8113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114         allow_undefined_flag=unsupported
8115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8116         # support --undefined.  This deserves some investigation.  FIXME
8117         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118       else
8119         ld_shlibs=no
8120       fi
8121       ;;
8122
8123     cygwin* | mingw* | pw32*)
8124       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8125       # as there is no search path for DLLs.
8126       hardcode_libdir_flag_spec='-L$libdir'
8127       allow_undefined_flag=unsupported
8128       always_export_symbols=no
8129       enable_shared_with_static_runtimes=yes
8130       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8131
8132       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134         # If the export-symbols file already is a .def file (1st line
8135         # is EXPORTS), use it as is; otherwise, prepend...
8136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8137           cp $export_symbols $output_objdir/$soname.def;
8138         else
8139           echo EXPORTS > $output_objdir/$soname.def;
8140           cat $export_symbols >> $output_objdir/$soname.def;
8141         fi~
8142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8143       else
8144         ld_shlibs=no
8145       fi
8146       ;;
8147
8148     interix3*)
8149       hardcode_direct=no
8150       hardcode_shlibpath_var=no
8151       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152       export_dynamic_flag_spec='${wl}-E'
8153       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8154       # Instead, shared libraries are loaded at an image base (0x10000000 by
8155       # default) and relocated if they conflict, which is a slow very memory
8156       # consuming and fragmenting process.  To avoid this, we pick a random,
8157       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8158       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8159       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8160       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8161       ;;
8162
8163     linux* | k*bsd*-gnu)
8164       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165         tmp_addflag=
8166         case $cc_basename,$host_cpu in
8167         pgcc*)                          # Portland Group C compiler
8168           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8169           tmp_addflag=' $pic_flag'
8170           ;;
8171         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8172           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8173           tmp_addflag=' $pic_flag -Mnomain' ;;
8174         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8175           tmp_addflag=' -i_dynamic' ;;
8176         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8177           tmp_addflag=' -i_dynamic -nofor_main' ;;
8178         ifc* | ifort*)                  # Intel Fortran compiler
8179           tmp_addflag=' -nofor_main' ;;
8180         esac
8181         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182
8183         if test $supports_anon_versioning = yes; then
8184           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8185   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8186   $echo "local: *; };" >> $output_objdir/$libname.ver~
8187           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8188         fi
8189         link_all_deplibs=no
8190       else
8191         ld_shlibs=no
8192       fi
8193       ;;
8194
8195     netbsd* | netbsdelf*-gnu)
8196       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8197         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8198         wlarc=
8199       else
8200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8201         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8202       fi
8203       ;;
8204
8205     solaris*)
8206       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8207         ld_shlibs=no
8208         cat <<EOF 1>&2
8209
8210 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8211 *** create shared libraries on Solaris systems.  Therefore, libtool
8212 *** is disabling shared libraries support.  We urge you to upgrade GNU
8213 *** binutils to release 2.9.1 or newer.  Another option is to modify
8214 *** your PATH or compiler configuration so that the native linker is
8215 *** used, and then restart.
8216
8217 EOF
8218       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8219         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221       else
8222         ld_shlibs=no
8223       fi
8224       ;;
8225
8226     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8227       case `$LD -v 2>&1` in
8228         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8229         ld_shlibs=no
8230         cat <<_LT_EOF 1>&2
8231
8232 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8233 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8234 *** is disabling shared libraries support.  We urge you to upgrade GNU
8235 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8236 *** your PATH or compiler configuration so that the native linker is
8237 *** used, and then restart.
8238
8239 _LT_EOF
8240         ;;
8241         *)
8242           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8243             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8244             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8245             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8246           else
8247             ld_shlibs=no
8248           fi
8249         ;;
8250       esac
8251       ;;
8252
8253     sunos4*)
8254       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8255       wlarc=
8256       hardcode_direct=yes
8257       hardcode_shlibpath_var=no
8258       ;;
8259
8260     *)
8261       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8263         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8264       else
8265         ld_shlibs=no
8266       fi
8267       ;;
8268     esac
8269
8270     if test "$ld_shlibs" = no; then
8271       runpath_var=
8272       hardcode_libdir_flag_spec=
8273       export_dynamic_flag_spec=
8274       whole_archive_flag_spec=
8275     fi
8276   else
8277     # PORTME fill in a description of your system's linker (not GNU ld)
8278     case $host_os in
8279     aix3*)
8280       allow_undefined_flag=unsupported
8281       always_export_symbols=yes
8282       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8283       # Note: this linker hardcodes the directories in LIBPATH if there
8284       # are no directories specified by -L.
8285       hardcode_minus_L=yes
8286       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8287         # Neither direct hardcoding nor static linking is supported with a
8288         # broken collect2.
8289         hardcode_direct=unsupported
8290       fi
8291       ;;
8292
8293     aix4* | aix5*)
8294       if test "$host_cpu" = ia64; then
8295         # On IA64, the linker does run time linking by default, so we don't
8296         # have to do anything special.
8297         aix_use_runtimelinking=no
8298         exp_sym_flag='-Bexport'
8299         no_entry_flag=""
8300       else
8301         # If we're using GNU nm, then we don't want the "-C" option.
8302         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8303         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8304           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8305         else
8306           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8307         fi
8308         aix_use_runtimelinking=no
8309
8310         # Test if we are trying to use run time linking or normal
8311         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8312         # need to do runtime linking.
8313         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8314           for ld_flag in $LDFLAGS; do
8315           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8316             aix_use_runtimelinking=yes
8317             break
8318           fi
8319           done
8320           ;;
8321         esac
8322
8323         exp_sym_flag='-bexport'
8324         no_entry_flag='-bnoentry'
8325       fi
8326
8327       # When large executables or shared objects are built, AIX ld can
8328       # have problems creating the table of contents.  If linking a library
8329       # or program results in "error TOC overflow" add -mminimal-toc to
8330       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8331       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8332
8333       archive_cmds=''
8334       hardcode_direct=yes
8335       hardcode_libdir_separator=':'
8336       link_all_deplibs=yes
8337
8338       if test "$GCC" = yes; then
8339         case $host_os in aix4.[012]|aix4.[012].*)
8340         # We only want to do this on AIX 4.2 and lower, the check
8341         # below for broken collect2 doesn't work under 4.3+
8342           collect2name=`${CC} -print-prog-name=collect2`
8343           if test -f "$collect2name" && \
8344            strings "$collect2name" | grep resolve_lib_name >/dev/null
8345           then
8346           # We have reworked collect2
8347           hardcode_direct=yes
8348           else
8349           # We have old collect2
8350           hardcode_direct=unsupported
8351           # It fails to find uninstalled libraries when the uninstalled
8352           # path is not listed in the libpath.  Setting hardcode_minus_L
8353           # to unsupported forces relinking
8354           hardcode_minus_L=yes
8355           hardcode_libdir_flag_spec='-L$libdir'
8356           hardcode_libdir_separator=
8357           fi
8358           ;;
8359         esac
8360         shared_flag='-shared'
8361         if test "$aix_use_runtimelinking" = yes; then
8362           shared_flag="$shared_flag "'${wl}-G'
8363         fi
8364       else
8365         # not using gcc
8366         if test "$host_cpu" = ia64; then
8367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368         # chokes on -Wl,-G. The following line is correct:
8369           shared_flag='-G'
8370         else
8371           if test "$aix_use_runtimelinking" = yes; then
8372             shared_flag='${wl}-G'
8373           else
8374             shared_flag='${wl}-bM:SRE'
8375           fi
8376         fi
8377       fi
8378
8379       # It seems that -bexpall does not export symbols beginning with
8380       # underscore (_), so it is better to generate a list of symbols to export.
8381       always_export_symbols=yes
8382       if test "$aix_use_runtimelinking" = yes; then
8383         # Warning - without using the other runtime loading flags (-brtl),
8384         # -berok will link without error, but may produce a broken library.
8385         allow_undefined_flag='-berok'
8386        # Determine the default libpath from the value encoded in an empty executable.
8387        cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h.  */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h.  */
8393
8394 int
8395 main ()
8396 {
8397
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404   (eval $ac_link) 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } &&
8411          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; } &&
8417          { ac_try='test -s conftest$ac_exeext'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423
8424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8425 }'`
8426 # Check for a 64-bit object if we didn't find anything.
8427 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8428 }'`; fi
8429 else
8430   echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 fi
8434 rm -f conftest.err conftest.$ac_objext \
8435       conftest$ac_exeext conftest.$ac_ext
8436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8437
8438        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8439         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8440        else
8441         if test "$host_cpu" = ia64; then
8442           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8443           allow_undefined_flag="-z nodefs"
8444           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8445         else
8446          # Determine the default libpath from the value encoded in an empty executable.
8447          cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 int
8455 main ()
8456 {
8457
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; } &&
8477          { ac_try='test -s conftest$ac_exeext'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; }; then
8483
8484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8485 }'`
8486 # Check for a 64-bit object if we didn't find anything.
8487 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8488 }'`; fi
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 fi
8494 rm -f conftest.err conftest.$ac_objext \
8495       conftest$ac_exeext conftest.$ac_ext
8496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8497
8498          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8499           # Warning - without using the other run time loading flags,
8500           # -berok will link without error, but may produce a broken library.
8501           no_undefined_flag=' ${wl}-bernotok'
8502           allow_undefined_flag=' ${wl}-berok'
8503           # Exported symbols can be pulled into shared objects from archives
8504           whole_archive_flag_spec='$convenience'
8505           archive_cmds_need_lc=yes
8506           # This is similar to how AIX traditionally builds its shared libraries.
8507           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8508         fi
8509       fi
8510       ;;
8511
8512     amigaos*)
8513       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8514       hardcode_libdir_flag_spec='-L$libdir'
8515       hardcode_minus_L=yes
8516       # see comment about different semantics on the GNU ld section
8517       ld_shlibs=no
8518       ;;
8519
8520     bsdi[45]*)
8521       export_dynamic_flag_spec=-rdynamic
8522       ;;
8523
8524     cygwin* | mingw* | pw32*)
8525       # When not using gcc, we currently assume that we are using
8526       # Microsoft Visual C++.
8527       # hardcode_libdir_flag_spec is actually meaningless, as there is
8528       # no search path for DLLs.
8529       hardcode_libdir_flag_spec=' '
8530       allow_undefined_flag=unsupported
8531       # Tell ltmain to make .lib files, not .a files.
8532       libext=lib
8533       # Tell ltmain to make .dll files, not .so files.
8534       shrext_cmds=".dll"
8535       # FIXME: Setting linknames here is a bad hack.
8536       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8537       # The linker will automatically build a .lib file if we build a DLL.
8538       old_archive_From_new_cmds='true'
8539       # FIXME: Should let the user specify the lib program.
8540       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8541       fix_srcfile_path='`cygpath -w "$srcfile"`'
8542       enable_shared_with_static_runtimes=yes
8543       ;;
8544
8545     darwin* | rhapsody*)
8546       case $host_os in
8547         rhapsody* | darwin1.[012])
8548          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8549          ;;
8550        *) # Darwin 1.3 on
8551          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8552            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8553          else
8554            case ${MACOSX_DEPLOYMENT_TARGET} in
8555              10.[012])
8556                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557                ;;
8558              10.*)
8559                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8560                ;;
8561            esac
8562          fi
8563          ;;
8564       esac
8565       archive_cmds_need_lc=no
8566       hardcode_direct=no
8567       hardcode_automatic=yes
8568       hardcode_shlibpath_var=unsupported
8569       whole_archive_flag_spec=''
8570       link_all_deplibs=yes
8571     if test "$GCC" = yes ; then
8572         output_verbose_link_cmd='echo'
8573         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8574       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8575       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8576       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8577       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8578     else
8579       case $cc_basename in
8580         xlc*)
8581          output_verbose_link_cmd='echo'
8582          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8583          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8584           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8585          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8586           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8587           ;;
8588        *)
8589          ld_shlibs=no
8590           ;;
8591       esac
8592     fi
8593       ;;
8594
8595     dgux*)
8596       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8597       hardcode_libdir_flag_spec='-L$libdir'
8598       hardcode_shlibpath_var=no
8599       ;;
8600
8601     freebsd1*)
8602       ld_shlibs=no
8603       ;;
8604
8605     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8606     # support.  Future versions do this automatically, but an explicit c++rt0.o
8607     # does not break anything, and helps significantly (at the cost of a little
8608     # extra space).
8609     freebsd2.2*)
8610       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8611       hardcode_libdir_flag_spec='-R$libdir'
8612       hardcode_direct=yes
8613       hardcode_shlibpath_var=no
8614       ;;
8615
8616     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8617     freebsd2*)
8618       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8619       hardcode_direct=yes
8620       hardcode_minus_L=yes
8621       hardcode_shlibpath_var=no
8622       ;;
8623
8624     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8625     freebsd* | dragonfly*)
8626       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8627       hardcode_libdir_flag_spec='-R$libdir'
8628       hardcode_direct=yes
8629       hardcode_shlibpath_var=no
8630       ;;
8631
8632     hpux9*)
8633       if test "$GCC" = yes; then
8634         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8635       else
8636         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8637       fi
8638       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8639       hardcode_libdir_separator=:
8640       hardcode_direct=yes
8641
8642       # hardcode_minus_L: Not really in the search PATH,
8643       # but as the default location of the library.
8644       hardcode_minus_L=yes
8645       export_dynamic_flag_spec='${wl}-E'
8646       ;;
8647
8648     hpux10*)
8649       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8650         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8651       else
8652         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8653       fi
8654       if test "$with_gnu_ld" = no; then
8655         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8656         hardcode_libdir_separator=:
8657
8658         hardcode_direct=yes
8659         export_dynamic_flag_spec='${wl}-E'
8660
8661         # hardcode_minus_L: Not really in the search PATH,
8662         # but as the default location of the library.
8663         hardcode_minus_L=yes
8664       fi
8665       ;;
8666
8667     hpux11*)
8668       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8669         case $host_cpu in
8670         hppa*64*)
8671           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672           ;;
8673         ia64*)
8674           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8675           ;;
8676         *)
8677           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678           ;;
8679         esac
8680       else
8681         case $host_cpu in
8682         hppa*64*)
8683           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8684           ;;
8685         ia64*)
8686           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8687           ;;
8688         *)
8689           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8690           ;;
8691         esac
8692       fi
8693       if test "$with_gnu_ld" = no; then
8694         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8695         hardcode_libdir_separator=:
8696
8697         case $host_cpu in
8698         hppa*64*|ia64*)
8699           hardcode_libdir_flag_spec_ld='+b $libdir'
8700           hardcode_direct=no
8701           hardcode_shlibpath_var=no
8702           ;;
8703         *)
8704           hardcode_direct=yes
8705           export_dynamic_flag_spec='${wl}-E'
8706
8707           # hardcode_minus_L: Not really in the search PATH,
8708           # but as the default location of the library.
8709           hardcode_minus_L=yes
8710           ;;
8711         esac
8712       fi
8713       ;;
8714
8715     irix5* | irix6* | nonstopux*)
8716       if test "$GCC" = yes; then
8717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8718       else
8719         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8720         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8721       fi
8722       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723       hardcode_libdir_separator=:
8724       link_all_deplibs=yes
8725       ;;
8726
8727     netbsd* | netbsdelf*-gnu)
8728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8729         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8730       else
8731         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8732       fi
8733       hardcode_libdir_flag_spec='-R$libdir'
8734       hardcode_direct=yes
8735       hardcode_shlibpath_var=no
8736       ;;
8737
8738     newsos6)
8739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740       hardcode_direct=yes
8741       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742       hardcode_libdir_separator=:
8743       hardcode_shlibpath_var=no
8744       ;;
8745
8746     openbsd*)
8747       hardcode_direct=yes
8748       hardcode_shlibpath_var=no
8749       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8750         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8752         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753         export_dynamic_flag_spec='${wl}-E'
8754       else
8755        case $host_os in
8756          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8757            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758            hardcode_libdir_flag_spec='-R$libdir'
8759            ;;
8760          *)
8761            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8762            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8763            ;;
8764        esac
8765       fi
8766       ;;
8767
8768     os2*)
8769       hardcode_libdir_flag_spec='-L$libdir'
8770       hardcode_minus_L=yes
8771       allow_undefined_flag=unsupported
8772       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8773       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8774       ;;
8775
8776     osf3*)
8777       if test "$GCC" = yes; then
8778         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8779         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8780       else
8781         allow_undefined_flag=' -expect_unresolved \*'
8782         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8783       fi
8784       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785       hardcode_libdir_separator=:
8786       ;;
8787
8788     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8789       if test "$GCC" = yes; then
8790         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8791         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8792         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793       else
8794         allow_undefined_flag=' -expect_unresolved \*'
8795         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8796         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8797         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8798
8799         # Both c and cxx compiler support -rpath directly
8800         hardcode_libdir_flag_spec='-rpath $libdir'
8801       fi
8802       hardcode_libdir_separator=:
8803       ;;
8804
8805     solaris*)
8806       no_undefined_flag=' -z text'
8807       if test "$GCC" = yes; then
8808         wlarc='${wl}'
8809         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8810         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8811           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8812       else
8813         wlarc=''
8814         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8816         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8817       fi
8818       hardcode_libdir_flag_spec='-R$libdir'
8819       hardcode_shlibpath_var=no
8820       case $host_os in
8821       solaris2.[0-5] | solaris2.[0-5].*) ;;
8822       *)
8823         # The compiler driver will combine linker options so we
8824         # cannot just pass the convience library names through
8825         # without $wl, iff we do not link with $LD.
8826         # Luckily, gcc supports the same syntax we need for Sun Studio.
8827         # Supported since Solaris 2.6 (maybe 2.5.1?)
8828         case $wlarc in
8829         '')
8830           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8831         *)
8832           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8833         esac ;;
8834       esac
8835       link_all_deplibs=yes
8836       ;;
8837
8838     sunos4*)
8839       if test "x$host_vendor" = xsequent; then
8840         # Use $CC to link under sequent, because it throws in some extra .o
8841         # files that make .init and .fini sections work.
8842         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8843       else
8844         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8845       fi
8846       hardcode_libdir_flag_spec='-L$libdir'
8847       hardcode_direct=yes
8848       hardcode_minus_L=yes
8849       hardcode_shlibpath_var=no
8850       ;;
8851
8852     sysv4)
8853       case $host_vendor in
8854         sni)
8855           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856           hardcode_direct=yes # is this really true???
8857         ;;
8858         siemens)
8859           ## LD is ld it makes a PLAMLIB
8860           ## CC just makes a GrossModule.
8861           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8862           reload_cmds='$CC -r -o $output$reload_objs'
8863           hardcode_direct=no
8864         ;;
8865         motorola)
8866           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8867           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8868         ;;
8869       esac
8870       runpath_var='LD_RUN_PATH'
8871       hardcode_shlibpath_var=no
8872       ;;
8873
8874     sysv4.3*)
8875       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876       hardcode_shlibpath_var=no
8877       export_dynamic_flag_spec='-Bexport'
8878       ;;
8879
8880     sysv4*MP*)
8881       if test -d /usr/nec; then
8882         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883         hardcode_shlibpath_var=no
8884         runpath_var=LD_RUN_PATH
8885         hardcode_runpath_var=yes
8886         ld_shlibs=yes
8887       fi
8888       ;;
8889
8890     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8891       no_undefined_flag='${wl}-z,text'
8892       archive_cmds_need_lc=no
8893       hardcode_shlibpath_var=no
8894       runpath_var='LD_RUN_PATH'
8895
8896       if test "$GCC" = yes; then
8897         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8898         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8899       else
8900         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8901         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8902       fi
8903       ;;
8904
8905     sysv5* | sco3.2v5* | sco5v6*)
8906       # Note: We can NOT use -z defs as we might desire, because we do not
8907       # link with -lc, and that would cause any symbols used from libc to
8908       # always be unresolved, which means just about no library would
8909       # ever link correctly.  If we're not using GNU ld we use -z text
8910       # though, which does catch some bad symbols but isn't as heavy-handed
8911       # as -z defs.
8912       no_undefined_flag='${wl}-z,text'
8913       allow_undefined_flag='${wl}-z,nodefs'
8914       archive_cmds_need_lc=no
8915       hardcode_shlibpath_var=no
8916       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8917       hardcode_libdir_separator=':'
8918       link_all_deplibs=yes
8919       export_dynamic_flag_spec='${wl}-Bexport'
8920       runpath_var='LD_RUN_PATH'
8921
8922       if test "$GCC" = yes; then
8923         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925       else
8926         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8927         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928       fi
8929       ;;
8930
8931     uts4*)
8932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933       hardcode_libdir_flag_spec='-L$libdir'
8934       hardcode_shlibpath_var=no
8935       ;;
8936
8937     *)
8938       ld_shlibs=no
8939       ;;
8940     esac
8941   fi
8942
8943 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8944 echo "${ECHO_T}$ld_shlibs" >&6
8945 test "$ld_shlibs" = no && can_build_shared=no
8946
8947 #
8948 # Do we need to explicitly link libc?
8949 #
8950 case "x$archive_cmds_need_lc" in
8951 x|xyes)
8952   # Assume -lc should be added
8953   archive_cmds_need_lc=yes
8954
8955   if test "$enable_shared" = yes && test "$GCC" = yes; then
8956     case $archive_cmds in
8957     *'~'*)
8958       # FIXME: we may have to deal with multi-command sequences.
8959       ;;
8960     '$CC '*)
8961       # Test whether the compiler implicitly links with -lc since on some
8962       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8963       # to ld, don't add -lc before -lgcc.
8964       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8966       $rm conftest*
8967       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8968
8969       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8970   (eval $ac_compile) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); } 2>conftest.err; then
8974         soname=conftest
8975         lib=conftest
8976         libobjs=conftest.$ac_objext
8977         deplibs=
8978         wl=$lt_prog_compiler_wl
8979         pic_flag=$lt_prog_compiler_pic
8980         compiler_flags=-v
8981         linker_flags=-v
8982         verstring=
8983         output_objdir=.
8984         libname=conftest
8985         lt_save_allow_undefined_flag=$allow_undefined_flag
8986         allow_undefined_flag=
8987         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8988   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }
8992         then
8993           archive_cmds_need_lc=no
8994         else
8995           archive_cmds_need_lc=yes
8996         fi
8997         allow_undefined_flag=$lt_save_allow_undefined_flag
8998       else
8999         cat conftest.err 1>&5
9000       fi
9001       $rm conftest*
9002       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9003 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9004       ;;
9005     esac
9006   fi
9007   ;;
9008 esac
9009
9010 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9011 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9012 library_names_spec=
9013 libname_spec='lib$name'
9014 soname_spec=
9015 shrext_cmds=".so"
9016 postinstall_cmds=
9017 postuninstall_cmds=
9018 finish_cmds=
9019 finish_eval=
9020 shlibpath_var=
9021 shlibpath_overrides_runpath=unknown
9022 version_type=none
9023 dynamic_linker="$host_os ld.so"
9024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9025 if test "$GCC" = yes; then
9026   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9027   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9028     # if the path contains ";" then we assume it to be the separator
9029     # otherwise default to the standard path separator (i.e. ":") - it is
9030     # assumed that no part of a normal pathname contains ";" but that should
9031     # okay in the real world where ";" in dirpaths is itself problematic.
9032     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9033   else
9034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9035   fi
9036 else
9037   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9038 fi
9039 need_lib_prefix=unknown
9040 hardcode_into_libs=no
9041
9042 # when you set need_version to no, make sure it does not cause -set_version
9043 # flags to be left without arguments
9044 need_version=unknown
9045
9046 case $host_os in
9047 aix3*)
9048   version_type=linux
9049   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9050   shlibpath_var=LIBPATH
9051
9052   # AIX 3 has no versioning support, so we append a major version to the name.
9053   soname_spec='${libname}${release}${shared_ext}$major'
9054   ;;
9055
9056 aix4* | aix5*)
9057   version_type=linux
9058   need_lib_prefix=no
9059   need_version=no
9060   hardcode_into_libs=yes
9061   if test "$host_cpu" = ia64; then
9062     # AIX 5 supports IA64
9063     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9064     shlibpath_var=LD_LIBRARY_PATH
9065   else
9066     # With GCC up to 2.95.x, collect2 would create an import file
9067     # for dependence libraries.  The import file would start with
9068     # the line `#! .'.  This would cause the generated library to
9069     # depend on `.', always an invalid library.  This was fixed in
9070     # development snapshots of GCC prior to 3.0.
9071     case $host_os in
9072       aix4 | aix4.[01] | aix4.[01].*)
9073       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9074            echo ' yes '
9075            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9076         :
9077       else
9078         can_build_shared=no
9079       fi
9080       ;;
9081     esac
9082     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9083     # soname into executable. Probably we can add versioning support to
9084     # collect2, so additional links can be useful in future.
9085     if test "$aix_use_runtimelinking" = yes; then
9086       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9087       # instead of lib<name>.a to let people know that these are not
9088       # typical AIX shared libraries.
9089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090     else
9091       # We preserve .a as extension for shared libraries through AIX4.2
9092       # and later when we are not doing run time linking.
9093       library_names_spec='${libname}${release}.a $libname.a'
9094       soname_spec='${libname}${release}${shared_ext}$major'
9095     fi
9096     shlibpath_var=LIBPATH
9097   fi
9098   ;;
9099
9100 amigaos*)
9101   library_names_spec='$libname.ixlibrary $libname.a'
9102   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9103   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9104   ;;
9105
9106 beos*)
9107   library_names_spec='${libname}${shared_ext}'
9108   dynamic_linker="$host_os ld.so"
9109   shlibpath_var=LIBRARY_PATH
9110   ;;
9111
9112 bsdi[45]*)
9113   version_type=linux
9114   need_version=no
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9118   shlibpath_var=LD_LIBRARY_PATH
9119   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9120   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9121   # the default ld.so.conf also contains /usr/contrib/lib and
9122   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9123   # libtool to hard-code these into programs
9124   ;;
9125
9126 cygwin* | mingw* | pw32*)
9127   version_type=windows
9128   shrext_cmds=".dll"
9129   need_version=no
9130   need_lib_prefix=no
9131
9132   case $GCC,$host_os in
9133   yes,cygwin* | yes,mingw* | yes,pw32*)
9134     library_names_spec='$libname.dll.a'
9135     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9136     postinstall_cmds='base_file=`basename \${file}`~
9137       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9138       dldir=$destdir/`dirname \$dlpath`~
9139       test -d \$dldir || mkdir -p \$dldir~
9140       $install_prog $dir/$dlname \$dldir/$dlname~
9141       chmod a+x \$dldir/$dlname'
9142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9143       dlpath=$dir/\$dldll~
9144        $rm \$dlpath'
9145     shlibpath_overrides_runpath=yes
9146
9147     case $host_os in
9148     cygwin*)
9149       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9150       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9151       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9152       ;;
9153     mingw*)
9154       # MinGW DLLs use traditional 'lib' prefix
9155       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9156       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9157       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9158         # It is most probably a Windows format PATH printed by
9159         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9160         # path with ; separators, and with drive letters. We can handle the
9161         # drive letters (cygwin fileutils understands them), so leave them,
9162         # especially as we might pass files found there to a mingw objdump,
9163         # which wouldn't understand a cygwinified path. Ahh.
9164         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9165       else
9166         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9167       fi
9168       ;;
9169     pw32*)
9170       # pw32 DLLs use 'pw' prefix rather than 'lib'
9171       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9172       ;;
9173     esac
9174     ;;
9175
9176   *)
9177     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9178     ;;
9179   esac
9180   dynamic_linker='Win32 ld.exe'
9181   # FIXME: first we should search . and the directory the executable is in
9182   shlibpath_var=PATH
9183   ;;
9184
9185 darwin* | rhapsody*)
9186   dynamic_linker="$host_os dyld"
9187   version_type=darwin
9188   need_lib_prefix=no
9189   need_version=no
9190   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9191   soname_spec='${libname}${release}${major}$shared_ext'
9192   shlibpath_overrides_runpath=yes
9193   shlibpath_var=DYLD_LIBRARY_PATH
9194   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9195   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9196   if test "$GCC" = yes; then
9197     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9198   else
9199     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9200   fi
9201   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9202   ;;
9203
9204 dgux*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   ;;
9212
9213 freebsd1*)
9214   dynamic_linker=no
9215   ;;
9216
9217 freebsd* | dragonfly*)
9218   # DragonFly does not have aout.  When/if they implement a new
9219   # versioning mechanism, adjust this.
9220   if test -x /usr/bin/objformat; then
9221     objformat=`/usr/bin/objformat`
9222   else
9223     case $host_os in
9224     freebsd[123]*) objformat=aout ;;
9225     *) objformat=elf ;;
9226     esac
9227   fi
9228   version_type=freebsd-$objformat
9229   case $version_type in
9230     freebsd-elf*)
9231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9232       need_version=no
9233       need_lib_prefix=no
9234       ;;
9235     freebsd-*)
9236       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9237       need_version=yes
9238       ;;
9239   esac
9240   shlibpath_var=LD_LIBRARY_PATH
9241   case $host_os in
9242   freebsd2*)
9243     shlibpath_overrides_runpath=yes
9244     ;;
9245   freebsd3.[01]* | freebsdelf3.[01]*)
9246     shlibpath_overrides_runpath=yes
9247     hardcode_into_libs=yes
9248     ;;
9249   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9250   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9251     shlibpath_overrides_runpath=no
9252     hardcode_into_libs=yes
9253     ;;
9254   freebsd*) # from 4.6 on
9255     shlibpath_overrides_runpath=yes
9256     hardcode_into_libs=yes
9257     ;;
9258   esac
9259   ;;
9260
9261 gnu*)
9262   version_type=linux
9263   need_lib_prefix=no
9264   need_version=no
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   hardcode_into_libs=yes
9269   ;;
9270
9271 hpux9* | hpux10* | hpux11*)
9272   # Give a soname corresponding to the major version so that dld.sl refuses to
9273   # link against other versions.
9274   version_type=sunos
9275   need_lib_prefix=no
9276   need_version=no
9277   case $host_cpu in
9278   ia64*)
9279     shrext_cmds='.so'
9280     hardcode_into_libs=yes
9281     dynamic_linker="$host_os dld.so"
9282     shlibpath_var=LD_LIBRARY_PATH
9283     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285     soname_spec='${libname}${release}${shared_ext}$major'
9286     if test "X$HPUX_IA64_MODE" = X32; then
9287       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9288     else
9289       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9290     fi
9291     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9292     ;;
9293    hppa*64*)
9294      shrext_cmds='.sl'
9295      hardcode_into_libs=yes
9296      dynamic_linker="$host_os dld.sl"
9297      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9298      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9299      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300      soname_spec='${libname}${release}${shared_ext}$major'
9301      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9302      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303      ;;
9304    *)
9305     shrext_cmds='.sl'
9306     dynamic_linker="$host_os dld.sl"
9307     shlibpath_var=SHLIB_PATH
9308     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310     soname_spec='${libname}${release}${shared_ext}$major'
9311     ;;
9312   esac
9313   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9314   postinstall_cmds='chmod 555 $lib'
9315   ;;
9316
9317 interix3*)
9318   version_type=linux
9319   need_lib_prefix=no
9320   need_version=no
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9322   soname_spec='${libname}${release}${shared_ext}$major'
9323   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   shlibpath_overrides_runpath=no
9326   hardcode_into_libs=yes
9327   ;;
9328
9329 irix5* | irix6* | nonstopux*)
9330   case $host_os in
9331     nonstopux*) version_type=nonstopux ;;
9332     *)
9333         if test "$lt_cv_prog_gnu_ld" = yes; then
9334                 version_type=linux
9335         else
9336                 version_type=irix
9337         fi ;;
9338   esac
9339   need_lib_prefix=no
9340   need_version=no
9341   soname_spec='${libname}${release}${shared_ext}$major'
9342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9343   case $host_os in
9344   irix5* | nonstopux*)
9345     libsuff= shlibsuff=
9346     ;;
9347   *)
9348     case $LD in # libtool.m4 will add one of these switches to LD
9349     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9350       libsuff= shlibsuff= libmagic=32-bit;;
9351     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9352       libsuff=32 shlibsuff=N32 libmagic=N32;;
9353     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9354       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9355     *) libsuff= shlibsuff= libmagic=never-match;;
9356     esac
9357     ;;
9358   esac
9359   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9360   shlibpath_overrides_runpath=no
9361   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9362   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9363   hardcode_into_libs=yes
9364   ;;
9365
9366 # No shared lib support for Linux oldld, aout, or coff.
9367 linux*oldld* | linux*aout* | linux*coff*)
9368   dynamic_linker=no
9369   ;;
9370
9371 # This must be Linux ELF.
9372 linux* | k*bsd*-gnu)
9373   version_type=linux
9374   need_lib_prefix=no
9375   need_version=no
9376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377   soname_spec='${libname}${release}${shared_ext}$major'
9378   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9379   shlibpath_var=LD_LIBRARY_PATH
9380   shlibpath_overrides_runpath=no
9381   # This implies no fast_install, which is unacceptable.
9382   # Some rework will be needed to allow for fast_install
9383   # before this can be enabled.
9384   hardcode_into_libs=yes
9385
9386   # Append ld.so.conf contents to the search path
9387   if test -f /etc/ld.so.conf; then
9388     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9389     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9390   fi
9391
9392   # We used to test for /lib/ld.so.1 and disable shared libraries on
9393   # powerpc, because MkLinux only supported shared libraries with the
9394   # GNU dynamic linker.  Since this was broken with cross compilers,
9395   # most powerpc-linux boxes support dynamic linking these days and
9396   # people can always --disable-shared, the test was removed, and we
9397   # assume the GNU/Linux dynamic linker is in use.
9398   dynamic_linker='GNU/Linux ld.so'
9399   ;;
9400
9401 netbsdelf*-gnu)
9402   version_type=linux
9403   need_lib_prefix=no
9404   need_version=no
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9406   soname_spec='${libname}${release}${shared_ext}$major'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   shlibpath_overrides_runpath=no
9409   hardcode_into_libs=yes
9410   dynamic_linker='NetBSD ld.elf_so'
9411   ;;
9412
9413 netbsd*)
9414   version_type=sunos
9415   need_lib_prefix=no
9416   need_version=no
9417   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9420     dynamic_linker='NetBSD (a.out) ld.so'
9421   else
9422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9423     soname_spec='${libname}${release}${shared_ext}$major'
9424     dynamic_linker='NetBSD ld.elf_so'
9425   fi
9426   shlibpath_var=LD_LIBRARY_PATH
9427   shlibpath_overrides_runpath=yes
9428   hardcode_into_libs=yes
9429   ;;
9430
9431 newsos6)
9432   version_type=linux
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434   shlibpath_var=LD_LIBRARY_PATH
9435   shlibpath_overrides_runpath=yes
9436   ;;
9437
9438 nto-qnx*)
9439   version_type=linux
9440   need_lib_prefix=no
9441   need_version=no
9442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443   soname_spec='${libname}${release}${shared_ext}$major'
9444   shlibpath_var=LD_LIBRARY_PATH
9445   shlibpath_overrides_runpath=yes
9446   ;;
9447
9448 openbsd*)
9449   version_type=sunos
9450   sys_lib_dlsearch_path_spec="/usr/lib"
9451   need_lib_prefix=no
9452   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9453   case $host_os in
9454     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9455     *)                         need_version=no  ;;
9456   esac
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9458   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9459   shlibpath_var=LD_LIBRARY_PATH
9460   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9461     case $host_os in
9462       openbsd2.[89] | openbsd2.[89].*)
9463         shlibpath_overrides_runpath=no
9464         ;;
9465       *)
9466         shlibpath_overrides_runpath=yes
9467         ;;
9468       esac
9469   else
9470     shlibpath_overrides_runpath=yes
9471   fi
9472   ;;
9473
9474 os2*)
9475   libname_spec='$name'
9476   shrext_cmds=".dll"
9477   need_lib_prefix=no
9478   library_names_spec='$libname${shared_ext} $libname.a'
9479   dynamic_linker='OS/2 ld.exe'
9480   shlibpath_var=LIBPATH
9481   ;;
9482
9483 osf3* | osf4* | osf5*)
9484   version_type=osf
9485   need_lib_prefix=no
9486   need_version=no
9487   soname_spec='${libname}${release}${shared_ext}$major'
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9491   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9492   ;;
9493
9494 solaris*)
9495   version_type=linux
9496   need_lib_prefix=no
9497   need_version=no
9498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499   soname_spec='${libname}${release}${shared_ext}$major'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   hardcode_into_libs=yes
9503   # ldd complains unless libraries are executable
9504   postinstall_cmds='chmod +x $lib'
9505   ;;
9506
9507 sunos4*)
9508   version_type=sunos
9509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9510   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9511   shlibpath_var=LD_LIBRARY_PATH
9512   shlibpath_overrides_runpath=yes
9513   if test "$with_gnu_ld" = yes; then
9514     need_lib_prefix=no
9515   fi
9516   need_version=yes
9517   ;;
9518
9519 sysv4 | sysv4.3*)
9520   version_type=linux
9521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522   soname_spec='${libname}${release}${shared_ext}$major'
9523   shlibpath_var=LD_LIBRARY_PATH
9524   case $host_vendor in
9525     sni)
9526       shlibpath_overrides_runpath=no
9527       need_lib_prefix=no
9528       export_dynamic_flag_spec='${wl}-Blargedynsym'
9529       runpath_var=LD_RUN_PATH
9530       ;;
9531     siemens)
9532       need_lib_prefix=no
9533       ;;
9534     motorola)
9535       need_lib_prefix=no
9536       need_version=no
9537       shlibpath_overrides_runpath=no
9538       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9539       ;;
9540   esac
9541   ;;
9542
9543 sysv4*MP*)
9544   if test -d /usr/nec ;then
9545     version_type=linux
9546     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9547     soname_spec='$libname${shared_ext}.$major'
9548     shlibpath_var=LD_LIBRARY_PATH
9549   fi
9550   ;;
9551
9552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9553   version_type=freebsd-elf
9554   need_lib_prefix=no
9555   need_version=no
9556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9557   soname_spec='${libname}${release}${shared_ext}$major'
9558   shlibpath_var=LD_LIBRARY_PATH
9559   hardcode_into_libs=yes
9560   if test "$with_gnu_ld" = yes; then
9561     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9562     shlibpath_overrides_runpath=no
9563   else
9564     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9565     shlibpath_overrides_runpath=yes
9566     case $host_os in
9567       sco3.2v5*)
9568         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9569         ;;
9570     esac
9571   fi
9572   sys_lib_dlsearch_path_spec='/usr/lib'
9573   ;;
9574
9575 uts4*)
9576   version_type=linux
9577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578   soname_spec='${libname}${release}${shared_ext}$major'
9579   shlibpath_var=LD_LIBRARY_PATH
9580   ;;
9581
9582 *)
9583   dynamic_linker=no
9584   ;;
9585 esac
9586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9587 echo "${ECHO_T}$dynamic_linker" >&6
9588 test "$dynamic_linker" = no && can_build_shared=no
9589
9590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9591 if test "$GCC" = yes; then
9592   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9593 fi
9594
9595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9596 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9597 hardcode_action=
9598 if test -n "$hardcode_libdir_flag_spec" || \
9599    test -n "$runpath_var" || \
9600    test "X$hardcode_automatic" = "Xyes" ; then
9601
9602   # We can hardcode non-existant directories.
9603   if test "$hardcode_direct" != no &&
9604      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9605      # have to relink, otherwise we might link with an installed library
9606      # when we should be linking with a yet-to-be-installed one
9607      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9608      test "$hardcode_minus_L" != no; then
9609     # Linking always hardcodes the temporary library directory.
9610     hardcode_action=relink
9611   else
9612     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9613     hardcode_action=immediate
9614   fi
9615 else
9616   # We cannot hardcode anything, or else we can only hardcode existing
9617   # directories.
9618   hardcode_action=unsupported
9619 fi
9620 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9621 echo "${ECHO_T}$hardcode_action" >&6
9622
9623 if test "$hardcode_action" = relink; then
9624   # Fast installation is not supported
9625   enable_fast_install=no
9626 elif test "$shlibpath_overrides_runpath" = yes ||
9627      test "$enable_shared" = no; then
9628   # Fast installation is not necessary
9629   enable_fast_install=needless
9630 fi
9631
9632 striplib=
9633 old_striplib=
9634 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9635 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9636 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9637   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9638   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9639   echo "$as_me:$LINENO: result: yes" >&5
9640 echo "${ECHO_T}yes" >&6
9641 else
9642 # FIXME - insert some real tests, host_os isn't really good enough
9643   case $host_os in
9644    darwin*)
9645        if test -n "$STRIP" ; then
9646          striplib="$STRIP -x"
9647          echo "$as_me:$LINENO: result: yes" >&5
9648 echo "${ECHO_T}yes" >&6
9649        else
9650   echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6
9652 fi
9653        ;;
9654    *)
9655   echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9657     ;;
9658   esac
9659 fi
9660
9661 if test "x$enable_dlopen" != xyes; then
9662   enable_dlopen=unknown
9663   enable_dlopen_self=unknown
9664   enable_dlopen_self_static=unknown
9665 else
9666   lt_cv_dlopen=no
9667   lt_cv_dlopen_libs=
9668
9669   case $host_os in
9670   beos*)
9671     lt_cv_dlopen="load_add_on"
9672     lt_cv_dlopen_libs=
9673     lt_cv_dlopen_self=yes
9674     ;;
9675
9676   mingw* | pw32*)
9677     lt_cv_dlopen="LoadLibrary"
9678     lt_cv_dlopen_libs=
9679    ;;
9680
9681   cygwin*)
9682     lt_cv_dlopen="dlopen"
9683     lt_cv_dlopen_libs=
9684    ;;
9685
9686   darwin*)
9687   # if libdl is installed we need to link against it
9688     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-ldl  $LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702 /* Override any gcc2 internal prototype to avoid an error.  */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 /* We use char because int might match the return type of a gcc2
9707    builtin and then its argument prototype would still apply.  */
9708 char dlopen ();
9709 int
9710 main ()
9711 {
9712 dlopen ();
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719   (eval $ac_link) 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } &&
9726          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; } &&
9732          { ac_try='test -s conftest$ac_exeext'
9733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734   (eval $ac_try) 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; }; then
9738   ac_cv_lib_dl_dlopen=yes
9739 else
9740   echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743 ac_cv_lib_dl_dlopen=no
9744 fi
9745 rm -f conftest.err conftest.$ac_objext \
9746       conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9748 fi
9749 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9751 if test $ac_cv_lib_dl_dlopen = yes; then
9752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9753 else
9754
9755     lt_cv_dlopen="dyld"
9756     lt_cv_dlopen_libs=
9757     lt_cv_dlopen_self=yes
9758
9759 fi
9760
9761    ;;
9762
9763   *)
9764     echo "$as_me:$LINENO: checking for shl_load" >&5
9765 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9766 if test "${ac_cv_func_shl_load+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h.  */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h.  */
9775 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9777 #define shl_load innocuous_shl_load
9778
9779 /* System header to define __stub macros and hopefully few prototypes,
9780     which can conflict with char shl_load (); below.
9781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782     <limits.h> exists even on freestanding compilers.  */
9783
9784 #ifdef __STDC__
9785 # include <limits.h>
9786 #else
9787 # include <assert.h>
9788 #endif
9789
9790 #undef shl_load
9791
9792 /* Override any gcc2 internal prototype to avoid an error.  */
9793 #ifdef __cplusplus
9794 extern "C"
9795 {
9796 #endif
9797 /* We use char because int might match the return type of a gcc2
9798    builtin and then its argument prototype would still apply.  */
9799 char shl_load ();
9800 /* The GNU C library defines this for functions which it implements
9801     to always fail with ENOSYS.  Some functions are actually named
9802     something starting with __ and the normal name is an alias.  */
9803 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9804 choke me
9805 #else
9806 char (*f) () = shl_load;
9807 #endif
9808 #ifdef __cplusplus
9809 }
9810 #endif
9811
9812 int
9813 main ()
9814 {
9815 return f != shl_load;
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822   (eval $ac_link) 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest$ac_exeext'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_func_shl_load=yes
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 ac_cv_func_shl_load=no
9847 fi
9848 rm -f conftest.err conftest.$ac_objext \
9849       conftest$ac_exeext conftest.$ac_ext
9850 fi
9851 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9853 if test $ac_cv_func_shl_load = yes; then
9854   lt_cv_dlopen="shl_load"
9855 else
9856   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9857 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9858 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-ldld  $LIBS"
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869
9870 /* Override any gcc2 internal prototype to avoid an error.  */
9871 #ifdef __cplusplus
9872 extern "C"
9873 #endif
9874 /* We use char because int might match the return type of a gcc2
9875    builtin and then its argument prototype would still apply.  */
9876 char shl_load ();
9877 int
9878 main ()
9879 {
9880 shl_load ();
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887   (eval $ac_link) 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } &&
9894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896   (eval $ac_try) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; } &&
9900          { ac_try='test -s conftest$ac_exeext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_lib_dld_shl_load=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_cv_lib_dld_shl_load=no
9912 fi
9913 rm -f conftest.err conftest.$ac_objext \
9914       conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9916 fi
9917 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9918 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9919 if test $ac_cv_lib_dld_shl_load = yes; then
9920   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9921 else
9922   echo "$as_me:$LINENO: checking for dlopen" >&5
9923 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9924 if test "${ac_cv_func_dlopen+set}" = set; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9935 #define dlopen innocuous_dlopen
9936
9937 /* System header to define __stub macros and hopefully few prototypes,
9938     which can conflict with char dlopen (); below.
9939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9940     <limits.h> exists even on freestanding compilers.  */
9941
9942 #ifdef __STDC__
9943 # include <limits.h>
9944 #else
9945 # include <assert.h>
9946 #endif
9947
9948 #undef dlopen
9949
9950 /* Override any gcc2 internal prototype to avoid an error.  */
9951 #ifdef __cplusplus
9952 extern "C"
9953 {
9954 #endif
9955 /* We use char because int might match the return type of a gcc2
9956    builtin and then its argument prototype would still apply.  */
9957 char dlopen ();
9958 /* The GNU C library defines this for functions which it implements
9959     to always fail with ENOSYS.  Some functions are actually named
9960     something starting with __ and the normal name is an alias.  */
9961 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9962 choke me
9963 #else
9964 char (*f) () = dlopen;
9965 #endif
9966 #ifdef __cplusplus
9967 }
9968 #endif
9969
9970 int
9971 main ()
9972 {
9973 return f != dlopen;
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_func_dlopen=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 ac_cv_func_dlopen=no
10005 fi
10006 rm -f conftest.err conftest.$ac_objext \
10007       conftest$ac_exeext conftest.$ac_ext
10008 fi
10009 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10011 if test $ac_cv_func_dlopen = yes; then
10012   lt_cv_dlopen="dlopen"
10013 else
10014   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-ldl  $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027
10028 /* Override any gcc2 internal prototype to avoid an error.  */
10029 #ifdef __cplusplus
10030 extern "C"
10031 #endif
10032 /* We use char because int might match the return type of a gcc2
10033    builtin and then its argument prototype would still apply.  */
10034 char dlopen ();
10035 int
10036 main ()
10037 {
10038 dlopen ();
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045   (eval $ac_link) 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_lib_dl_dlopen=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_lib_dl_dlopen=no
10070 fi
10071 rm -f conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10074 fi
10075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10077 if test $ac_cv_lib_dl_dlopen = yes; then
10078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10079 else
10080   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10081 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10082 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-lsvld  $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 /* Override any gcc2 internal prototype to avoid an error.  */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 /* We use char because int might match the return type of a gcc2
10099    builtin and then its argument prototype would still apply.  */
10100 char dlopen ();
10101 int
10102 main ()
10103 {
10104 dlopen ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111   (eval $ac_link) 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; } &&
10124          { ac_try='test -s conftest$ac_exeext'
10125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126   (eval $ac_try) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; }; then
10130   ac_cv_lib_svld_dlopen=yes
10131 else
10132   echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 ac_cv_lib_svld_dlopen=no
10136 fi
10137 rm -f conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10142 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10143 if test $ac_cv_lib_svld_dlopen = yes; then
10144   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10145 else
10146   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10147 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10148 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-ldld  $LIBS"
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159
10160 /* Override any gcc2 internal prototype to avoid an error.  */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 /* We use char because int might match the return type of a gcc2
10165    builtin and then its argument prototype would still apply.  */
10166 char dld_link ();
10167 int
10168 main ()
10169 {
10170 dld_link ();
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177   (eval $ac_link) 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; } &&
10190          { ac_try='test -s conftest$ac_exeext'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; }; then
10196   ac_cv_lib_dld_dld_link=yes
10197 else
10198   echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 ac_cv_lib_dld_dld_link=no
10202 fi
10203 rm -f conftest.err conftest.$ac_objext \
10204       conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10206 fi
10207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10209 if test $ac_cv_lib_dld_dld_link = yes; then
10210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10211 fi
10212
10213
10214 fi
10215
10216
10217 fi
10218
10219
10220 fi
10221
10222
10223 fi
10224
10225
10226 fi
10227
10228     ;;
10229   esac
10230
10231   if test "x$lt_cv_dlopen" != xno; then
10232     enable_dlopen=yes
10233   else
10234     enable_dlopen=no
10235   fi
10236
10237   case $lt_cv_dlopen in
10238   dlopen)
10239     save_CPPFLAGS="$CPPFLAGS"
10240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10241
10242     save_LDFLAGS="$LDFLAGS"
10243     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10244
10245     save_LIBS="$LIBS"
10246     LIBS="$lt_cv_dlopen_libs $LIBS"
10247
10248     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10250 if test "${lt_cv_dlopen_self+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253           if test "$cross_compiling" = yes; then :
10254   lt_cv_dlopen_self=cross
10255 else
10256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257   lt_status=$lt_dlunknown
10258   cat > conftest.$ac_ext <<EOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10261
10262 #if HAVE_DLFCN_H
10263 #include <dlfcn.h>
10264 #endif
10265
10266 #include <stdio.h>
10267
10268 #ifdef RTLD_GLOBAL
10269 #  define LT_DLGLOBAL           RTLD_GLOBAL
10270 #else
10271 #  ifdef DL_GLOBAL
10272 #    define LT_DLGLOBAL         DL_GLOBAL
10273 #  else
10274 #    define LT_DLGLOBAL         0
10275 #  endif
10276 #endif
10277
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279    find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10281 #  ifdef RTLD_LAZY
10282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10283 #  else
10284 #    ifdef DL_LAZY
10285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10286 #    else
10287 #      ifdef RTLD_NOW
10288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10289 #      else
10290 #        ifdef DL_NOW
10291 #          define LT_DLLAZY_OR_NOW      DL_NOW
10292 #        else
10293 #          define LT_DLLAZY_OR_NOW      0
10294 #        endif
10295 #      endif
10296 #    endif
10297 #  endif
10298 #endif
10299
10300 #ifdef __cplusplus
10301 extern "C" void exit (int);
10302 #endif
10303
10304 void fnord() { int i=42;}
10305 int main ()
10306 {
10307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10308   int status = $lt_dlunknown;
10309
10310   if (self)
10311     {
10312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10313       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10314       /* dlclose (self); */
10315     }
10316   else
10317     puts (dlerror ());
10318
10319     exit (status);
10320 }
10321 EOF
10322   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10327     (./conftest; exit; ) >&5 2>/dev/null
10328     lt_status=$?
10329     case x$lt_status in
10330       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10331       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10332       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10333     esac
10334   else :
10335     # compilation failed
10336     lt_cv_dlopen_self=no
10337   fi
10338 fi
10339 rm -fr conftest*
10340
10341
10342 fi
10343 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10344 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10345
10346     if test "x$lt_cv_dlopen_self" = xyes; then
10347       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10348       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10349 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10350 if test "${lt_cv_dlopen_self_static+set}" = set; then
10351   echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353           if test "$cross_compiling" = yes; then :
10354   lt_cv_dlopen_self_static=cross
10355 else
10356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10357   lt_status=$lt_dlunknown
10358   cat > conftest.$ac_ext <<EOF
10359 #line 10359 "configure"
10360 #include "confdefs.h"
10361
10362 #if HAVE_DLFCN_H
10363 #include <dlfcn.h>
10364 #endif
10365
10366 #include <stdio.h>
10367
10368 #ifdef RTLD_GLOBAL
10369 #  define LT_DLGLOBAL           RTLD_GLOBAL
10370 #else
10371 #  ifdef DL_GLOBAL
10372 #    define LT_DLGLOBAL         DL_GLOBAL
10373 #  else
10374 #    define LT_DLGLOBAL         0
10375 #  endif
10376 #endif
10377
10378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10379    find out it does not work in some platform. */
10380 #ifndef LT_DLLAZY_OR_NOW
10381 #  ifdef RTLD_LAZY
10382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10383 #  else
10384 #    ifdef DL_LAZY
10385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10386 #    else
10387 #      ifdef RTLD_NOW
10388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10389 #      else
10390 #        ifdef DL_NOW
10391 #          define LT_DLLAZY_OR_NOW      DL_NOW
10392 #        else
10393 #          define LT_DLLAZY_OR_NOW      0
10394 #        endif
10395 #      endif
10396 #    endif
10397 #  endif
10398 #endif
10399
10400 #ifdef __cplusplus
10401 extern "C" void exit (int);
10402 #endif
10403
10404 void fnord() { int i=42;}
10405 int main ()
10406 {
10407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10408   int status = $lt_dlunknown;
10409
10410   if (self)
10411     {
10412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10414       /* dlclose (self); */
10415     }
10416   else
10417     puts (dlerror ());
10418
10419     exit (status);
10420 }
10421 EOF
10422   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423   (eval $ac_link) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10427     (./conftest; exit; ) >&5 2>/dev/null
10428     lt_status=$?
10429     case x$lt_status in
10430       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10431       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10432       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10433     esac
10434   else :
10435     # compilation failed
10436     lt_cv_dlopen_self_static=no
10437   fi
10438 fi
10439 rm -fr conftest*
10440
10441
10442 fi
10443 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10444 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10445     fi
10446
10447     CPPFLAGS="$save_CPPFLAGS"
10448     LDFLAGS="$save_LDFLAGS"
10449     LIBS="$save_LIBS"
10450     ;;
10451   esac
10452
10453   case $lt_cv_dlopen_self in
10454   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10455   *) enable_dlopen_self=unknown ;;
10456   esac
10457
10458   case $lt_cv_dlopen_self_static in
10459   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10460   *) enable_dlopen_self_static=unknown ;;
10461   esac
10462 fi
10463
10464
10465 # Report which library types will actually be built
10466 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10467 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10468 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10469 echo "${ECHO_T}$can_build_shared" >&6
10470
10471 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10472 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10473 test "$can_build_shared" = "no" && enable_shared=no
10474
10475 # On AIX, shared libraries and static libraries use the same namespace, and
10476 # are all built from PIC.
10477 case $host_os in
10478 aix3*)
10479   test "$enable_shared" = yes && enable_static=no
10480   if test -n "$RANLIB"; then
10481     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10482     postinstall_cmds='$RANLIB $lib'
10483   fi
10484   ;;
10485
10486 aix4* | aix5*)
10487   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10488     test "$enable_shared" = yes && enable_static=no
10489   fi
10490     ;;
10491 esac
10492 echo "$as_me:$LINENO: result: $enable_shared" >&5
10493 echo "${ECHO_T}$enable_shared" >&6
10494
10495 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10496 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10497 # Make sure either enable_shared or enable_static is yes.
10498 test "$enable_shared" = yes || enable_static=yes
10499 echo "$as_me:$LINENO: result: $enable_static" >&5
10500 echo "${ECHO_T}$enable_static" >&6
10501
10502 # The else clause should only fire when bootstrapping the
10503 # libtool distribution, otherwise you forgot to ship ltmain.sh
10504 # with your package, and you will get complaints that there are
10505 # no rules to generate ltmain.sh.
10506 if test -f "$ltmain"; then
10507   # See if we are running on zsh, and set the options which allow our commands through
10508   # without removal of \ escapes.
10509   if test -n "${ZSH_VERSION+set}" ; then
10510     setopt NO_GLOB_SUBST
10511   fi
10512   # Now quote all the things that may contain metacharacters while being
10513   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10514   # variables and quote the copies for generation of the libtool script.
10515   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10516     SED SHELL STRIP \
10517     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10518     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10519     deplibs_check_method reload_flag reload_cmds need_locks \
10520     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10521     lt_cv_sys_global_symbol_to_c_name_address \
10522     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10523     old_postinstall_cmds old_postuninstall_cmds \
10524     compiler \
10525     CC \
10526     LD \
10527     lt_prog_compiler_wl \
10528     lt_prog_compiler_pic \
10529     lt_prog_compiler_static \
10530     lt_prog_compiler_no_builtin_flag \
10531     export_dynamic_flag_spec \
10532     thread_safe_flag_spec \
10533     whole_archive_flag_spec \
10534     enable_shared_with_static_runtimes \
10535     old_archive_cmds \
10536     old_archive_from_new_cmds \
10537     predep_objects \
10538     postdep_objects \
10539     predeps \
10540     postdeps \
10541     compiler_lib_search_path \
10542     archive_cmds \
10543     archive_expsym_cmds \
10544     postinstall_cmds \
10545     postuninstall_cmds \
10546     old_archive_from_expsyms_cmds \
10547     allow_undefined_flag \
10548     no_undefined_flag \
10549     export_symbols_cmds \
10550     hardcode_libdir_flag_spec \
10551     hardcode_libdir_flag_spec_ld \
10552     hardcode_libdir_separator \
10553     hardcode_automatic \
10554     module_cmds \
10555     module_expsym_cmds \
10556     lt_cv_prog_compiler_c_o \
10557     exclude_expsyms \
10558     include_expsyms; do
10559
10560     case $var in
10561     old_archive_cmds | \
10562     old_archive_from_new_cmds | \
10563     archive_cmds | \
10564     archive_expsym_cmds | \
10565     module_cmds | \
10566     module_expsym_cmds | \
10567     old_archive_from_expsyms_cmds | \
10568     export_symbols_cmds | \
10569     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10570     postinstall_cmds | postuninstall_cmds | \
10571     old_postinstall_cmds | old_postuninstall_cmds | \
10572     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10573       # Double-quote double-evaled strings.
10574       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10575       ;;
10576     *)
10577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10578       ;;
10579     esac
10580   done
10581
10582   case $lt_echo in
10583   *'\$0 --fallback-echo"')
10584     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10585     ;;
10586   esac
10587
10588 cfgfile="${ofile}T"
10589   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10590   $rm -f "$cfgfile"
10591   { echo "$as_me:$LINENO: creating $ofile" >&5
10592 echo "$as_me: creating $ofile" >&6;}
10593
10594   cat <<__EOF__ >> "$cfgfile"
10595 #! $SHELL
10596
10597 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10598 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10599 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10600 #
10601 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10602 # Free Software Foundation, Inc.
10603 #
10604 # This file is part of GNU Libtool:
10605 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10606 #
10607 # This program is free software; you can redistribute it and/or modify
10608 # it under the terms of the GNU General Public License as published by
10609 # the Free Software Foundation; either version 2 of the License, or
10610 # (at your option) any later version.
10611 #
10612 # This program is distributed in the hope that it will be useful, but
10613 # WITHOUT ANY WARRANTY; without even the implied warranty of
10614 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10615 # General Public License for more details.
10616 #
10617 # You should have received a copy of the GNU General Public License
10618 # along with this program; if not, write to the Free Software
10619 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10620 #
10621 # As a special exception to the GNU General Public License, if you
10622 # distribute this file as part of a program that contains a
10623 # configuration script generated by Autoconf, you may include it under
10624 # the same distribution terms that you use for the rest of that program.
10625
10626 # A sed program that does not truncate output.
10627 SED=$lt_SED
10628
10629 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10630 Xsed="$SED -e 1s/^X//"
10631
10632 # The HP-UX ksh and POSIX shell print the target directory to stdout
10633 # if CDPATH is set.
10634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10635
10636 # The names of the tagged configurations supported by this script.
10637 available_tags=
10638
10639 # ### BEGIN LIBTOOL CONFIG
10640
10641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10642
10643 # Shell to use when invoking shell scripts.
10644 SHELL=$lt_SHELL
10645
10646 # Whether or not to build shared libraries.
10647 build_libtool_libs=$enable_shared
10648
10649 # Whether or not to build static libraries.
10650 build_old_libs=$enable_static
10651
10652 # Whether or not to add -lc for building shared libraries.
10653 build_libtool_need_lc=$archive_cmds_need_lc
10654
10655 # Whether or not to disallow shared libs when runtime libs are static
10656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10657
10658 # Whether or not to optimize for fast installation.
10659 fast_install=$enable_fast_install
10660
10661 # The host system.
10662 host_alias=$host_alias
10663 host=$host
10664 host_os=$host_os
10665
10666 # The build system.
10667 build_alias=$build_alias
10668 build=$build
10669 build_os=$build_os
10670
10671 # An echo program that does not interpret backslashes.
10672 echo=$lt_echo
10673
10674 # The archiver.
10675 AR=$lt_AR
10676 AR_FLAGS=$lt_AR_FLAGS
10677
10678 # A C compiler.
10679 LTCC=$lt_LTCC
10680
10681 # LTCC compiler flags.
10682 LTCFLAGS=$lt_LTCFLAGS
10683
10684 # A language-specific compiler.
10685 CC=$lt_compiler
10686
10687 # Is the compiler the GNU C compiler?
10688 with_gcc=$GCC
10689
10690 # An ERE matcher.
10691 EGREP=$lt_EGREP
10692
10693 # The linker used to build libraries.
10694 LD=$lt_LD
10695
10696 # Whether we need hard or soft links.
10697 LN_S=$lt_LN_S
10698
10699 # A BSD-compatible nm program.
10700 NM=$lt_NM
10701
10702 # A symbol stripping program
10703 STRIP=$lt_STRIP
10704
10705 # Used to examine libraries when file_magic_cmd begins "file"
10706 MAGIC_CMD=$MAGIC_CMD
10707
10708 # Used on cygwin: DLL creation program.
10709 DLLTOOL="$DLLTOOL"
10710
10711 # Used on cygwin: object dumper.
10712 OBJDUMP="$OBJDUMP"
10713
10714 # Used on cygwin: assembler.
10715 AS="$AS"
10716
10717 # The name of the directory that contains temporary libtool files.
10718 objdir=$objdir
10719
10720 # How to create reloadable object files.
10721 reload_flag=$lt_reload_flag
10722 reload_cmds=$lt_reload_cmds
10723
10724 # How to pass a linker flag through the compiler.
10725 wl=$lt_lt_prog_compiler_wl
10726
10727 # Object file suffix (normally "o").
10728 objext="$ac_objext"
10729
10730 # Old archive suffix (normally "a").
10731 libext="$libext"
10732
10733 # Shared library suffix (normally ".so").
10734 shrext_cmds='$shrext_cmds'
10735
10736 # Executable file suffix (normally "").
10737 exeext="$exeext"
10738
10739 # Additional compiler flags for building library objects.
10740 pic_flag=$lt_lt_prog_compiler_pic
10741 pic_mode=$pic_mode
10742
10743 # What is the maximum length of a command?
10744 max_cmd_len=$lt_cv_sys_max_cmd_len
10745
10746 # Does compiler simultaneously support -c and -o options?
10747 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10748
10749 # Must we lock files when doing compilation?
10750 need_locks=$lt_need_locks
10751
10752 # Do we need the lib prefix for modules?
10753 need_lib_prefix=$need_lib_prefix
10754
10755 # Do we need a version for libraries?
10756 need_version=$need_version
10757
10758 # Whether dlopen is supported.
10759 dlopen_support=$enable_dlopen
10760
10761 # Whether dlopen of programs is supported.
10762 dlopen_self=$enable_dlopen_self
10763
10764 # Whether dlopen of statically linked programs is supported.
10765 dlopen_self_static=$enable_dlopen_self_static
10766
10767 # Compiler flag to prevent dynamic linking.
10768 link_static_flag=$lt_lt_prog_compiler_static
10769
10770 # Compiler flag to turn off builtin functions.
10771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10772
10773 # Compiler flag to allow reflexive dlopens.
10774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10775
10776 # Compiler flag to generate shared objects directly from archives.
10777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10778
10779 # Compiler flag to generate thread-safe objects.
10780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10781
10782 # Library versioning type.
10783 version_type=$version_type
10784
10785 # Format of library name prefix.
10786 libname_spec=$lt_libname_spec
10787
10788 # List of archive names.  First name is the real one, the rest are links.
10789 # The last name is the one that the linker finds with -lNAME.
10790 library_names_spec=$lt_library_names_spec
10791
10792 # The coded name of the library, if different from the real name.
10793 soname_spec=$lt_soname_spec
10794
10795 # Commands used to build and install an old-style archive.
10796 RANLIB=$lt_RANLIB
10797 old_archive_cmds=$lt_old_archive_cmds
10798 old_postinstall_cmds=$lt_old_postinstall_cmds
10799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10800
10801 # Create an old-style archive from a shared archive.
10802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10803
10804 # Create a temporary old-style archive to link instead of a shared archive.
10805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10806
10807 # Commands used to build and install a shared archive.
10808 archive_cmds=$lt_archive_cmds
10809 archive_expsym_cmds=$lt_archive_expsym_cmds
10810 postinstall_cmds=$lt_postinstall_cmds
10811 postuninstall_cmds=$lt_postuninstall_cmds
10812
10813 # Commands used to build a loadable module (assumed same as above if empty)
10814 module_cmds=$lt_module_cmds
10815 module_expsym_cmds=$lt_module_expsym_cmds
10816
10817 # Commands to strip libraries.
10818 old_striplib=$lt_old_striplib
10819 striplib=$lt_striplib
10820
10821 # Dependencies to place before the objects being linked to create a
10822 # shared library.
10823 predep_objects=$lt_predep_objects
10824
10825 # Dependencies to place after the objects being linked to create a
10826 # shared library.
10827 postdep_objects=$lt_postdep_objects
10828
10829 # Dependencies to place before the objects being linked to create a
10830 # shared library.
10831 predeps=$lt_predeps
10832
10833 # Dependencies to place after the objects being linked to create a
10834 # shared library.
10835 postdeps=$lt_postdeps
10836
10837 # The library search path used internally by the compiler when linking
10838 # a shared library.
10839 compiler_lib_search_path=$lt_compiler_lib_search_path
10840
10841 # Method to check whether dependent libraries are shared objects.
10842 deplibs_check_method=$lt_deplibs_check_method
10843
10844 # Command to use when deplibs_check_method == file_magic.
10845 file_magic_cmd=$lt_file_magic_cmd
10846
10847 # Flag that allows shared libraries with undefined symbols to be built.
10848 allow_undefined_flag=$lt_allow_undefined_flag
10849
10850 # Flag that forces no undefined symbols.
10851 no_undefined_flag=$lt_no_undefined_flag
10852
10853 # Commands used to finish a libtool library installation in a directory.
10854 finish_cmds=$lt_finish_cmds
10855
10856 # Same as above, but a single script fragment to be evaled but not shown.
10857 finish_eval=$lt_finish_eval
10858
10859 # Take the output of nm and produce a listing of raw symbols and C names.
10860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10861
10862 # Transform the output of nm in a proper C declaration
10863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10864
10865 # Transform the output of nm in a C name address pair
10866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10867
10868 # This is the shared library runtime path variable.
10869 runpath_var=$runpath_var
10870
10871 # This is the shared library path variable.
10872 shlibpath_var=$shlibpath_var
10873
10874 # Is shlibpath searched before the hard-coded library search path?
10875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10876
10877 # How to hardcode a shared library path into an executable.
10878 hardcode_action=$hardcode_action
10879
10880 # Whether we should hardcode library paths into libraries.
10881 hardcode_into_libs=$hardcode_into_libs
10882
10883 # Flag to hardcode \$libdir into a binary during linking.
10884 # This must work even if \$libdir does not exist.
10885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10886
10887 # If ld is used when linking, flag to hardcode \$libdir into
10888 # a binary during linking. This must work even if \$libdir does
10889 # not exist.
10890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10891
10892 # Whether we need a single -rpath flag with a separated argument.
10893 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10894
10895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10896 # resulting binary.
10897 hardcode_direct=$hardcode_direct
10898
10899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10900 # resulting binary.
10901 hardcode_minus_L=$hardcode_minus_L
10902
10903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10904 # the resulting binary.
10905 hardcode_shlibpath_var=$hardcode_shlibpath_var
10906
10907 # Set to yes if building a shared library automatically hardcodes DIR into the library
10908 # and all subsequent libraries and executables linked against it.
10909 hardcode_automatic=$hardcode_automatic
10910
10911 # Variables whose values should be saved in libtool wrapper scripts and
10912 # restored at relink time.
10913 variables_saved_for_relink="$variables_saved_for_relink"
10914
10915 # Whether libtool must link a program against all its dependency libraries.
10916 link_all_deplibs=$link_all_deplibs
10917
10918 # Compile-time system search path for libraries
10919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10920
10921 # Run-time system search path for libraries
10922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10923
10924 # Fix the shell variable \$srcfile for the compiler.
10925 fix_srcfile_path="$fix_srcfile_path"
10926
10927 # Set to yes if exported symbols are required.
10928 always_export_symbols=$always_export_symbols
10929
10930 # The commands to list exported symbols.
10931 export_symbols_cmds=$lt_export_symbols_cmds
10932
10933 # The commands to extract the exported symbol list from a shared archive.
10934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10935
10936 # Symbols that should not be listed in the preloaded symbols.
10937 exclude_expsyms=$lt_exclude_expsyms
10938
10939 # Symbols that must always be exported.
10940 include_expsyms=$lt_include_expsyms
10941
10942 # ### END LIBTOOL CONFIG
10943
10944 __EOF__
10945
10946
10947   case $host_os in
10948   aix3*)
10949     cat <<\EOF >> "$cfgfile"
10950
10951 # AIX sometimes has problems with the GCC collect2 program.  For some
10952 # reason, if we set the COLLECT_NAMES environment variable, the problems
10953 # vanish in a puff of smoke.
10954 if test "X${COLLECT_NAMES+set}" != Xset; then
10955   COLLECT_NAMES=
10956   export COLLECT_NAMES
10957 fi
10958 EOF
10959     ;;
10960   esac
10961
10962   # We use sed instead of cat because bash on DJGPP gets confused if
10963   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10964   # text mode, it properly converts lines to CR/LF.  This bash problem
10965   # is reportedly fixed, but why not run on old versions too?
10966   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10967
10968   mv -f "$cfgfile" "$ofile" || \
10969     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10970   chmod +x "$ofile"
10971
10972 else
10973   # If there is no Makefile yet, we rely on a make rule to execute
10974   # `config.status --recheck' to rerun these tests and create the
10975   # libtool script then.
10976   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10977   if test -f "$ltmain_in"; then
10978     test -f Makefile && make "$ltmain"
10979   fi
10980 fi
10981
10982
10983 ac_ext=c
10984 ac_cpp='$CPP $CPPFLAGS'
10985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988
10989 CC="$lt_save_CC"
10990
10991
10992 # Check whether --with-tags or --without-tags was given.
10993 if test "${with_tags+set}" = set; then
10994   withval="$with_tags"
10995   tagnames="$withval"
10996 fi;
10997
10998 if test -f "$ltmain" && test -n "$tagnames"; then
10999   if test ! -f "${ofile}"; then
11000     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11001 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11002   fi
11003
11004   if test -z "$LTCC"; then
11005     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11006     if test -z "$LTCC"; then
11007       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11008 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11009     else
11010       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11011 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11012     fi
11013   fi
11014   if test -z "$LTCFLAGS"; then
11015     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11016   fi
11017
11018   # Extract list of available tagged configurations in $ofile.
11019   # Note that this assumes the entire list is on one line.
11020   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11021
11022   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11023   for tagname in $tagnames; do
11024     IFS="$lt_save_ifs"
11025     # Check whether tagname contains only valid characters
11026     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11027     "") ;;
11028     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11029 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11030    { (exit 1); exit 1; }; }
11031         ;;
11032     esac
11033
11034     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11035     then
11036       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11037 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11038    { (exit 1); exit 1; }; }
11039     fi
11040
11041     # Update the list of available tags.
11042     if test -n "$tagname"; then
11043       echo appending configuration tag \"$tagname\" to $ofile
11044
11045       case $tagname in
11046       CXX)
11047         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11048             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11049             (test "X$CXX" != "Xg++"))) ; then
11050           ac_ext=cc
11051 ac_cpp='$CXXCPP $CPPFLAGS'
11052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11055
11056
11057
11058
11059 archive_cmds_need_lc_CXX=no
11060 allow_undefined_flag_CXX=
11061 always_export_symbols_CXX=no
11062 archive_expsym_cmds_CXX=
11063 export_dynamic_flag_spec_CXX=
11064 hardcode_direct_CXX=no
11065 hardcode_libdir_flag_spec_CXX=
11066 hardcode_libdir_flag_spec_ld_CXX=
11067 hardcode_libdir_separator_CXX=
11068 hardcode_minus_L_CXX=no
11069 hardcode_shlibpath_var_CXX=unsupported
11070 hardcode_automatic_CXX=no
11071 module_cmds_CXX=
11072 module_expsym_cmds_CXX=
11073 link_all_deplibs_CXX=unknown
11074 old_archive_cmds_CXX=$old_archive_cmds
11075 no_undefined_flag_CXX=
11076 whole_archive_flag_spec_CXX=
11077 enable_shared_with_static_runtimes_CXX=no
11078
11079 # Dependencies to place before and after the object being linked:
11080 predep_objects_CXX=
11081 postdep_objects_CXX=
11082 predeps_CXX=
11083 postdeps_CXX=
11084 compiler_lib_search_path_CXX=
11085
11086 # Source file extension for C++ test sources.
11087 ac_ext=cpp
11088
11089 # Object file extension for compiled C++ test sources.
11090 objext=o
11091 objext_CXX=$objext
11092
11093 # Code to be used in simple compile tests
11094 lt_simple_compile_test_code="int some_variable = 0;\n"
11095
11096 # Code to be used in simple link tests
11097 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11098
11099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11100
11101 # If no C compiler was specified, use CC.
11102 LTCC=${LTCC-"$CC"}
11103
11104 # If no C compiler flags were specified, use CFLAGS.
11105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11106
11107 # Allow CC to be a program name with arguments.
11108 compiler=$CC
11109
11110
11111 # save warnings/boilerplate of simple test code
11112 ac_outfile=conftest.$ac_objext
11113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11115 _lt_compiler_boilerplate=`cat conftest.err`
11116 $rm conftest*
11117
11118 ac_outfile=conftest.$ac_objext
11119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11121 _lt_linker_boilerplate=`cat conftest.err`
11122 $rm conftest*
11123
11124
11125 # Allow CC to be a program name with arguments.
11126 lt_save_CC=$CC
11127 lt_save_LD=$LD
11128 lt_save_GCC=$GCC
11129 GCC=$GXX
11130 lt_save_with_gnu_ld=$with_gnu_ld
11131 lt_save_path_LD=$lt_cv_path_LD
11132 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11133   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11134 else
11135   $as_unset lt_cv_prog_gnu_ld
11136 fi
11137 if test -n "${lt_cv_path_LDCXX+set}"; then
11138   lt_cv_path_LD=$lt_cv_path_LDCXX
11139 else
11140   $as_unset lt_cv_path_LD
11141 fi
11142 test -z "${LDCXX+set}" || LD=$LDCXX
11143 CC=${CXX-"c++"}
11144 compiler=$CC
11145 compiler_CXX=$CC
11146 for cc_temp in $compiler""; do
11147   case $cc_temp in
11148     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11149     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11150     \-*) ;;
11151     *) break;;
11152   esac
11153 done
11154 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11155
11156
11157 # We don't want -fno-exception wen compiling C++ code, so set the
11158 # no_builtin_flag separately
11159 if test "$GXX" = yes; then
11160   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11161 else
11162   lt_prog_compiler_no_builtin_flag_CXX=
11163 fi
11164
11165 if test "$GXX" = yes; then
11166   # Set up default GNU C++ configuration
11167
11168
11169 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11170 if test "${with_gnu_ld+set}" = set; then
11171   withval="$with_gnu_ld"
11172   test "$withval" = no || with_gnu_ld=yes
11173 else
11174   with_gnu_ld=no
11175 fi;
11176 ac_prog=ld
11177 if test "$GCC" = yes; then
11178   # Check if gcc -print-prog-name=ld gives a path.
11179   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11180 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11181   case $host in
11182   *-*-mingw*)
11183     # gcc leaves a trailing carriage return which upsets mingw
11184     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11185   *)
11186     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11187   esac
11188   case $ac_prog in
11189     # Accept absolute paths.
11190     [\\/]* | ?:[\\/]*)
11191       re_direlt='/[^/][^/]*/\.\./'
11192       # Canonicalize the pathname of ld
11193       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11194       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11195         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11196       done
11197       test -z "$LD" && LD="$ac_prog"
11198       ;;
11199   "")
11200     # If it fails, then pretend we aren't using GCC.
11201     ac_prog=ld
11202     ;;
11203   *)
11204     # If it is relative, then search for the first ld in PATH.
11205     with_gnu_ld=unknown
11206     ;;
11207   esac
11208 elif test "$with_gnu_ld" = yes; then
11209   echo "$as_me:$LINENO: checking for GNU ld" >&5
11210 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11211 else
11212   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11213 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11214 fi
11215 if test "${lt_cv_path_LD+set}" = set; then
11216   echo $ECHO_N "(cached) $ECHO_C" >&6
11217 else
11218   if test -z "$LD"; then
11219   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11220   for ac_dir in $PATH; do
11221     IFS="$lt_save_ifs"
11222     test -z "$ac_dir" && ac_dir=.
11223     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11224       lt_cv_path_LD="$ac_dir/$ac_prog"
11225       # Check to see if the program is GNU ld.  I'd rather use --version,
11226       # but apparently some variants of GNU ld only accept -v.
11227       # Break only if it was the GNU/non-GNU ld that we prefer.
11228       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11229       *GNU* | *'with BFD'*)
11230         test "$with_gnu_ld" != no && break
11231         ;;
11232       *)
11233         test "$with_gnu_ld" != yes && break
11234         ;;
11235       esac
11236     fi
11237   done
11238   IFS="$lt_save_ifs"
11239 else
11240   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11241 fi
11242 fi
11243
11244 LD="$lt_cv_path_LD"
11245 if test -n "$LD"; then
11246   echo "$as_me:$LINENO: result: $LD" >&5
11247 echo "${ECHO_T}$LD" >&6
11248 else
11249   echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11251 fi
11252 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11253 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11254    { (exit 1); exit 1; }; }
11255 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11256 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11257 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11261 case `$LD -v 2>&1 </dev/null` in
11262 *GNU* | *'with BFD'*)
11263   lt_cv_prog_gnu_ld=yes
11264   ;;
11265 *)
11266   lt_cv_prog_gnu_ld=no
11267   ;;
11268 esac
11269 fi
11270 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11271 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11272 with_gnu_ld=$lt_cv_prog_gnu_ld
11273
11274
11275
11276   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11277   # archiving commands below assume that GNU ld is being used.
11278   if test "$with_gnu_ld" = yes; then
11279     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11280     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11281
11282     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11283     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11284
11285     # If archive_cmds runs LD, not CC, wlarc should be empty
11286     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11287     #     investigate it a little bit more. (MM)
11288     wlarc='${wl}'
11289
11290     # ancient GNU ld didn't support --whole-archive et. al.
11291     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11292         grep 'no-whole-archive' > /dev/null; then
11293       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11294     else
11295       whole_archive_flag_spec_CXX=
11296     fi
11297   else
11298     with_gnu_ld=no
11299     wlarc=
11300
11301     # A generic and very simple default shared library creation
11302     # command for GNU C++ for the case where it uses the native
11303     # linker, instead of GNU ld.  If possible, this setting should
11304     # overridden to take advantage of the native linker features on
11305     # the platform it is being used on.
11306     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11307   fi
11308
11309   # Commands to make compiler produce verbose output that lists
11310   # what "hidden" libraries, object files and flags are used when
11311   # linking a shared library.
11312   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11313
11314 else
11315   GXX=no
11316   with_gnu_ld=no
11317   wlarc=
11318 fi
11319
11320 # PORTME: fill in a description of your system's C++ link characteristics
11321 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11322 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11323 ld_shlibs_CXX=yes
11324 case $host_os in
11325   aix3*)
11326     # FIXME: insert proper C++ library support
11327     ld_shlibs_CXX=no
11328     ;;
11329   aix4* | aix5*)
11330     if test "$host_cpu" = ia64; then
11331       # On IA64, the linker does run time linking by default, so we don't
11332       # have to do anything special.
11333       aix_use_runtimelinking=no
11334       exp_sym_flag='-Bexport'
11335       no_entry_flag=""
11336     else
11337       aix_use_runtimelinking=no
11338
11339       # Test if we are trying to use run time linking or normal
11340       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11341       # need to do runtime linking.
11342       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11343         for ld_flag in $LDFLAGS; do
11344           case $ld_flag in
11345           *-brtl*)
11346             aix_use_runtimelinking=yes
11347             break
11348             ;;
11349           esac
11350         done
11351         ;;
11352       esac
11353
11354       exp_sym_flag='-bexport'
11355       no_entry_flag='-bnoentry'
11356     fi
11357
11358     # When large executables or shared objects are built, AIX ld can
11359     # have problems creating the table of contents.  If linking a library
11360     # or program results in "error TOC overflow" add -mminimal-toc to
11361     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11362     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11363
11364     archive_cmds_CXX=''
11365     hardcode_direct_CXX=yes
11366     hardcode_libdir_separator_CXX=':'
11367     link_all_deplibs_CXX=yes
11368
11369     if test "$GXX" = yes; then
11370       case $host_os in aix4.[012]|aix4.[012].*)
11371       # We only want to do this on AIX 4.2 and lower, the check
11372       # below for broken collect2 doesn't work under 4.3+
11373         collect2name=`${CC} -print-prog-name=collect2`
11374         if test -f "$collect2name" && \
11375            strings "$collect2name" | grep resolve_lib_name >/dev/null
11376         then
11377           # We have reworked collect2
11378           hardcode_direct_CXX=yes
11379         else
11380           # We have old collect2
11381           hardcode_direct_CXX=unsupported
11382           # It fails to find uninstalled libraries when the uninstalled
11383           # path is not listed in the libpath.  Setting hardcode_minus_L
11384           # to unsupported forces relinking
11385           hardcode_minus_L_CXX=yes
11386           hardcode_libdir_flag_spec_CXX='-L$libdir'
11387           hardcode_libdir_separator_CXX=
11388         fi
11389         ;;
11390       esac
11391       shared_flag='-shared'
11392       if test "$aix_use_runtimelinking" = yes; then
11393         shared_flag="$shared_flag "'${wl}-G'
11394       fi
11395     else
11396       # not using gcc
11397       if test "$host_cpu" = ia64; then
11398         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11399         # chokes on -Wl,-G. The following line is correct:
11400         shared_flag='-G'
11401       else
11402         if test "$aix_use_runtimelinking" = yes; then
11403           shared_flag='${wl}-G'
11404         else
11405           shared_flag='${wl}-bM:SRE'
11406         fi
11407       fi
11408     fi
11409
11410     # It seems that -bexpall does not export symbols beginning with
11411     # underscore (_), so it is better to generate a list of symbols to export.
11412     always_export_symbols_CXX=yes
11413     if test "$aix_use_runtimelinking" = yes; then
11414       # Warning - without using the other runtime loading flags (-brtl),
11415       # -berok will link without error, but may produce a broken library.
11416       allow_undefined_flag_CXX='-berok'
11417       # Determine the default libpath from the value encoded in an empty executable.
11418       cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h.  */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h.  */
11424
11425 int
11426 main ()
11427 {
11428
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435   (eval $ac_link) 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; } &&
11448          { ac_try='test -s conftest$ac_exeext'
11449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450   (eval $ac_try) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; }; then
11454
11455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11456 }'`
11457 # Check for a 64-bit object if we didn't find anything.
11458 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11459 }'`; fi
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 fi
11465 rm -f conftest.err conftest.$ac_objext \
11466       conftest$ac_exeext conftest.$ac_ext
11467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11468
11469       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11470
11471       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11472      else
11473       if test "$host_cpu" = ia64; then
11474         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11475         allow_undefined_flag_CXX="-z nodefs"
11476         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11477       else
11478         # Determine the default libpath from the value encoded in an empty executable.
11479         cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h.  */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h.  */
11485
11486 int
11487 main ()
11488 {
11489
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496   (eval $ac_link) 2>conftest.er1
11497   ac_status=$?
11498   grep -v '^ *+' conftest.er1 >conftest.err
11499   rm -f conftest.er1
11500   cat conftest.err >&5
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); } &&
11503          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; } &&
11509          { ac_try='test -s conftest$ac_exeext'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515
11516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11517 }'`
11518 # Check for a 64-bit object if we didn't find anything.
11519 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11520 }'`; fi
11521 else
11522   echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 fi
11526 rm -f conftest.err conftest.$ac_objext \
11527       conftest$ac_exeext conftest.$ac_ext
11528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11529
11530         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11531         # Warning - without using the other run time loading flags,
11532         # -berok will link without error, but may produce a broken library.
11533         no_undefined_flag_CXX=' ${wl}-bernotok'
11534         allow_undefined_flag_CXX=' ${wl}-berok'
11535         # Exported symbols can be pulled into shared objects from archives
11536         whole_archive_flag_spec_CXX='$convenience'
11537         archive_cmds_need_lc_CXX=yes
11538         # This is similar to how AIX traditionally builds its shared libraries.
11539         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11540       fi
11541     fi
11542     ;;
11543
11544   beos*)
11545     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11546       allow_undefined_flag_CXX=unsupported
11547       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11548       # support --undefined.  This deserves some investigation.  FIXME
11549       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11550     else
11551       ld_shlibs_CXX=no
11552     fi
11553     ;;
11554
11555   chorus*)
11556     case $cc_basename in
11557       *)
11558         # FIXME: insert proper C++ library support
11559         ld_shlibs_CXX=no
11560         ;;
11561     esac
11562     ;;
11563
11564   cygwin* | mingw* | pw32*)
11565     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11566     # as there is no search path for DLLs.
11567     hardcode_libdir_flag_spec_CXX='-L$libdir'
11568     allow_undefined_flag_CXX=unsupported
11569     always_export_symbols_CXX=no
11570     enable_shared_with_static_runtimes_CXX=yes
11571
11572     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11573       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11574       # If the export-symbols file already is a .def file (1st line
11575       # is EXPORTS), use it as is; otherwise, prepend...
11576       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11577         cp $export_symbols $output_objdir/$soname.def;
11578       else
11579         echo EXPORTS > $output_objdir/$soname.def;
11580         cat $export_symbols >> $output_objdir/$soname.def;
11581       fi~
11582       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11583     else
11584       ld_shlibs_CXX=no
11585     fi
11586   ;;
11587       darwin* | rhapsody*)
11588         case $host_os in
11589         rhapsody* | darwin1.[012])
11590          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11591          ;;
11592        *) # Darwin 1.3 on
11593          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11594            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11595          else
11596            case ${MACOSX_DEPLOYMENT_TARGET} in
11597              10.[012])
11598                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11599                ;;
11600              10.*)
11601                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11602                ;;
11603            esac
11604          fi
11605          ;;
11606         esac
11607       archive_cmds_need_lc_CXX=no
11608       hardcode_direct_CXX=no
11609       hardcode_automatic_CXX=yes
11610       hardcode_shlibpath_var_CXX=unsupported
11611       whole_archive_flag_spec_CXX=''
11612       link_all_deplibs_CXX=yes
11613
11614     if test "$GXX" = yes ; then
11615       lt_int_apple_cc_single_mod=no
11616       output_verbose_link_cmd='echo'
11617       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11618        lt_int_apple_cc_single_mod=yes
11619       fi
11620       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11621        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11622       else
11623           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11624         fi
11625         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11626         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11627           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11628             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11629           else
11630             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11631           fi
11632             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11633       else
11634       case $cc_basename in
11635         xlc*)
11636          output_verbose_link_cmd='echo'
11637           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11638           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11639           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11640           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11641           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11642           ;;
11643        *)
11644          ld_shlibs_CXX=no
11645           ;;
11646       esac
11647       fi
11648         ;;
11649
11650   dgux*)
11651     case $cc_basename in
11652       ec++*)
11653         # FIXME: insert proper C++ library support
11654         ld_shlibs_CXX=no
11655         ;;
11656       ghcx*)
11657         # Green Hills C++ Compiler
11658         # FIXME: insert proper C++ library support
11659         ld_shlibs_CXX=no
11660         ;;
11661       *)
11662         # FIXME: insert proper C++ library support
11663         ld_shlibs_CXX=no
11664         ;;
11665     esac
11666     ;;
11667   freebsd[12]*)
11668     # C++ shared libraries reported to be fairly broken before switch to ELF
11669     ld_shlibs_CXX=no
11670     ;;
11671   freebsd-elf*)
11672     archive_cmds_need_lc_CXX=no
11673     ;;
11674   freebsd* | dragonfly*)
11675     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11676     # conventions
11677     ld_shlibs_CXX=yes
11678     ;;
11679   gnu*)
11680     ;;
11681   hpux9*)
11682     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11683     hardcode_libdir_separator_CXX=:
11684     export_dynamic_flag_spec_CXX='${wl}-E'
11685     hardcode_direct_CXX=yes
11686     hardcode_minus_L_CXX=yes # Not in the search PATH,
11687                                 # but as the default
11688                                 # location of the library.
11689
11690     case $cc_basename in
11691     CC*)
11692       # FIXME: insert proper C++ library support
11693       ld_shlibs_CXX=no
11694       ;;
11695     aCC*)
11696       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11697       # Commands to make compiler produce verbose output that lists
11698       # what "hidden" libraries, object files and flags are used when
11699       # linking a shared library.
11700       #
11701       # There doesn't appear to be a way to prevent this compiler from
11702       # explicitly linking system object files so we need to strip them
11703       # from the output so that they don't get included in the library
11704       # dependencies.
11705       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11706       ;;
11707     *)
11708       if test "$GXX" = yes; then
11709         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11710       else
11711         # FIXME: insert proper C++ library support
11712         ld_shlibs_CXX=no
11713       fi
11714       ;;
11715     esac
11716     ;;
11717   hpux10*|hpux11*)
11718     if test $with_gnu_ld = no; then
11719       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11720       hardcode_libdir_separator_CXX=:
11721
11722       case $host_cpu in
11723       hppa*64*|ia64*)
11724         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11725         ;;
11726       *)
11727         export_dynamic_flag_spec_CXX='${wl}-E'
11728         ;;
11729       esac
11730     fi
11731     case $host_cpu in
11732     hppa*64*|ia64*)
11733       hardcode_direct_CXX=no
11734       hardcode_shlibpath_var_CXX=no
11735       ;;
11736     *)
11737       hardcode_direct_CXX=yes
11738       hardcode_minus_L_CXX=yes # Not in the search PATH,
11739                                               # but as the default
11740                                               # location of the library.
11741       ;;
11742     esac
11743
11744     case $cc_basename in
11745       CC*)
11746         # FIXME: insert proper C++ library support
11747         ld_shlibs_CXX=no
11748         ;;
11749       aCC*)
11750         case $host_cpu in
11751         hppa*64*)
11752           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11753           ;;
11754         ia64*)
11755           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11756           ;;
11757         *)
11758           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11759           ;;
11760         esac
11761         # Commands to make compiler produce verbose output that lists
11762         # what "hidden" libraries, object files and flags are used when
11763         # linking a shared library.
11764         #
11765         # There doesn't appear to be a way to prevent this compiler from
11766         # explicitly linking system object files so we need to strip them
11767         # from the output so that they don't get included in the library
11768         # dependencies.
11769         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11770         ;;
11771       *)
11772         if test "$GXX" = yes; then
11773           if test $with_gnu_ld = no; then
11774             case $host_cpu in
11775             hppa*64*)
11776               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11777               ;;
11778             ia64*)
11779               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11780               ;;
11781             *)
11782               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11783               ;;
11784             esac
11785           fi
11786         else
11787           # FIXME: insert proper C++ library support
11788           ld_shlibs_CXX=no
11789         fi
11790         ;;
11791     esac
11792     ;;
11793   interix3*)
11794     hardcode_direct_CXX=no
11795     hardcode_shlibpath_var_CXX=no
11796     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11797     export_dynamic_flag_spec_CXX='${wl}-E'
11798     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11799     # Instead, shared libraries are loaded at an image base (0x10000000 by
11800     # default) and relocated if they conflict, which is a slow very memory
11801     # consuming and fragmenting process.  To avoid this, we pick a random,
11802     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11803     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11804     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11805     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11806     ;;
11807   irix5* | irix6*)
11808     case $cc_basename in
11809       CC*)
11810         # SGI C++
11811         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11812
11813         # Archives containing C++ object files must be created using
11814         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11815         # necessary to make sure instantiated templates are included
11816         # in the archive.
11817         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11818         ;;
11819       *)
11820         if test "$GXX" = yes; then
11821           if test "$with_gnu_ld" = no; then
11822             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11823           else
11824             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11825           fi
11826         fi
11827         link_all_deplibs_CXX=yes
11828         ;;
11829     esac
11830     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11831     hardcode_libdir_separator_CXX=:
11832     ;;
11833   linux* | k*bsd*-gnu)
11834     case $cc_basename in
11835       KCC*)
11836         # Kuck and Associates, Inc. (KAI) C++ Compiler
11837
11838         # KCC will only create a shared library if the output file
11839         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11840         # to its proper name (with version) after linking.
11841         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11842         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11843         # Commands to make compiler produce verbose output that lists
11844         # what "hidden" libraries, object files and flags are used when
11845         # linking a shared library.
11846         #
11847         # There doesn't appear to be a way to prevent this compiler from
11848         # explicitly linking system object files so we need to strip them
11849         # from the output so that they don't get included in the library
11850         # dependencies.
11851         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11852
11853         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11854         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11855
11856         # Archives containing C++ object files must be created using
11857         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11858         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11859         ;;
11860       icpc*)
11861         # Intel C++
11862         with_gnu_ld=yes
11863         # version 8.0 and above of icpc choke on multiply defined symbols
11864         # if we add $predep_objects and $postdep_objects, however 7.1 and
11865         # earlier do not add the objects themselves.
11866         case `$CC -V 2>&1` in
11867         *"Version 7."*)
11868           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11870           ;;
11871         *)  # Version 8.0 or newer
11872           tmp_idyn=
11873           case $host_cpu in
11874             ia64*) tmp_idyn=' -i_dynamic';;
11875           esac
11876           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11877           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11878           ;;
11879         esac
11880         archive_cmds_need_lc_CXX=no
11881         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11882         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11883         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11884         ;;
11885       pgCC*)
11886         # Portland Group C++ compiler
11887         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11888         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11889
11890         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11891         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11892         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11893         ;;
11894       cxx*)
11895         # Compaq C++
11896         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11897         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11898
11899         runpath_var=LD_RUN_PATH
11900         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11901         hardcode_libdir_separator_CXX=:
11902
11903         # Commands to make compiler produce verbose output that lists
11904         # what "hidden" libraries, object files and flags are used when
11905         # linking a shared library.
11906         #
11907         # There doesn't appear to be a way to prevent this compiler from
11908         # explicitly linking system object files so we need to strip them
11909         # from the output so that they don't get included in the library
11910         # dependencies.
11911         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11912         ;;
11913     esac
11914     ;;
11915   lynxos*)
11916     # FIXME: insert proper C++ library support
11917     ld_shlibs_CXX=no
11918     ;;
11919   m88k*)
11920     # FIXME: insert proper C++ library support
11921     ld_shlibs_CXX=no
11922     ;;
11923   mvs*)
11924     case $cc_basename in
11925       cxx*)
11926         # FIXME: insert proper C++ library support
11927         ld_shlibs_CXX=no
11928         ;;
11929       *)
11930         # FIXME: insert proper C++ library support
11931         ld_shlibs_CXX=no
11932         ;;
11933     esac
11934     ;;
11935   netbsd* | netbsdelf*-gnu)
11936     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11937       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11938       wlarc=
11939       hardcode_libdir_flag_spec_CXX='-R$libdir'
11940       hardcode_direct_CXX=yes
11941       hardcode_shlibpath_var_CXX=no
11942     fi
11943     # Workaround some broken pre-1.5 toolchains
11944     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11945     ;;
11946   openbsd2*)
11947     # C++ shared libraries are fairly broken
11948     ld_shlibs_CXX=no
11949     ;;
11950   openbsd*)
11951     hardcode_direct_CXX=yes
11952     hardcode_shlibpath_var_CXX=no
11953     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11954     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11955     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11956       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11957       export_dynamic_flag_spec_CXX='${wl}-E'
11958       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11959     fi
11960     output_verbose_link_cmd='echo'
11961     ;;
11962   osf3*)
11963     case $cc_basename in
11964       KCC*)
11965         # Kuck and Associates, Inc. (KAI) C++ Compiler
11966
11967         # KCC will only create a shared library if the output file
11968         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11969         # to its proper name (with version) after linking.
11970         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11971
11972         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11973         hardcode_libdir_separator_CXX=:
11974
11975         # Archives containing C++ object files must be created using
11976         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11977         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11978
11979         ;;
11980       RCC*)
11981         # Rational C++ 2.4.1
11982         # FIXME: insert proper C++ library support
11983         ld_shlibs_CXX=no
11984         ;;
11985       cxx*)
11986         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11987         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11988
11989         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11990         hardcode_libdir_separator_CXX=:
11991
11992         # Commands to make compiler produce verbose output that lists
11993         # what "hidden" libraries, object files and flags are used when
11994         # linking a shared library.
11995         #
11996         # There doesn't appear to be a way to prevent this compiler from
11997         # explicitly linking system object files so we need to strip them
11998         # from the output so that they don't get included in the library
11999         # dependencies.
12000         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12001         ;;
12002       *)
12003         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12004           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12005           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12006
12007           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12008           hardcode_libdir_separator_CXX=:
12009
12010           # Commands to make compiler produce verbose output that lists
12011           # what "hidden" libraries, object files and flags are used when
12012           # linking a shared library.
12013           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12014
12015         else
12016           # FIXME: insert proper C++ library support
12017           ld_shlibs_CXX=no
12018         fi
12019         ;;
12020     esac
12021     ;;
12022   osf4* | osf5*)
12023     case $cc_basename in
12024       KCC*)
12025         # Kuck and Associates, Inc. (KAI) C++ Compiler
12026
12027         # KCC will only create a shared library if the output file
12028         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029         # to its proper name (with version) after linking.
12030         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12031
12032         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12033         hardcode_libdir_separator_CXX=:
12034
12035         # Archives containing C++ object files must be created using
12036         # the KAI C++ compiler.
12037         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12038         ;;
12039       RCC*)
12040         # Rational C++ 2.4.1
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044       cxx*)
12045         allow_undefined_flag_CXX=' -expect_unresolved \*'
12046         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12047         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12048           echo "-hidden">> $lib.exp~
12049           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12050           $rm $lib.exp'
12051
12052         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12053         hardcode_libdir_separator_CXX=:
12054
12055         # Commands to make compiler produce verbose output that lists
12056         # what "hidden" libraries, object files and flags are used when
12057         # linking a shared library.
12058         #
12059         # There doesn't appear to be a way to prevent this compiler from
12060         # explicitly linking system object files so we need to strip them
12061         # from the output so that they don't get included in the library
12062         # dependencies.
12063         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12064         ;;
12065       *)
12066         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12067           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12068          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12069
12070           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12071           hardcode_libdir_separator_CXX=:
12072
12073           # Commands to make compiler produce verbose output that lists
12074           # what "hidden" libraries, object files and flags are used when
12075           # linking a shared library.
12076           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12077
12078         else
12079           # FIXME: insert proper C++ library support
12080           ld_shlibs_CXX=no
12081         fi
12082         ;;
12083     esac
12084     ;;
12085   psos*)
12086     # FIXME: insert proper C++ library support
12087     ld_shlibs_CXX=no
12088     ;;
12089   sunos4*)
12090     case $cc_basename in
12091       CC*)
12092         # Sun C++ 4.x
12093         # FIXME: insert proper C++ library support
12094         ld_shlibs_CXX=no
12095         ;;
12096       lcc*)
12097         # Lucid
12098         # FIXME: insert proper C++ library support
12099         ld_shlibs_CXX=no
12100         ;;
12101       *)
12102         # FIXME: insert proper C++ library support
12103         ld_shlibs_CXX=no
12104         ;;
12105     esac
12106     ;;
12107   solaris*)
12108     case $cc_basename in
12109       CC*)
12110         # Sun C++ 4.2, 5.x and Centerline C++
12111         archive_cmds_need_lc_CXX=yes
12112         no_undefined_flag_CXX=' -zdefs'
12113         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12114         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12115         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12116
12117         hardcode_libdir_flag_spec_CXX='-R$libdir'
12118         hardcode_shlibpath_var_CXX=no
12119         case $host_os in
12120           solaris2.[0-5] | solaris2.[0-5].*) ;;
12121           *)
12122             # The C++ compiler is used as linker so we must use $wl
12123             # flag to pass the commands to the underlying system
12124             # linker. We must also pass each convience library through
12125             # to the system linker between allextract/defaultextract.
12126             # The C++ compiler will combine linker options so we
12127             # cannot just pass the convience library names through
12128             # without $wl.
12129             # Supported since Solaris 2.6 (maybe 2.5.1?)
12130             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12131             ;;
12132         esac
12133         link_all_deplibs_CXX=yes
12134
12135         output_verbose_link_cmd='echo'
12136
12137         # Archives containing C++ object files must be created using
12138         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12139         # necessary to make sure instantiated templates are included
12140         # in the archive.
12141         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12142         ;;
12143       gcx*)
12144         # Green Hills C++ Compiler
12145         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12146
12147         # The C++ compiler must be used to create the archive.
12148         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12149         ;;
12150       *)
12151         # GNU C++ compiler with Solaris linker
12152         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12153           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12154           if $CC --version | grep -v '^2\.7' > /dev/null; then
12155             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12156             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12157                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12158
12159             # Commands to make compiler produce verbose output that lists
12160             # what "hidden" libraries, object files and flags are used when
12161             # linking a shared library.
12162             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12163           else
12164             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12165             # platform.
12166             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12167             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12168                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12169
12170             # Commands to make compiler produce verbose output that lists
12171             # what "hidden" libraries, object files and flags are used when
12172             # linking a shared library.
12173             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12174           fi
12175
12176           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12177         fi
12178         ;;
12179     esac
12180     ;;
12181   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12182     no_undefined_flag_CXX='${wl}-z,text'
12183     archive_cmds_need_lc_CXX=no
12184     hardcode_shlibpath_var_CXX=no
12185     runpath_var='LD_RUN_PATH'
12186
12187     case $cc_basename in
12188       CC*)
12189         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12190         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12191         ;;
12192       *)
12193         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12194         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12195         ;;
12196     esac
12197     ;;
12198   sysv5* | sco3.2v5* | sco5v6*)
12199     # Note: We can NOT use -z defs as we might desire, because we do not
12200     # link with -lc, and that would cause any symbols used from libc to
12201     # always be unresolved, which means just about no library would
12202     # ever link correctly.  If we're not using GNU ld we use -z text
12203     # though, which does catch some bad symbols but isn't as heavy-handed
12204     # as -z defs.
12205     # For security reasons, it is highly recommended that you always
12206     # use absolute paths for naming shared libraries, and exclude the
12207     # DT_RUNPATH tag from executables and libraries.  But doing so
12208     # requires that you compile everything twice, which is a pain.
12209     # So that behaviour is only enabled if SCOABSPATH is set to a
12210     # non-empty value in the environment.  Most likely only useful for
12211     # creating official distributions of packages.
12212     # This is a hack until libtool officially supports absolute path
12213     # names for shared libraries.
12214     no_undefined_flag_CXX='${wl}-z,text'
12215     allow_undefined_flag_CXX='${wl}-z,nodefs'
12216     archive_cmds_need_lc_CXX=no
12217     hardcode_shlibpath_var_CXX=no
12218     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12219     hardcode_libdir_separator_CXX=':'
12220     link_all_deplibs_CXX=yes
12221     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12222     runpath_var='LD_RUN_PATH'
12223
12224     case $cc_basename in
12225       CC*)
12226         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12227         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12228         ;;
12229       *)
12230         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12231         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12232         ;;
12233     esac
12234     ;;
12235   tandem*)
12236     case $cc_basename in
12237       NCC*)
12238         # NonStop-UX NCC 3.20
12239         # FIXME: insert proper C++ library support
12240         ld_shlibs_CXX=no
12241         ;;
12242       *)
12243         # FIXME: insert proper C++ library support
12244         ld_shlibs_CXX=no
12245         ;;
12246     esac
12247     ;;
12248   vxworks*)
12249     # FIXME: insert proper C++ library support
12250     ld_shlibs_CXX=no
12251     ;;
12252   *)
12253     # FIXME: insert proper C++ library support
12254     ld_shlibs_CXX=no
12255     ;;
12256 esac
12257 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12258 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12259 test "$ld_shlibs_CXX" = no && can_build_shared=no
12260
12261 GCC_CXX="$GXX"
12262 LD_CXX="$LD"
12263
12264
12265 cat > conftest.$ac_ext <<EOF
12266 class Foo
12267 {
12268 public:
12269   Foo (void) { a = 0; }
12270 private:
12271   int a;
12272 };
12273 EOF
12274
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }; then
12280   # Parse the compiler output and extract the necessary
12281   # objects, libraries and library flags.
12282
12283   # Sentinel used to keep track of whether or not we are before
12284   # the conftest object file.
12285   pre_test_object_deps_done=no
12286
12287   # The `*' in the case matches for architectures that use `case' in
12288   # $output_verbose_cmd can trigger glob expansion during the loop
12289   # eval without this substitution.
12290   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12291
12292   for p in `eval $output_verbose_link_cmd`; do
12293     case $p in
12294
12295     -L* | -R* | -l*)
12296        # Some compilers place space between "-{L,R}" and the path.
12297        # Remove the space.
12298        if test $p = "-L" \
12299           || test $p = "-R"; then
12300          prev=$p
12301          continue
12302        else
12303          prev=
12304        fi
12305
12306        if test "$pre_test_object_deps_done" = no; then
12307          case $p in
12308          -L* | -R*)
12309            # Internal compiler library paths should come after those
12310            # provided the user.  The postdeps already come after the
12311            # user supplied libs so there is no need to process them.
12312            if test -z "$compiler_lib_search_path_CXX"; then
12313              compiler_lib_search_path_CXX="${prev}${p}"
12314            else
12315              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12316            fi
12317            ;;
12318          # The "-l" case would never come before the object being
12319          # linked, so don't bother handling this case.
12320          esac
12321        else
12322          if test -z "$postdeps_CXX"; then
12323            postdeps_CXX="${prev}${p}"
12324          else
12325            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12326          fi
12327        fi
12328        ;;
12329
12330     *.$objext)
12331        # This assumes that the test object file only shows up
12332        # once in the compiler output.
12333        if test "$p" = "conftest.$objext"; then
12334          pre_test_object_deps_done=yes
12335          continue
12336        fi
12337
12338        if test "$pre_test_object_deps_done" = no; then
12339          if test -z "$predep_objects_CXX"; then
12340            predep_objects_CXX="$p"
12341          else
12342            predep_objects_CXX="$predep_objects_CXX $p"
12343          fi
12344        else
12345          if test -z "$postdep_objects_CXX"; then
12346            postdep_objects_CXX="$p"
12347          else
12348            postdep_objects_CXX="$postdep_objects_CXX $p"
12349          fi
12350        fi
12351        ;;
12352
12353     *) ;; # Ignore the rest.
12354
12355     esac
12356   done
12357
12358   # Clean up.
12359   rm -f a.out a.exe
12360 else
12361   echo "libtool.m4: error: problem compiling CXX test program"
12362 fi
12363
12364 $rm -f confest.$objext
12365
12366 # PORTME: override above test on systems where it is broken
12367 case $host_os in
12368 interix3*)
12369   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12370   # hack all around it, let's just trust "g++" to DTRT.
12371   predep_objects_CXX=
12372   postdep_objects_CXX=
12373   postdeps_CXX=
12374   ;;
12375
12376 solaris*)
12377   case $cc_basename in
12378   CC*)
12379     # Adding this requires a known-good setup of shared libraries for
12380     # Sun compiler versions before 5.6, else PIC objects from an old
12381     # archive will be linked into the output, leading to subtle bugs.
12382     postdeps_CXX='-lCstd -lCrun'
12383     ;;
12384   esac
12385   ;;
12386 esac
12387
12388
12389 case " $postdeps_CXX " in
12390 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12391 esac
12392
12393 lt_prog_compiler_wl_CXX=
12394 lt_prog_compiler_pic_CXX=
12395 lt_prog_compiler_static_CXX=
12396
12397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12399
12400   # C++ specific cases for pic, static, wl, etc.
12401   if test "$GXX" = yes; then
12402     lt_prog_compiler_wl_CXX='-Wl,'
12403     lt_prog_compiler_static_CXX='-static'
12404
12405     case $host_os in
12406     aix*)
12407       # All AIX code is PIC.
12408       if test "$host_cpu" = ia64; then
12409         # AIX 5 now supports IA64 processor
12410         lt_prog_compiler_static_CXX='-Bstatic'
12411       fi
12412       ;;
12413     amigaos*)
12414       # FIXME: we need at least 68020 code to build shared libraries, but
12415       # adding the `-m68020' flag to GCC prevents building anything better,
12416       # like `-m68040'.
12417       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12418       ;;
12419     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12420       # PIC is the default for these OSes.
12421       ;;
12422     mingw* | os2* | pw32*)
12423       # This hack is so that the source file can tell whether it is being
12424       # built for inclusion in a dll (and should export symbols for example).
12425       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12426       ;;
12427     darwin* | rhapsody*)
12428       # PIC is the default on this platform
12429       # Common symbols not allowed in MH_DYLIB files
12430       lt_prog_compiler_pic_CXX='-fno-common'
12431       ;;
12432     *djgpp*)
12433       # DJGPP does not support shared libraries at all
12434       lt_prog_compiler_pic_CXX=
12435       ;;
12436     interix3*)
12437       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12438       # Instead, we relocate shared libraries at runtime.
12439       ;;
12440     sysv4*MP*)
12441       if test -d /usr/nec; then
12442         lt_prog_compiler_pic_CXX=-Kconform_pic
12443       fi
12444       ;;
12445     hpux*)
12446       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12447       # not for PA HP-UX.
12448       case $host_cpu in
12449       hppa*64*|ia64*)
12450         ;;
12451       *)
12452         lt_prog_compiler_pic_CXX='-fPIC'
12453         ;;
12454       esac
12455       ;;
12456     *)
12457       lt_prog_compiler_pic_CXX='-fPIC'
12458       ;;
12459     esac
12460   else
12461     case $host_os in
12462       aix4* | aix5*)
12463         # All AIX code is PIC.
12464         if test "$host_cpu" = ia64; then
12465           # AIX 5 now supports IA64 processor
12466           lt_prog_compiler_static_CXX='-Bstatic'
12467         else
12468           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12469         fi
12470         ;;
12471       chorus*)
12472         case $cc_basename in
12473         cxch68*)
12474           # Green Hills C++ Compiler
12475           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12476           ;;
12477         esac
12478         ;;
12479        darwin*)
12480          # PIC is the default on this platform
12481          # Common symbols not allowed in MH_DYLIB files
12482          case $cc_basename in
12483            xlc*)
12484            lt_prog_compiler_pic_CXX='-qnocommon'
12485            lt_prog_compiler_wl_CXX='-Wl,'
12486            ;;
12487          esac
12488        ;;
12489       dgux*)
12490         case $cc_basename in
12491           ec++*)
12492             lt_prog_compiler_pic_CXX='-KPIC'
12493             ;;
12494           ghcx*)
12495             # Green Hills C++ Compiler
12496             lt_prog_compiler_pic_CXX='-pic'
12497             ;;
12498           *)
12499             ;;
12500         esac
12501         ;;
12502       freebsd* | dragonfly*)
12503         # FreeBSD uses GNU C++
12504         ;;
12505       hpux9* | hpux10* | hpux11*)
12506         case $cc_basename in
12507           CC*)
12508             lt_prog_compiler_wl_CXX='-Wl,'
12509             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12510             if test "$host_cpu" != ia64; then
12511               lt_prog_compiler_pic_CXX='+Z'
12512             fi
12513             ;;
12514           aCC*)
12515             lt_prog_compiler_wl_CXX='-Wl,'
12516             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12517             case $host_cpu in
12518             hppa*64*|ia64*)
12519               # +Z the default
12520               ;;
12521             *)
12522               lt_prog_compiler_pic_CXX='+Z'
12523               ;;
12524             esac
12525             ;;
12526           *)
12527             ;;
12528         esac
12529         ;;
12530       interix*)
12531         # This is c89, which is MS Visual C++ (no shared libs)
12532         # Anyone wants to do a port?
12533         ;;
12534       irix5* | irix6* | nonstopux*)
12535         case $cc_basename in
12536           CC*)
12537             lt_prog_compiler_wl_CXX='-Wl,'
12538             lt_prog_compiler_static_CXX='-non_shared'
12539             # CC pic flag -KPIC is the default.
12540             ;;
12541           *)
12542             ;;
12543         esac
12544         ;;
12545       linux* | k*bsd*-gnu)
12546         case $cc_basename in
12547           KCC*)
12548             # KAI C++ Compiler
12549             lt_prog_compiler_wl_CXX='--backend -Wl,'
12550             lt_prog_compiler_pic_CXX='-fPIC'
12551             ;;
12552           icpc* | ecpc*)
12553             # Intel C++
12554             lt_prog_compiler_wl_CXX='-Wl,'
12555             lt_prog_compiler_pic_CXX='-KPIC'
12556             lt_prog_compiler_static_CXX='-static'
12557             ;;
12558           pgCC*)
12559             # Portland Group C++ compiler.
12560             lt_prog_compiler_wl_CXX='-Wl,'
12561             lt_prog_compiler_pic_CXX='-fpic'
12562             lt_prog_compiler_static_CXX='-Bstatic'
12563             ;;
12564           cxx*)
12565             # Compaq C++
12566             # Make sure the PIC flag is empty.  It appears that all Alpha
12567             # Linux and Compaq Tru64 Unix objects are PIC.
12568             lt_prog_compiler_pic_CXX=
12569             lt_prog_compiler_static_CXX='-non_shared'
12570             ;;
12571           *)
12572             ;;
12573         esac
12574         ;;
12575       lynxos*)
12576         ;;
12577       m88k*)
12578         ;;
12579       mvs*)
12580         case $cc_basename in
12581           cxx*)
12582             lt_prog_compiler_pic_CXX='-W c,exportall'
12583             ;;
12584           *)
12585             ;;
12586         esac
12587         ;;
12588       netbsd* | netbsdelf*-gnu)
12589         ;;
12590       osf3* | osf4* | osf5*)
12591         case $cc_basename in
12592           KCC*)
12593             lt_prog_compiler_wl_CXX='--backend -Wl,'
12594             ;;
12595           RCC*)
12596             # Rational C++ 2.4.1
12597             lt_prog_compiler_pic_CXX='-pic'
12598             ;;
12599           cxx*)
12600             # Digital/Compaq C++
12601             lt_prog_compiler_wl_CXX='-Wl,'
12602             # Make sure the PIC flag is empty.  It appears that all Alpha
12603             # Linux and Compaq Tru64 Unix objects are PIC.
12604             lt_prog_compiler_pic_CXX=
12605             lt_prog_compiler_static_CXX='-non_shared'
12606             ;;
12607           *)
12608             ;;
12609         esac
12610         ;;
12611       psos*)
12612         ;;
12613       solaris*)
12614         case $cc_basename in
12615           CC*)
12616             # Sun C++ 4.2, 5.x and Centerline C++
12617             lt_prog_compiler_pic_CXX='-KPIC'
12618             lt_prog_compiler_static_CXX='-Bstatic'
12619             lt_prog_compiler_wl_CXX='-Qoption ld '
12620             ;;
12621           gcx*)
12622             # Green Hills C++ Compiler
12623             lt_prog_compiler_pic_CXX='-PIC'
12624             ;;
12625           *)
12626             ;;
12627         esac
12628         ;;
12629       sunos4*)
12630         case $cc_basename in
12631           CC*)
12632             # Sun C++ 4.x
12633             lt_prog_compiler_pic_CXX='-pic'
12634             lt_prog_compiler_static_CXX='-Bstatic'
12635             ;;
12636           lcc*)
12637             # Lucid
12638             lt_prog_compiler_pic_CXX='-pic'
12639             ;;
12640           *)
12641             ;;
12642         esac
12643         ;;
12644       tandem*)
12645         case $cc_basename in
12646           NCC*)
12647             # NonStop-UX NCC 3.20
12648             lt_prog_compiler_pic_CXX='-KPIC'
12649             ;;
12650           *)
12651             ;;
12652         esac
12653         ;;
12654       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12655         case $cc_basename in
12656           CC*)
12657             lt_prog_compiler_wl_CXX='-Wl,'
12658             lt_prog_compiler_pic_CXX='-KPIC'
12659             lt_prog_compiler_static_CXX='-Bstatic'
12660             ;;
12661         esac
12662         ;;
12663       vxworks*)
12664         ;;
12665       *)
12666         lt_prog_compiler_can_build_shared_CXX=no
12667         ;;
12668     esac
12669   fi
12670
12671 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12672 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12673
12674 #
12675 # Check to make sure the PIC flag actually works.
12676 #
12677 if test -n "$lt_prog_compiler_pic_CXX"; then
12678
12679 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12680 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12681 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12682   echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684   lt_prog_compiler_pic_works_CXX=no
12685   ac_outfile=conftest.$ac_objext
12686    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12687    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12688    # Insert the option either (1) after the last *FLAGS variable, or
12689    # (2) before a word containing "conftest.", or (3) at the end.
12690    # Note that $ac_compile itself does not contain backslashes and begins
12691    # with a dollar sign (not a hyphen), so the echo should work correctly.
12692    # The option is referenced via a variable to avoid confusing sed.
12693    lt_compile=`echo "$ac_compile" | $SED \
12694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12696    -e 's:$: $lt_compiler_flag:'`
12697    (eval echo "\"\$as_me:12697: $lt_compile\"" >&5)
12698    (eval "$lt_compile" 2>conftest.err)
12699    ac_status=$?
12700    cat conftest.err >&5
12701    echo "$as_me:12701: \$? = $ac_status" >&5
12702    if (exit $ac_status) && test -s "$ac_outfile"; then
12703      # The compiler can only warn and ignore the option if not recognized
12704      # So say no if there are warnings other than the usual output.
12705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12708        lt_prog_compiler_pic_works_CXX=yes
12709      fi
12710    fi
12711    $rm conftest*
12712
12713 fi
12714 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12715 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12716
12717 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12718     case $lt_prog_compiler_pic_CXX in
12719      "" | " "*) ;;
12720      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12721      esac
12722 else
12723     lt_prog_compiler_pic_CXX=
12724      lt_prog_compiler_can_build_shared_CXX=no
12725 fi
12726
12727 fi
12728 case $host_os in
12729   # For platforms which do not support PIC, -DPIC is meaningless:
12730   *djgpp*)
12731     lt_prog_compiler_pic_CXX=
12732     ;;
12733   *)
12734     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12735     ;;
12736 esac
12737
12738 #
12739 # Check to make sure the static flag actually works.
12740 #
12741 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12742 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12743 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12744 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   lt_prog_compiler_static_works_CXX=no
12748    save_LDFLAGS="$LDFLAGS"
12749    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12750    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12751    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12752      # The linker can only warn and ignore the option if not recognized
12753      # So say no if there are warnings
12754      if test -s conftest.err; then
12755        # Append any errors to the config.log.
12756        cat conftest.err 1>&5
12757        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12758        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12759        if diff conftest.exp conftest.er2 >/dev/null; then
12760          lt_prog_compiler_static_works_CXX=yes
12761        fi
12762      else
12763        lt_prog_compiler_static_works_CXX=yes
12764      fi
12765    fi
12766    $rm conftest*
12767    LDFLAGS="$save_LDFLAGS"
12768
12769 fi
12770 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12771 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12772
12773 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12774     :
12775 else
12776     lt_prog_compiler_static_CXX=
12777 fi
12778
12779
12780 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12781 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   lt_cv_prog_compiler_c_o_CXX=no
12786    $rm -r conftest 2>/dev/null
12787    mkdir conftest
12788    cd conftest
12789    mkdir out
12790    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12791
12792    lt_compiler_flag="-o out/conftest2.$ac_objext"
12793    # Insert the option either (1) after the last *FLAGS variable, or
12794    # (2) before a word containing "conftest.", or (3) at the end.
12795    # Note that $ac_compile itself does not contain backslashes and begins
12796    # with a dollar sign (not a hyphen), so the echo should work correctly.
12797    lt_compile=`echo "$ac_compile" | $SED \
12798    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12800    -e 's:$: $lt_compiler_flag:'`
12801    (eval echo "\"\$as_me:12801: $lt_compile\"" >&5)
12802    (eval "$lt_compile" 2>out/conftest.err)
12803    ac_status=$?
12804    cat out/conftest.err >&5
12805    echo "$as_me:12805: \$? = $ac_status" >&5
12806    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12807    then
12808      # The compiler can only warn and ignore the option if not recognized
12809      # So say no if there are warnings
12810      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12811      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12812      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12813        lt_cv_prog_compiler_c_o_CXX=yes
12814      fi
12815    fi
12816    chmod u+w . 2>&5
12817    $rm conftest*
12818    # SGI C++ compiler will create directory out/ii_files/ for
12819    # template instantiation
12820    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12821    $rm out/* && rmdir out
12822    cd ..
12823    rmdir conftest
12824    $rm conftest*
12825
12826 fi
12827 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12828 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12829
12830
12831 hard_links="nottested"
12832 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12833   # do not overwrite the value of need_locks provided by the user
12834   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12835 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12836   hard_links=yes
12837   $rm conftest*
12838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12839   touch conftest.a
12840   ln conftest.a conftest.b 2>&5 || hard_links=no
12841   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12842   echo "$as_me:$LINENO: result: $hard_links" >&5
12843 echo "${ECHO_T}$hard_links" >&6
12844   if test "$hard_links" = no; then
12845     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12846 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12847     need_locks=warn
12848   fi
12849 else
12850   need_locks=no
12851 fi
12852
12853 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12854 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12855
12856   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12857   case $host_os in
12858   aix4* | aix5*)
12859     # If we're using GNU nm, then we don't want the "-C" option.
12860     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12861     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12862       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12863     else
12864       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12865     fi
12866     ;;
12867   pw32*)
12868     export_symbols_cmds_CXX="$ltdll_cmds"
12869   ;;
12870   cygwin* | mingw*)
12871     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12872   ;;
12873   linux* | k*bsd*-gnu)
12874     link_all_deplibs_CXX=no
12875   ;;
12876   *)
12877     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12878   ;;
12879   esac
12880
12881 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12882 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12883 test "$ld_shlibs_CXX" = no && can_build_shared=no
12884
12885 #
12886 # Do we need to explicitly link libc?
12887 #
12888 case "x$archive_cmds_need_lc_CXX" in
12889 x|xyes)
12890   # Assume -lc should be added
12891   archive_cmds_need_lc_CXX=yes
12892
12893   if test "$enable_shared" = yes && test "$GCC" = yes; then
12894     case $archive_cmds_CXX in
12895     *'~'*)
12896       # FIXME: we may have to deal with multi-command sequences.
12897       ;;
12898     '$CC '*)
12899       # Test whether the compiler implicitly links with -lc since on some
12900       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12901       # to ld, don't add -lc before -lgcc.
12902       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12903 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12904       $rm conftest*
12905       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); } 2>conftest.err; then
12912         soname=conftest
12913         lib=conftest
12914         libobjs=conftest.$ac_objext
12915         deplibs=
12916         wl=$lt_prog_compiler_wl_CXX
12917         pic_flag=$lt_prog_compiler_pic_CXX
12918         compiler_flags=-v
12919         linker_flags=-v
12920         verstring=
12921         output_objdir=.
12922         libname=conftest
12923         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12924         allow_undefined_flag_CXX=
12925         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12926   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }
12930         then
12931           archive_cmds_need_lc_CXX=no
12932         else
12933           archive_cmds_need_lc_CXX=yes
12934         fi
12935         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12936       else
12937         cat conftest.err 1>&5
12938       fi
12939       $rm conftest*
12940       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12941 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12942       ;;
12943     esac
12944   fi
12945   ;;
12946 esac
12947
12948 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12949 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12950 library_names_spec=
12951 libname_spec='lib$name'
12952 soname_spec=
12953 shrext_cmds=".so"
12954 postinstall_cmds=
12955 postuninstall_cmds=
12956 finish_cmds=
12957 finish_eval=
12958 shlibpath_var=
12959 shlibpath_overrides_runpath=unknown
12960 version_type=none
12961 dynamic_linker="$host_os ld.so"
12962 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12963 if test "$GCC" = yes; then
12964   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12965   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12966     # if the path contains ";" then we assume it to be the separator
12967     # otherwise default to the standard path separator (i.e. ":") - it is
12968     # assumed that no part of a normal pathname contains ";" but that should
12969     # okay in the real world where ";" in dirpaths is itself problematic.
12970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12971   else
12972     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12973   fi
12974 else
12975   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12976 fi
12977 need_lib_prefix=unknown
12978 hardcode_into_libs=no
12979
12980 # when you set need_version to no, make sure it does not cause -set_version
12981 # flags to be left without arguments
12982 need_version=unknown
12983
12984 case $host_os in
12985 aix3*)
12986   version_type=linux
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12988   shlibpath_var=LIBPATH
12989
12990   # AIX 3 has no versioning support, so we append a major version to the name.
12991   soname_spec='${libname}${release}${shared_ext}$major'
12992   ;;
12993
12994 aix4* | aix5*)
12995   version_type=linux
12996   need_lib_prefix=no
12997   need_version=no
12998   hardcode_into_libs=yes
12999   if test "$host_cpu" = ia64; then
13000     # AIX 5 supports IA64
13001     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13002     shlibpath_var=LD_LIBRARY_PATH
13003   else
13004     # With GCC up to 2.95.x, collect2 would create an import file
13005     # for dependence libraries.  The import file would start with
13006     # the line `#! .'.  This would cause the generated library to
13007     # depend on `.', always an invalid library.  This was fixed in
13008     # development snapshots of GCC prior to 3.0.
13009     case $host_os in
13010       aix4 | aix4.[01] | aix4.[01].*)
13011       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13012            echo ' yes '
13013            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13014         :
13015       else
13016         can_build_shared=no
13017       fi
13018       ;;
13019     esac
13020     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13021     # soname into executable. Probably we can add versioning support to
13022     # collect2, so additional links can be useful in future.
13023     if test "$aix_use_runtimelinking" = yes; then
13024       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13025       # instead of lib<name>.a to let people know that these are not
13026       # typical AIX shared libraries.
13027       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028     else
13029       # We preserve .a as extension for shared libraries through AIX4.2
13030       # and later when we are not doing run time linking.
13031       library_names_spec='${libname}${release}.a $libname.a'
13032       soname_spec='${libname}${release}${shared_ext}$major'
13033     fi
13034     shlibpath_var=LIBPATH
13035   fi
13036   ;;
13037
13038 amigaos*)
13039   library_names_spec='$libname.ixlibrary $libname.a'
13040   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13041   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13042   ;;
13043
13044 beos*)
13045   library_names_spec='${libname}${shared_ext}'
13046   dynamic_linker="$host_os ld.so"
13047   shlibpath_var=LIBRARY_PATH
13048   ;;
13049
13050 bsdi[45]*)
13051   version_type=linux
13052   need_version=no
13053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13054   soname_spec='${libname}${release}${shared_ext}$major'
13055   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13056   shlibpath_var=LD_LIBRARY_PATH
13057   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13058   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13059   # the default ld.so.conf also contains /usr/contrib/lib and
13060   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13061   # libtool to hard-code these into programs
13062   ;;
13063
13064 cygwin* | mingw* | pw32*)
13065   version_type=windows
13066   shrext_cmds=".dll"
13067   need_version=no
13068   need_lib_prefix=no
13069
13070   case $GCC,$host_os in
13071   yes,cygwin* | yes,mingw* | yes,pw32*)
13072     library_names_spec='$libname.dll.a'
13073     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13074     postinstall_cmds='base_file=`basename \${file}`~
13075       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13076       dldir=$destdir/`dirname \$dlpath`~
13077       test -d \$dldir || mkdir -p \$dldir~
13078       $install_prog $dir/$dlname \$dldir/$dlname~
13079       chmod a+x \$dldir/$dlname'
13080     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13081       dlpath=$dir/\$dldll~
13082        $rm \$dlpath'
13083     shlibpath_overrides_runpath=yes
13084
13085     case $host_os in
13086     cygwin*)
13087       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13088       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13089       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13090       ;;
13091     mingw*)
13092       # MinGW DLLs use traditional 'lib' prefix
13093       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13094       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13095       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13096         # It is most probably a Windows format PATH printed by
13097         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13098         # path with ; separators, and with drive letters. We can handle the
13099         # drive letters (cygwin fileutils understands them), so leave them,
13100         # especially as we might pass files found there to a mingw objdump,
13101         # which wouldn't understand a cygwinified path. Ahh.
13102         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13103       else
13104         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13105       fi
13106       ;;
13107     pw32*)
13108       # pw32 DLLs use 'pw' prefix rather than 'lib'
13109       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13110       ;;
13111     esac
13112     ;;
13113
13114   *)
13115     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13116     ;;
13117   esac
13118   dynamic_linker='Win32 ld.exe'
13119   # FIXME: first we should search . and the directory the executable is in
13120   shlibpath_var=PATH
13121   ;;
13122
13123 darwin* | rhapsody*)
13124   dynamic_linker="$host_os dyld"
13125   version_type=darwin
13126   need_lib_prefix=no
13127   need_version=no
13128   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13129   soname_spec='${libname}${release}${major}$shared_ext'
13130   shlibpath_overrides_runpath=yes
13131   shlibpath_var=DYLD_LIBRARY_PATH
13132   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13133   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13134   if test "$GCC" = yes; then
13135     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13136   else
13137     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13138   fi
13139   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13140   ;;
13141
13142 dgux*)
13143   version_type=linux
13144   need_lib_prefix=no
13145   need_version=no
13146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13147   soname_spec='${libname}${release}${shared_ext}$major'
13148   shlibpath_var=LD_LIBRARY_PATH
13149   ;;
13150
13151 freebsd1*)
13152   dynamic_linker=no
13153   ;;
13154
13155 freebsd* | dragonfly*)
13156   # DragonFly does not have aout.  When/if they implement a new
13157   # versioning mechanism, adjust this.
13158   if test -x /usr/bin/objformat; then
13159     objformat=`/usr/bin/objformat`
13160   else
13161     case $host_os in
13162     freebsd[123]*) objformat=aout ;;
13163     *) objformat=elf ;;
13164     esac
13165   fi
13166   version_type=freebsd-$objformat
13167   case $version_type in
13168     freebsd-elf*)
13169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13170       need_version=no
13171       need_lib_prefix=no
13172       ;;
13173     freebsd-*)
13174       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13175       need_version=yes
13176       ;;
13177   esac
13178   shlibpath_var=LD_LIBRARY_PATH
13179   case $host_os in
13180   freebsd2*)
13181     shlibpath_overrides_runpath=yes
13182     ;;
13183   freebsd3.[01]* | freebsdelf3.[01]*)
13184     shlibpath_overrides_runpath=yes
13185     hardcode_into_libs=yes
13186     ;;
13187   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13188   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13189     shlibpath_overrides_runpath=no
13190     hardcode_into_libs=yes
13191     ;;
13192   freebsd*) # from 4.6 on
13193     shlibpath_overrides_runpath=yes
13194     hardcode_into_libs=yes
13195     ;;
13196   esac
13197   ;;
13198
13199 gnu*)
13200   version_type=linux
13201   need_lib_prefix=no
13202   need_version=no
13203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13204   soname_spec='${libname}${release}${shared_ext}$major'
13205   shlibpath_var=LD_LIBRARY_PATH
13206   hardcode_into_libs=yes
13207   ;;
13208
13209 hpux9* | hpux10* | hpux11*)
13210   # Give a soname corresponding to the major version so that dld.sl refuses to
13211   # link against other versions.
13212   version_type=sunos
13213   need_lib_prefix=no
13214   need_version=no
13215   case $host_cpu in
13216   ia64*)
13217     shrext_cmds='.so'
13218     hardcode_into_libs=yes
13219     dynamic_linker="$host_os dld.so"
13220     shlibpath_var=LD_LIBRARY_PATH
13221     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13223     soname_spec='${libname}${release}${shared_ext}$major'
13224     if test "X$HPUX_IA64_MODE" = X32; then
13225       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13226     else
13227       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13228     fi
13229     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13230     ;;
13231    hppa*64*)
13232      shrext_cmds='.sl'
13233      hardcode_into_libs=yes
13234      dynamic_linker="$host_os dld.sl"
13235      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13236      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13237      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13238      soname_spec='${libname}${release}${shared_ext}$major'
13239      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13240      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13241      ;;
13242    *)
13243     shrext_cmds='.sl'
13244     dynamic_linker="$host_os dld.sl"
13245     shlibpath_var=SHLIB_PATH
13246     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248     soname_spec='${libname}${release}${shared_ext}$major'
13249     ;;
13250   esac
13251   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13252   postinstall_cmds='chmod 555 $lib'
13253   ;;
13254
13255 interix3*)
13256   version_type=linux
13257   need_lib_prefix=no
13258   need_version=no
13259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13260   soname_spec='${libname}${release}${shared_ext}$major'
13261   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13262   shlibpath_var=LD_LIBRARY_PATH
13263   shlibpath_overrides_runpath=no
13264   hardcode_into_libs=yes
13265   ;;
13266
13267 irix5* | irix6* | nonstopux*)
13268   case $host_os in
13269     nonstopux*) version_type=nonstopux ;;
13270     *)
13271         if test "$lt_cv_prog_gnu_ld" = yes; then
13272                 version_type=linux
13273         else
13274                 version_type=irix
13275         fi ;;
13276   esac
13277   need_lib_prefix=no
13278   need_version=no
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13281   case $host_os in
13282   irix5* | nonstopux*)
13283     libsuff= shlibsuff=
13284     ;;
13285   *)
13286     case $LD in # libtool.m4 will add one of these switches to LD
13287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13288       libsuff= shlibsuff= libmagic=32-bit;;
13289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13290       libsuff=32 shlibsuff=N32 libmagic=N32;;
13291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13293     *) libsuff= shlibsuff= libmagic=never-match;;
13294     esac
13295     ;;
13296   esac
13297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13298   shlibpath_overrides_runpath=no
13299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13301   hardcode_into_libs=yes
13302   ;;
13303
13304 # No shared lib support for Linux oldld, aout, or coff.
13305 linux*oldld* | linux*aout* | linux*coff*)
13306   dynamic_linker=no
13307   ;;
13308
13309 # This must be Linux ELF.
13310 linux* | k*bsd*-gnu)
13311   version_type=linux
13312   need_lib_prefix=no
13313   need_version=no
13314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13315   soname_spec='${libname}${release}${shared_ext}$major'
13316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13317   shlibpath_var=LD_LIBRARY_PATH
13318   shlibpath_overrides_runpath=no
13319   # This implies no fast_install, which is unacceptable.
13320   # Some rework will be needed to allow for fast_install
13321   # before this can be enabled.
13322   hardcode_into_libs=yes
13323
13324   # Append ld.so.conf contents to the search path
13325   if test -f /etc/ld.so.conf; then
13326     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13327     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13328   fi
13329
13330   # We used to test for /lib/ld.so.1 and disable shared libraries on
13331   # powerpc, because MkLinux only supported shared libraries with the
13332   # GNU dynamic linker.  Since this was broken with cross compilers,
13333   # most powerpc-linux boxes support dynamic linking these days and
13334   # people can always --disable-shared, the test was removed, and we
13335   # assume the GNU/Linux dynamic linker is in use.
13336   dynamic_linker='GNU/Linux ld.so'
13337   ;;
13338
13339 netbsdelf*-gnu)
13340   version_type=linux
13341   need_lib_prefix=no
13342   need_version=no
13343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344   soname_spec='${libname}${release}${shared_ext}$major'
13345   shlibpath_var=LD_LIBRARY_PATH
13346   shlibpath_overrides_runpath=no
13347   hardcode_into_libs=yes
13348   dynamic_linker='NetBSD ld.elf_so'
13349   ;;
13350
13351 netbsd*)
13352   version_type=sunos
13353   need_lib_prefix=no
13354   need_version=no
13355   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358     dynamic_linker='NetBSD (a.out) ld.so'
13359   else
13360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13361     soname_spec='${libname}${release}${shared_ext}$major'
13362     dynamic_linker='NetBSD ld.elf_so'
13363   fi
13364   shlibpath_var=LD_LIBRARY_PATH
13365   shlibpath_overrides_runpath=yes
13366   hardcode_into_libs=yes
13367   ;;
13368
13369 newsos6)
13370   version_type=linux
13371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13372   shlibpath_var=LD_LIBRARY_PATH
13373   shlibpath_overrides_runpath=yes
13374   ;;
13375
13376 nto-qnx*)
13377   version_type=linux
13378   need_lib_prefix=no
13379   need_version=no
13380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381   soname_spec='${libname}${release}${shared_ext}$major'
13382   shlibpath_var=LD_LIBRARY_PATH
13383   shlibpath_overrides_runpath=yes
13384   ;;
13385
13386 openbsd*)
13387   version_type=sunos
13388   sys_lib_dlsearch_path_spec="/usr/lib"
13389   need_lib_prefix=no
13390   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13391   case $host_os in
13392     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13393     *)                         need_version=no  ;;
13394   esac
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13397   shlibpath_var=LD_LIBRARY_PATH
13398   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13399     case $host_os in
13400       openbsd2.[89] | openbsd2.[89].*)
13401         shlibpath_overrides_runpath=no
13402         ;;
13403       *)
13404         shlibpath_overrides_runpath=yes
13405         ;;
13406       esac
13407   else
13408     shlibpath_overrides_runpath=yes
13409   fi
13410   ;;
13411
13412 os2*)
13413   libname_spec='$name'
13414   shrext_cmds=".dll"
13415   need_lib_prefix=no
13416   library_names_spec='$libname${shared_ext} $libname.a'
13417   dynamic_linker='OS/2 ld.exe'
13418   shlibpath_var=LIBPATH
13419   ;;
13420
13421 osf3* | osf4* | osf5*)
13422   version_type=osf
13423   need_lib_prefix=no
13424   need_version=no
13425   soname_spec='${libname}${release}${shared_ext}$major'
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13427   shlibpath_var=LD_LIBRARY_PATH
13428   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13429   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13430   ;;
13431
13432 solaris*)
13433   version_type=linux
13434   need_lib_prefix=no
13435   need_version=no
13436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13437   soname_spec='${libname}${release}${shared_ext}$major'
13438   shlibpath_var=LD_LIBRARY_PATH
13439   shlibpath_overrides_runpath=yes
13440   hardcode_into_libs=yes
13441   # ldd complains unless libraries are executable
13442   postinstall_cmds='chmod +x $lib'
13443   ;;
13444
13445 sunos4*)
13446   version_type=sunos
13447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13448   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13449   shlibpath_var=LD_LIBRARY_PATH
13450   shlibpath_overrides_runpath=yes
13451   if test "$with_gnu_ld" = yes; then
13452     need_lib_prefix=no
13453   fi
13454   need_version=yes
13455   ;;
13456
13457 sysv4 | sysv4.3*)
13458   version_type=linux
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460   soname_spec='${libname}${release}${shared_ext}$major'
13461   shlibpath_var=LD_LIBRARY_PATH
13462   case $host_vendor in
13463     sni)
13464       shlibpath_overrides_runpath=no
13465       need_lib_prefix=no
13466       export_dynamic_flag_spec='${wl}-Blargedynsym'
13467       runpath_var=LD_RUN_PATH
13468       ;;
13469     siemens)
13470       need_lib_prefix=no
13471       ;;
13472     motorola)
13473       need_lib_prefix=no
13474       need_version=no
13475       shlibpath_overrides_runpath=no
13476       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13477       ;;
13478   esac
13479   ;;
13480
13481 sysv4*MP*)
13482   if test -d /usr/nec ;then
13483     version_type=linux
13484     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13485     soname_spec='$libname${shared_ext}.$major'
13486     shlibpath_var=LD_LIBRARY_PATH
13487   fi
13488   ;;
13489
13490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491   version_type=freebsd-elf
13492   need_lib_prefix=no
13493   need_version=no
13494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   hardcode_into_libs=yes
13498   if test "$with_gnu_ld" = yes; then
13499     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13500     shlibpath_overrides_runpath=no
13501   else
13502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13503     shlibpath_overrides_runpath=yes
13504     case $host_os in
13505       sco3.2v5*)
13506         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13507         ;;
13508     esac
13509   fi
13510   sys_lib_dlsearch_path_spec='/usr/lib'
13511   ;;
13512
13513 uts4*)
13514   version_type=linux
13515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13516   soname_spec='${libname}${release}${shared_ext}$major'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   ;;
13519
13520 *)
13521   dynamic_linker=no
13522   ;;
13523 esac
13524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13525 echo "${ECHO_T}$dynamic_linker" >&6
13526 test "$dynamic_linker" = no && can_build_shared=no
13527
13528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13529 if test "$GCC" = yes; then
13530   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13531 fi
13532
13533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13535 hardcode_action_CXX=
13536 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13537    test -n "$runpath_var_CXX" || \
13538    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13539
13540   # We can hardcode non-existant directories.
13541   if test "$hardcode_direct_CXX" != no &&
13542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13543      # have to relink, otherwise we might link with an installed library
13544      # when we should be linking with a yet-to-be-installed one
13545      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13546      test "$hardcode_minus_L_CXX" != no; then
13547     # Linking always hardcodes the temporary library directory.
13548     hardcode_action_CXX=relink
13549   else
13550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13551     hardcode_action_CXX=immediate
13552   fi
13553 else
13554   # We cannot hardcode anything, or else we can only hardcode existing
13555   # directories.
13556   hardcode_action_CXX=unsupported
13557 fi
13558 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13559 echo "${ECHO_T}$hardcode_action_CXX" >&6
13560
13561 if test "$hardcode_action_CXX" = relink; then
13562   # Fast installation is not supported
13563   enable_fast_install=no
13564 elif test "$shlibpath_overrides_runpath" = yes ||
13565      test "$enable_shared" = no; then
13566   # Fast installation is not necessary
13567   enable_fast_install=needless
13568 fi
13569
13570
13571 # The else clause should only fire when bootstrapping the
13572 # libtool distribution, otherwise you forgot to ship ltmain.sh
13573 # with your package, and you will get complaints that there are
13574 # no rules to generate ltmain.sh.
13575 if test -f "$ltmain"; then
13576   # See if we are running on zsh, and set the options which allow our commands through
13577   # without removal of \ escapes.
13578   if test -n "${ZSH_VERSION+set}" ; then
13579     setopt NO_GLOB_SUBST
13580   fi
13581   # Now quote all the things that may contain metacharacters while being
13582   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13583   # variables and quote the copies for generation of the libtool script.
13584   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13585     SED SHELL STRIP \
13586     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13587     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13588     deplibs_check_method reload_flag reload_cmds need_locks \
13589     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13590     lt_cv_sys_global_symbol_to_c_name_address \
13591     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13592     old_postinstall_cmds old_postuninstall_cmds \
13593     compiler_CXX \
13594     CC_CXX \
13595     LD_CXX \
13596     lt_prog_compiler_wl_CXX \
13597     lt_prog_compiler_pic_CXX \
13598     lt_prog_compiler_static_CXX \
13599     lt_prog_compiler_no_builtin_flag_CXX \
13600     export_dynamic_flag_spec_CXX \
13601     thread_safe_flag_spec_CXX \
13602     whole_archive_flag_spec_CXX \
13603     enable_shared_with_static_runtimes_CXX \
13604     old_archive_cmds_CXX \
13605     old_archive_from_new_cmds_CXX \
13606     predep_objects_CXX \
13607     postdep_objects_CXX \
13608     predeps_CXX \
13609     postdeps_CXX \
13610     compiler_lib_search_path_CXX \
13611     archive_cmds_CXX \
13612     archive_expsym_cmds_CXX \
13613     postinstall_cmds_CXX \
13614     postuninstall_cmds_CXX \
13615     old_archive_from_expsyms_cmds_CXX \
13616     allow_undefined_flag_CXX \
13617     no_undefined_flag_CXX \
13618     export_symbols_cmds_CXX \
13619     hardcode_libdir_flag_spec_CXX \
13620     hardcode_libdir_flag_spec_ld_CXX \
13621     hardcode_libdir_separator_CXX \
13622     hardcode_automatic_CXX \
13623     module_cmds_CXX \
13624     module_expsym_cmds_CXX \
13625     lt_cv_prog_compiler_c_o_CXX \
13626     exclude_expsyms_CXX \
13627     include_expsyms_CXX; do
13628
13629     case $var in
13630     old_archive_cmds_CXX | \
13631     old_archive_from_new_cmds_CXX | \
13632     archive_cmds_CXX | \
13633     archive_expsym_cmds_CXX | \
13634     module_cmds_CXX | \
13635     module_expsym_cmds_CXX | \
13636     old_archive_from_expsyms_cmds_CXX | \
13637     export_symbols_cmds_CXX | \
13638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13639     postinstall_cmds | postuninstall_cmds | \
13640     old_postinstall_cmds | old_postuninstall_cmds | \
13641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13642       # Double-quote double-evaled strings.
13643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13644       ;;
13645     *)
13646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13647       ;;
13648     esac
13649   done
13650
13651   case $lt_echo in
13652   *'\$0 --fallback-echo"')
13653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13654     ;;
13655   esac
13656
13657 cfgfile="$ofile"
13658
13659   cat <<__EOF__ >> "$cfgfile"
13660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13661
13662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13663
13664 # Shell to use when invoking shell scripts.
13665 SHELL=$lt_SHELL
13666
13667 # Whether or not to build shared libraries.
13668 build_libtool_libs=$enable_shared
13669
13670 # Whether or not to build static libraries.
13671 build_old_libs=$enable_static
13672
13673 # Whether or not to add -lc for building shared libraries.
13674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13675
13676 # Whether or not to disallow shared libs when runtime libs are static
13677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13678
13679 # Whether or not to optimize for fast installation.
13680 fast_install=$enable_fast_install
13681
13682 # The host system.
13683 host_alias=$host_alias
13684 host=$host
13685 host_os=$host_os
13686
13687 # The build system.
13688 build_alias=$build_alias
13689 build=$build
13690 build_os=$build_os
13691
13692 # An echo program that does not interpret backslashes.
13693 echo=$lt_echo
13694
13695 # The archiver.
13696 AR=$lt_AR
13697 AR_FLAGS=$lt_AR_FLAGS
13698
13699 # A C compiler.
13700 LTCC=$lt_LTCC
13701
13702 # LTCC compiler flags.
13703 LTCFLAGS=$lt_LTCFLAGS
13704
13705 # A language-specific compiler.
13706 CC=$lt_compiler_CXX
13707
13708 # Is the compiler the GNU C compiler?
13709 with_gcc=$GCC_CXX
13710
13711 # An ERE matcher.
13712 EGREP=$lt_EGREP
13713
13714 # The linker used to build libraries.
13715 LD=$lt_LD_CXX
13716
13717 # Whether we need hard or soft links.
13718 LN_S=$lt_LN_S
13719
13720 # A BSD-compatible nm program.
13721 NM=$lt_NM
13722
13723 # A symbol stripping program
13724 STRIP=$lt_STRIP
13725
13726 # Used to examine libraries when file_magic_cmd begins "file"
13727 MAGIC_CMD=$MAGIC_CMD
13728
13729 # Used on cygwin: DLL creation program.
13730 DLLTOOL="$DLLTOOL"
13731
13732 # Used on cygwin: object dumper.
13733 OBJDUMP="$OBJDUMP"
13734
13735 # Used on cygwin: assembler.
13736 AS="$AS"
13737
13738 # The name of the directory that contains temporary libtool files.
13739 objdir=$objdir
13740
13741 # How to create reloadable object files.
13742 reload_flag=$lt_reload_flag
13743 reload_cmds=$lt_reload_cmds
13744
13745 # How to pass a linker flag through the compiler.
13746 wl=$lt_lt_prog_compiler_wl_CXX
13747
13748 # Object file suffix (normally "o").
13749 objext="$ac_objext"
13750
13751 # Old archive suffix (normally "a").
13752 libext="$libext"
13753
13754 # Shared library suffix (normally ".so").
13755 shrext_cmds='$shrext_cmds'
13756
13757 # Executable file suffix (normally "").
13758 exeext="$exeext"
13759
13760 # Additional compiler flags for building library objects.
13761 pic_flag=$lt_lt_prog_compiler_pic_CXX
13762 pic_mode=$pic_mode
13763
13764 # What is the maximum length of a command?
13765 max_cmd_len=$lt_cv_sys_max_cmd_len
13766
13767 # Does compiler simultaneously support -c and -o options?
13768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13769
13770 # Must we lock files when doing compilation?
13771 need_locks=$lt_need_locks
13772
13773 # Do we need the lib prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13775
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13778
13779 # Whether dlopen is supported.
13780 dlopen_support=$enable_dlopen
13781
13782 # Whether dlopen of programs is supported.
13783 dlopen_self=$enable_dlopen_self
13784
13785 # Whether dlopen of statically linked programs is supported.
13786 dlopen_self_static=$enable_dlopen_self_static
13787
13788 # Compiler flag to prevent dynamic linking.
13789 link_static_flag=$lt_lt_prog_compiler_static_CXX
13790
13791 # Compiler flag to turn off builtin functions.
13792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13793
13794 # Compiler flag to allow reflexive dlopens.
13795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13796
13797 # Compiler flag to generate shared objects directly from archives.
13798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13799
13800 # Compiler flag to generate thread-safe objects.
13801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13802
13803 # Library versioning type.
13804 version_type=$version_type
13805
13806 # Format of library name prefix.
13807 libname_spec=$lt_libname_spec
13808
13809 # List of archive names.  First name is the real one, the rest are links.
13810 # The last name is the one that the linker finds with -lNAME.
13811 library_names_spec=$lt_library_names_spec
13812
13813 # The coded name of the library, if different from the real name.
13814 soname_spec=$lt_soname_spec
13815
13816 # Commands used to build and install an old-style archive.
13817 RANLIB=$lt_RANLIB
13818 old_archive_cmds=$lt_old_archive_cmds_CXX
13819 old_postinstall_cmds=$lt_old_postinstall_cmds
13820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13821
13822 # Create an old-style archive from a shared archive.
13823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13824
13825 # Create a temporary old-style archive to link instead of a shared archive.
13826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13827
13828 # Commands used to build and install a shared archive.
13829 archive_cmds=$lt_archive_cmds_CXX
13830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13831 postinstall_cmds=$lt_postinstall_cmds
13832 postuninstall_cmds=$lt_postuninstall_cmds
13833
13834 # Commands used to build a loadable module (assumed same as above if empty)
13835 module_cmds=$lt_module_cmds_CXX
13836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13837
13838 # Commands to strip libraries.
13839 old_striplib=$lt_old_striplib
13840 striplib=$lt_striplib
13841
13842 # Dependencies to place before the objects being linked to create a
13843 # shared library.
13844 predep_objects=$lt_predep_objects_CXX
13845
13846 # Dependencies to place after the objects being linked to create a
13847 # shared library.
13848 postdep_objects=$lt_postdep_objects_CXX
13849
13850 # Dependencies to place before the objects being linked to create a
13851 # shared library.
13852 predeps=$lt_predeps_CXX
13853
13854 # Dependencies to place after the objects being linked to create a
13855 # shared library.
13856 postdeps=$lt_postdeps_CXX
13857
13858 # The library search path used internally by the compiler when linking
13859 # a shared library.
13860 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13861
13862 # Method to check whether dependent libraries are shared objects.
13863 deplibs_check_method=$lt_deplibs_check_method
13864
13865 # Command to use when deplibs_check_method == file_magic.
13866 file_magic_cmd=$lt_file_magic_cmd
13867
13868 # Flag that allows shared libraries with undefined symbols to be built.
13869 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13870
13871 # Flag that forces no undefined symbols.
13872 no_undefined_flag=$lt_no_undefined_flag_CXX
13873
13874 # Commands used to finish a libtool library installation in a directory.
13875 finish_cmds=$lt_finish_cmds
13876
13877 # Same as above, but a single script fragment to be evaled but not shown.
13878 finish_eval=$lt_finish_eval
13879
13880 # Take the output of nm and produce a listing of raw symbols and C names.
13881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13882
13883 # Transform the output of nm in a proper C declaration
13884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13885
13886 # Transform the output of nm in a C name address pair
13887 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13888
13889 # This is the shared library runtime path variable.
13890 runpath_var=$runpath_var
13891
13892 # This is the shared library path variable.
13893 shlibpath_var=$shlibpath_var
13894
13895 # Is shlibpath searched before the hard-coded library search path?
13896 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13897
13898 # How to hardcode a shared library path into an executable.
13899 hardcode_action=$hardcode_action_CXX
13900
13901 # Whether we should hardcode library paths into libraries.
13902 hardcode_into_libs=$hardcode_into_libs
13903
13904 # Flag to hardcode \$libdir into a binary during linking.
13905 # This must work even if \$libdir does not exist.
13906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13907
13908 # If ld is used when linking, flag to hardcode \$libdir into
13909 # a binary during linking. This must work even if \$libdir does
13910 # not exist.
13911 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13912
13913 # Whether we need a single -rpath flag with a separated argument.
13914 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13915
13916 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13917 # resulting binary.
13918 hardcode_direct=$hardcode_direct_CXX
13919
13920 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_minus_L=$hardcode_minus_L_CXX
13923
13924 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13925 # the resulting binary.
13926 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13927
13928 # Set to yes if building a shared library automatically hardcodes DIR into the library
13929 # and all subsequent libraries and executables linked against it.
13930 hardcode_automatic=$hardcode_automatic_CXX
13931
13932 # Variables whose values should be saved in libtool wrapper scripts and
13933 # restored at relink time.
13934 variables_saved_for_relink="$variables_saved_for_relink"
13935
13936 # Whether libtool must link a program against all its dependency libraries.
13937 link_all_deplibs=$link_all_deplibs_CXX
13938
13939 # Compile-time system search path for libraries
13940 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13941
13942 # Run-time system search path for libraries
13943 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13944
13945 # Fix the shell variable \$srcfile for the compiler.
13946 fix_srcfile_path="$fix_srcfile_path_CXX"
13947
13948 # Set to yes if exported symbols are required.
13949 always_export_symbols=$always_export_symbols_CXX
13950
13951 # The commands to list exported symbols.
13952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13953
13954 # The commands to extract the exported symbol list from a shared archive.
13955 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13956
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms_CXX
13959
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms_CXX
13962
13963 # ### END LIBTOOL TAG CONFIG: $tagname
13964
13965 __EOF__
13966
13967
13968 else
13969   # If there is no Makefile yet, we rely on a make rule to execute
13970   # `config.status --recheck' to rerun these tests and create the
13971   # libtool script then.
13972   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13973   if test -f "$ltmain_in"; then
13974     test -f Makefile && make "$ltmain"
13975   fi
13976 fi
13977
13978
13979 ac_ext=c
13980 ac_cpp='$CPP $CPPFLAGS'
13981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13984
13985 CC=$lt_save_CC
13986 LDCXX=$LD
13987 LD=$lt_save_LD
13988 GCC=$lt_save_GCC
13989 with_gnu_ldcxx=$with_gnu_ld
13990 with_gnu_ld=$lt_save_with_gnu_ld
13991 lt_cv_path_LDCXX=$lt_cv_path_LD
13992 lt_cv_path_LD=$lt_save_path_LD
13993 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13994 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13995
13996         else
13997           tagname=""
13998         fi
13999         ;;
14000
14001       F77)
14002         if test -n "$F77" && test "X$F77" != "Xno"; then
14003
14004 ac_ext=f
14005 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14006 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14008
14009
14010 archive_cmds_need_lc_F77=no
14011 allow_undefined_flag_F77=
14012 always_export_symbols_F77=no
14013 archive_expsym_cmds_F77=
14014 export_dynamic_flag_spec_F77=
14015 hardcode_direct_F77=no
14016 hardcode_libdir_flag_spec_F77=
14017 hardcode_libdir_flag_spec_ld_F77=
14018 hardcode_libdir_separator_F77=
14019 hardcode_minus_L_F77=no
14020 hardcode_automatic_F77=no
14021 module_cmds_F77=
14022 module_expsym_cmds_F77=
14023 link_all_deplibs_F77=unknown
14024 old_archive_cmds_F77=$old_archive_cmds
14025 no_undefined_flag_F77=
14026 whole_archive_flag_spec_F77=
14027 enable_shared_with_static_runtimes_F77=no
14028
14029 # Source file extension for f77 test sources.
14030 ac_ext=f
14031
14032 # Object file extension for compiled f77 test sources.
14033 objext=o
14034 objext_F77=$objext
14035
14036 # Code to be used in simple compile tests
14037 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14038
14039 # Code to be used in simple link tests
14040 lt_simple_link_test_code="      program t\n      end\n"
14041
14042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14043
14044 # If no C compiler was specified, use CC.
14045 LTCC=${LTCC-"$CC"}
14046
14047 # If no C compiler flags were specified, use CFLAGS.
14048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14049
14050 # Allow CC to be a program name with arguments.
14051 compiler=$CC
14052
14053
14054 # save warnings/boilerplate of simple test code
14055 ac_outfile=conftest.$ac_objext
14056 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14058 _lt_compiler_boilerplate=`cat conftest.err`
14059 $rm conftest*
14060
14061 ac_outfile=conftest.$ac_objext
14062 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14064 _lt_linker_boilerplate=`cat conftest.err`
14065 $rm conftest*
14066
14067
14068 # Allow CC to be a program name with arguments.
14069 lt_save_CC="$CC"
14070 CC=${F77-"f77"}
14071 compiler=$CC
14072 compiler_F77=$CC
14073 for cc_temp in $compiler""; do
14074   case $cc_temp in
14075     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14076     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14077     \-*) ;;
14078     *) break;;
14079   esac
14080 done
14081 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14082
14083
14084 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14085 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14086 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14087 echo "${ECHO_T}$can_build_shared" >&6
14088
14089 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14090 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14091 test "$can_build_shared" = "no" && enable_shared=no
14092
14093 # On AIX, shared libraries and static libraries use the same namespace, and
14094 # are all built from PIC.
14095 case $host_os in
14096 aix3*)
14097   test "$enable_shared" = yes && enable_static=no
14098   if test -n "$RANLIB"; then
14099     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14100     postinstall_cmds='$RANLIB $lib'
14101   fi
14102   ;;
14103 aix4* | aix5*)
14104   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14105     test "$enable_shared" = yes && enable_static=no
14106   fi
14107   ;;
14108 esac
14109 echo "$as_me:$LINENO: result: $enable_shared" >&5
14110 echo "${ECHO_T}$enable_shared" >&6
14111
14112 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14113 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14114 # Make sure either enable_shared or enable_static is yes.
14115 test "$enable_shared" = yes || enable_static=yes
14116 echo "$as_me:$LINENO: result: $enable_static" >&5
14117 echo "${ECHO_T}$enable_static" >&6
14118
14119 GCC_F77="$G77"
14120 LD_F77="$LD"
14121
14122 lt_prog_compiler_wl_F77=
14123 lt_prog_compiler_pic_F77=
14124 lt_prog_compiler_static_F77=
14125
14126 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14127 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14128
14129   if test "$GCC" = yes; then
14130     lt_prog_compiler_wl_F77='-Wl,'
14131     lt_prog_compiler_static_F77='-static'
14132
14133     case $host_os in
14134       aix*)
14135       # All AIX code is PIC.
14136       if test "$host_cpu" = ia64; then
14137         # AIX 5 now supports IA64 processor
14138         lt_prog_compiler_static_F77='-Bstatic'
14139       fi
14140       ;;
14141
14142     amigaos*)
14143       # FIXME: we need at least 68020 code to build shared libraries, but
14144       # adding the `-m68020' flag to GCC prevents building anything better,
14145       # like `-m68040'.
14146       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14147       ;;
14148
14149     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14150       # PIC is the default for these OSes.
14151       ;;
14152
14153     mingw* | pw32* | os2*)
14154       # This hack is so that the source file can tell whether it is being
14155       # built for inclusion in a dll (and should export symbols for example).
14156       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14157       ;;
14158
14159     darwin* | rhapsody*)
14160       # PIC is the default on this platform
14161       # Common symbols not allowed in MH_DYLIB files
14162       lt_prog_compiler_pic_F77='-fno-common'
14163       ;;
14164
14165     interix3*)
14166       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14167       # Instead, we relocate shared libraries at runtime.
14168       ;;
14169
14170     msdosdjgpp*)
14171       # Just because we use GCC doesn't mean we suddenly get shared libraries
14172       # on systems that don't support them.
14173       lt_prog_compiler_can_build_shared_F77=no
14174       enable_shared=no
14175       ;;
14176
14177     sysv4*MP*)
14178       if test -d /usr/nec; then
14179         lt_prog_compiler_pic_F77=-Kconform_pic
14180       fi
14181       ;;
14182
14183     hpux*)
14184       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14185       # not for PA HP-UX.
14186       case $host_cpu in
14187       hppa*64*|ia64*)
14188         # +Z the default
14189         ;;
14190       *)
14191         lt_prog_compiler_pic_F77='-fPIC'
14192         ;;
14193       esac
14194       ;;
14195
14196     *)
14197       lt_prog_compiler_pic_F77='-fPIC'
14198       ;;
14199     esac
14200   else
14201     # PORTME Check for flag to pass linker flags through the system compiler.
14202     case $host_os in
14203     aix*)
14204       lt_prog_compiler_wl_F77='-Wl,'
14205       if test "$host_cpu" = ia64; then
14206         # AIX 5 now supports IA64 processor
14207         lt_prog_compiler_static_F77='-Bstatic'
14208       else
14209         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14210       fi
14211       ;;
14212       darwin*)
14213         # PIC is the default on this platform
14214         # Common symbols not allowed in MH_DYLIB files
14215        case $cc_basename in
14216          xlc*)
14217          lt_prog_compiler_pic_F77='-qnocommon'
14218          lt_prog_compiler_wl_F77='-Wl,'
14219          ;;
14220        esac
14221        ;;
14222
14223     mingw* | pw32* | os2*)
14224       # This hack is so that the source file can tell whether it is being
14225       # built for inclusion in a dll (and should export symbols for example).
14226       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14227       ;;
14228
14229     hpux9* | hpux10* | hpux11*)
14230       lt_prog_compiler_wl_F77='-Wl,'
14231       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14232       # not for PA HP-UX.
14233       case $host_cpu in
14234       hppa*64*|ia64*)
14235         # +Z the default
14236         ;;
14237       *)
14238         lt_prog_compiler_pic_F77='+Z'
14239         ;;
14240       esac
14241       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14242       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14243       ;;
14244
14245     irix5* | irix6* | nonstopux*)
14246       lt_prog_compiler_wl_F77='-Wl,'
14247       # PIC (with -KPIC) is the default.
14248       lt_prog_compiler_static_F77='-non_shared'
14249       ;;
14250
14251     newsos6)
14252       lt_prog_compiler_pic_F77='-KPIC'
14253       lt_prog_compiler_static_F77='-Bstatic'
14254       ;;
14255
14256     linux* | k*bsd*-gnu)
14257       case $cc_basename in
14258       icc* | ecc*)
14259         lt_prog_compiler_wl_F77='-Wl,'
14260         lt_prog_compiler_pic_F77='-KPIC'
14261         lt_prog_compiler_static_F77='-static'
14262         ;;
14263       pgcc* | pgf77* | pgf90* | pgf95*)
14264         # Portland Group compilers (*not* the Pentium gcc compiler,
14265         # which looks to be a dead project)
14266         lt_prog_compiler_wl_F77='-Wl,'
14267         lt_prog_compiler_pic_F77='-fpic'
14268         lt_prog_compiler_static_F77='-Bstatic'
14269         ;;
14270       ccc*)
14271         lt_prog_compiler_wl_F77='-Wl,'
14272         # All Alpha code is PIC.
14273         lt_prog_compiler_static_F77='-non_shared'
14274         ;;
14275       esac
14276       ;;
14277
14278     osf3* | osf4* | osf5*)
14279       lt_prog_compiler_wl_F77='-Wl,'
14280       # All OSF/1 code is PIC.
14281       lt_prog_compiler_static_F77='-non_shared'
14282       ;;
14283
14284     solaris*)
14285       lt_prog_compiler_pic_F77='-KPIC'
14286       lt_prog_compiler_static_F77='-Bstatic'
14287       case $cc_basename in
14288       f77* | f90* | f95*)
14289         lt_prog_compiler_wl_F77='-Qoption ld ';;
14290       *)
14291         lt_prog_compiler_wl_F77='-Wl,';;
14292       esac
14293       ;;
14294
14295     sunos4*)
14296       lt_prog_compiler_wl_F77='-Qoption ld '
14297       lt_prog_compiler_pic_F77='-PIC'
14298       lt_prog_compiler_static_F77='-Bstatic'
14299       ;;
14300
14301     sysv4 | sysv4.2uw2* | sysv4.3*)
14302       lt_prog_compiler_wl_F77='-Wl,'
14303       lt_prog_compiler_pic_F77='-KPIC'
14304       lt_prog_compiler_static_F77='-Bstatic'
14305       ;;
14306
14307     sysv4*MP*)
14308       if test -d /usr/nec ;then
14309         lt_prog_compiler_pic_F77='-Kconform_pic'
14310         lt_prog_compiler_static_F77='-Bstatic'
14311       fi
14312       ;;
14313
14314     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14315       lt_prog_compiler_wl_F77='-Wl,'
14316       lt_prog_compiler_pic_F77='-KPIC'
14317       lt_prog_compiler_static_F77='-Bstatic'
14318       ;;
14319
14320     unicos*)
14321       lt_prog_compiler_wl_F77='-Wl,'
14322       lt_prog_compiler_can_build_shared_F77=no
14323       ;;
14324
14325     uts4*)
14326       lt_prog_compiler_pic_F77='-pic'
14327       lt_prog_compiler_static_F77='-Bstatic'
14328       ;;
14329
14330     *)
14331       lt_prog_compiler_can_build_shared_F77=no
14332       ;;
14333     esac
14334   fi
14335
14336 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14337 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14338
14339 #
14340 # Check to make sure the PIC flag actually works.
14341 #
14342 if test -n "$lt_prog_compiler_pic_F77"; then
14343
14344 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14345 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14346 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   lt_prog_compiler_pic_works_F77=no
14350   ac_outfile=conftest.$ac_objext
14351    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14352    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14353    # Insert the option either (1) after the last *FLAGS variable, or
14354    # (2) before a word containing "conftest.", or (3) at the end.
14355    # Note that $ac_compile itself does not contain backslashes and begins
14356    # with a dollar sign (not a hyphen), so the echo should work correctly.
14357    # The option is referenced via a variable to avoid confusing sed.
14358    lt_compile=`echo "$ac_compile" | $SED \
14359    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361    -e 's:$: $lt_compiler_flag:'`
14362    (eval echo "\"\$as_me:14362: $lt_compile\"" >&5)
14363    (eval "$lt_compile" 2>conftest.err)
14364    ac_status=$?
14365    cat conftest.err >&5
14366    echo "$as_me:14366: \$? = $ac_status" >&5
14367    if (exit $ac_status) && test -s "$ac_outfile"; then
14368      # The compiler can only warn and ignore the option if not recognized
14369      # So say no if there are warnings other than the usual output.
14370      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14371      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14373        lt_prog_compiler_pic_works_F77=yes
14374      fi
14375    fi
14376    $rm conftest*
14377
14378 fi
14379 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14380 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14381
14382 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14383     case $lt_prog_compiler_pic_F77 in
14384      "" | " "*) ;;
14385      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14386      esac
14387 else
14388     lt_prog_compiler_pic_F77=
14389      lt_prog_compiler_can_build_shared_F77=no
14390 fi
14391
14392 fi
14393 case $host_os in
14394   # For platforms which do not support PIC, -DPIC is meaningless:
14395   *djgpp*)
14396     lt_prog_compiler_pic_F77=
14397     ;;
14398   *)
14399     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14400     ;;
14401 esac
14402
14403 #
14404 # Check to make sure the static flag actually works.
14405 #
14406 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14407 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14408 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14409 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14410   echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412   lt_prog_compiler_static_works_F77=no
14413    save_LDFLAGS="$LDFLAGS"
14414    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14415    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14416    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14417      # The linker can only warn and ignore the option if not recognized
14418      # So say no if there are warnings
14419      if test -s conftest.err; then
14420        # Append any errors to the config.log.
14421        cat conftest.err 1>&5
14422        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14423        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424        if diff conftest.exp conftest.er2 >/dev/null; then
14425          lt_prog_compiler_static_works_F77=yes
14426        fi
14427      else
14428        lt_prog_compiler_static_works_F77=yes
14429      fi
14430    fi
14431    $rm conftest*
14432    LDFLAGS="$save_LDFLAGS"
14433
14434 fi
14435 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14436 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14437
14438 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14439     :
14440 else
14441     lt_prog_compiler_static_F77=
14442 fi
14443
14444
14445 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14446 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14447 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14448   echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450   lt_cv_prog_compiler_c_o_F77=no
14451    $rm -r conftest 2>/dev/null
14452    mkdir conftest
14453    cd conftest
14454    mkdir out
14455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14456
14457    lt_compiler_flag="-o out/conftest2.$ac_objext"
14458    # Insert the option either (1) after the last *FLAGS variable, or
14459    # (2) before a word containing "conftest.", or (3) at the end.
14460    # Note that $ac_compile itself does not contain backslashes and begins
14461    # with a dollar sign (not a hyphen), so the echo should work correctly.
14462    lt_compile=`echo "$ac_compile" | $SED \
14463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14465    -e 's:$: $lt_compiler_flag:'`
14466    (eval echo "\"\$as_me:14466: $lt_compile\"" >&5)
14467    (eval "$lt_compile" 2>out/conftest.err)
14468    ac_status=$?
14469    cat out/conftest.err >&5
14470    echo "$as_me:14470: \$? = $ac_status" >&5
14471    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14472    then
14473      # The compiler can only warn and ignore the option if not recognized
14474      # So say no if there are warnings
14475      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14476      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14477      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14478        lt_cv_prog_compiler_c_o_F77=yes
14479      fi
14480    fi
14481    chmod u+w . 2>&5
14482    $rm conftest*
14483    # SGI C++ compiler will create directory out/ii_files/ for
14484    # template instantiation
14485    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14486    $rm out/* && rmdir out
14487    cd ..
14488    rmdir conftest
14489    $rm conftest*
14490
14491 fi
14492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14493 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14494
14495
14496 hard_links="nottested"
14497 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14498   # do not overwrite the value of need_locks provided by the user
14499   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14500 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14501   hard_links=yes
14502   $rm conftest*
14503   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14504   touch conftest.a
14505   ln conftest.a conftest.b 2>&5 || hard_links=no
14506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14507   echo "$as_me:$LINENO: result: $hard_links" >&5
14508 echo "${ECHO_T}$hard_links" >&6
14509   if test "$hard_links" = no; then
14510     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14511 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14512     need_locks=warn
14513   fi
14514 else
14515   need_locks=no
14516 fi
14517
14518 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14519 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14520
14521   runpath_var=
14522   allow_undefined_flag_F77=
14523   enable_shared_with_static_runtimes_F77=no
14524   archive_cmds_F77=
14525   archive_expsym_cmds_F77=
14526   old_archive_From_new_cmds_F77=
14527   old_archive_from_expsyms_cmds_F77=
14528   export_dynamic_flag_spec_F77=
14529   whole_archive_flag_spec_F77=
14530   thread_safe_flag_spec_F77=
14531   hardcode_libdir_flag_spec_F77=
14532   hardcode_libdir_flag_spec_ld_F77=
14533   hardcode_libdir_separator_F77=
14534   hardcode_direct_F77=no
14535   hardcode_minus_L_F77=no
14536   hardcode_shlibpath_var_F77=unsupported
14537   link_all_deplibs_F77=unknown
14538   hardcode_automatic_F77=no
14539   module_cmds_F77=
14540   module_expsym_cmds_F77=
14541   always_export_symbols_F77=no
14542   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14543   # include_expsyms should be a list of space-separated symbols to be *always*
14544   # included in the symbol list
14545   include_expsyms_F77=
14546   # exclude_expsyms can be an extended regexp of symbols to exclude
14547   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14548   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14549   # as well as any symbol that contains `d'.
14550   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14551   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14552   # platforms (ab)use it in PIC code, but their linkers get confused if
14553   # the symbol is explicitly referenced.  Since portable code cannot
14554   # rely on this symbol name, it's probably fine to never include it in
14555   # preloaded symbol tables.
14556   extract_expsyms_cmds=
14557   # Just being paranoid about ensuring that cc_basename is set.
14558   for cc_temp in $compiler""; do
14559   case $cc_temp in
14560     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14561     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14562     \-*) ;;
14563     *) break;;
14564   esac
14565 done
14566 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14567
14568   case $host_os in
14569   cygwin* | mingw* | pw32*)
14570     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14571     # When not using gcc, we currently assume that we are using
14572     # Microsoft Visual C++.
14573     if test "$GCC" != yes; then
14574       with_gnu_ld=no
14575     fi
14576     ;;
14577   interix*)
14578     # we just hope/assume this is gcc and not c89 (= MSVC++)
14579     with_gnu_ld=yes
14580     ;;
14581   openbsd*)
14582     with_gnu_ld=no
14583     ;;
14584   esac
14585
14586   ld_shlibs_F77=yes
14587   if test "$with_gnu_ld" = yes; then
14588     # If archive_cmds runs LD, not CC, wlarc should be empty
14589     wlarc='${wl}'
14590
14591     # Set some defaults for GNU ld with shared library support. These
14592     # are reset later if shared libraries are not supported. Putting them
14593     # here allows them to be overridden if necessary.
14594     runpath_var=LD_RUN_PATH
14595     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14596     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14597     # ancient GNU ld didn't support --whole-archive et. al.
14598     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14599         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14600       else
14601         whole_archive_flag_spec_F77=
14602     fi
14603     supports_anon_versioning=no
14604     case `$LD -v 2>/dev/null` in
14605       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14606       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14607       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14608       *\ 2.11.*) ;; # other 2.11 versions
14609       *) supports_anon_versioning=yes ;;
14610     esac
14611
14612     # See if GNU ld supports shared libraries.
14613     case $host_os in
14614     aix3* | aix4* | aix5*)
14615       # On AIX/PPC, the GNU linker is very broken
14616       if test "$host_cpu" != ia64; then
14617         ld_shlibs_F77=no
14618         cat <<EOF 1>&2
14619
14620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14621 *** to be unable to reliably create shared libraries on AIX.
14622 *** Therefore, libtool is disabling shared libraries support.  If you
14623 *** really care for shared libraries, you may want to modify your PATH
14624 *** so that a non-GNU linker is found, and then restart.
14625
14626 EOF
14627       fi
14628       ;;
14629
14630     amigaos*)
14631       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14632       hardcode_libdir_flag_spec_F77='-L$libdir'
14633       hardcode_minus_L_F77=yes
14634
14635       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14636       # that the semantics of dynamic libraries on AmigaOS, at least up
14637       # to version 4, is to share data among multiple programs linked
14638       # with the same dynamic library.  Since this doesn't match the
14639       # behavior of shared libraries on other platforms, we can't use
14640       # them.
14641       ld_shlibs_F77=no
14642       ;;
14643
14644     beos*)
14645       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14646         allow_undefined_flag_F77=unsupported
14647         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14648         # support --undefined.  This deserves some investigation.  FIXME
14649         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14650       else
14651         ld_shlibs_F77=no
14652       fi
14653       ;;
14654
14655     cygwin* | mingw* | pw32*)
14656       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14657       # as there is no search path for DLLs.
14658       hardcode_libdir_flag_spec_F77='-L$libdir'
14659       allow_undefined_flag_F77=unsupported
14660       always_export_symbols_F77=no
14661       enable_shared_with_static_runtimes_F77=yes
14662       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14663
14664       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14665         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14666         # If the export-symbols file already is a .def file (1st line
14667         # is EXPORTS), use it as is; otherwise, prepend...
14668         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14669           cp $export_symbols $output_objdir/$soname.def;
14670         else
14671           echo EXPORTS > $output_objdir/$soname.def;
14672           cat $export_symbols >> $output_objdir/$soname.def;
14673         fi~
14674         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14675       else
14676         ld_shlibs_F77=no
14677       fi
14678       ;;
14679
14680     interix3*)
14681       hardcode_direct_F77=no
14682       hardcode_shlibpath_var_F77=no
14683       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14684       export_dynamic_flag_spec_F77='${wl}-E'
14685       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14686       # Instead, shared libraries are loaded at an image base (0x10000000 by
14687       # default) and relocated if they conflict, which is a slow very memory
14688       # consuming and fragmenting process.  To avoid this, we pick a random,
14689       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14690       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14691       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14692       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14693       ;;
14694
14695     linux* | k*bsd*-gnu)
14696       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14697         tmp_addflag=
14698         case $cc_basename,$host_cpu in
14699         pgcc*)                          # Portland Group C compiler
14700           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14701           tmp_addflag=' $pic_flag'
14702           ;;
14703         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14704           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14705           tmp_addflag=' $pic_flag -Mnomain' ;;
14706         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14707           tmp_addflag=' -i_dynamic' ;;
14708         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14709           tmp_addflag=' -i_dynamic -nofor_main' ;;
14710         ifc* | ifort*)                  # Intel Fortran compiler
14711           tmp_addflag=' -nofor_main' ;;
14712         esac
14713         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14714
14715         if test $supports_anon_versioning = yes; then
14716           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14717   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14718   $echo "local: *; };" >> $output_objdir/$libname.ver~
14719           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14720         fi
14721         link_all_deplibs_F77=no
14722       else
14723         ld_shlibs_F77=no
14724       fi
14725       ;;
14726
14727     netbsd* | netbsdelf*-gnu)
14728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14729         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14730         wlarc=
14731       else
14732         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14733         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14734       fi
14735       ;;
14736
14737     solaris*)
14738       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14739         ld_shlibs_F77=no
14740         cat <<EOF 1>&2
14741
14742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14743 *** create shared libraries on Solaris systems.  Therefore, libtool
14744 *** is disabling shared libraries support.  We urge you to upgrade GNU
14745 *** binutils to release 2.9.1 or newer.  Another option is to modify
14746 *** your PATH or compiler configuration so that the native linker is
14747 *** used, and then restart.
14748
14749 EOF
14750       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14751         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14752         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14753       else
14754         ld_shlibs_F77=no
14755       fi
14756       ;;
14757
14758     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14759       case `$LD -v 2>&1` in
14760         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14761         ld_shlibs_F77=no
14762         cat <<_LT_EOF 1>&2
14763
14764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14765 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14766 *** is disabling shared libraries support.  We urge you to upgrade GNU
14767 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14768 *** your PATH or compiler configuration so that the native linker is
14769 *** used, and then restart.
14770
14771 _LT_EOF
14772         ;;
14773         *)
14774           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14775             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14776             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14777             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14778           else
14779             ld_shlibs_F77=no
14780           fi
14781         ;;
14782       esac
14783       ;;
14784
14785     sunos4*)
14786       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14787       wlarc=
14788       hardcode_direct_F77=yes
14789       hardcode_shlibpath_var_F77=no
14790       ;;
14791
14792     *)
14793       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14796       else
14797         ld_shlibs_F77=no
14798       fi
14799       ;;
14800     esac
14801
14802     if test "$ld_shlibs_F77" = no; then
14803       runpath_var=
14804       hardcode_libdir_flag_spec_F77=
14805       export_dynamic_flag_spec_F77=
14806       whole_archive_flag_spec_F77=
14807     fi
14808   else
14809     # PORTME fill in a description of your system's linker (not GNU ld)
14810     case $host_os in
14811     aix3*)
14812       allow_undefined_flag_F77=unsupported
14813       always_export_symbols_F77=yes
14814       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14815       # Note: this linker hardcodes the directories in LIBPATH if there
14816       # are no directories specified by -L.
14817       hardcode_minus_L_F77=yes
14818       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14819         # Neither direct hardcoding nor static linking is supported with a
14820         # broken collect2.
14821         hardcode_direct_F77=unsupported
14822       fi
14823       ;;
14824
14825     aix4* | aix5*)
14826       if test "$host_cpu" = ia64; then
14827         # On IA64, the linker does run time linking by default, so we don't
14828         # have to do anything special.
14829         aix_use_runtimelinking=no
14830         exp_sym_flag='-Bexport'
14831         no_entry_flag=""
14832       else
14833         # If we're using GNU nm, then we don't want the "-C" option.
14834         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14835         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14836           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14837         else
14838           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14839         fi
14840         aix_use_runtimelinking=no
14841
14842         # Test if we are trying to use run time linking or normal
14843         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14844         # need to do runtime linking.
14845         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14846           for ld_flag in $LDFLAGS; do
14847           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14848             aix_use_runtimelinking=yes
14849             break
14850           fi
14851           done
14852           ;;
14853         esac
14854
14855         exp_sym_flag='-bexport'
14856         no_entry_flag='-bnoentry'
14857       fi
14858
14859       # When large executables or shared objects are built, AIX ld can
14860       # have problems creating the table of contents.  If linking a library
14861       # or program results in "error TOC overflow" add -mminimal-toc to
14862       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14863       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14864
14865       archive_cmds_F77=''
14866       hardcode_direct_F77=yes
14867       hardcode_libdir_separator_F77=':'
14868       link_all_deplibs_F77=yes
14869
14870       if test "$GCC" = yes; then
14871         case $host_os in aix4.[012]|aix4.[012].*)
14872         # We only want to do this on AIX 4.2 and lower, the check
14873         # below for broken collect2 doesn't work under 4.3+
14874           collect2name=`${CC} -print-prog-name=collect2`
14875           if test -f "$collect2name" && \
14876            strings "$collect2name" | grep resolve_lib_name >/dev/null
14877           then
14878           # We have reworked collect2
14879           hardcode_direct_F77=yes
14880           else
14881           # We have old collect2
14882           hardcode_direct_F77=unsupported
14883           # It fails to find uninstalled libraries when the uninstalled
14884           # path is not listed in the libpath.  Setting hardcode_minus_L
14885           # to unsupported forces relinking
14886           hardcode_minus_L_F77=yes
14887           hardcode_libdir_flag_spec_F77='-L$libdir'
14888           hardcode_libdir_separator_F77=
14889           fi
14890           ;;
14891         esac
14892         shared_flag='-shared'
14893         if test "$aix_use_runtimelinking" = yes; then
14894           shared_flag="$shared_flag "'${wl}-G'
14895         fi
14896       else
14897         # not using gcc
14898         if test "$host_cpu" = ia64; then
14899         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14900         # chokes on -Wl,-G. The following line is correct:
14901           shared_flag='-G'
14902         else
14903           if test "$aix_use_runtimelinking" = yes; then
14904             shared_flag='${wl}-G'
14905           else
14906             shared_flag='${wl}-bM:SRE'
14907           fi
14908         fi
14909       fi
14910
14911       # It seems that -bexpall does not export symbols beginning with
14912       # underscore (_), so it is better to generate a list of symbols to export.
14913       always_export_symbols_F77=yes
14914       if test "$aix_use_runtimelinking" = yes; then
14915         # Warning - without using the other runtime loading flags (-brtl),
14916         # -berok will link without error, but may produce a broken library.
14917         allow_undefined_flag_F77='-berok'
14918        # Determine the default libpath from the value encoded in an empty executable.
14919        cat >conftest.$ac_ext <<_ACEOF
14920       program main
14921
14922       end
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926   (eval $ac_link) 2>conftest.er1
14927   ac_status=$?
14928   grep -v '^ *+' conftest.er1 >conftest.err
14929   rm -f conftest.er1
14930   cat conftest.err >&5
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } &&
14933          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; } &&
14939          { ac_try='test -s conftest$ac_exeext'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945
14946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14947 }'`
14948 # Check for a 64-bit object if we didn't find anything.
14949 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14950 }'`; fi
14951 else
14952   echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 fi
14956 rm -f conftest.err conftest.$ac_objext \
14957       conftest$ac_exeext conftest.$ac_ext
14958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14959
14960        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14961         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14962        else
14963         if test "$host_cpu" = ia64; then
14964           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14965           allow_undefined_flag_F77="-z nodefs"
14966           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14967         else
14968          # Determine the default libpath from the value encoded in an empty executable.
14969          cat >conftest.$ac_ext <<_ACEOF
14970       program main
14971
14972       end
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976   (eval $ac_link) 2>conftest.er1
14977   ac_status=$?
14978   grep -v '^ *+' conftest.er1 >conftest.err
14979   rm -f conftest.er1
14980   cat conftest.err >&5
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } &&
14983          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985   (eval $ac_try) 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); }; } &&
14989          { ac_try='test -s conftest$ac_exeext'
14990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991   (eval $ac_try) 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; }; then
14995
14996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14997 }'`
14998 # Check for a 64-bit object if we didn't find anything.
14999 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15000 }'`; fi
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005 fi
15006 rm -f conftest.err conftest.$ac_objext \
15007       conftest$ac_exeext conftest.$ac_ext
15008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15009
15010          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15011           # Warning - without using the other run time loading flags,
15012           # -berok will link without error, but may produce a broken library.
15013           no_undefined_flag_F77=' ${wl}-bernotok'
15014           allow_undefined_flag_F77=' ${wl}-berok'
15015           # Exported symbols can be pulled into shared objects from archives
15016           whole_archive_flag_spec_F77='$convenience'
15017           archive_cmds_need_lc_F77=yes
15018           # This is similar to how AIX traditionally builds its shared libraries.
15019           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15020         fi
15021       fi
15022       ;;
15023
15024     amigaos*)
15025       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15026       hardcode_libdir_flag_spec_F77='-L$libdir'
15027       hardcode_minus_L_F77=yes
15028       # see comment about different semantics on the GNU ld section
15029       ld_shlibs_F77=no
15030       ;;
15031
15032     bsdi[45]*)
15033       export_dynamic_flag_spec_F77=-rdynamic
15034       ;;
15035
15036     cygwin* | mingw* | pw32*)
15037       # When not using gcc, we currently assume that we are using
15038       # Microsoft Visual C++.
15039       # hardcode_libdir_flag_spec is actually meaningless, as there is
15040       # no search path for DLLs.
15041       hardcode_libdir_flag_spec_F77=' '
15042       allow_undefined_flag_F77=unsupported
15043       # Tell ltmain to make .lib files, not .a files.
15044       libext=lib
15045       # Tell ltmain to make .dll files, not .so files.
15046       shrext_cmds=".dll"
15047       # FIXME: Setting linknames here is a bad hack.
15048       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15049       # The linker will automatically build a .lib file if we build a DLL.
15050       old_archive_From_new_cmds_F77='true'
15051       # FIXME: Should let the user specify the lib program.
15052       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15053       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15054       enable_shared_with_static_runtimes_F77=yes
15055       ;;
15056
15057     darwin* | rhapsody*)
15058       case $host_os in
15059         rhapsody* | darwin1.[012])
15060          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15061          ;;
15062        *) # Darwin 1.3 on
15063          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15064            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15065          else
15066            case ${MACOSX_DEPLOYMENT_TARGET} in
15067              10.[012])
15068                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15069                ;;
15070              10.*)
15071                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15072                ;;
15073            esac
15074          fi
15075          ;;
15076       esac
15077       archive_cmds_need_lc_F77=no
15078       hardcode_direct_F77=no
15079       hardcode_automatic_F77=yes
15080       hardcode_shlibpath_var_F77=unsupported
15081       whole_archive_flag_spec_F77=''
15082       link_all_deplibs_F77=yes
15083     if test "$GCC" = yes ; then
15084         output_verbose_link_cmd='echo'
15085         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15086       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15087       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15088       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15089       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15090     else
15091       case $cc_basename in
15092         xlc*)
15093          output_verbose_link_cmd='echo'
15094          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15095          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15096           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15097          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15098           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15099           ;;
15100        *)
15101          ld_shlibs_F77=no
15102           ;;
15103       esac
15104     fi
15105       ;;
15106
15107     dgux*)
15108       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15109       hardcode_libdir_flag_spec_F77='-L$libdir'
15110       hardcode_shlibpath_var_F77=no
15111       ;;
15112
15113     freebsd1*)
15114       ld_shlibs_F77=no
15115       ;;
15116
15117     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15118     # support.  Future versions do this automatically, but an explicit c++rt0.o
15119     # does not break anything, and helps significantly (at the cost of a little
15120     # extra space).
15121     freebsd2.2*)
15122       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15123       hardcode_libdir_flag_spec_F77='-R$libdir'
15124       hardcode_direct_F77=yes
15125       hardcode_shlibpath_var_F77=no
15126       ;;
15127
15128     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15129     freebsd2*)
15130       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15131       hardcode_direct_F77=yes
15132       hardcode_minus_L_F77=yes
15133       hardcode_shlibpath_var_F77=no
15134       ;;
15135
15136     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15137     freebsd* | dragonfly*)
15138       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15139       hardcode_libdir_flag_spec_F77='-R$libdir'
15140       hardcode_direct_F77=yes
15141       hardcode_shlibpath_var_F77=no
15142       ;;
15143
15144     hpux9*)
15145       if test "$GCC" = yes; then
15146         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15147       else
15148         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15149       fi
15150       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151       hardcode_libdir_separator_F77=:
15152       hardcode_direct_F77=yes
15153
15154       # hardcode_minus_L: Not really in the search PATH,
15155       # but as the default location of the library.
15156       hardcode_minus_L_F77=yes
15157       export_dynamic_flag_spec_F77='${wl}-E'
15158       ;;
15159
15160     hpux10*)
15161       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15162         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15163       else
15164         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15165       fi
15166       if test "$with_gnu_ld" = no; then
15167         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168         hardcode_libdir_separator_F77=:
15169
15170         hardcode_direct_F77=yes
15171         export_dynamic_flag_spec_F77='${wl}-E'
15172
15173         # hardcode_minus_L: Not really in the search PATH,
15174         # but as the default location of the library.
15175         hardcode_minus_L_F77=yes
15176       fi
15177       ;;
15178
15179     hpux11*)
15180       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15181         case $host_cpu in
15182         hppa*64*)
15183           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184           ;;
15185         ia64*)
15186           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15187           ;;
15188         *)
15189           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15190           ;;
15191         esac
15192       else
15193         case $host_cpu in
15194         hppa*64*)
15195           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196           ;;
15197         ia64*)
15198           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15199           ;;
15200         *)
15201           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15202           ;;
15203         esac
15204       fi
15205       if test "$with_gnu_ld" = no; then
15206         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15207         hardcode_libdir_separator_F77=:
15208
15209         case $host_cpu in
15210         hppa*64*|ia64*)
15211           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15212           hardcode_direct_F77=no
15213           hardcode_shlibpath_var_F77=no
15214           ;;
15215         *)
15216           hardcode_direct_F77=yes
15217           export_dynamic_flag_spec_F77='${wl}-E'
15218
15219           # hardcode_minus_L: Not really in the search PATH,
15220           # but as the default location of the library.
15221           hardcode_minus_L_F77=yes
15222           ;;
15223         esac
15224       fi
15225       ;;
15226
15227     irix5* | irix6* | nonstopux*)
15228       if test "$GCC" = yes; then
15229         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15230       else
15231         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15232         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15233       fi
15234       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15235       hardcode_libdir_separator_F77=:
15236       link_all_deplibs_F77=yes
15237       ;;
15238
15239     netbsd* | netbsdelf*-gnu)
15240       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15241         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15242       else
15243         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15244       fi
15245       hardcode_libdir_flag_spec_F77='-R$libdir'
15246       hardcode_direct_F77=yes
15247       hardcode_shlibpath_var_F77=no
15248       ;;
15249
15250     newsos6)
15251       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252       hardcode_direct_F77=yes
15253       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15254       hardcode_libdir_separator_F77=:
15255       hardcode_shlibpath_var_F77=no
15256       ;;
15257
15258     openbsd*)
15259       hardcode_direct_F77=yes
15260       hardcode_shlibpath_var_F77=no
15261       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15262         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15263         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15264         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15265         export_dynamic_flag_spec_F77='${wl}-E'
15266       else
15267        case $host_os in
15268          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15269            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270            hardcode_libdir_flag_spec_F77='-R$libdir'
15271            ;;
15272          *)
15273            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15274            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15275            ;;
15276        esac
15277       fi
15278       ;;
15279
15280     os2*)
15281       hardcode_libdir_flag_spec_F77='-L$libdir'
15282       hardcode_minus_L_F77=yes
15283       allow_undefined_flag_F77=unsupported
15284       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15285       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15286       ;;
15287
15288     osf3*)
15289       if test "$GCC" = yes; then
15290         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15291         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15292       else
15293         allow_undefined_flag_F77=' -expect_unresolved \*'
15294         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15295       fi
15296       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15297       hardcode_libdir_separator_F77=:
15298       ;;
15299
15300     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15301       if test "$GCC" = yes; then
15302         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15303         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15304         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15305       else
15306         allow_undefined_flag_F77=' -expect_unresolved \*'
15307         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15308         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15309         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15310
15311         # Both c and cxx compiler support -rpath directly
15312         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15313       fi
15314       hardcode_libdir_separator_F77=:
15315       ;;
15316
15317     solaris*)
15318       no_undefined_flag_F77=' -z text'
15319       if test "$GCC" = yes; then
15320         wlarc='${wl}'
15321         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15323           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15324       else
15325         wlarc=''
15326         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15328         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15329       fi
15330       hardcode_libdir_flag_spec_F77='-R$libdir'
15331       hardcode_shlibpath_var_F77=no
15332       case $host_os in
15333       solaris2.[0-5] | solaris2.[0-5].*) ;;
15334       *)
15335         # The compiler driver will combine linker options so we
15336         # cannot just pass the convience library names through
15337         # without $wl, iff we do not link with $LD.
15338         # Luckily, gcc supports the same syntax we need for Sun Studio.
15339         # Supported since Solaris 2.6 (maybe 2.5.1?)
15340         case $wlarc in
15341         '')
15342           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15343         *)
15344           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15345         esac ;;
15346       esac
15347       link_all_deplibs_F77=yes
15348       ;;
15349
15350     sunos4*)
15351       if test "x$host_vendor" = xsequent; then
15352         # Use $CC to link under sequent, because it throws in some extra .o
15353         # files that make .init and .fini sections work.
15354         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15355       else
15356         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15357       fi
15358       hardcode_libdir_flag_spec_F77='-L$libdir'
15359       hardcode_direct_F77=yes
15360       hardcode_minus_L_F77=yes
15361       hardcode_shlibpath_var_F77=no
15362       ;;
15363
15364     sysv4)
15365       case $host_vendor in
15366         sni)
15367           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15368           hardcode_direct_F77=yes # is this really true???
15369         ;;
15370         siemens)
15371           ## LD is ld it makes a PLAMLIB
15372           ## CC just makes a GrossModule.
15373           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15374           reload_cmds_F77='$CC -r -o $output$reload_objs'
15375           hardcode_direct_F77=no
15376         ;;
15377         motorola)
15378           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15380         ;;
15381       esac
15382       runpath_var='LD_RUN_PATH'
15383       hardcode_shlibpath_var_F77=no
15384       ;;
15385
15386     sysv4.3*)
15387       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388       hardcode_shlibpath_var_F77=no
15389       export_dynamic_flag_spec_F77='-Bexport'
15390       ;;
15391
15392     sysv4*MP*)
15393       if test -d /usr/nec; then
15394         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395         hardcode_shlibpath_var_F77=no
15396         runpath_var=LD_RUN_PATH
15397         hardcode_runpath_var=yes
15398         ld_shlibs_F77=yes
15399       fi
15400       ;;
15401
15402     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15403       no_undefined_flag_F77='${wl}-z,text'
15404       archive_cmds_need_lc_F77=no
15405       hardcode_shlibpath_var_F77=no
15406       runpath_var='LD_RUN_PATH'
15407
15408       if test "$GCC" = yes; then
15409         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15410         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15411       else
15412         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15413         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15414       fi
15415       ;;
15416
15417     sysv5* | sco3.2v5* | sco5v6*)
15418       # Note: We can NOT use -z defs as we might desire, because we do not
15419       # link with -lc, and that would cause any symbols used from libc to
15420       # always be unresolved, which means just about no library would
15421       # ever link correctly.  If we're not using GNU ld we use -z text
15422       # though, which does catch some bad symbols but isn't as heavy-handed
15423       # as -z defs.
15424       no_undefined_flag_F77='${wl}-z,text'
15425       allow_undefined_flag_F77='${wl}-z,nodefs'
15426       archive_cmds_need_lc_F77=no
15427       hardcode_shlibpath_var_F77=no
15428       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15429       hardcode_libdir_separator_F77=':'
15430       link_all_deplibs_F77=yes
15431       export_dynamic_flag_spec_F77='${wl}-Bexport'
15432       runpath_var='LD_RUN_PATH'
15433
15434       if test "$GCC" = yes; then
15435         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15436         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437       else
15438         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15439         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440       fi
15441       ;;
15442
15443     uts4*)
15444       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445       hardcode_libdir_flag_spec_F77='-L$libdir'
15446       hardcode_shlibpath_var_F77=no
15447       ;;
15448
15449     *)
15450       ld_shlibs_F77=no
15451       ;;
15452     esac
15453   fi
15454
15455 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15456 echo "${ECHO_T}$ld_shlibs_F77" >&6
15457 test "$ld_shlibs_F77" = no && can_build_shared=no
15458
15459 #
15460 # Do we need to explicitly link libc?
15461 #
15462 case "x$archive_cmds_need_lc_F77" in
15463 x|xyes)
15464   # Assume -lc should be added
15465   archive_cmds_need_lc_F77=yes
15466
15467   if test "$enable_shared" = yes && test "$GCC" = yes; then
15468     case $archive_cmds_F77 in
15469     *'~'*)
15470       # FIXME: we may have to deal with multi-command sequences.
15471       ;;
15472     '$CC '*)
15473       # Test whether the compiler implicitly links with -lc since on some
15474       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15475       # to ld, don't add -lc before -lgcc.
15476       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15478       $rm conftest*
15479       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15480
15481       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482   (eval $ac_compile) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); } 2>conftest.err; then
15486         soname=conftest
15487         lib=conftest
15488         libobjs=conftest.$ac_objext
15489         deplibs=
15490         wl=$lt_prog_compiler_wl_F77
15491         pic_flag=$lt_prog_compiler_pic_F77
15492         compiler_flags=-v
15493         linker_flags=-v
15494         verstring=
15495         output_objdir=.
15496         libname=conftest
15497         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15498         allow_undefined_flag_F77=
15499         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15500   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }
15504         then
15505           archive_cmds_need_lc_F77=no
15506         else
15507           archive_cmds_need_lc_F77=yes
15508         fi
15509         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15510       else
15511         cat conftest.err 1>&5
15512       fi
15513       $rm conftest*
15514       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15515 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15516       ;;
15517     esac
15518   fi
15519   ;;
15520 esac
15521
15522 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15523 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15524 library_names_spec=
15525 libname_spec='lib$name'
15526 soname_spec=
15527 shrext_cmds=".so"
15528 postinstall_cmds=
15529 postuninstall_cmds=
15530 finish_cmds=
15531 finish_eval=
15532 shlibpath_var=
15533 shlibpath_overrides_runpath=unknown
15534 version_type=none
15535 dynamic_linker="$host_os ld.so"
15536 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15537 if test "$GCC" = yes; then
15538   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15539   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15540     # if the path contains ";" then we assume it to be the separator
15541     # otherwise default to the standard path separator (i.e. ":") - it is
15542     # assumed that no part of a normal pathname contains ";" but that should
15543     # okay in the real world where ";" in dirpaths is itself problematic.
15544     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15545   else
15546     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15547   fi
15548 else
15549   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15550 fi
15551 need_lib_prefix=unknown
15552 hardcode_into_libs=no
15553
15554 # when you set need_version to no, make sure it does not cause -set_version
15555 # flags to be left without arguments
15556 need_version=unknown
15557
15558 case $host_os in
15559 aix3*)
15560   version_type=linux
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15562   shlibpath_var=LIBPATH
15563
15564   # AIX 3 has no versioning support, so we append a major version to the name.
15565   soname_spec='${libname}${release}${shared_ext}$major'
15566   ;;
15567
15568 aix4* | aix5*)
15569   version_type=linux
15570   need_lib_prefix=no
15571   need_version=no
15572   hardcode_into_libs=yes
15573   if test "$host_cpu" = ia64; then
15574     # AIX 5 supports IA64
15575     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15576     shlibpath_var=LD_LIBRARY_PATH
15577   else
15578     # With GCC up to 2.95.x, collect2 would create an import file
15579     # for dependence libraries.  The import file would start with
15580     # the line `#! .'.  This would cause the generated library to
15581     # depend on `.', always an invalid library.  This was fixed in
15582     # development snapshots of GCC prior to 3.0.
15583     case $host_os in
15584       aix4 | aix4.[01] | aix4.[01].*)
15585       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15586            echo ' yes '
15587            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15588         :
15589       else
15590         can_build_shared=no
15591       fi
15592       ;;
15593     esac
15594     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15595     # soname into executable. Probably we can add versioning support to
15596     # collect2, so additional links can be useful in future.
15597     if test "$aix_use_runtimelinking" = yes; then
15598       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15599       # instead of lib<name>.a to let people know that these are not
15600       # typical AIX shared libraries.
15601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602     else
15603       # We preserve .a as extension for shared libraries through AIX4.2
15604       # and later when we are not doing run time linking.
15605       library_names_spec='${libname}${release}.a $libname.a'
15606       soname_spec='${libname}${release}${shared_ext}$major'
15607     fi
15608     shlibpath_var=LIBPATH
15609   fi
15610   ;;
15611
15612 amigaos*)
15613   library_names_spec='$libname.ixlibrary $libname.a'
15614   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15615   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15616   ;;
15617
15618 beos*)
15619   library_names_spec='${libname}${shared_ext}'
15620   dynamic_linker="$host_os ld.so"
15621   shlibpath_var=LIBRARY_PATH
15622   ;;
15623
15624 bsdi[45]*)
15625   version_type=linux
15626   need_version=no
15627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628   soname_spec='${libname}${release}${shared_ext}$major'
15629   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15630   shlibpath_var=LD_LIBRARY_PATH
15631   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15632   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15633   # the default ld.so.conf also contains /usr/contrib/lib and
15634   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15635   # libtool to hard-code these into programs
15636   ;;
15637
15638 cygwin* | mingw* | pw32*)
15639   version_type=windows
15640   shrext_cmds=".dll"
15641   need_version=no
15642   need_lib_prefix=no
15643
15644   case $GCC,$host_os in
15645   yes,cygwin* | yes,mingw* | yes,pw32*)
15646     library_names_spec='$libname.dll.a'
15647     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15648     postinstall_cmds='base_file=`basename \${file}`~
15649       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15650       dldir=$destdir/`dirname \$dlpath`~
15651       test -d \$dldir || mkdir -p \$dldir~
15652       $install_prog $dir/$dlname \$dldir/$dlname~
15653       chmod a+x \$dldir/$dlname'
15654     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15655       dlpath=$dir/\$dldll~
15656        $rm \$dlpath'
15657     shlibpath_overrides_runpath=yes
15658
15659     case $host_os in
15660     cygwin*)
15661       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15662       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15663       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15664       ;;
15665     mingw*)
15666       # MinGW DLLs use traditional 'lib' prefix
15667       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15668       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15669       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15670         # It is most probably a Windows format PATH printed by
15671         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15672         # path with ; separators, and with drive letters. We can handle the
15673         # drive letters (cygwin fileutils understands them), so leave them,
15674         # especially as we might pass files found there to a mingw objdump,
15675         # which wouldn't understand a cygwinified path. Ahh.
15676         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15677       else
15678         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15679       fi
15680       ;;
15681     pw32*)
15682       # pw32 DLLs use 'pw' prefix rather than 'lib'
15683       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15684       ;;
15685     esac
15686     ;;
15687
15688   *)
15689     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15690     ;;
15691   esac
15692   dynamic_linker='Win32 ld.exe'
15693   # FIXME: first we should search . and the directory the executable is in
15694   shlibpath_var=PATH
15695   ;;
15696
15697 darwin* | rhapsody*)
15698   dynamic_linker="$host_os dyld"
15699   version_type=darwin
15700   need_lib_prefix=no
15701   need_version=no
15702   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15703   soname_spec='${libname}${release}${major}$shared_ext'
15704   shlibpath_overrides_runpath=yes
15705   shlibpath_var=DYLD_LIBRARY_PATH
15706   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15707   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15708   if test "$GCC" = yes; then
15709     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15710   else
15711     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15712   fi
15713   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15714   ;;
15715
15716 dgux*)
15717   version_type=linux
15718   need_lib_prefix=no
15719   need_version=no
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   ;;
15724
15725 freebsd1*)
15726   dynamic_linker=no
15727   ;;
15728
15729 freebsd* | dragonfly*)
15730   # DragonFly does not have aout.  When/if they implement a new
15731   # versioning mechanism, adjust this.
15732   if test -x /usr/bin/objformat; then
15733     objformat=`/usr/bin/objformat`
15734   else
15735     case $host_os in
15736     freebsd[123]*) objformat=aout ;;
15737     *) objformat=elf ;;
15738     esac
15739   fi
15740   version_type=freebsd-$objformat
15741   case $version_type in
15742     freebsd-elf*)
15743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15744       need_version=no
15745       need_lib_prefix=no
15746       ;;
15747     freebsd-*)
15748       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15749       need_version=yes
15750       ;;
15751   esac
15752   shlibpath_var=LD_LIBRARY_PATH
15753   case $host_os in
15754   freebsd2*)
15755     shlibpath_overrides_runpath=yes
15756     ;;
15757   freebsd3.[01]* | freebsdelf3.[01]*)
15758     shlibpath_overrides_runpath=yes
15759     hardcode_into_libs=yes
15760     ;;
15761   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15762   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15763     shlibpath_overrides_runpath=no
15764     hardcode_into_libs=yes
15765     ;;
15766   freebsd*) # from 4.6 on
15767     shlibpath_overrides_runpath=yes
15768     hardcode_into_libs=yes
15769     ;;
15770   esac
15771   ;;
15772
15773 gnu*)
15774   version_type=linux
15775   need_lib_prefix=no
15776   need_version=no
15777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15778   soname_spec='${libname}${release}${shared_ext}$major'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   hardcode_into_libs=yes
15781   ;;
15782
15783 hpux9* | hpux10* | hpux11*)
15784   # Give a soname corresponding to the major version so that dld.sl refuses to
15785   # link against other versions.
15786   version_type=sunos
15787   need_lib_prefix=no
15788   need_version=no
15789   case $host_cpu in
15790   ia64*)
15791     shrext_cmds='.so'
15792     hardcode_into_libs=yes
15793     dynamic_linker="$host_os dld.so"
15794     shlibpath_var=LD_LIBRARY_PATH
15795     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797     soname_spec='${libname}${release}${shared_ext}$major'
15798     if test "X$HPUX_IA64_MODE" = X32; then
15799       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15800     else
15801       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15802     fi
15803     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804     ;;
15805    hppa*64*)
15806      shrext_cmds='.sl'
15807      hardcode_into_libs=yes
15808      dynamic_linker="$host_os dld.sl"
15809      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15810      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812      soname_spec='${libname}${release}${shared_ext}$major'
15813      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15814      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15815      ;;
15816    *)
15817     shrext_cmds='.sl'
15818     dynamic_linker="$host_os dld.sl"
15819     shlibpath_var=SHLIB_PATH
15820     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822     soname_spec='${libname}${release}${shared_ext}$major'
15823     ;;
15824   esac
15825   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15826   postinstall_cmds='chmod 555 $lib'
15827   ;;
15828
15829 interix3*)
15830   version_type=linux
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   shlibpath_overrides_runpath=no
15838   hardcode_into_libs=yes
15839   ;;
15840
15841 irix5* | irix6* | nonstopux*)
15842   case $host_os in
15843     nonstopux*) version_type=nonstopux ;;
15844     *)
15845         if test "$lt_cv_prog_gnu_ld" = yes; then
15846                 version_type=linux
15847         else
15848                 version_type=irix
15849         fi ;;
15850   esac
15851   need_lib_prefix=no
15852   need_version=no
15853   soname_spec='${libname}${release}${shared_ext}$major'
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15855   case $host_os in
15856   irix5* | nonstopux*)
15857     libsuff= shlibsuff=
15858     ;;
15859   *)
15860     case $LD in # libtool.m4 will add one of these switches to LD
15861     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862       libsuff= shlibsuff= libmagic=32-bit;;
15863     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864       libsuff=32 shlibsuff=N32 libmagic=N32;;
15865     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867     *) libsuff= shlibsuff= libmagic=never-match;;
15868     esac
15869     ;;
15870   esac
15871   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872   shlibpath_overrides_runpath=no
15873   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875   hardcode_into_libs=yes
15876   ;;
15877
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15880   dynamic_linker=no
15881   ;;
15882
15883 # This must be Linux ELF.
15884 linux* | k*bsd*-gnu)
15885   version_type=linux
15886   need_lib_prefix=no
15887   need_version=no
15888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891   shlibpath_var=LD_LIBRARY_PATH
15892   shlibpath_overrides_runpath=no
15893   # This implies no fast_install, which is unacceptable.
15894   # Some rework will be needed to allow for fast_install
15895   # before this can be enabled.
15896   hardcode_into_libs=yes
15897
15898   # Append ld.so.conf contents to the search path
15899   if test -f /etc/ld.so.conf; then
15900     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15902   fi
15903
15904   # We used to test for /lib/ld.so.1 and disable shared libraries on
15905   # powerpc, because MkLinux only supported shared libraries with the
15906   # GNU dynamic linker.  Since this was broken with cross compilers,
15907   # most powerpc-linux boxes support dynamic linking these days and
15908   # people can always --disable-shared, the test was removed, and we
15909   # assume the GNU/Linux dynamic linker is in use.
15910   dynamic_linker='GNU/Linux ld.so'
15911   ;;
15912
15913 netbsdelf*-gnu)
15914   version_type=linux
15915   need_lib_prefix=no
15916   need_version=no
15917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918   soname_spec='${libname}${release}${shared_ext}$major'
15919   shlibpath_var=LD_LIBRARY_PATH
15920   shlibpath_overrides_runpath=no
15921   hardcode_into_libs=yes
15922   dynamic_linker='NetBSD ld.elf_so'
15923   ;;
15924
15925 netbsd*)
15926   version_type=sunos
15927   need_lib_prefix=no
15928   need_version=no
15929   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932     dynamic_linker='NetBSD (a.out) ld.so'
15933   else
15934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935     soname_spec='${libname}${release}${shared_ext}$major'
15936     dynamic_linker='NetBSD ld.elf_so'
15937   fi
15938   shlibpath_var=LD_LIBRARY_PATH
15939   shlibpath_overrides_runpath=yes
15940   hardcode_into_libs=yes
15941   ;;
15942
15943 newsos6)
15944   version_type=linux
15945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   shlibpath_overrides_runpath=yes
15948   ;;
15949
15950 nto-qnx*)
15951   version_type=linux
15952   need_lib_prefix=no
15953   need_version=no
15954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955   soname_spec='${libname}${release}${shared_ext}$major'
15956   shlibpath_var=LD_LIBRARY_PATH
15957   shlibpath_overrides_runpath=yes
15958   ;;
15959
15960 openbsd*)
15961   version_type=sunos
15962   sys_lib_dlsearch_path_spec="/usr/lib"
15963   need_lib_prefix=no
15964   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15965   case $host_os in
15966     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15967     *)                         need_version=no  ;;
15968   esac
15969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971   shlibpath_var=LD_LIBRARY_PATH
15972   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15973     case $host_os in
15974       openbsd2.[89] | openbsd2.[89].*)
15975         shlibpath_overrides_runpath=no
15976         ;;
15977       *)
15978         shlibpath_overrides_runpath=yes
15979         ;;
15980       esac
15981   else
15982     shlibpath_overrides_runpath=yes
15983   fi
15984   ;;
15985
15986 os2*)
15987   libname_spec='$name'
15988   shrext_cmds=".dll"
15989   need_lib_prefix=no
15990   library_names_spec='$libname${shared_ext} $libname.a'
15991   dynamic_linker='OS/2 ld.exe'
15992   shlibpath_var=LIBPATH
15993   ;;
15994
15995 osf3* | osf4* | osf5*)
15996   version_type=osf
15997   need_lib_prefix=no
15998   need_version=no
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001   shlibpath_var=LD_LIBRARY_PATH
16002   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16003   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16004   ;;
16005
16006 solaris*)
16007   version_type=linux
16008   need_lib_prefix=no
16009   need_version=no
16010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011   soname_spec='${libname}${release}${shared_ext}$major'
16012   shlibpath_var=LD_LIBRARY_PATH
16013   shlibpath_overrides_runpath=yes
16014   hardcode_into_libs=yes
16015   # ldd complains unless libraries are executable
16016   postinstall_cmds='chmod +x $lib'
16017   ;;
16018
16019 sunos4*)
16020   version_type=sunos
16021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16022   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16023   shlibpath_var=LD_LIBRARY_PATH
16024   shlibpath_overrides_runpath=yes
16025   if test "$with_gnu_ld" = yes; then
16026     need_lib_prefix=no
16027   fi
16028   need_version=yes
16029   ;;
16030
16031 sysv4 | sysv4.3*)
16032   version_type=linux
16033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16034   soname_spec='${libname}${release}${shared_ext}$major'
16035   shlibpath_var=LD_LIBRARY_PATH
16036   case $host_vendor in
16037     sni)
16038       shlibpath_overrides_runpath=no
16039       need_lib_prefix=no
16040       export_dynamic_flag_spec='${wl}-Blargedynsym'
16041       runpath_var=LD_RUN_PATH
16042       ;;
16043     siemens)
16044       need_lib_prefix=no
16045       ;;
16046     motorola)
16047       need_lib_prefix=no
16048       need_version=no
16049       shlibpath_overrides_runpath=no
16050       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16051       ;;
16052   esac
16053   ;;
16054
16055 sysv4*MP*)
16056   if test -d /usr/nec ;then
16057     version_type=linux
16058     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16059     soname_spec='$libname${shared_ext}.$major'
16060     shlibpath_var=LD_LIBRARY_PATH
16061   fi
16062   ;;
16063
16064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16065   version_type=freebsd-elf
16066   need_lib_prefix=no
16067   need_version=no
16068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16069   soname_spec='${libname}${release}${shared_ext}$major'
16070   shlibpath_var=LD_LIBRARY_PATH
16071   hardcode_into_libs=yes
16072   if test "$with_gnu_ld" = yes; then
16073     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16074     shlibpath_overrides_runpath=no
16075   else
16076     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16077     shlibpath_overrides_runpath=yes
16078     case $host_os in
16079       sco3.2v5*)
16080         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16081         ;;
16082     esac
16083   fi
16084   sys_lib_dlsearch_path_spec='/usr/lib'
16085   ;;
16086
16087 uts4*)
16088   version_type=linux
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   soname_spec='${libname}${release}${shared_ext}$major'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   ;;
16093
16094 *)
16095   dynamic_linker=no
16096   ;;
16097 esac
16098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16099 echo "${ECHO_T}$dynamic_linker" >&6
16100 test "$dynamic_linker" = no && can_build_shared=no
16101
16102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16103 if test "$GCC" = yes; then
16104   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16105 fi
16106
16107 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16109 hardcode_action_F77=
16110 if test -n "$hardcode_libdir_flag_spec_F77" || \
16111    test -n "$runpath_var_F77" || \
16112    test "X$hardcode_automatic_F77" = "Xyes" ; then
16113
16114   # We can hardcode non-existant directories.
16115   if test "$hardcode_direct_F77" != no &&
16116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16117      # have to relink, otherwise we might link with an installed library
16118      # when we should be linking with a yet-to-be-installed one
16119      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16120      test "$hardcode_minus_L_F77" != no; then
16121     # Linking always hardcodes the temporary library directory.
16122     hardcode_action_F77=relink
16123   else
16124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16125     hardcode_action_F77=immediate
16126   fi
16127 else
16128   # We cannot hardcode anything, or else we can only hardcode existing
16129   # directories.
16130   hardcode_action_F77=unsupported
16131 fi
16132 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16133 echo "${ECHO_T}$hardcode_action_F77" >&6
16134
16135 if test "$hardcode_action_F77" = relink; then
16136   # Fast installation is not supported
16137   enable_fast_install=no
16138 elif test "$shlibpath_overrides_runpath" = yes ||
16139      test "$enable_shared" = no; then
16140   # Fast installation is not necessary
16141   enable_fast_install=needless
16142 fi
16143
16144
16145 # The else clause should only fire when bootstrapping the
16146 # libtool distribution, otherwise you forgot to ship ltmain.sh
16147 # with your package, and you will get complaints that there are
16148 # no rules to generate ltmain.sh.
16149 if test -f "$ltmain"; then
16150   # See if we are running on zsh, and set the options which allow our commands through
16151   # without removal of \ escapes.
16152   if test -n "${ZSH_VERSION+set}" ; then
16153     setopt NO_GLOB_SUBST
16154   fi
16155   # Now quote all the things that may contain metacharacters while being
16156   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16157   # variables and quote the copies for generation of the libtool script.
16158   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16159     SED SHELL STRIP \
16160     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16161     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16162     deplibs_check_method reload_flag reload_cmds need_locks \
16163     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16164     lt_cv_sys_global_symbol_to_c_name_address \
16165     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16166     old_postinstall_cmds old_postuninstall_cmds \
16167     compiler_F77 \
16168     CC_F77 \
16169     LD_F77 \
16170     lt_prog_compiler_wl_F77 \
16171     lt_prog_compiler_pic_F77 \
16172     lt_prog_compiler_static_F77 \
16173     lt_prog_compiler_no_builtin_flag_F77 \
16174     export_dynamic_flag_spec_F77 \
16175     thread_safe_flag_spec_F77 \
16176     whole_archive_flag_spec_F77 \
16177     enable_shared_with_static_runtimes_F77 \
16178     old_archive_cmds_F77 \
16179     old_archive_from_new_cmds_F77 \
16180     predep_objects_F77 \
16181     postdep_objects_F77 \
16182     predeps_F77 \
16183     postdeps_F77 \
16184     compiler_lib_search_path_F77 \
16185     archive_cmds_F77 \
16186     archive_expsym_cmds_F77 \
16187     postinstall_cmds_F77 \
16188     postuninstall_cmds_F77 \
16189     old_archive_from_expsyms_cmds_F77 \
16190     allow_undefined_flag_F77 \
16191     no_undefined_flag_F77 \
16192     export_symbols_cmds_F77 \
16193     hardcode_libdir_flag_spec_F77 \
16194     hardcode_libdir_flag_spec_ld_F77 \
16195     hardcode_libdir_separator_F77 \
16196     hardcode_automatic_F77 \
16197     module_cmds_F77 \
16198     module_expsym_cmds_F77 \
16199     lt_cv_prog_compiler_c_o_F77 \
16200     exclude_expsyms_F77 \
16201     include_expsyms_F77; do
16202
16203     case $var in
16204     old_archive_cmds_F77 | \
16205     old_archive_from_new_cmds_F77 | \
16206     archive_cmds_F77 | \
16207     archive_expsym_cmds_F77 | \
16208     module_cmds_F77 | \
16209     module_expsym_cmds_F77 | \
16210     old_archive_from_expsyms_cmds_F77 | \
16211     export_symbols_cmds_F77 | \
16212     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16213     postinstall_cmds | postuninstall_cmds | \
16214     old_postinstall_cmds | old_postuninstall_cmds | \
16215     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16216       # Double-quote double-evaled strings.
16217       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16218       ;;
16219     *)
16220       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16221       ;;
16222     esac
16223   done
16224
16225   case $lt_echo in
16226   *'\$0 --fallback-echo"')
16227     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16228     ;;
16229   esac
16230
16231 cfgfile="$ofile"
16232
16233   cat <<__EOF__ >> "$cfgfile"
16234 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16235
16236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16237
16238 # Shell to use when invoking shell scripts.
16239 SHELL=$lt_SHELL
16240
16241 # Whether or not to build shared libraries.
16242 build_libtool_libs=$enable_shared
16243
16244 # Whether or not to build static libraries.
16245 build_old_libs=$enable_static
16246
16247 # Whether or not to add -lc for building shared libraries.
16248 build_libtool_need_lc=$archive_cmds_need_lc_F77
16249
16250 # Whether or not to disallow shared libs when runtime libs are static
16251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16252
16253 # Whether or not to optimize for fast installation.
16254 fast_install=$enable_fast_install
16255
16256 # The host system.
16257 host_alias=$host_alias
16258 host=$host
16259 host_os=$host_os
16260
16261 # The build system.
16262 build_alias=$build_alias
16263 build=$build
16264 build_os=$build_os
16265
16266 # An echo program that does not interpret backslashes.
16267 echo=$lt_echo
16268
16269 # The archiver.
16270 AR=$lt_AR
16271 AR_FLAGS=$lt_AR_FLAGS
16272
16273 # A C compiler.
16274 LTCC=$lt_LTCC
16275
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_LTCFLAGS
16278
16279 # A language-specific compiler.
16280 CC=$lt_compiler_F77
16281
16282 # Is the compiler the GNU C compiler?
16283 with_gcc=$GCC_F77
16284
16285 # An ERE matcher.
16286 EGREP=$lt_EGREP
16287
16288 # The linker used to build libraries.
16289 LD=$lt_LD_F77
16290
16291 # Whether we need hard or soft links.
16292 LN_S=$lt_LN_S
16293
16294 # A BSD-compatible nm program.
16295 NM=$lt_NM
16296
16297 # A symbol stripping program
16298 STRIP=$lt_STRIP
16299
16300 # Used to examine libraries when file_magic_cmd begins "file"
16301 MAGIC_CMD=$MAGIC_CMD
16302
16303 # Used on cygwin: DLL creation program.
16304 DLLTOOL="$DLLTOOL"
16305
16306 # Used on cygwin: object dumper.
16307 OBJDUMP="$OBJDUMP"
16308
16309 # Used on cygwin: assembler.
16310 AS="$AS"
16311
16312 # The name of the directory that contains temporary libtool files.
16313 objdir=$objdir
16314
16315 # How to create reloadable object files.
16316 reload_flag=$lt_reload_flag
16317 reload_cmds=$lt_reload_cmds
16318
16319 # How to pass a linker flag through the compiler.
16320 wl=$lt_lt_prog_compiler_wl_F77
16321
16322 # Object file suffix (normally "o").
16323 objext="$ac_objext"
16324
16325 # Old archive suffix (normally "a").
16326 libext="$libext"
16327
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds='$shrext_cmds'
16330
16331 # Executable file suffix (normally "").
16332 exeext="$exeext"
16333
16334 # Additional compiler flags for building library objects.
16335 pic_flag=$lt_lt_prog_compiler_pic_F77
16336 pic_mode=$pic_mode
16337
16338 # What is the maximum length of a command?
16339 max_cmd_len=$lt_cv_sys_max_cmd_len
16340
16341 # Does compiler simultaneously support -c and -o options?
16342 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16343
16344 # Must we lock files when doing compilation?
16345 need_locks=$lt_need_locks
16346
16347 # Do we need the lib prefix for modules?
16348 need_lib_prefix=$need_lib_prefix
16349
16350 # Do we need a version for libraries?
16351 need_version=$need_version
16352
16353 # Whether dlopen is supported.
16354 dlopen_support=$enable_dlopen
16355
16356 # Whether dlopen of programs is supported.
16357 dlopen_self=$enable_dlopen_self
16358
16359 # Whether dlopen of statically linked programs is supported.
16360 dlopen_self_static=$enable_dlopen_self_static
16361
16362 # Compiler flag to prevent dynamic linking.
16363 link_static_flag=$lt_lt_prog_compiler_static_F77
16364
16365 # Compiler flag to turn off builtin functions.
16366 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16367
16368 # Compiler flag to allow reflexive dlopens.
16369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16370
16371 # Compiler flag to generate shared objects directly from archives.
16372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16373
16374 # Compiler flag to generate thread-safe objects.
16375 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16376
16377 # Library versioning type.
16378 version_type=$version_type
16379
16380 # Format of library name prefix.
16381 libname_spec=$lt_libname_spec
16382
16383 # List of archive names.  First name is the real one, the rest are links.
16384 # The last name is the one that the linker finds with -lNAME.
16385 library_names_spec=$lt_library_names_spec
16386
16387 # The coded name of the library, if different from the real name.
16388 soname_spec=$lt_soname_spec
16389
16390 # Commands used to build and install an old-style archive.
16391 RANLIB=$lt_RANLIB
16392 old_archive_cmds=$lt_old_archive_cmds_F77
16393 old_postinstall_cmds=$lt_old_postinstall_cmds
16394 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16395
16396 # Create an old-style archive from a shared archive.
16397 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16398
16399 # Create a temporary old-style archive to link instead of a shared archive.
16400 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16401
16402 # Commands used to build and install a shared archive.
16403 archive_cmds=$lt_archive_cmds_F77
16404 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16405 postinstall_cmds=$lt_postinstall_cmds
16406 postuninstall_cmds=$lt_postuninstall_cmds
16407
16408 # Commands used to build a loadable module (assumed same as above if empty)
16409 module_cmds=$lt_module_cmds_F77
16410 module_expsym_cmds=$lt_module_expsym_cmds_F77
16411
16412 # Commands to strip libraries.
16413 old_striplib=$lt_old_striplib
16414 striplib=$lt_striplib
16415
16416 # Dependencies to place before the objects being linked to create a
16417 # shared library.
16418 predep_objects=$lt_predep_objects_F77
16419
16420 # Dependencies to place after the objects being linked to create a
16421 # shared library.
16422 postdep_objects=$lt_postdep_objects_F77
16423
16424 # Dependencies to place before the objects being linked to create a
16425 # shared library.
16426 predeps=$lt_predeps_F77
16427
16428 # Dependencies to place after the objects being linked to create a
16429 # shared library.
16430 postdeps=$lt_postdeps_F77
16431
16432 # The library search path used internally by the compiler when linking
16433 # a shared library.
16434 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16435
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16438
16439 # Command to use when deplibs_check_method == file_magic.
16440 file_magic_cmd=$lt_file_magic_cmd
16441
16442 # Flag that allows shared libraries with undefined symbols to be built.
16443 allow_undefined_flag=$lt_allow_undefined_flag_F77
16444
16445 # Flag that forces no undefined symbols.
16446 no_undefined_flag=$lt_no_undefined_flag_F77
16447
16448 # Commands used to finish a libtool library installation in a directory.
16449 finish_cmds=$lt_finish_cmds
16450
16451 # Same as above, but a single script fragment to be evaled but not shown.
16452 finish_eval=$lt_finish_eval
16453
16454 # Take the output of nm and produce a listing of raw symbols and C names.
16455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16456
16457 # Transform the output of nm in a proper C declaration
16458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16459
16460 # Transform the output of nm in a C name address pair
16461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16462
16463 # This is the shared library runtime path variable.
16464 runpath_var=$runpath_var
16465
16466 # This is the shared library path variable.
16467 shlibpath_var=$shlibpath_var
16468
16469 # Is shlibpath searched before the hard-coded library search path?
16470 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16471
16472 # How to hardcode a shared library path into an executable.
16473 hardcode_action=$hardcode_action_F77
16474
16475 # Whether we should hardcode library paths into libraries.
16476 hardcode_into_libs=$hardcode_into_libs
16477
16478 # Flag to hardcode \$libdir into a binary during linking.
16479 # This must work even if \$libdir does not exist.
16480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16481
16482 # If ld is used when linking, flag to hardcode \$libdir into
16483 # a binary during linking. This must work even if \$libdir does
16484 # not exist.
16485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16486
16487 # Whether we need a single -rpath flag with a separated argument.
16488 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16489
16490 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16491 # resulting binary.
16492 hardcode_direct=$hardcode_direct_F77
16493
16494 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16495 # resulting binary.
16496 hardcode_minus_L=$hardcode_minus_L_F77
16497
16498 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16499 # the resulting binary.
16500 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16501
16502 # Set to yes if building a shared library automatically hardcodes DIR into the library
16503 # and all subsequent libraries and executables linked against it.
16504 hardcode_automatic=$hardcode_automatic_F77
16505
16506 # Variables whose values should be saved in libtool wrapper scripts and
16507 # restored at relink time.
16508 variables_saved_for_relink="$variables_saved_for_relink"
16509
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs_F77
16512
16513 # Compile-time system search path for libraries
16514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16515
16516 # Run-time system search path for libraries
16517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16518
16519 # Fix the shell variable \$srcfile for the compiler.
16520 fix_srcfile_path="$fix_srcfile_path_F77"
16521
16522 # Set to yes if exported symbols are required.
16523 always_export_symbols=$always_export_symbols_F77
16524
16525 # The commands to list exported symbols.
16526 export_symbols_cmds=$lt_export_symbols_cmds_F77
16527
16528 # The commands to extract the exported symbol list from a shared archive.
16529 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16530
16531 # Symbols that should not be listed in the preloaded symbols.
16532 exclude_expsyms=$lt_exclude_expsyms_F77
16533
16534 # Symbols that must always be exported.
16535 include_expsyms=$lt_include_expsyms_F77
16536
16537 # ### END LIBTOOL TAG CONFIG: $tagname
16538
16539 __EOF__
16540
16541
16542 else
16543   # If there is no Makefile yet, we rely on a make rule to execute
16544   # `config.status --recheck' to rerun these tests and create the
16545   # libtool script then.
16546   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16547   if test -f "$ltmain_in"; then
16548     test -f Makefile && make "$ltmain"
16549   fi
16550 fi
16551
16552
16553 ac_ext=c
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16558
16559 CC="$lt_save_CC"
16560
16561         else
16562           tagname=""
16563         fi
16564         ;;
16565
16566       GCJ)
16567         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16568
16569
16570
16571 # Source file extension for Java test sources.
16572 ac_ext=java
16573
16574 # Object file extension for compiled Java test sources.
16575 objext=o
16576 objext_GCJ=$objext
16577
16578 # Code to be used in simple compile tests
16579 lt_simple_compile_test_code="class foo {}\n"
16580
16581 # Code to be used in simple link tests
16582 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16583
16584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16585
16586 # If no C compiler was specified, use CC.
16587 LTCC=${LTCC-"$CC"}
16588
16589 # If no C compiler flags were specified, use CFLAGS.
16590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16591
16592 # Allow CC to be a program name with arguments.
16593 compiler=$CC
16594
16595
16596 # save warnings/boilerplate of simple test code
16597 ac_outfile=conftest.$ac_objext
16598 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600 _lt_compiler_boilerplate=`cat conftest.err`
16601 $rm conftest*
16602
16603 ac_outfile=conftest.$ac_objext
16604 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16606 _lt_linker_boilerplate=`cat conftest.err`
16607 $rm conftest*
16608
16609
16610 # Allow CC to be a program name with arguments.
16611 lt_save_CC="$CC"
16612 CC=${GCJ-"gcj"}
16613 compiler=$CC
16614 compiler_GCJ=$CC
16615 for cc_temp in $compiler""; do
16616   case $cc_temp in
16617     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16618     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16619     \-*) ;;
16620     *) break;;
16621   esac
16622 done
16623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16624
16625
16626 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16627 archive_cmds_need_lc_GCJ=no
16628
16629 old_archive_cmds_GCJ=$old_archive_cmds
16630
16631
16632 lt_prog_compiler_no_builtin_flag_GCJ=
16633
16634 if test "$GCC" = yes; then
16635   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16636
16637
16638 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16639 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   lt_cv_prog_compiler_rtti_exceptions=no
16644   ac_outfile=conftest.$ac_objext
16645    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16646    lt_compiler_flag="-fno-rtti -fno-exceptions"
16647    # Insert the option either (1) after the last *FLAGS variable, or
16648    # (2) before a word containing "conftest.", or (3) at the end.
16649    # Note that $ac_compile itself does not contain backslashes and begins
16650    # with a dollar sign (not a hyphen), so the echo should work correctly.
16651    # The option is referenced via a variable to avoid confusing sed.
16652    lt_compile=`echo "$ac_compile" | $SED \
16653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16655    -e 's:$: $lt_compiler_flag:'`
16656    (eval echo "\"\$as_me:16656: $lt_compile\"" >&5)
16657    (eval "$lt_compile" 2>conftest.err)
16658    ac_status=$?
16659    cat conftest.err >&5
16660    echo "$as_me:16660: \$? = $ac_status" >&5
16661    if (exit $ac_status) && test -s "$ac_outfile"; then
16662      # The compiler can only warn and ignore the option if not recognized
16663      # So say no if there are warnings other than the usual output.
16664      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16667        lt_cv_prog_compiler_rtti_exceptions=yes
16668      fi
16669    fi
16670    $rm conftest*
16671
16672 fi
16673 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16674 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16675
16676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16677     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16678 else
16679     :
16680 fi
16681
16682 fi
16683
16684 lt_prog_compiler_wl_GCJ=
16685 lt_prog_compiler_pic_GCJ=
16686 lt_prog_compiler_static_GCJ=
16687
16688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16690
16691   if test "$GCC" = yes; then
16692     lt_prog_compiler_wl_GCJ='-Wl,'
16693     lt_prog_compiler_static_GCJ='-static'
16694
16695     case $host_os in
16696       aix*)
16697       # All AIX code is PIC.
16698       if test "$host_cpu" = ia64; then
16699         # AIX 5 now supports IA64 processor
16700         lt_prog_compiler_static_GCJ='-Bstatic'
16701       fi
16702       ;;
16703
16704     amigaos*)
16705       # FIXME: we need at least 68020 code to build shared libraries, but
16706       # adding the `-m68020' flag to GCC prevents building anything better,
16707       # like `-m68040'.
16708       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16709       ;;
16710
16711     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16712       # PIC is the default for these OSes.
16713       ;;
16714
16715     mingw* | pw32* | os2*)
16716       # This hack is so that the source file can tell whether it is being
16717       # built for inclusion in a dll (and should export symbols for example).
16718       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16719       ;;
16720
16721     darwin* | rhapsody*)
16722       # PIC is the default on this platform
16723       # Common symbols not allowed in MH_DYLIB files
16724       lt_prog_compiler_pic_GCJ='-fno-common'
16725       ;;
16726
16727     interix3*)
16728       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16729       # Instead, we relocate shared libraries at runtime.
16730       ;;
16731
16732     msdosdjgpp*)
16733       # Just because we use GCC doesn't mean we suddenly get shared libraries
16734       # on systems that don't support them.
16735       lt_prog_compiler_can_build_shared_GCJ=no
16736       enable_shared=no
16737       ;;
16738
16739     sysv4*MP*)
16740       if test -d /usr/nec; then
16741         lt_prog_compiler_pic_GCJ=-Kconform_pic
16742       fi
16743       ;;
16744
16745     hpux*)
16746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16747       # not for PA HP-UX.
16748       case $host_cpu in
16749       hppa*64*|ia64*)
16750         # +Z the default
16751         ;;
16752       *)
16753         lt_prog_compiler_pic_GCJ='-fPIC'
16754         ;;
16755       esac
16756       ;;
16757
16758     *)
16759       lt_prog_compiler_pic_GCJ='-fPIC'
16760       ;;
16761     esac
16762   else
16763     # PORTME Check for flag to pass linker flags through the system compiler.
16764     case $host_os in
16765     aix*)
16766       lt_prog_compiler_wl_GCJ='-Wl,'
16767       if test "$host_cpu" = ia64; then
16768         # AIX 5 now supports IA64 processor
16769         lt_prog_compiler_static_GCJ='-Bstatic'
16770       else
16771         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16772       fi
16773       ;;
16774       darwin*)
16775         # PIC is the default on this platform
16776         # Common symbols not allowed in MH_DYLIB files
16777        case $cc_basename in
16778          xlc*)
16779          lt_prog_compiler_pic_GCJ='-qnocommon'
16780          lt_prog_compiler_wl_GCJ='-Wl,'
16781          ;;
16782        esac
16783        ;;
16784
16785     mingw* | pw32* | os2*)
16786       # This hack is so that the source file can tell whether it is being
16787       # built for inclusion in a dll (and should export symbols for example).
16788       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16789       ;;
16790
16791     hpux9* | hpux10* | hpux11*)
16792       lt_prog_compiler_wl_GCJ='-Wl,'
16793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794       # not for PA HP-UX.
16795       case $host_cpu in
16796       hppa*64*|ia64*)
16797         # +Z the default
16798         ;;
16799       *)
16800         lt_prog_compiler_pic_GCJ='+Z'
16801         ;;
16802       esac
16803       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16804       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16805       ;;
16806
16807     irix5* | irix6* | nonstopux*)
16808       lt_prog_compiler_wl_GCJ='-Wl,'
16809       # PIC (with -KPIC) is the default.
16810       lt_prog_compiler_static_GCJ='-non_shared'
16811       ;;
16812
16813     newsos6)
16814       lt_prog_compiler_pic_GCJ='-KPIC'
16815       lt_prog_compiler_static_GCJ='-Bstatic'
16816       ;;
16817
16818     linux* | k*bsd*-gnu)
16819       case $cc_basename in
16820       icc* | ecc*)
16821         lt_prog_compiler_wl_GCJ='-Wl,'
16822         lt_prog_compiler_pic_GCJ='-KPIC'
16823         lt_prog_compiler_static_GCJ='-static'
16824         ;;
16825       pgcc* | pgf77* | pgf90* | pgf95*)
16826         # Portland Group compilers (*not* the Pentium gcc compiler,
16827         # which looks to be a dead project)
16828         lt_prog_compiler_wl_GCJ='-Wl,'
16829         lt_prog_compiler_pic_GCJ='-fpic'
16830         lt_prog_compiler_static_GCJ='-Bstatic'
16831         ;;
16832       ccc*)
16833         lt_prog_compiler_wl_GCJ='-Wl,'
16834         # All Alpha code is PIC.
16835         lt_prog_compiler_static_GCJ='-non_shared'
16836         ;;
16837       esac
16838       ;;
16839
16840     osf3* | osf4* | osf5*)
16841       lt_prog_compiler_wl_GCJ='-Wl,'
16842       # All OSF/1 code is PIC.
16843       lt_prog_compiler_static_GCJ='-non_shared'
16844       ;;
16845
16846     solaris*)
16847       lt_prog_compiler_pic_GCJ='-KPIC'
16848       lt_prog_compiler_static_GCJ='-Bstatic'
16849       case $cc_basename in
16850       f77* | f90* | f95*)
16851         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16852       *)
16853         lt_prog_compiler_wl_GCJ='-Wl,';;
16854       esac
16855       ;;
16856
16857     sunos4*)
16858       lt_prog_compiler_wl_GCJ='-Qoption ld '
16859       lt_prog_compiler_pic_GCJ='-PIC'
16860       lt_prog_compiler_static_GCJ='-Bstatic'
16861       ;;
16862
16863     sysv4 | sysv4.2uw2* | sysv4.3*)
16864       lt_prog_compiler_wl_GCJ='-Wl,'
16865       lt_prog_compiler_pic_GCJ='-KPIC'
16866       lt_prog_compiler_static_GCJ='-Bstatic'
16867       ;;
16868
16869     sysv4*MP*)
16870       if test -d /usr/nec ;then
16871         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16872         lt_prog_compiler_static_GCJ='-Bstatic'
16873       fi
16874       ;;
16875
16876     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16877       lt_prog_compiler_wl_GCJ='-Wl,'
16878       lt_prog_compiler_pic_GCJ='-KPIC'
16879       lt_prog_compiler_static_GCJ='-Bstatic'
16880       ;;
16881
16882     unicos*)
16883       lt_prog_compiler_wl_GCJ='-Wl,'
16884       lt_prog_compiler_can_build_shared_GCJ=no
16885       ;;
16886
16887     uts4*)
16888       lt_prog_compiler_pic_GCJ='-pic'
16889       lt_prog_compiler_static_GCJ='-Bstatic'
16890       ;;
16891
16892     *)
16893       lt_prog_compiler_can_build_shared_GCJ=no
16894       ;;
16895     esac
16896   fi
16897
16898 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16899 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16900
16901 #
16902 # Check to make sure the PIC flag actually works.
16903 #
16904 if test -n "$lt_prog_compiler_pic_GCJ"; then
16905
16906 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16907 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16908 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   lt_prog_compiler_pic_works_GCJ=no
16912   ac_outfile=conftest.$ac_objext
16913    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16914    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16915    # Insert the option either (1) after the last *FLAGS variable, or
16916    # (2) before a word containing "conftest.", or (3) at the end.
16917    # Note that $ac_compile itself does not contain backslashes and begins
16918    # with a dollar sign (not a hyphen), so the echo should work correctly.
16919    # The option is referenced via a variable to avoid confusing sed.
16920    lt_compile=`echo "$ac_compile" | $SED \
16921    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16922    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16923    -e 's:$: $lt_compiler_flag:'`
16924    (eval echo "\"\$as_me:16924: $lt_compile\"" >&5)
16925    (eval "$lt_compile" 2>conftest.err)
16926    ac_status=$?
16927    cat conftest.err >&5
16928    echo "$as_me:16928: \$? = $ac_status" >&5
16929    if (exit $ac_status) && test -s "$ac_outfile"; then
16930      # The compiler can only warn and ignore the option if not recognized
16931      # So say no if there are warnings other than the usual output.
16932      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16933      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16934      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16935        lt_prog_compiler_pic_works_GCJ=yes
16936      fi
16937    fi
16938    $rm conftest*
16939
16940 fi
16941 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16942 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16943
16944 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16945     case $lt_prog_compiler_pic_GCJ in
16946      "" | " "*) ;;
16947      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16948      esac
16949 else
16950     lt_prog_compiler_pic_GCJ=
16951      lt_prog_compiler_can_build_shared_GCJ=no
16952 fi
16953
16954 fi
16955 case $host_os in
16956   # For platforms which do not support PIC, -DPIC is meaningless:
16957   *djgpp*)
16958     lt_prog_compiler_pic_GCJ=
16959     ;;
16960   *)
16961     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16962     ;;
16963 esac
16964
16965 #
16966 # Check to make sure the static flag actually works.
16967 #
16968 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16969 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16970 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16971 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16972   echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974   lt_prog_compiler_static_works_GCJ=no
16975    save_LDFLAGS="$LDFLAGS"
16976    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16977    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16978    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16979      # The linker can only warn and ignore the option if not recognized
16980      # So say no if there are warnings
16981      if test -s conftest.err; then
16982        # Append any errors to the config.log.
16983        cat conftest.err 1>&5
16984        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16985        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16986        if diff conftest.exp conftest.er2 >/dev/null; then
16987          lt_prog_compiler_static_works_GCJ=yes
16988        fi
16989      else
16990        lt_prog_compiler_static_works_GCJ=yes
16991      fi
16992    fi
16993    $rm conftest*
16994    LDFLAGS="$save_LDFLAGS"
16995
16996 fi
16997 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16998 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16999
17000 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17001     :
17002 else
17003     lt_prog_compiler_static_GCJ=
17004 fi
17005
17006
17007 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17008 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17009 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   lt_cv_prog_compiler_c_o_GCJ=no
17013    $rm -r conftest 2>/dev/null
17014    mkdir conftest
17015    cd conftest
17016    mkdir out
17017    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17018
17019    lt_compiler_flag="-o out/conftest2.$ac_objext"
17020    # Insert the option either (1) after the last *FLAGS variable, or
17021    # (2) before a word containing "conftest.", or (3) at the end.
17022    # Note that $ac_compile itself does not contain backslashes and begins
17023    # with a dollar sign (not a hyphen), so the echo should work correctly.
17024    lt_compile=`echo "$ac_compile" | $SED \
17025    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027    -e 's:$: $lt_compiler_flag:'`
17028    (eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029    (eval "$lt_compile" 2>out/conftest.err)
17030    ac_status=$?
17031    cat out/conftest.err >&5
17032    echo "$as_me:17032: \$? = $ac_status" >&5
17033    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17034    then
17035      # The compiler can only warn and ignore the option if not recognized
17036      # So say no if there are warnings
17037      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17038      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17039      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17040        lt_cv_prog_compiler_c_o_GCJ=yes
17041      fi
17042    fi
17043    chmod u+w . 2>&5
17044    $rm conftest*
17045    # SGI C++ compiler will create directory out/ii_files/ for
17046    # template instantiation
17047    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17048    $rm out/* && rmdir out
17049    cd ..
17050    rmdir conftest
17051    $rm conftest*
17052
17053 fi
17054 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17055 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17056
17057
17058 hard_links="nottested"
17059 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17060   # do not overwrite the value of need_locks provided by the user
17061   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17062 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17063   hard_links=yes
17064   $rm conftest*
17065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17066   touch conftest.a
17067   ln conftest.a conftest.b 2>&5 || hard_links=no
17068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17069   echo "$as_me:$LINENO: result: $hard_links" >&5
17070 echo "${ECHO_T}$hard_links" >&6
17071   if test "$hard_links" = no; then
17072     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17073 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17074     need_locks=warn
17075   fi
17076 else
17077   need_locks=no
17078 fi
17079
17080 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17081 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17082
17083   runpath_var=
17084   allow_undefined_flag_GCJ=
17085   enable_shared_with_static_runtimes_GCJ=no
17086   archive_cmds_GCJ=
17087   archive_expsym_cmds_GCJ=
17088   old_archive_From_new_cmds_GCJ=
17089   old_archive_from_expsyms_cmds_GCJ=
17090   export_dynamic_flag_spec_GCJ=
17091   whole_archive_flag_spec_GCJ=
17092   thread_safe_flag_spec_GCJ=
17093   hardcode_libdir_flag_spec_GCJ=
17094   hardcode_libdir_flag_spec_ld_GCJ=
17095   hardcode_libdir_separator_GCJ=
17096   hardcode_direct_GCJ=no
17097   hardcode_minus_L_GCJ=no
17098   hardcode_shlibpath_var_GCJ=unsupported
17099   link_all_deplibs_GCJ=unknown
17100   hardcode_automatic_GCJ=no
17101   module_cmds_GCJ=
17102   module_expsym_cmds_GCJ=
17103   always_export_symbols_GCJ=no
17104   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17105   # include_expsyms should be a list of space-separated symbols to be *always*
17106   # included in the symbol list
17107   include_expsyms_GCJ=
17108   # exclude_expsyms can be an extended regexp of symbols to exclude
17109   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17110   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17111   # as well as any symbol that contains `d'.
17112   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17113   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17114   # platforms (ab)use it in PIC code, but their linkers get confused if
17115   # the symbol is explicitly referenced.  Since portable code cannot
17116   # rely on this symbol name, it's probably fine to never include it in
17117   # preloaded symbol tables.
17118   extract_expsyms_cmds=
17119   # Just being paranoid about ensuring that cc_basename is set.
17120   for cc_temp in $compiler""; do
17121   case $cc_temp in
17122     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17123     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17124     \-*) ;;
17125     *) break;;
17126   esac
17127 done
17128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17129
17130   case $host_os in
17131   cygwin* | mingw* | pw32*)
17132     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17133     # When not using gcc, we currently assume that we are using
17134     # Microsoft Visual C++.
17135     if test "$GCC" != yes; then
17136       with_gnu_ld=no
17137     fi
17138     ;;
17139   interix*)
17140     # we just hope/assume this is gcc and not c89 (= MSVC++)
17141     with_gnu_ld=yes
17142     ;;
17143   openbsd*)
17144     with_gnu_ld=no
17145     ;;
17146   esac
17147
17148   ld_shlibs_GCJ=yes
17149   if test "$with_gnu_ld" = yes; then
17150     # If archive_cmds runs LD, not CC, wlarc should be empty
17151     wlarc='${wl}'
17152
17153     # Set some defaults for GNU ld with shared library support. These
17154     # are reset later if shared libraries are not supported. Putting them
17155     # here allows them to be overridden if necessary.
17156     runpath_var=LD_RUN_PATH
17157     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17158     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17159     # ancient GNU ld didn't support --whole-archive et. al.
17160     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17161         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17162       else
17163         whole_archive_flag_spec_GCJ=
17164     fi
17165     supports_anon_versioning=no
17166     case `$LD -v 2>/dev/null` in
17167       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17168       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17169       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17170       *\ 2.11.*) ;; # other 2.11 versions
17171       *) supports_anon_versioning=yes ;;
17172     esac
17173
17174     # See if GNU ld supports shared libraries.
17175     case $host_os in
17176     aix3* | aix4* | aix5*)
17177       # On AIX/PPC, the GNU linker is very broken
17178       if test "$host_cpu" != ia64; then
17179         ld_shlibs_GCJ=no
17180         cat <<EOF 1>&2
17181
17182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17183 *** to be unable to reliably create shared libraries on AIX.
17184 *** Therefore, libtool is disabling shared libraries support.  If you
17185 *** really care for shared libraries, you may want to modify your PATH
17186 *** so that a non-GNU linker is found, and then restart.
17187
17188 EOF
17189       fi
17190       ;;
17191
17192     amigaos*)
17193       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17194       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17195       hardcode_minus_L_GCJ=yes
17196
17197       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17198       # that the semantics of dynamic libraries on AmigaOS, at least up
17199       # to version 4, is to share data among multiple programs linked
17200       # with the same dynamic library.  Since this doesn't match the
17201       # behavior of shared libraries on other platforms, we can't use
17202       # them.
17203       ld_shlibs_GCJ=no
17204       ;;
17205
17206     beos*)
17207       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17208         allow_undefined_flag_GCJ=unsupported
17209         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17210         # support --undefined.  This deserves some investigation.  FIXME
17211         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17212       else
17213         ld_shlibs_GCJ=no
17214       fi
17215       ;;
17216
17217     cygwin* | mingw* | pw32*)
17218       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17219       # as there is no search path for DLLs.
17220       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17221       allow_undefined_flag_GCJ=unsupported
17222       always_export_symbols_GCJ=no
17223       enable_shared_with_static_runtimes_GCJ=yes
17224       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17225
17226       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17227         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17228         # If the export-symbols file already is a .def file (1st line
17229         # is EXPORTS), use it as is; otherwise, prepend...
17230         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17231           cp $export_symbols $output_objdir/$soname.def;
17232         else
17233           echo EXPORTS > $output_objdir/$soname.def;
17234           cat $export_symbols >> $output_objdir/$soname.def;
17235         fi~
17236         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17237       else
17238         ld_shlibs_GCJ=no
17239       fi
17240       ;;
17241
17242     interix3*)
17243       hardcode_direct_GCJ=no
17244       hardcode_shlibpath_var_GCJ=no
17245       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17246       export_dynamic_flag_spec_GCJ='${wl}-E'
17247       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17248       # Instead, shared libraries are loaded at an image base (0x10000000 by
17249       # default) and relocated if they conflict, which is a slow very memory
17250       # consuming and fragmenting process.  To avoid this, we pick a random,
17251       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17252       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17253       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17254       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17255       ;;
17256
17257     linux* | k*bsd*-gnu)
17258       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17259         tmp_addflag=
17260         case $cc_basename,$host_cpu in
17261         pgcc*)                          # Portland Group C compiler
17262           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17263           tmp_addflag=' $pic_flag'
17264           ;;
17265         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17266           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17267           tmp_addflag=' $pic_flag -Mnomain' ;;
17268         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17269           tmp_addflag=' -i_dynamic' ;;
17270         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17271           tmp_addflag=' -i_dynamic -nofor_main' ;;
17272         ifc* | ifort*)                  # Intel Fortran compiler
17273           tmp_addflag=' -nofor_main' ;;
17274         esac
17275         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17276
17277         if test $supports_anon_versioning = yes; then
17278           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17279   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17280   $echo "local: *; };" >> $output_objdir/$libname.ver~
17281           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17282         fi
17283         link_all_deplibs_GCJ=no
17284       else
17285         ld_shlibs_GCJ=no
17286       fi
17287       ;;
17288
17289     netbsd* | netbsdelf*-gnu)
17290       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17292         wlarc=
17293       else
17294         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17295         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17296       fi
17297       ;;
17298
17299     solaris*)
17300       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17301         ld_shlibs_GCJ=no
17302         cat <<EOF 1>&2
17303
17304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17305 *** create shared libraries on Solaris systems.  Therefore, libtool
17306 *** is disabling shared libraries support.  We urge you to upgrade GNU
17307 *** binutils to release 2.9.1 or newer.  Another option is to modify
17308 *** your PATH or compiler configuration so that the native linker is
17309 *** used, and then restart.
17310
17311 EOF
17312       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17313         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17315       else
17316         ld_shlibs_GCJ=no
17317       fi
17318       ;;
17319
17320     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17321       case `$LD -v 2>&1` in
17322         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17323         ld_shlibs_GCJ=no
17324         cat <<_LT_EOF 1>&2
17325
17326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17327 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17328 *** is disabling shared libraries support.  We urge you to upgrade GNU
17329 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17330 *** your PATH or compiler configuration so that the native linker is
17331 *** used, and then restart.
17332
17333 _LT_EOF
17334         ;;
17335         *)
17336           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17337             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17338             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17339             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17340           else
17341             ld_shlibs_GCJ=no
17342           fi
17343         ;;
17344       esac
17345       ;;
17346
17347     sunos4*)
17348       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349       wlarc=
17350       hardcode_direct_GCJ=yes
17351       hardcode_shlibpath_var_GCJ=no
17352       ;;
17353
17354     *)
17355       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17358       else
17359         ld_shlibs_GCJ=no
17360       fi
17361       ;;
17362     esac
17363
17364     if test "$ld_shlibs_GCJ" = no; then
17365       runpath_var=
17366       hardcode_libdir_flag_spec_GCJ=
17367       export_dynamic_flag_spec_GCJ=
17368       whole_archive_flag_spec_GCJ=
17369     fi
17370   else
17371     # PORTME fill in a description of your system's linker (not GNU ld)
17372     case $host_os in
17373     aix3*)
17374       allow_undefined_flag_GCJ=unsupported
17375       always_export_symbols_GCJ=yes
17376       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17377       # Note: this linker hardcodes the directories in LIBPATH if there
17378       # are no directories specified by -L.
17379       hardcode_minus_L_GCJ=yes
17380       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17381         # Neither direct hardcoding nor static linking is supported with a
17382         # broken collect2.
17383         hardcode_direct_GCJ=unsupported
17384       fi
17385       ;;
17386
17387     aix4* | aix5*)
17388       if test "$host_cpu" = ia64; then
17389         # On IA64, the linker does run time linking by default, so we don't
17390         # have to do anything special.
17391         aix_use_runtimelinking=no
17392         exp_sym_flag='-Bexport'
17393         no_entry_flag=""
17394       else
17395         # If we're using GNU nm, then we don't want the "-C" option.
17396         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17397         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17398           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17399         else
17400           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17401         fi
17402         aix_use_runtimelinking=no
17403
17404         # Test if we are trying to use run time linking or normal
17405         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17406         # need to do runtime linking.
17407         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17408           for ld_flag in $LDFLAGS; do
17409           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17410             aix_use_runtimelinking=yes
17411             break
17412           fi
17413           done
17414           ;;
17415         esac
17416
17417         exp_sym_flag='-bexport'
17418         no_entry_flag='-bnoentry'
17419       fi
17420
17421       # When large executables or shared objects are built, AIX ld can
17422       # have problems creating the table of contents.  If linking a library
17423       # or program results in "error TOC overflow" add -mminimal-toc to
17424       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17425       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17426
17427       archive_cmds_GCJ=''
17428       hardcode_direct_GCJ=yes
17429       hardcode_libdir_separator_GCJ=':'
17430       link_all_deplibs_GCJ=yes
17431
17432       if test "$GCC" = yes; then
17433         case $host_os in aix4.[012]|aix4.[012].*)
17434         # We only want to do this on AIX 4.2 and lower, the check
17435         # below for broken collect2 doesn't work under 4.3+
17436           collect2name=`${CC} -print-prog-name=collect2`
17437           if test -f "$collect2name" && \
17438            strings "$collect2name" | grep resolve_lib_name >/dev/null
17439           then
17440           # We have reworked collect2
17441           hardcode_direct_GCJ=yes
17442           else
17443           # We have old collect2
17444           hardcode_direct_GCJ=unsupported
17445           # It fails to find uninstalled libraries when the uninstalled
17446           # path is not listed in the libpath.  Setting hardcode_minus_L
17447           # to unsupported forces relinking
17448           hardcode_minus_L_GCJ=yes
17449           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450           hardcode_libdir_separator_GCJ=
17451           fi
17452           ;;
17453         esac
17454         shared_flag='-shared'
17455         if test "$aix_use_runtimelinking" = yes; then
17456           shared_flag="$shared_flag "'${wl}-G'
17457         fi
17458       else
17459         # not using gcc
17460         if test "$host_cpu" = ia64; then
17461         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17462         # chokes on -Wl,-G. The following line is correct:
17463           shared_flag='-G'
17464         else
17465           if test "$aix_use_runtimelinking" = yes; then
17466             shared_flag='${wl}-G'
17467           else
17468             shared_flag='${wl}-bM:SRE'
17469           fi
17470         fi
17471       fi
17472
17473       # It seems that -bexpall does not export symbols beginning with
17474       # underscore (_), so it is better to generate a list of symbols to export.
17475       always_export_symbols_GCJ=yes
17476       if test "$aix_use_runtimelinking" = yes; then
17477         # Warning - without using the other runtime loading flags (-brtl),
17478         # -berok will link without error, but may produce a broken library.
17479         allow_undefined_flag_GCJ='-berok'
17480        # Determine the default libpath from the value encoded in an empty executable.
17481        cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487
17488 int
17489 main ()
17490 {
17491
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498   (eval $ac_link) 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest$ac_exeext'
17512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513   (eval $ac_try) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517
17518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17519 }'`
17520 # Check for a 64-bit object if we didn't find anything.
17521 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17522 }'`; fi
17523 else
17524   echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527 fi
17528 rm -f conftest.err conftest.$ac_objext \
17529       conftest$ac_exeext conftest.$ac_ext
17530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17531
17532        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17533         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17534        else
17535         if test "$host_cpu" = ia64; then
17536           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17537           allow_undefined_flag_GCJ="-z nodefs"
17538           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17539         else
17540          # Determine the default libpath from the value encoded in an empty executable.
17541          cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547
17548 int
17549 main ()
17550 {
17551
17552   ;
17553   return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558   (eval $ac_link) 2>conftest.er1
17559   ac_status=$?
17560   grep -v '^ *+' conftest.er1 >conftest.err
17561   rm -f conftest.er1
17562   cat conftest.err >&5
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } &&
17565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; } &&
17571          { ac_try='test -s conftest$ac_exeext'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577
17578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17579 }'`
17580 # Check for a 64-bit object if we didn't find anything.
17581 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17582 }'`; fi
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 fi
17588 rm -f conftest.err conftest.$ac_objext \
17589       conftest$ac_exeext conftest.$ac_ext
17590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17591
17592          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17593           # Warning - without using the other run time loading flags,
17594           # -berok will link without error, but may produce a broken library.
17595           no_undefined_flag_GCJ=' ${wl}-bernotok'
17596           allow_undefined_flag_GCJ=' ${wl}-berok'
17597           # Exported symbols can be pulled into shared objects from archives
17598           whole_archive_flag_spec_GCJ='$convenience'
17599           archive_cmds_need_lc_GCJ=yes
17600           # This is similar to how AIX traditionally builds its shared libraries.
17601           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17602         fi
17603       fi
17604       ;;
17605
17606     amigaos*)
17607       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17608       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17609       hardcode_minus_L_GCJ=yes
17610       # see comment about different semantics on the GNU ld section
17611       ld_shlibs_GCJ=no
17612       ;;
17613
17614     bsdi[45]*)
17615       export_dynamic_flag_spec_GCJ=-rdynamic
17616       ;;
17617
17618     cygwin* | mingw* | pw32*)
17619       # When not using gcc, we currently assume that we are using
17620       # Microsoft Visual C++.
17621       # hardcode_libdir_flag_spec is actually meaningless, as there is
17622       # no search path for DLLs.
17623       hardcode_libdir_flag_spec_GCJ=' '
17624       allow_undefined_flag_GCJ=unsupported
17625       # Tell ltmain to make .lib files, not .a files.
17626       libext=lib
17627       # Tell ltmain to make .dll files, not .so files.
17628       shrext_cmds=".dll"
17629       # FIXME: Setting linknames here is a bad hack.
17630       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17631       # The linker will automatically build a .lib file if we build a DLL.
17632       old_archive_From_new_cmds_GCJ='true'
17633       # FIXME: Should let the user specify the lib program.
17634       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17635       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17636       enable_shared_with_static_runtimes_GCJ=yes
17637       ;;
17638
17639     darwin* | rhapsody*)
17640       case $host_os in
17641         rhapsody* | darwin1.[012])
17642          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17643          ;;
17644        *) # Darwin 1.3 on
17645          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17646            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17647          else
17648            case ${MACOSX_DEPLOYMENT_TARGET} in
17649              10.[012])
17650                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17651                ;;
17652              10.*)
17653                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17654                ;;
17655            esac
17656          fi
17657          ;;
17658       esac
17659       archive_cmds_need_lc_GCJ=no
17660       hardcode_direct_GCJ=no
17661       hardcode_automatic_GCJ=yes
17662       hardcode_shlibpath_var_GCJ=unsupported
17663       whole_archive_flag_spec_GCJ=''
17664       link_all_deplibs_GCJ=yes
17665     if test "$GCC" = yes ; then
17666         output_verbose_link_cmd='echo'
17667         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17668       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17669       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17670       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17671       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17672     else
17673       case $cc_basename in
17674         xlc*)
17675          output_verbose_link_cmd='echo'
17676          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17677          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17678           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17679          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17680           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17681           ;;
17682        *)
17683          ld_shlibs_GCJ=no
17684           ;;
17685       esac
17686     fi
17687       ;;
17688
17689     dgux*)
17690       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692       hardcode_shlibpath_var_GCJ=no
17693       ;;
17694
17695     freebsd1*)
17696       ld_shlibs_GCJ=no
17697       ;;
17698
17699     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17700     # support.  Future versions do this automatically, but an explicit c++rt0.o
17701     # does not break anything, and helps significantly (at the cost of a little
17702     # extra space).
17703     freebsd2.2*)
17704       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17705       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17706       hardcode_direct_GCJ=yes
17707       hardcode_shlibpath_var_GCJ=no
17708       ;;
17709
17710     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17711     freebsd2*)
17712       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17713       hardcode_direct_GCJ=yes
17714       hardcode_minus_L_GCJ=yes
17715       hardcode_shlibpath_var_GCJ=no
17716       ;;
17717
17718     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17719     freebsd* | dragonfly*)
17720       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17721       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17722       hardcode_direct_GCJ=yes
17723       hardcode_shlibpath_var_GCJ=no
17724       ;;
17725
17726     hpux9*)
17727       if test "$GCC" = yes; then
17728         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17729       else
17730         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17731       fi
17732       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17733       hardcode_libdir_separator_GCJ=:
17734       hardcode_direct_GCJ=yes
17735
17736       # hardcode_minus_L: Not really in the search PATH,
17737       # but as the default location of the library.
17738       hardcode_minus_L_GCJ=yes
17739       export_dynamic_flag_spec_GCJ='${wl}-E'
17740       ;;
17741
17742     hpux10*)
17743       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17744         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17745       else
17746         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17747       fi
17748       if test "$with_gnu_ld" = no; then
17749         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750         hardcode_libdir_separator_GCJ=:
17751
17752         hardcode_direct_GCJ=yes
17753         export_dynamic_flag_spec_GCJ='${wl}-E'
17754
17755         # hardcode_minus_L: Not really in the search PATH,
17756         # but as the default location of the library.
17757         hardcode_minus_L_GCJ=yes
17758       fi
17759       ;;
17760
17761     hpux11*)
17762       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17763         case $host_cpu in
17764         hppa*64*)
17765           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17766           ;;
17767         ia64*)
17768           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17769           ;;
17770         *)
17771           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17772           ;;
17773         esac
17774       else
17775         case $host_cpu in
17776         hppa*64*)
17777           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17778           ;;
17779         ia64*)
17780           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17781           ;;
17782         *)
17783           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17784           ;;
17785         esac
17786       fi
17787       if test "$with_gnu_ld" = no; then
17788         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17789         hardcode_libdir_separator_GCJ=:
17790
17791         case $host_cpu in
17792         hppa*64*|ia64*)
17793           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17794           hardcode_direct_GCJ=no
17795           hardcode_shlibpath_var_GCJ=no
17796           ;;
17797         *)
17798           hardcode_direct_GCJ=yes
17799           export_dynamic_flag_spec_GCJ='${wl}-E'
17800
17801           # hardcode_minus_L: Not really in the search PATH,
17802           # but as the default location of the library.
17803           hardcode_minus_L_GCJ=yes
17804           ;;
17805         esac
17806       fi
17807       ;;
17808
17809     irix5* | irix6* | nonstopux*)
17810       if test "$GCC" = yes; then
17811         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17812       else
17813         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17814         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17815       fi
17816       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17817       hardcode_libdir_separator_GCJ=:
17818       link_all_deplibs_GCJ=yes
17819       ;;
17820
17821     netbsd* | netbsdelf*-gnu)
17822       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17823         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17824       else
17825         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17826       fi
17827       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17828       hardcode_direct_GCJ=yes
17829       hardcode_shlibpath_var_GCJ=no
17830       ;;
17831
17832     newsos6)
17833       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17834       hardcode_direct_GCJ=yes
17835       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17836       hardcode_libdir_separator_GCJ=:
17837       hardcode_shlibpath_var_GCJ=no
17838       ;;
17839
17840     openbsd*)
17841       hardcode_direct_GCJ=yes
17842       hardcode_shlibpath_var_GCJ=no
17843       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17844         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17845         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17846         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17847         export_dynamic_flag_spec_GCJ='${wl}-E'
17848       else
17849        case $host_os in
17850          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17851            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17852            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17853            ;;
17854          *)
17855            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17856            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17857            ;;
17858        esac
17859       fi
17860       ;;
17861
17862     os2*)
17863       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17864       hardcode_minus_L_GCJ=yes
17865       allow_undefined_flag_GCJ=unsupported
17866       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17867       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17868       ;;
17869
17870     osf3*)
17871       if test "$GCC" = yes; then
17872         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17873         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17874       else
17875         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17876         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17877       fi
17878       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17879       hardcode_libdir_separator_GCJ=:
17880       ;;
17881
17882     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17883       if test "$GCC" = yes; then
17884         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17885         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17886         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17887       else
17888         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17889         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17890         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17891         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17892
17893         # Both c and cxx compiler support -rpath directly
17894         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17895       fi
17896       hardcode_libdir_separator_GCJ=:
17897       ;;
17898
17899     solaris*)
17900       no_undefined_flag_GCJ=' -z text'
17901       if test "$GCC" = yes; then
17902         wlarc='${wl}'
17903         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17905           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17906       else
17907         wlarc=''
17908         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17909         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17910         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17911       fi
17912       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913       hardcode_shlibpath_var_GCJ=no
17914       case $host_os in
17915       solaris2.[0-5] | solaris2.[0-5].*) ;;
17916       *)
17917         # The compiler driver will combine linker options so we
17918         # cannot just pass the convience library names through
17919         # without $wl, iff we do not link with $LD.
17920         # Luckily, gcc supports the same syntax we need for Sun Studio.
17921         # Supported since Solaris 2.6 (maybe 2.5.1?)
17922         case $wlarc in
17923         '')
17924           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17925         *)
17926           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17927         esac ;;
17928       esac
17929       link_all_deplibs_GCJ=yes
17930       ;;
17931
17932     sunos4*)
17933       if test "x$host_vendor" = xsequent; then
17934         # Use $CC to link under sequent, because it throws in some extra .o
17935         # files that make .init and .fini sections work.
17936         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17937       else
17938         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17939       fi
17940       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17941       hardcode_direct_GCJ=yes
17942       hardcode_minus_L_GCJ=yes
17943       hardcode_shlibpath_var_GCJ=no
17944       ;;
17945
17946     sysv4)
17947       case $host_vendor in
17948         sni)
17949           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950           hardcode_direct_GCJ=yes # is this really true???
17951         ;;
17952         siemens)
17953           ## LD is ld it makes a PLAMLIB
17954           ## CC just makes a GrossModule.
17955           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17956           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17957           hardcode_direct_GCJ=no
17958         ;;
17959         motorola)
17960           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17962         ;;
17963       esac
17964       runpath_var='LD_RUN_PATH'
17965       hardcode_shlibpath_var_GCJ=no
17966       ;;
17967
17968     sysv4.3*)
17969       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17970       hardcode_shlibpath_var_GCJ=no
17971       export_dynamic_flag_spec_GCJ='-Bexport'
17972       ;;
17973
17974     sysv4*MP*)
17975       if test -d /usr/nec; then
17976         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17977         hardcode_shlibpath_var_GCJ=no
17978         runpath_var=LD_RUN_PATH
17979         hardcode_runpath_var=yes
17980         ld_shlibs_GCJ=yes
17981       fi
17982       ;;
17983
17984     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17985       no_undefined_flag_GCJ='${wl}-z,text'
17986       archive_cmds_need_lc_GCJ=no
17987       hardcode_shlibpath_var_GCJ=no
17988       runpath_var='LD_RUN_PATH'
17989
17990       if test "$GCC" = yes; then
17991         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17992         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17993       else
17994         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17995         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17996       fi
17997       ;;
17998
17999     sysv5* | sco3.2v5* | sco5v6*)
18000       # Note: We can NOT use -z defs as we might desire, because we do not
18001       # link with -lc, and that would cause any symbols used from libc to
18002       # always be unresolved, which means just about no library would
18003       # ever link correctly.  If we're not using GNU ld we use -z text
18004       # though, which does catch some bad symbols but isn't as heavy-handed
18005       # as -z defs.
18006       no_undefined_flag_GCJ='${wl}-z,text'
18007       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18008       archive_cmds_need_lc_GCJ=no
18009       hardcode_shlibpath_var_GCJ=no
18010       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18011       hardcode_libdir_separator_GCJ=':'
18012       link_all_deplibs_GCJ=yes
18013       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18014       runpath_var='LD_RUN_PATH'
18015
18016       if test "$GCC" = yes; then
18017         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18019       else
18020         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18021         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18022       fi
18023       ;;
18024
18025     uts4*)
18026       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028       hardcode_shlibpath_var_GCJ=no
18029       ;;
18030
18031     *)
18032       ld_shlibs_GCJ=no
18033       ;;
18034     esac
18035   fi
18036
18037 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18038 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18039 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18040
18041 #
18042 # Do we need to explicitly link libc?
18043 #
18044 case "x$archive_cmds_need_lc_GCJ" in
18045 x|xyes)
18046   # Assume -lc should be added
18047   archive_cmds_need_lc_GCJ=yes
18048
18049   if test "$enable_shared" = yes && test "$GCC" = yes; then
18050     case $archive_cmds_GCJ in
18051     *'~'*)
18052       # FIXME: we may have to deal with multi-command sequences.
18053       ;;
18054     '$CC '*)
18055       # Test whether the compiler implicitly links with -lc since on some
18056       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18057       # to ld, don't add -lc before -lgcc.
18058       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18059 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18060       $rm conftest*
18061       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18062
18063       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18064   (eval $ac_compile) 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } 2>conftest.err; then
18068         soname=conftest
18069         lib=conftest
18070         libobjs=conftest.$ac_objext
18071         deplibs=
18072         wl=$lt_prog_compiler_wl_GCJ
18073         pic_flag=$lt_prog_compiler_pic_GCJ
18074         compiler_flags=-v
18075         linker_flags=-v
18076         verstring=
18077         output_objdir=.
18078         libname=conftest
18079         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18080         allow_undefined_flag_GCJ=
18081         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18082   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }
18086         then
18087           archive_cmds_need_lc_GCJ=no
18088         else
18089           archive_cmds_need_lc_GCJ=yes
18090         fi
18091         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18092       else
18093         cat conftest.err 1>&5
18094       fi
18095       $rm conftest*
18096       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18097 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18098       ;;
18099     esac
18100   fi
18101   ;;
18102 esac
18103
18104 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18105 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18106 library_names_spec=
18107 libname_spec='lib$name'
18108 soname_spec=
18109 shrext_cmds=".so"
18110 postinstall_cmds=
18111 postuninstall_cmds=
18112 finish_cmds=
18113 finish_eval=
18114 shlibpath_var=
18115 shlibpath_overrides_runpath=unknown
18116 version_type=none
18117 dynamic_linker="$host_os ld.so"
18118 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18119 if test "$GCC" = yes; then
18120   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18121   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18122     # if the path contains ";" then we assume it to be the separator
18123     # otherwise default to the standard path separator (i.e. ":") - it is
18124     # assumed that no part of a normal pathname contains ";" but that should
18125     # okay in the real world where ";" in dirpaths is itself problematic.
18126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18127   else
18128     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18129   fi
18130 else
18131   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18132 fi
18133 need_lib_prefix=unknown
18134 hardcode_into_libs=no
18135
18136 # when you set need_version to no, make sure it does not cause -set_version
18137 # flags to be left without arguments
18138 need_version=unknown
18139
18140 case $host_os in
18141 aix3*)
18142   version_type=linux
18143   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18144   shlibpath_var=LIBPATH
18145
18146   # AIX 3 has no versioning support, so we append a major version to the name.
18147   soname_spec='${libname}${release}${shared_ext}$major'
18148   ;;
18149
18150 aix4* | aix5*)
18151   version_type=linux
18152   need_lib_prefix=no
18153   need_version=no
18154   hardcode_into_libs=yes
18155   if test "$host_cpu" = ia64; then
18156     # AIX 5 supports IA64
18157     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18158     shlibpath_var=LD_LIBRARY_PATH
18159   else
18160     # With GCC up to 2.95.x, collect2 would create an import file
18161     # for dependence libraries.  The import file would start with
18162     # the line `#! .'.  This would cause the generated library to
18163     # depend on `.', always an invalid library.  This was fixed in
18164     # development snapshots of GCC prior to 3.0.
18165     case $host_os in
18166       aix4 | aix4.[01] | aix4.[01].*)
18167       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18168            echo ' yes '
18169            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18170         :
18171       else
18172         can_build_shared=no
18173       fi
18174       ;;
18175     esac
18176     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18177     # soname into executable. Probably we can add versioning support to
18178     # collect2, so additional links can be useful in future.
18179     if test "$aix_use_runtimelinking" = yes; then
18180       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18181       # instead of lib<name>.a to let people know that these are not
18182       # typical AIX shared libraries.
18183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184     else
18185       # We preserve .a as extension for shared libraries through AIX4.2
18186       # and later when we are not doing run time linking.
18187       library_names_spec='${libname}${release}.a $libname.a'
18188       soname_spec='${libname}${release}${shared_ext}$major'
18189     fi
18190     shlibpath_var=LIBPATH
18191   fi
18192   ;;
18193
18194 amigaos*)
18195   library_names_spec='$libname.ixlibrary $libname.a'
18196   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18197   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18198   ;;
18199
18200 beos*)
18201   library_names_spec='${libname}${shared_ext}'
18202   dynamic_linker="$host_os ld.so"
18203   shlibpath_var=LIBRARY_PATH
18204   ;;
18205
18206 bsdi[45]*)
18207   version_type=linux
18208   need_version=no
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210   soname_spec='${libname}${release}${shared_ext}$major'
18211   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18212   shlibpath_var=LD_LIBRARY_PATH
18213   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18214   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18215   # the default ld.so.conf also contains /usr/contrib/lib and
18216   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18217   # libtool to hard-code these into programs
18218   ;;
18219
18220 cygwin* | mingw* | pw32*)
18221   version_type=windows
18222   shrext_cmds=".dll"
18223   need_version=no
18224   need_lib_prefix=no
18225
18226   case $GCC,$host_os in
18227   yes,cygwin* | yes,mingw* | yes,pw32*)
18228     library_names_spec='$libname.dll.a'
18229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18230     postinstall_cmds='base_file=`basename \${file}`~
18231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18232       dldir=$destdir/`dirname \$dlpath`~
18233       test -d \$dldir || mkdir -p \$dldir~
18234       $install_prog $dir/$dlname \$dldir/$dlname~
18235       chmod a+x \$dldir/$dlname'
18236     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18237       dlpath=$dir/\$dldll~
18238        $rm \$dlpath'
18239     shlibpath_overrides_runpath=yes
18240
18241     case $host_os in
18242     cygwin*)
18243       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18244       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18245       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18246       ;;
18247     mingw*)
18248       # MinGW DLLs use traditional 'lib' prefix
18249       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18250       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18251       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18252         # It is most probably a Windows format PATH printed by
18253         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18254         # path with ; separators, and with drive letters. We can handle the
18255         # drive letters (cygwin fileutils understands them), so leave them,
18256         # especially as we might pass files found there to a mingw objdump,
18257         # which wouldn't understand a cygwinified path. Ahh.
18258         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18259       else
18260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18261       fi
18262       ;;
18263     pw32*)
18264       # pw32 DLLs use 'pw' prefix rather than 'lib'
18265       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18266       ;;
18267     esac
18268     ;;
18269
18270   *)
18271     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18272     ;;
18273   esac
18274   dynamic_linker='Win32 ld.exe'
18275   # FIXME: first we should search . and the directory the executable is in
18276   shlibpath_var=PATH
18277   ;;
18278
18279 darwin* | rhapsody*)
18280   dynamic_linker="$host_os dyld"
18281   version_type=darwin
18282   need_lib_prefix=no
18283   need_version=no
18284   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18285   soname_spec='${libname}${release}${major}$shared_ext'
18286   shlibpath_overrides_runpath=yes
18287   shlibpath_var=DYLD_LIBRARY_PATH
18288   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18289   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18290   if test "$GCC" = yes; then
18291     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18292   else
18293     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18294   fi
18295   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18296   ;;
18297
18298 dgux*)
18299   version_type=linux
18300   need_lib_prefix=no
18301   need_version=no
18302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18303   soname_spec='${libname}${release}${shared_ext}$major'
18304   shlibpath_var=LD_LIBRARY_PATH
18305   ;;
18306
18307 freebsd1*)
18308   dynamic_linker=no
18309   ;;
18310
18311 freebsd* | dragonfly*)
18312   # DragonFly does not have aout.  When/if they implement a new
18313   # versioning mechanism, adjust this.
18314   if test -x /usr/bin/objformat; then
18315     objformat=`/usr/bin/objformat`
18316   else
18317     case $host_os in
18318     freebsd[123]*) objformat=aout ;;
18319     *) objformat=elf ;;
18320     esac
18321   fi
18322   version_type=freebsd-$objformat
18323   case $version_type in
18324     freebsd-elf*)
18325       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18326       need_version=no
18327       need_lib_prefix=no
18328       ;;
18329     freebsd-*)
18330       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18331       need_version=yes
18332       ;;
18333   esac
18334   shlibpath_var=LD_LIBRARY_PATH
18335   case $host_os in
18336   freebsd2*)
18337     shlibpath_overrides_runpath=yes
18338     ;;
18339   freebsd3.[01]* | freebsdelf3.[01]*)
18340     shlibpath_overrides_runpath=yes
18341     hardcode_into_libs=yes
18342     ;;
18343   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18344   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18345     shlibpath_overrides_runpath=no
18346     hardcode_into_libs=yes
18347     ;;
18348   freebsd*) # from 4.6 on
18349     shlibpath_overrides_runpath=yes
18350     hardcode_into_libs=yes
18351     ;;
18352   esac
18353   ;;
18354
18355 gnu*)
18356   version_type=linux
18357   need_lib_prefix=no
18358   need_version=no
18359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18360   soname_spec='${libname}${release}${shared_ext}$major'
18361   shlibpath_var=LD_LIBRARY_PATH
18362   hardcode_into_libs=yes
18363   ;;
18364
18365 hpux9* | hpux10* | hpux11*)
18366   # Give a soname corresponding to the major version so that dld.sl refuses to
18367   # link against other versions.
18368   version_type=sunos
18369   need_lib_prefix=no
18370   need_version=no
18371   case $host_cpu in
18372   ia64*)
18373     shrext_cmds='.so'
18374     hardcode_into_libs=yes
18375     dynamic_linker="$host_os dld.so"
18376     shlibpath_var=LD_LIBRARY_PATH
18377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379     soname_spec='${libname}${release}${shared_ext}$major'
18380     if test "X$HPUX_IA64_MODE" = X32; then
18381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18382     else
18383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18384     fi
18385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18386     ;;
18387    hppa*64*)
18388      shrext_cmds='.sl'
18389      hardcode_into_libs=yes
18390      dynamic_linker="$host_os dld.sl"
18391      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18392      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394      soname_spec='${libname}${release}${shared_ext}$major'
18395      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18396      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18397      ;;
18398    *)
18399     shrext_cmds='.sl'
18400     dynamic_linker="$host_os dld.sl"
18401     shlibpath_var=SHLIB_PATH
18402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404     soname_spec='${libname}${release}${shared_ext}$major'
18405     ;;
18406   esac
18407   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18408   postinstall_cmds='chmod 555 $lib'
18409   ;;
18410
18411 interix3*)
18412   version_type=linux
18413   need_lib_prefix=no
18414   need_version=no
18415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18416   soname_spec='${libname}${release}${shared_ext}$major'
18417   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18418   shlibpath_var=LD_LIBRARY_PATH
18419   shlibpath_overrides_runpath=no
18420   hardcode_into_libs=yes
18421   ;;
18422
18423 irix5* | irix6* | nonstopux*)
18424   case $host_os in
18425     nonstopux*) version_type=nonstopux ;;
18426     *)
18427         if test "$lt_cv_prog_gnu_ld" = yes; then
18428                 version_type=linux
18429         else
18430                 version_type=irix
18431         fi ;;
18432   esac
18433   need_lib_prefix=no
18434   need_version=no
18435   soname_spec='${libname}${release}${shared_ext}$major'
18436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18437   case $host_os in
18438   irix5* | nonstopux*)
18439     libsuff= shlibsuff=
18440     ;;
18441   *)
18442     case $LD in # libtool.m4 will add one of these switches to LD
18443     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18444       libsuff= shlibsuff= libmagic=32-bit;;
18445     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18446       libsuff=32 shlibsuff=N32 libmagic=N32;;
18447     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18448       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18449     *) libsuff= shlibsuff= libmagic=never-match;;
18450     esac
18451     ;;
18452   esac
18453   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18454   shlibpath_overrides_runpath=no
18455   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18456   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18457   hardcode_into_libs=yes
18458   ;;
18459
18460 # No shared lib support for Linux oldld, aout, or coff.
18461 linux*oldld* | linux*aout* | linux*coff*)
18462   dynamic_linker=no
18463   ;;
18464
18465 # This must be Linux ELF.
18466 linux* | k*bsd*-gnu)
18467   version_type=linux
18468   need_lib_prefix=no
18469   need_version=no
18470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471   soname_spec='${libname}${release}${shared_ext}$major'
18472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18473   shlibpath_var=LD_LIBRARY_PATH
18474   shlibpath_overrides_runpath=no
18475   # This implies no fast_install, which is unacceptable.
18476   # Some rework will be needed to allow for fast_install
18477   # before this can be enabled.
18478   hardcode_into_libs=yes
18479
18480   # Append ld.so.conf contents to the search path
18481   if test -f /etc/ld.so.conf; then
18482     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18483     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18484   fi
18485
18486   # We used to test for /lib/ld.so.1 and disable shared libraries on
18487   # powerpc, because MkLinux only supported shared libraries with the
18488   # GNU dynamic linker.  Since this was broken with cross compilers,
18489   # most powerpc-linux boxes support dynamic linking these days and
18490   # people can always --disable-shared, the test was removed, and we
18491   # assume the GNU/Linux dynamic linker is in use.
18492   dynamic_linker='GNU/Linux ld.so'
18493   ;;
18494
18495 netbsdelf*-gnu)
18496   version_type=linux
18497   need_lib_prefix=no
18498   need_version=no
18499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500   soname_spec='${libname}${release}${shared_ext}$major'
18501   shlibpath_var=LD_LIBRARY_PATH
18502   shlibpath_overrides_runpath=no
18503   hardcode_into_libs=yes
18504   dynamic_linker='NetBSD ld.elf_so'
18505   ;;
18506
18507 netbsd*)
18508   version_type=sunos
18509   need_lib_prefix=no
18510   need_version=no
18511   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18513     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18514     dynamic_linker='NetBSD (a.out) ld.so'
18515   else
18516     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517     soname_spec='${libname}${release}${shared_ext}$major'
18518     dynamic_linker='NetBSD ld.elf_so'
18519   fi
18520   shlibpath_var=LD_LIBRARY_PATH
18521   shlibpath_overrides_runpath=yes
18522   hardcode_into_libs=yes
18523   ;;
18524
18525 newsos6)
18526   version_type=linux
18527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18528   shlibpath_var=LD_LIBRARY_PATH
18529   shlibpath_overrides_runpath=yes
18530   ;;
18531
18532 nto-qnx*)
18533   version_type=linux
18534   need_lib_prefix=no
18535   need_version=no
18536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537   soname_spec='${libname}${release}${shared_ext}$major'
18538   shlibpath_var=LD_LIBRARY_PATH
18539   shlibpath_overrides_runpath=yes
18540   ;;
18541
18542 openbsd*)
18543   version_type=sunos
18544   sys_lib_dlsearch_path_spec="/usr/lib"
18545   need_lib_prefix=no
18546   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18547   case $host_os in
18548     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18549     *)                         need_version=no  ;;
18550   esac
18551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18553   shlibpath_var=LD_LIBRARY_PATH
18554   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18555     case $host_os in
18556       openbsd2.[89] | openbsd2.[89].*)
18557         shlibpath_overrides_runpath=no
18558         ;;
18559       *)
18560         shlibpath_overrides_runpath=yes
18561         ;;
18562       esac
18563   else
18564     shlibpath_overrides_runpath=yes
18565   fi
18566   ;;
18567
18568 os2*)
18569   libname_spec='$name'
18570   shrext_cmds=".dll"
18571   need_lib_prefix=no
18572   library_names_spec='$libname${shared_ext} $libname.a'
18573   dynamic_linker='OS/2 ld.exe'
18574   shlibpath_var=LIBPATH
18575   ;;
18576
18577 osf3* | osf4* | osf5*)
18578   version_type=osf
18579   need_lib_prefix=no
18580   need_version=no
18581   soname_spec='${libname}${release}${shared_ext}$major'
18582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18583   shlibpath_var=LD_LIBRARY_PATH
18584   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18585   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18586   ;;
18587
18588 solaris*)
18589   version_type=linux
18590   need_lib_prefix=no
18591   need_version=no
18592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593   soname_spec='${libname}${release}${shared_ext}$major'
18594   shlibpath_var=LD_LIBRARY_PATH
18595   shlibpath_overrides_runpath=yes
18596   hardcode_into_libs=yes
18597   # ldd complains unless libraries are executable
18598   postinstall_cmds='chmod +x $lib'
18599   ;;
18600
18601 sunos4*)
18602   version_type=sunos
18603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18605   shlibpath_var=LD_LIBRARY_PATH
18606   shlibpath_overrides_runpath=yes
18607   if test "$with_gnu_ld" = yes; then
18608     need_lib_prefix=no
18609   fi
18610   need_version=yes
18611   ;;
18612
18613 sysv4 | sysv4.3*)
18614   version_type=linux
18615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616   soname_spec='${libname}${release}${shared_ext}$major'
18617   shlibpath_var=LD_LIBRARY_PATH
18618   case $host_vendor in
18619     sni)
18620       shlibpath_overrides_runpath=no
18621       need_lib_prefix=no
18622       export_dynamic_flag_spec='${wl}-Blargedynsym'
18623       runpath_var=LD_RUN_PATH
18624       ;;
18625     siemens)
18626       need_lib_prefix=no
18627       ;;
18628     motorola)
18629       need_lib_prefix=no
18630       need_version=no
18631       shlibpath_overrides_runpath=no
18632       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18633       ;;
18634   esac
18635   ;;
18636
18637 sysv4*MP*)
18638   if test -d /usr/nec ;then
18639     version_type=linux
18640     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18641     soname_spec='$libname${shared_ext}.$major'
18642     shlibpath_var=LD_LIBRARY_PATH
18643   fi
18644   ;;
18645
18646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18647   version_type=freebsd-elf
18648   need_lib_prefix=no
18649   need_version=no
18650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18651   soname_spec='${libname}${release}${shared_ext}$major'
18652   shlibpath_var=LD_LIBRARY_PATH
18653   hardcode_into_libs=yes
18654   if test "$with_gnu_ld" = yes; then
18655     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18656     shlibpath_overrides_runpath=no
18657   else
18658     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18659     shlibpath_overrides_runpath=yes
18660     case $host_os in
18661       sco3.2v5*)
18662         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18663         ;;
18664     esac
18665   fi
18666   sys_lib_dlsearch_path_spec='/usr/lib'
18667   ;;
18668
18669 uts4*)
18670   version_type=linux
18671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672   soname_spec='${libname}${release}${shared_ext}$major'
18673   shlibpath_var=LD_LIBRARY_PATH
18674   ;;
18675
18676 *)
18677   dynamic_linker=no
18678   ;;
18679 esac
18680 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18681 echo "${ECHO_T}$dynamic_linker" >&6
18682 test "$dynamic_linker" = no && can_build_shared=no
18683
18684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18685 if test "$GCC" = yes; then
18686   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18687 fi
18688
18689 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18690 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18691 hardcode_action_GCJ=
18692 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18693    test -n "$runpath_var_GCJ" || \
18694    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18695
18696   # We can hardcode non-existant directories.
18697   if test "$hardcode_direct_GCJ" != no &&
18698      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18699      # have to relink, otherwise we might link with an installed library
18700      # when we should be linking with a yet-to-be-installed one
18701      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18702      test "$hardcode_minus_L_GCJ" != no; then
18703     # Linking always hardcodes the temporary library directory.
18704     hardcode_action_GCJ=relink
18705   else
18706     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18707     hardcode_action_GCJ=immediate
18708   fi
18709 else
18710   # We cannot hardcode anything, or else we can only hardcode existing
18711   # directories.
18712   hardcode_action_GCJ=unsupported
18713 fi
18714 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18715 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18716
18717 if test "$hardcode_action_GCJ" = relink; then
18718   # Fast installation is not supported
18719   enable_fast_install=no
18720 elif test "$shlibpath_overrides_runpath" = yes ||
18721      test "$enable_shared" = no; then
18722   # Fast installation is not necessary
18723   enable_fast_install=needless
18724 fi
18725
18726
18727 # The else clause should only fire when bootstrapping the
18728 # libtool distribution, otherwise you forgot to ship ltmain.sh
18729 # with your package, and you will get complaints that there are
18730 # no rules to generate ltmain.sh.
18731 if test -f "$ltmain"; then
18732   # See if we are running on zsh, and set the options which allow our commands through
18733   # without removal of \ escapes.
18734   if test -n "${ZSH_VERSION+set}" ; then
18735     setopt NO_GLOB_SUBST
18736   fi
18737   # Now quote all the things that may contain metacharacters while being
18738   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18739   # variables and quote the copies for generation of the libtool script.
18740   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18741     SED SHELL STRIP \
18742     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744     deplibs_check_method reload_flag reload_cmds need_locks \
18745     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746     lt_cv_sys_global_symbol_to_c_name_address \
18747     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748     old_postinstall_cmds old_postuninstall_cmds \
18749     compiler_GCJ \
18750     CC_GCJ \
18751     LD_GCJ \
18752     lt_prog_compiler_wl_GCJ \
18753     lt_prog_compiler_pic_GCJ \
18754     lt_prog_compiler_static_GCJ \
18755     lt_prog_compiler_no_builtin_flag_GCJ \
18756     export_dynamic_flag_spec_GCJ \
18757     thread_safe_flag_spec_GCJ \
18758     whole_archive_flag_spec_GCJ \
18759     enable_shared_with_static_runtimes_GCJ \
18760     old_archive_cmds_GCJ \
18761     old_archive_from_new_cmds_GCJ \
18762     predep_objects_GCJ \
18763     postdep_objects_GCJ \
18764     predeps_GCJ \
18765     postdeps_GCJ \
18766     compiler_lib_search_path_GCJ \
18767     archive_cmds_GCJ \
18768     archive_expsym_cmds_GCJ \
18769     postinstall_cmds_GCJ \
18770     postuninstall_cmds_GCJ \
18771     old_archive_from_expsyms_cmds_GCJ \
18772     allow_undefined_flag_GCJ \
18773     no_undefined_flag_GCJ \
18774     export_symbols_cmds_GCJ \
18775     hardcode_libdir_flag_spec_GCJ \
18776     hardcode_libdir_flag_spec_ld_GCJ \
18777     hardcode_libdir_separator_GCJ \
18778     hardcode_automatic_GCJ \
18779     module_cmds_GCJ \
18780     module_expsym_cmds_GCJ \
18781     lt_cv_prog_compiler_c_o_GCJ \
18782     exclude_expsyms_GCJ \
18783     include_expsyms_GCJ; do
18784
18785     case $var in
18786     old_archive_cmds_GCJ | \
18787     old_archive_from_new_cmds_GCJ | \
18788     archive_cmds_GCJ | \
18789     archive_expsym_cmds_GCJ | \
18790     module_cmds_GCJ | \
18791     module_expsym_cmds_GCJ | \
18792     old_archive_from_expsyms_cmds_GCJ | \
18793     export_symbols_cmds_GCJ | \
18794     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795     postinstall_cmds | postuninstall_cmds | \
18796     old_postinstall_cmds | old_postuninstall_cmds | \
18797     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798       # Double-quote double-evaled strings.
18799       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18800       ;;
18801     *)
18802       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18803       ;;
18804     esac
18805   done
18806
18807   case $lt_echo in
18808   *'\$0 --fallback-echo"')
18809     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18810     ;;
18811   esac
18812
18813 cfgfile="$ofile"
18814
18815   cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18817
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18819
18820 # Shell to use when invoking shell scripts.
18821 SHELL=$lt_SHELL
18822
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18825
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18828
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18831
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18834
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18837
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18841 host_os=$host_os
18842
18843 # The build system.
18844 build_alias=$build_alias
18845 build=$build
18846 build_os=$build_os
18847
18848 # An echo program that does not interpret backslashes.
18849 echo=$lt_echo
18850
18851 # The archiver.
18852 AR=$lt_AR
18853 AR_FLAGS=$lt_AR_FLAGS
18854
18855 # A C compiler.
18856 LTCC=$lt_LTCC
18857
18858 # LTCC compiler flags.
18859 LTCFLAGS=$lt_LTCFLAGS
18860
18861 # A language-specific compiler.
18862 CC=$lt_compiler_GCJ
18863
18864 # Is the compiler the GNU C compiler?
18865 with_gcc=$GCC_GCJ
18866
18867 # An ERE matcher.
18868 EGREP=$lt_EGREP
18869
18870 # The linker used to build libraries.
18871 LD=$lt_LD_GCJ
18872
18873 # Whether we need hard or soft links.
18874 LN_S=$lt_LN_S
18875
18876 # A BSD-compatible nm program.
18877 NM=$lt_NM
18878
18879 # A symbol stripping program
18880 STRIP=$lt_STRIP
18881
18882 # Used to examine libraries when file_magic_cmd begins "file"
18883 MAGIC_CMD=$MAGIC_CMD
18884
18885 # Used on cygwin: DLL creation program.
18886 DLLTOOL="$DLLTOOL"
18887
18888 # Used on cygwin: object dumper.
18889 OBJDUMP="$OBJDUMP"
18890
18891 # Used on cygwin: assembler.
18892 AS="$AS"
18893
18894 # The name of the directory that contains temporary libtool files.
18895 objdir=$objdir
18896
18897 # How to create reloadable object files.
18898 reload_flag=$lt_reload_flag
18899 reload_cmds=$lt_reload_cmds
18900
18901 # How to pass a linker flag through the compiler.
18902 wl=$lt_lt_prog_compiler_wl_GCJ
18903
18904 # Object file suffix (normally "o").
18905 objext="$ac_objext"
18906
18907 # Old archive suffix (normally "a").
18908 libext="$libext"
18909
18910 # Shared library suffix (normally ".so").
18911 shrext_cmds='$shrext_cmds'
18912
18913 # Executable file suffix (normally "").
18914 exeext="$exeext"
18915
18916 # Additional compiler flags for building library objects.
18917 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18918 pic_mode=$pic_mode
18919
18920 # What is the maximum length of a command?
18921 max_cmd_len=$lt_cv_sys_max_cmd_len
18922
18923 # Does compiler simultaneously support -c and -o options?
18924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18925
18926 # Must we lock files when doing compilation?
18927 need_locks=$lt_need_locks
18928
18929 # Do we need the lib prefix for modules?
18930 need_lib_prefix=$need_lib_prefix
18931
18932 # Do we need a version for libraries?
18933 need_version=$need_version
18934
18935 # Whether dlopen is supported.
18936 dlopen_support=$enable_dlopen
18937
18938 # Whether dlopen of programs is supported.
18939 dlopen_self=$enable_dlopen_self
18940
18941 # Whether dlopen of statically linked programs is supported.
18942 dlopen_self_static=$enable_dlopen_self_static
18943
18944 # Compiler flag to prevent dynamic linking.
18945 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18946
18947 # Compiler flag to turn off builtin functions.
18948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18949
18950 # Compiler flag to allow reflexive dlopens.
18951 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18952
18953 # Compiler flag to generate shared objects directly from archives.
18954 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18955
18956 # Compiler flag to generate thread-safe objects.
18957 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18958
18959 # Library versioning type.
18960 version_type=$version_type
18961
18962 # Format of library name prefix.
18963 libname_spec=$lt_libname_spec
18964
18965 # List of archive names.  First name is the real one, the rest are links.
18966 # The last name is the one that the linker finds with -lNAME.
18967 library_names_spec=$lt_library_names_spec
18968
18969 # The coded name of the library, if different from the real name.
18970 soname_spec=$lt_soname_spec
18971
18972 # Commands used to build and install an old-style archive.
18973 RANLIB=$lt_RANLIB
18974 old_archive_cmds=$lt_old_archive_cmds_GCJ
18975 old_postinstall_cmds=$lt_old_postinstall_cmds
18976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18977
18978 # Create an old-style archive from a shared archive.
18979 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18980
18981 # Create a temporary old-style archive to link instead of a shared archive.
18982 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18983
18984 # Commands used to build and install a shared archive.
18985 archive_cmds=$lt_archive_cmds_GCJ
18986 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18987 postinstall_cmds=$lt_postinstall_cmds
18988 postuninstall_cmds=$lt_postuninstall_cmds
18989
18990 # Commands used to build a loadable module (assumed same as above if empty)
18991 module_cmds=$lt_module_cmds_GCJ
18992 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18993
18994 # Commands to strip libraries.
18995 old_striplib=$lt_old_striplib
18996 striplib=$lt_striplib
18997
18998 # Dependencies to place before the objects being linked to create a
18999 # shared library.
19000 predep_objects=$lt_predep_objects_GCJ
19001
19002 # Dependencies to place after the objects being linked to create a
19003 # shared library.
19004 postdep_objects=$lt_postdep_objects_GCJ
19005
19006 # Dependencies to place before the objects being linked to create a
19007 # shared library.
19008 predeps=$lt_predeps_GCJ
19009
19010 # Dependencies to place after the objects being linked to create a
19011 # shared library.
19012 postdeps=$lt_postdeps_GCJ
19013
19014 # The library search path used internally by the compiler when linking
19015 # a shared library.
19016 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19017
19018 # Method to check whether dependent libraries are shared objects.
19019 deplibs_check_method=$lt_deplibs_check_method
19020
19021 # Command to use when deplibs_check_method == file_magic.
19022 file_magic_cmd=$lt_file_magic_cmd
19023
19024 # Flag that allows shared libraries with undefined symbols to be built.
19025 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19026
19027 # Flag that forces no undefined symbols.
19028 no_undefined_flag=$lt_no_undefined_flag_GCJ
19029
19030 # Commands used to finish a libtool library installation in a directory.
19031 finish_cmds=$lt_finish_cmds
19032
19033 # Same as above, but a single script fragment to be evaled but not shown.
19034 finish_eval=$lt_finish_eval
19035
19036 # Take the output of nm and produce a listing of raw symbols and C names.
19037 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19038
19039 # Transform the output of nm in a proper C declaration
19040 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19041
19042 # Transform the output of nm in a C name address pair
19043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19044
19045 # This is the shared library runtime path variable.
19046 runpath_var=$runpath_var
19047
19048 # This is the shared library path variable.
19049 shlibpath_var=$shlibpath_var
19050
19051 # Is shlibpath searched before the hard-coded library search path?
19052 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19053
19054 # How to hardcode a shared library path into an executable.
19055 hardcode_action=$hardcode_action_GCJ
19056
19057 # Whether we should hardcode library paths into libraries.
19058 hardcode_into_libs=$hardcode_into_libs
19059
19060 # Flag to hardcode \$libdir into a binary during linking.
19061 # This must work even if \$libdir does not exist.
19062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19063
19064 # If ld is used when linking, flag to hardcode \$libdir into
19065 # a binary during linking. This must work even if \$libdir does
19066 # not exist.
19067 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19068
19069 # Whether we need a single -rpath flag with a separated argument.
19070 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19071
19072 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19073 # resulting binary.
19074 hardcode_direct=$hardcode_direct_GCJ
19075
19076 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19077 # resulting binary.
19078 hardcode_minus_L=$hardcode_minus_L_GCJ
19079
19080 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19081 # the resulting binary.
19082 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19083
19084 # Set to yes if building a shared library automatically hardcodes DIR into the library
19085 # and all subsequent libraries and executables linked against it.
19086 hardcode_automatic=$hardcode_automatic_GCJ
19087
19088 # Variables whose values should be saved in libtool wrapper scripts and
19089 # restored at relink time.
19090 variables_saved_for_relink="$variables_saved_for_relink"
19091
19092 # Whether libtool must link a program against all its dependency libraries.
19093 link_all_deplibs=$link_all_deplibs_GCJ
19094
19095 # Compile-time system search path for libraries
19096 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19097
19098 # Run-time system search path for libraries
19099 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19100
19101 # Fix the shell variable \$srcfile for the compiler.
19102 fix_srcfile_path="$fix_srcfile_path_GCJ"
19103
19104 # Set to yes if exported symbols are required.
19105 always_export_symbols=$always_export_symbols_GCJ
19106
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19109
19110 # The commands to extract the exported symbol list from a shared archive.
19111 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19112
19113 # Symbols that should not be listed in the preloaded symbols.
19114 exclude_expsyms=$lt_exclude_expsyms_GCJ
19115
19116 # Symbols that must always be exported.
19117 include_expsyms=$lt_include_expsyms_GCJ
19118
19119 # ### END LIBTOOL TAG CONFIG: $tagname
19120
19121 __EOF__
19122
19123
19124 else
19125   # If there is no Makefile yet, we rely on a make rule to execute
19126   # `config.status --recheck' to rerun these tests and create the
19127   # libtool script then.
19128   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19129   if test -f "$ltmain_in"; then
19130     test -f Makefile && make "$ltmain"
19131   fi
19132 fi
19133
19134
19135 ac_ext=c
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141 CC="$lt_save_CC"
19142
19143         else
19144           tagname=""
19145         fi
19146         ;;
19147
19148       RC)
19149
19150
19151
19152 # Source file extension for RC test sources.
19153 ac_ext=rc
19154
19155 # Object file extension for compiled RC test sources.
19156 objext=o
19157 objext_RC=$objext
19158
19159 # Code to be used in simple compile tests
19160 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19161
19162 # Code to be used in simple link tests
19163 lt_simple_link_test_code="$lt_simple_compile_test_code"
19164
19165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19166
19167 # If no C compiler was specified, use CC.
19168 LTCC=${LTCC-"$CC"}
19169
19170 # If no C compiler flags were specified, use CFLAGS.
19171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19172
19173 # Allow CC to be a program name with arguments.
19174 compiler=$CC
19175
19176
19177 # save warnings/boilerplate of simple test code
19178 ac_outfile=conftest.$ac_objext
19179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19181 _lt_compiler_boilerplate=`cat conftest.err`
19182 $rm conftest*
19183
19184 ac_outfile=conftest.$ac_objext
19185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187 _lt_linker_boilerplate=`cat conftest.err`
19188 $rm conftest*
19189
19190
19191 # Allow CC to be a program name with arguments.
19192 lt_save_CC="$CC"
19193 CC=${RC-"windres"}
19194 compiler=$CC
19195 compiler_RC=$CC
19196 for cc_temp in $compiler""; do
19197   case $cc_temp in
19198     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19199     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19200     \-*) ;;
19201     *) break;;
19202   esac
19203 done
19204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19205
19206 lt_cv_prog_compiler_c_o_RC=yes
19207
19208 # The else clause should only fire when bootstrapping the
19209 # libtool distribution, otherwise you forgot to ship ltmain.sh
19210 # with your package, and you will get complaints that there are
19211 # no rules to generate ltmain.sh.
19212 if test -f "$ltmain"; then
19213   # See if we are running on zsh, and set the options which allow our commands through
19214   # without removal of \ escapes.
19215   if test -n "${ZSH_VERSION+set}" ; then
19216     setopt NO_GLOB_SUBST
19217   fi
19218   # Now quote all the things that may contain metacharacters while being
19219   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19220   # variables and quote the copies for generation of the libtool script.
19221   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19222     SED SHELL STRIP \
19223     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19224     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19225     deplibs_check_method reload_flag reload_cmds need_locks \
19226     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19227     lt_cv_sys_global_symbol_to_c_name_address \
19228     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19229     old_postinstall_cmds old_postuninstall_cmds \
19230     compiler_RC \
19231     CC_RC \
19232     LD_RC \
19233     lt_prog_compiler_wl_RC \
19234     lt_prog_compiler_pic_RC \
19235     lt_prog_compiler_static_RC \
19236     lt_prog_compiler_no_builtin_flag_RC \
19237     export_dynamic_flag_spec_RC \
19238     thread_safe_flag_spec_RC \
19239     whole_archive_flag_spec_RC \
19240     enable_shared_with_static_runtimes_RC \
19241     old_archive_cmds_RC \
19242     old_archive_from_new_cmds_RC \
19243     predep_objects_RC \
19244     postdep_objects_RC \
19245     predeps_RC \
19246     postdeps_RC \
19247     compiler_lib_search_path_RC \
19248     archive_cmds_RC \
19249     archive_expsym_cmds_RC \
19250     postinstall_cmds_RC \
19251     postuninstall_cmds_RC \
19252     old_archive_from_expsyms_cmds_RC \
19253     allow_undefined_flag_RC \
19254     no_undefined_flag_RC \
19255     export_symbols_cmds_RC \
19256     hardcode_libdir_flag_spec_RC \
19257     hardcode_libdir_flag_spec_ld_RC \
19258     hardcode_libdir_separator_RC \
19259     hardcode_automatic_RC \
19260     module_cmds_RC \
19261     module_expsym_cmds_RC \
19262     lt_cv_prog_compiler_c_o_RC \
19263     exclude_expsyms_RC \
19264     include_expsyms_RC; do
19265
19266     case $var in
19267     old_archive_cmds_RC | \
19268     old_archive_from_new_cmds_RC | \
19269     archive_cmds_RC | \
19270     archive_expsym_cmds_RC | \
19271     module_cmds_RC | \
19272     module_expsym_cmds_RC | \
19273     old_archive_from_expsyms_cmds_RC | \
19274     export_symbols_cmds_RC | \
19275     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19276     postinstall_cmds | postuninstall_cmds | \
19277     old_postinstall_cmds | old_postuninstall_cmds | \
19278     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19279       # Double-quote double-evaled strings.
19280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19281       ;;
19282     *)
19283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19284       ;;
19285     esac
19286   done
19287
19288   case $lt_echo in
19289   *'\$0 --fallback-echo"')
19290     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19291     ;;
19292   esac
19293
19294 cfgfile="$ofile"
19295
19296   cat <<__EOF__ >> "$cfgfile"
19297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19298
19299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19300
19301 # Shell to use when invoking shell scripts.
19302 SHELL=$lt_SHELL
19303
19304 # Whether or not to build shared libraries.
19305 build_libtool_libs=$enable_shared
19306
19307 # Whether or not to build static libraries.
19308 build_old_libs=$enable_static
19309
19310 # Whether or not to add -lc for building shared libraries.
19311 build_libtool_need_lc=$archive_cmds_need_lc_RC
19312
19313 # Whether or not to disallow shared libs when runtime libs are static
19314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19315
19316 # Whether or not to optimize for fast installation.
19317 fast_install=$enable_fast_install
19318
19319 # The host system.
19320 host_alias=$host_alias
19321 host=$host
19322 host_os=$host_os
19323
19324 # The build system.
19325 build_alias=$build_alias
19326 build=$build
19327 build_os=$build_os
19328
19329 # An echo program that does not interpret backslashes.
19330 echo=$lt_echo
19331
19332 # The archiver.
19333 AR=$lt_AR
19334 AR_FLAGS=$lt_AR_FLAGS
19335
19336 # A C compiler.
19337 LTCC=$lt_LTCC
19338
19339 # LTCC compiler flags.
19340 LTCFLAGS=$lt_LTCFLAGS
19341
19342 # A language-specific compiler.
19343 CC=$lt_compiler_RC
19344
19345 # Is the compiler the GNU C compiler?
19346 with_gcc=$GCC_RC
19347
19348 # An ERE matcher.
19349 EGREP=$lt_EGREP
19350
19351 # The linker used to build libraries.
19352 LD=$lt_LD_RC
19353
19354 # Whether we need hard or soft links.
19355 LN_S=$lt_LN_S
19356
19357 # A BSD-compatible nm program.
19358 NM=$lt_NM
19359
19360 # A symbol stripping program
19361 STRIP=$lt_STRIP
19362
19363 # Used to examine libraries when file_magic_cmd begins "file"
19364 MAGIC_CMD=$MAGIC_CMD
19365
19366 # Used on cygwin: DLL creation program.
19367 DLLTOOL="$DLLTOOL"
19368
19369 # Used on cygwin: object dumper.
19370 OBJDUMP="$OBJDUMP"
19371
19372 # Used on cygwin: assembler.
19373 AS="$AS"
19374
19375 # The name of the directory that contains temporary libtool files.
19376 objdir=$objdir
19377
19378 # How to create reloadable object files.
19379 reload_flag=$lt_reload_flag
19380 reload_cmds=$lt_reload_cmds
19381
19382 # How to pass a linker flag through the compiler.
19383 wl=$lt_lt_prog_compiler_wl_RC
19384
19385 # Object file suffix (normally "o").
19386 objext="$ac_objext"
19387
19388 # Old archive suffix (normally "a").
19389 libext="$libext"
19390
19391 # Shared library suffix (normally ".so").
19392 shrext_cmds='$shrext_cmds'
19393
19394 # Executable file suffix (normally "").
19395 exeext="$exeext"
19396
19397 # Additional compiler flags for building library objects.
19398 pic_flag=$lt_lt_prog_compiler_pic_RC
19399 pic_mode=$pic_mode
19400
19401 # What is the maximum length of a command?
19402 max_cmd_len=$lt_cv_sys_max_cmd_len
19403
19404 # Does compiler simultaneously support -c and -o options?
19405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19406
19407 # Must we lock files when doing compilation?
19408 need_locks=$lt_need_locks
19409
19410 # Do we need the lib prefix for modules?
19411 need_lib_prefix=$need_lib_prefix
19412
19413 # Do we need a version for libraries?
19414 need_version=$need_version
19415
19416 # Whether dlopen is supported.
19417 dlopen_support=$enable_dlopen
19418
19419 # Whether dlopen of programs is supported.
19420 dlopen_self=$enable_dlopen_self
19421
19422 # Whether dlopen of statically linked programs is supported.
19423 dlopen_self_static=$enable_dlopen_self_static
19424
19425 # Compiler flag to prevent dynamic linking.
19426 link_static_flag=$lt_lt_prog_compiler_static_RC
19427
19428 # Compiler flag to turn off builtin functions.
19429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19430
19431 # Compiler flag to allow reflexive dlopens.
19432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19433
19434 # Compiler flag to generate shared objects directly from archives.
19435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19436
19437 # Compiler flag to generate thread-safe objects.
19438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19439
19440 # Library versioning type.
19441 version_type=$version_type
19442
19443 # Format of library name prefix.
19444 libname_spec=$lt_libname_spec
19445
19446 # List of archive names.  First name is the real one, the rest are links.
19447 # The last name is the one that the linker finds with -lNAME.
19448 library_names_spec=$lt_library_names_spec
19449
19450 # The coded name of the library, if different from the real name.
19451 soname_spec=$lt_soname_spec
19452
19453 # Commands used to build and install an old-style archive.
19454 RANLIB=$lt_RANLIB
19455 old_archive_cmds=$lt_old_archive_cmds_RC
19456 old_postinstall_cmds=$lt_old_postinstall_cmds
19457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19458
19459 # Create an old-style archive from a shared archive.
19460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19461
19462 # Create a temporary old-style archive to link instead of a shared archive.
19463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19464
19465 # Commands used to build and install a shared archive.
19466 archive_cmds=$lt_archive_cmds_RC
19467 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19468 postinstall_cmds=$lt_postinstall_cmds
19469 postuninstall_cmds=$lt_postuninstall_cmds
19470
19471 # Commands used to build a loadable module (assumed same as above if empty)
19472 module_cmds=$lt_module_cmds_RC
19473 module_expsym_cmds=$lt_module_expsym_cmds_RC
19474
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19478
19479 # Dependencies to place before the objects being linked to create a
19480 # shared library.
19481 predep_objects=$lt_predep_objects_RC
19482
19483 # Dependencies to place after the objects being linked to create a
19484 # shared library.
19485 postdep_objects=$lt_postdep_objects_RC
19486
19487 # Dependencies to place before the objects being linked to create a
19488 # shared library.
19489 predeps=$lt_predeps_RC
19490
19491 # Dependencies to place after the objects being linked to create a
19492 # shared library.
19493 postdeps=$lt_postdeps_RC
19494
19495 # The library search path used internally by the compiler when linking
19496 # a shared library.
19497 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19498
19499 # Method to check whether dependent libraries are shared objects.
19500 deplibs_check_method=$lt_deplibs_check_method
19501
19502 # Command to use when deplibs_check_method == file_magic.
19503 file_magic_cmd=$lt_file_magic_cmd
19504
19505 # Flag that allows shared libraries with undefined symbols to be built.
19506 allow_undefined_flag=$lt_allow_undefined_flag_RC
19507
19508 # Flag that forces no undefined symbols.
19509 no_undefined_flag=$lt_no_undefined_flag_RC
19510
19511 # Commands used to finish a libtool library installation in a directory.
19512 finish_cmds=$lt_finish_cmds
19513
19514 # Same as above, but a single script fragment to be evaled but not shown.
19515 finish_eval=$lt_finish_eval
19516
19517 # Take the output of nm and produce a listing of raw symbols and C names.
19518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19519
19520 # Transform the output of nm in a proper C declaration
19521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19522
19523 # Transform the output of nm in a C name address pair
19524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19525
19526 # This is the shared library runtime path variable.
19527 runpath_var=$runpath_var
19528
19529 # This is the shared library path variable.
19530 shlibpath_var=$shlibpath_var
19531
19532 # Is shlibpath searched before the hard-coded library search path?
19533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19534
19535 # How to hardcode a shared library path into an executable.
19536 hardcode_action=$hardcode_action_RC
19537
19538 # Whether we should hardcode library paths into libraries.
19539 hardcode_into_libs=$hardcode_into_libs
19540
19541 # Flag to hardcode \$libdir into a binary during linking.
19542 # This must work even if \$libdir does not exist.
19543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19544
19545 # If ld is used when linking, flag to hardcode \$libdir into
19546 # a binary during linking. This must work even if \$libdir does
19547 # not exist.
19548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19549
19550 # Whether we need a single -rpath flag with a separated argument.
19551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19552
19553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_direct=$hardcode_direct_RC
19556
19557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19558 # resulting binary.
19559 hardcode_minus_L=$hardcode_minus_L_RC
19560
19561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19562 # the resulting binary.
19563 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19564
19565 # Set to yes if building a shared library automatically hardcodes DIR into the library
19566 # and all subsequent libraries and executables linked against it.
19567 hardcode_automatic=$hardcode_automatic_RC
19568
19569 # Variables whose values should be saved in libtool wrapper scripts and
19570 # restored at relink time.
19571 variables_saved_for_relink="$variables_saved_for_relink"
19572
19573 # Whether libtool must link a program against all its dependency libraries.
19574 link_all_deplibs=$link_all_deplibs_RC
19575
19576 # Compile-time system search path for libraries
19577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19578
19579 # Run-time system search path for libraries
19580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19581
19582 # Fix the shell variable \$srcfile for the compiler.
19583 fix_srcfile_path="$fix_srcfile_path_RC"
19584
19585 # Set to yes if exported symbols are required.
19586 always_export_symbols=$always_export_symbols_RC
19587
19588 # The commands to list exported symbols.
19589 export_symbols_cmds=$lt_export_symbols_cmds_RC
19590
19591 # The commands to extract the exported symbol list from a shared archive.
19592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19593
19594 # Symbols that should not be listed in the preloaded symbols.
19595 exclude_expsyms=$lt_exclude_expsyms_RC
19596
19597 # Symbols that must always be exported.
19598 include_expsyms=$lt_include_expsyms_RC
19599
19600 # ### END LIBTOOL TAG CONFIG: $tagname
19601
19602 __EOF__
19603
19604
19605 else
19606   # If there is no Makefile yet, we rely on a make rule to execute
19607   # `config.status --recheck' to rerun these tests and create the
19608   # libtool script then.
19609   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19610   if test -f "$ltmain_in"; then
19611     test -f Makefile && make "$ltmain"
19612   fi
19613 fi
19614
19615
19616 ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622 CC="$lt_save_CC"
19623
19624         ;;
19625
19626       *)
19627         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19628 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19629    { (exit 1); exit 1; }; }
19630         ;;
19631       esac
19632
19633       # Append the new tag name to the list of available tags.
19634       if test -n "$tagname" ; then
19635       available_tags="$available_tags $tagname"
19636     fi
19637     fi
19638   done
19639   IFS="$lt_save_ifs"
19640
19641   # Now substitute the updated list of available tags.
19642   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19643     mv "${ofile}T" "$ofile"
19644     chmod +x "$ofile"
19645   else
19646     rm -f "${ofile}T"
19647     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19648 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19649    { (exit 1); exit 1; }; }
19650   fi
19651 fi
19652
19653
19654
19655 # This can be used to rebuild libtool when needed
19656 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19657
19658 # Always use our own libtool.
19659 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19660
19661 # Prevent multiple expansion
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683 if test "x$cross_compiling" = "xno"; then
19684         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
19685 else
19686         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19687 fi
19688
19689
19690
19691 if test -n "$ac_tool_prefix"; then
19692   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19693 set dummy ${ac_tool_prefix}ar; ac_word=$2
19694 echo "$as_me:$LINENO: checking for $ac_word" >&5
19695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19696 if test "${ac_cv_prog_AR+set}" = set; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   if test -n "$AR"; then
19700   ac_cv_prog_AR="$AR" # Let the user override the test.
19701 else
19702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703 for as_dir in $PATH
19704 do
19705   IFS=$as_save_IFS
19706   test -z "$as_dir" && as_dir=.
19707   for ac_exec_ext in '' $ac_executable_extensions; do
19708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19709     ac_cv_prog_AR="${ac_tool_prefix}ar"
19710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19711     break 2
19712   fi
19713 done
19714 done
19715
19716 fi
19717 fi
19718 AR=$ac_cv_prog_AR
19719 if test -n "$AR"; then
19720   echo "$as_me:$LINENO: result: $AR" >&5
19721 echo "${ECHO_T}$AR" >&6
19722 else
19723   echo "$as_me:$LINENO: result: no" >&5
19724 echo "${ECHO_T}no" >&6
19725 fi
19726
19727 fi
19728 if test -z "$ac_cv_prog_AR"; then
19729   ac_ct_AR=$AR
19730   # Extract the first word of "ar", so it can be a program name with args.
19731 set dummy ar; ac_word=$2
19732 echo "$as_me:$LINENO: checking for $ac_word" >&5
19733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19734 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19735   echo $ECHO_N "(cached) $ECHO_C" >&6
19736 else
19737   if test -n "$ac_ct_AR"; then
19738   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19739 else
19740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 for as_dir in $PATH
19742 do
19743   IFS=$as_save_IFS
19744   test -z "$as_dir" && as_dir=.
19745   for ac_exec_ext in '' $ac_executable_extensions; do
19746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19747     ac_cv_prog_ac_ct_AR="ar"
19748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19749     break 2
19750   fi
19751 done
19752 done
19753
19754 fi
19755 fi
19756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19757 if test -n "$ac_ct_AR"; then
19758   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19759 echo "${ECHO_T}$ac_ct_AR" >&6
19760 else
19761   echo "$as_me:$LINENO: result: no" >&5
19762 echo "${ECHO_T}no" >&6
19763 fi
19764
19765   AR=$ac_ct_AR
19766 else
19767   AR="$ac_cv_prog_AR"
19768 fi
19769
19770 if test -n "$ac_tool_prefix"; then
19771   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
19772 set dummy ${ac_tool_prefix}ld; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_prog_LD+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   if test -n "$LD"; then
19779   ac_cv_prog_LD="$LD" # Let the user override the test.
19780 else
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 for as_dir in $PATH
19783 do
19784   IFS=$as_save_IFS
19785   test -z "$as_dir" && as_dir=.
19786   for ac_exec_ext in '' $ac_executable_extensions; do
19787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19788     ac_cv_prog_LD="${ac_tool_prefix}ld"
19789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19790     break 2
19791   fi
19792 done
19793 done
19794
19795 fi
19796 fi
19797 LD=$ac_cv_prog_LD
19798 if test -n "$LD"; then
19799   echo "$as_me:$LINENO: result: $LD" >&5
19800 echo "${ECHO_T}$LD" >&6
19801 else
19802   echo "$as_me:$LINENO: result: no" >&5
19803 echo "${ECHO_T}no" >&6
19804 fi
19805
19806 fi
19807 if test -z "$ac_cv_prog_LD"; then
19808   ac_ct_LD=$LD
19809   # Extract the first word of "ld", so it can be a program name with args.
19810 set dummy ld; ac_word=$2
19811 echo "$as_me:$LINENO: checking for $ac_word" >&5
19812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19813 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   if test -n "$ac_ct_LD"; then
19817   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
19818 else
19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19821 do
19822   IFS=$as_save_IFS
19823   test -z "$as_dir" && as_dir=.
19824   for ac_exec_ext in '' $ac_executable_extensions; do
19825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19826     ac_cv_prog_ac_ct_LD="ld"
19827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19828     break 2
19829   fi
19830 done
19831 done
19832
19833 fi
19834 fi
19835 ac_ct_LD=$ac_cv_prog_ac_ct_LD
19836 if test -n "$ac_ct_LD"; then
19837   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
19838 echo "${ECHO_T}$ac_ct_LD" >&6
19839 else
19840   echo "$as_me:$LINENO: result: no" >&5
19841 echo "${ECHO_T}no" >&6
19842 fi
19843
19844   LD=$ac_ct_LD
19845 else
19846   LD="$ac_cv_prog_LD"
19847 fi
19848
19849
19850 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19852 if test "${ac_cv_header_stdc+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 #include <stdlib.h>
19862 #include <stdarg.h>
19863 #include <string.h>
19864 #include <float.h>
19865
19866 int
19867 main ()
19868 {
19869
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19876   (eval $ac_compile) 2>conftest.er1
19877   ac_status=$?
19878   grep -v '^ *+' conftest.er1 >conftest.err
19879   rm -f conftest.er1
19880   cat conftest.err >&5
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); } &&
19883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885   (eval $ac_try) 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; } &&
19889          { ac_try='test -s conftest.$ac_objext'
19890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891   (eval $ac_try) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }; }; then
19895   ac_cv_header_stdc=yes
19896 else
19897   echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19899
19900 ac_cv_header_stdc=no
19901 fi
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19903
19904 if test $ac_cv_header_stdc = yes; then
19905   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19906   cat >conftest.$ac_ext <<_ACEOF
19907 /* confdefs.h.  */
19908 _ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h.  */
19912 #include <string.h>
19913
19914 _ACEOF
19915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19916   $EGREP "memchr" >/dev/null 2>&1; then
19917   :
19918 else
19919   ac_cv_header_stdc=no
19920 fi
19921 rm -f conftest*
19922
19923 fi
19924
19925 if test $ac_cv_header_stdc = yes; then
19926   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 #include <stdlib.h>
19934
19935 _ACEOF
19936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19937   $EGREP "free" >/dev/null 2>&1; then
19938   :
19939 else
19940   ac_cv_header_stdc=no
19941 fi
19942 rm -f conftest*
19943
19944 fi
19945
19946 if test $ac_cv_header_stdc = yes; then
19947   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19948   if test "$cross_compiling" = yes; then
19949   :
19950 else
19951   cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h.  */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h.  */
19957 #include <ctype.h>
19958 #if ((' ' & 0x0FF) == 0x020)
19959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19961 #else
19962 # define ISLOWER(c) \
19963                    (('a' <= (c) && (c) <= 'i') \
19964                      || ('j' <= (c) && (c) <= 'r') \
19965                      || ('s' <= (c) && (c) <= 'z'))
19966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19967 #endif
19968
19969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19970 int
19971 main ()
19972 {
19973   int i;
19974   for (i = 0; i < 256; i++)
19975     if (XOR (islower (i), ISLOWER (i))
19976         || toupper (i) != TOUPPER (i))
19977       exit(2);
19978   exit (0);
19979 }
19980 _ACEOF
19981 rm -f conftest$ac_exeext
19982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19983   (eval $ac_link) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988   (eval $ac_try) 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; }; then
19992   :
19993 else
19994   echo "$as_me: program exited with status $ac_status" >&5
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ( exit $ac_status )
19999 ac_cv_header_stdc=no
20000 fi
20001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20002 fi
20003 fi
20004 fi
20005 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20006 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20007 if test $ac_cv_header_stdc = yes; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define STDC_HEADERS 1
20011 _ACEOF
20012
20013 fi
20014
20015
20016   echo "$as_me:$LINENO: checking for GNU libc2" >&5
20017 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6
20018   if test "${knfsd_cv_glibc2+set}" = set; then
20019   echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021   cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028       #include <features.h>
20029       #if !defined(__GLIBC__)
20030       # error Nope
20031       #endif
20032
20033 _ACEOF
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } >/dev/null; then
20042   if test -s conftest.err; then
20043     ac_cpp_err=$ac_c_preproc_warn_flag
20044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20045   else
20046     ac_cpp_err=
20047   fi
20048 else
20049   ac_cpp_err=yes
20050 fi
20051 if test -z "$ac_cpp_err"; then
20052   knfsd_cv_glibc2=yes
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057   knfsd_cv_glibc2=no
20058 fi
20059 rm -f conftest.err conftest.$ac_ext
20060 fi
20061
20062   echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20063 echo "${ECHO_T}$knfsd_cv_glibc2" >&6
20064   if test $knfsd_cv_glibc2 = yes; then
20065     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20066     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20067   fi
20068
20069
20070   echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20071 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6
20072   if test "${knfsd_cv_bsd_signals+set}" = set; then
20073   echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075   if test "$cross_compiling" = yes; then
20076   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20077 See \`config.log' for more details." >&5
20078 echo "$as_me: error: cannot run test program while cross compiling
20079 See \`config.log' for more details." >&2;}
20080    { (exit 1); exit 1; }; }
20081 else
20082   cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089         #include <signal.h>
20090         #include <unistd.h>
20091         #include <sys/wait.h>
20092
20093         static int counter = 0;
20094         static RETSIGTYPE handler(int num) { counter++; }
20095
20096         int main()
20097         {
20098                 int     s;
20099                 if ((s = fork()) < 0) return 1;
20100                 if (s != 0) {
20101                         if (wait(&s) < 0) return 1;
20102                         return WIFSIGNALED(s)? 1 : 0;
20103                 }
20104
20105                 signal(SIGHUP, handler);
20106                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20107                 return (counter == 2)? 0 : 1;
20108         }
20109
20110 _ACEOF
20111 rm -f conftest$ac_exeext
20112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20113   (eval $ac_link) 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118   (eval $ac_try) 2>&5
20119   ac_status=$?
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); }; }; then
20122   knfsd_cv_bsd_signals=yes
20123 else
20124   echo "$as_me: program exited with status $ac_status" >&5
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 ( exit $ac_status )
20129 knfsd_cv_bsd_signals=no
20130 fi
20131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20132 fi
20133 fi
20134      echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20135 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6
20136     test $knfsd_cv_bsd_signals = yes &&
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE_BSD_SIGNALS 1
20139 _ACEOF
20140
20141
20142
20143 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20144 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20145 if test "${ac_cv_lib_socket_main+set}" = set; then
20146   echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148   ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lsocket  $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156
20157
20158 int
20159 main ()
20160 {
20161 main ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168   (eval $ac_link) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; } &&
20181          { ac_try='test -s conftest$ac_exeext'
20182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20183   (eval $ac_try) 2>&5
20184   ac_status=$?
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); }; }; then
20187   ac_cv_lib_socket_main=yes
20188 else
20189   echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192 ac_cv_lib_socket_main=no
20193 fi
20194 rm -f conftest.err conftest.$ac_objext \
20195       conftest$ac_exeext conftest.$ac_ext
20196 LIBS=$ac_check_lib_save_LIBS
20197 fi
20198 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20199 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20200 if test $ac_cv_lib_socket_main = yes; then
20201   LIBSOCKET="-lnsl"
20202 fi
20203
20204 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20205 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20206 if test "${ac_cv_lib_nsl_main+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   ac_check_lib_save_LIBS=$LIBS
20210 LIBS="-lnsl  $LIBS"
20211 cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217
20218
20219 int
20220 main ()
20221 {
20222 main ();
20223   ;
20224   return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20229   (eval $ac_link) 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } &&
20236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238   (eval $ac_try) 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; } &&
20242          { ac_try='test -s conftest$ac_exeext'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_cv_lib_nsl_main=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253 ac_cv_lib_nsl_main=no
20254 fi
20255 rm -f conftest.err conftest.$ac_objext \
20256       conftest$ac_exeext conftest.$ac_ext
20257 LIBS=$ac_check_lib_save_LIBS
20258 fi
20259 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20260 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20261 if test $ac_cv_lib_nsl_main = yes; then
20262   LIBNSL="-lnsl"
20263 fi
20264
20265 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20266 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20267 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270   ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lcrypt  $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278
20279 /* Override any gcc2 internal prototype to avoid an error.  */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 /* We use char because int might match the return type of a gcc2
20284    builtin and then its argument prototype would still apply.  */
20285 char crypt ();
20286 int
20287 main ()
20288 {
20289 crypt ();
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296   (eval $ac_link) 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } &&
20303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; } &&
20309          { ac_try='test -s conftest$ac_exeext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   ac_cv_lib_crypt_crypt=yes
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 ac_cv_lib_crypt_crypt=no
20321 fi
20322 rm -f conftest.err conftest.$ac_objext \
20323       conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20325 fi
20326 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20327 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20328 if test $ac_cv_lib_crypt_crypt = yes; then
20329   LIBCRYPT="-lcrypt"
20330 fi
20331
20332 if test "$enable_nfsv4" = yes; then
20333     echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
20334 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6
20335 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338   ac_check_lib_save_LIBS=$LIBS
20339 LIBS="-levent  $LIBS"
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346
20347 /* Override any gcc2 internal prototype to avoid an error.  */
20348 #ifdef __cplusplus
20349 extern "C"
20350 #endif
20351 /* We use char because int might match the return type of a gcc2
20352    builtin and then its argument prototype would still apply.  */
20353 char event_dispatch ();
20354 int
20355 main ()
20356 {
20357 event_dispatch ();
20358   ;
20359   return 0;
20360 }
20361 _ACEOF
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20364   (eval $ac_link) 2>conftest.er1
20365   ac_status=$?
20366   grep -v '^ *+' conftest.er1 >conftest.err
20367   rm -f conftest.er1
20368   cat conftest.err >&5
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } &&
20371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; } &&
20377          { ac_try='test -s conftest$ac_exeext'
20378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379   (eval $ac_try) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_cv_lib_event_event_dispatch=yes
20384 else
20385   echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ac_cv_lib_event_event_dispatch=no
20389 fi
20390 rm -f conftest.err conftest.$ac_objext \
20391       conftest$ac_exeext conftest.$ac_ext
20392 LIBS=$ac_check_lib_save_LIBS
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
20395 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6
20396 if test $ac_cv_lib_event_event_dispatch = yes; then
20397   libevent=1
20398 else
20399   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20400 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20401    { (exit 1); exit 1; }; }
20402 fi
20403
20404     echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
20405 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6
20406 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lnfsidmap  $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 /* Override any gcc2 internal prototype to avoid an error.  */
20419 #ifdef __cplusplus
20420 extern "C"
20421 #endif
20422 /* We use char because int might match the return type of a gcc2
20423    builtin and then its argument prototype would still apply.  */
20424 char nfs4_init_name_mapping ();
20425 int
20426 main ()
20427 {
20428 nfs4_init_name_mapping ();
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435   (eval $ac_link) 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } &&
20442          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444   (eval $ac_try) 2>&5
20445   ac_status=$?
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); }; } &&
20448          { ac_try='test -s conftest$ac_exeext'
20449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450   (eval $ac_try) 2>&5
20451   ac_status=$?
20452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); }; }; then
20454   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
20455 else
20456   echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
20460 fi
20461 rm -f conftest.err conftest.$ac_objext \
20462       conftest$ac_exeext conftest.$ac_ext
20463 LIBS=$ac_check_lib_save_LIBS
20464 fi
20465 echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
20466 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6
20467 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
20468   libnfsidmap=1
20469 else
20470   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20471 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20472    { (exit 1); exit 1; }; }
20473 fi
20474
20475
20476 for ac_header in event.h
20477 do
20478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480   echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20483   echo $ECHO_N "(cached) $ECHO_C" >&6
20484 fi
20485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20487 else
20488   # Is the header compilable?
20489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h.  */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h.  */
20497 $ac_includes_default
20498 #include <$ac_header>
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502   (eval $ac_compile) 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } &&
20509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; } &&
20515          { ac_try='test -s conftest.$ac_objext'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; }; then
20521   ac_header_compiler=yes
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_header_compiler=no
20527 fi
20528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20530 echo "${ECHO_T}$ac_header_compiler" >&6
20531
20532 # Is the header present?
20533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <$ac_header>
20542 _ACEOF
20543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20545   ac_status=$?
20546   grep -v '^ *+' conftest.er1 >conftest.err
20547   rm -f conftest.er1
20548   cat conftest.err >&5
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); } >/dev/null; then
20551   if test -s conftest.err; then
20552     ac_cpp_err=$ac_c_preproc_warn_flag
20553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20554   else
20555     ac_cpp_err=
20556   fi
20557 else
20558   ac_cpp_err=yes
20559 fi
20560 if test -z "$ac_cpp_err"; then
20561   ac_header_preproc=yes
20562 else
20563   echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566   ac_header_preproc=no
20567 fi
20568 rm -f conftest.err conftest.$ac_ext
20569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20570 echo "${ECHO_T}$ac_header_preproc" >&6
20571
20572 # So?  What about this header?
20573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20574   yes:no: )
20575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20579     ac_header_preproc=yes
20580     ;;
20581   no:yes:* )
20582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20594     (
20595       cat <<\_ASBOX
20596 ## ------------------------------- ##
20597 ## Report this to nfs@lists.sf.net ##
20598 ## ------------------------------- ##
20599 _ASBOX
20600     ) |
20601       sed "s/^/$as_me: WARNING:     /" >&2
20602     ;;
20603 esac
20604 echo "$as_me:$LINENO: checking for $ac_header" >&5
20605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609   eval "$as_ac_Header=\$ac_header_preproc"
20610 fi
20611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20613
20614 fi
20615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20616   cat >>confdefs.h <<_ACEOF
20617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20618 _ACEOF
20619
20620 else
20621   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
20622 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
20623    { (exit 1); exit 1; }; }
20624 fi
20625
20626 done
20627
20628
20629 for ac_header in nfsidmap.h
20630 do
20631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20633   echo "$as_me:$LINENO: checking for $ac_header" >&5
20634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 fi
20638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20640 else
20641   # Is the header compilable?
20642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20645 /* confdefs.h.  */
20646 _ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h.  */
20650 $ac_includes_default
20651 #include <$ac_header>
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655   (eval $ac_compile) 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } &&
20662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664   (eval $ac_try) 2>&5
20665   ac_status=$?
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); }; } &&
20668          { ac_try='test -s conftest.$ac_objext'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ac_header_compiler=yes
20675 else
20676   echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_header_compiler=no
20680 fi
20681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20683 echo "${ECHO_T}$ac_header_compiler" >&6
20684
20685 # Is the header present?
20686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 #include <$ac_header>
20695 _ACEOF
20696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20698   ac_status=$?
20699   grep -v '^ *+' conftest.er1 >conftest.err
20700   rm -f conftest.er1
20701   cat conftest.err >&5
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } >/dev/null; then
20704   if test -s conftest.err; then
20705     ac_cpp_err=$ac_c_preproc_warn_flag
20706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20707   else
20708     ac_cpp_err=
20709   fi
20710 else
20711   ac_cpp_err=yes
20712 fi
20713 if test -z "$ac_cpp_err"; then
20714   ac_header_preproc=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719   ac_header_preproc=no
20720 fi
20721 rm -f conftest.err conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20723 echo "${ECHO_T}$ac_header_preproc" >&6
20724
20725 # So?  What about this header?
20726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20727   yes:no: )
20728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20732     ac_header_preproc=yes
20733     ;;
20734   no:yes:* )
20735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20747     (
20748       cat <<\_ASBOX
20749 ## ------------------------------- ##
20750 ## Report this to nfs@lists.sf.net ##
20751 ## ------------------------------- ##
20752 _ASBOX
20753     ) |
20754       sed "s/^/$as_me: WARNING:     /" >&2
20755     ;;
20756 esac
20757 echo "$as_me:$LINENO: checking for $ac_header" >&5
20758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20760   echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762   eval "$as_ac_Header=\$ac_header_preproc"
20763 fi
20764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20766
20767 fi
20768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20769   cat >>confdefs.h <<_ACEOF
20770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20771 _ACEOF
20772
20773 else
20774   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
20775 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
20776    { (exit 1); exit 1; }; }
20777 fi
20778
20779 done
20780
20781             PKG_CHECK_MODULES(RPCSECGSS, librpcsecgss, ,
20782       AC_MSG_ERROR([Unable to locate information required to use librpcsecgss.
20783        If you have pkgconfig installed, you might try setting environment
20784        variable PKG_CONFIG_PATH to /usr/local/lib/pkgconfig])
20785
20786     )
20787
20788 fi
20789 if test "$knfsd_cv_glibc2" = no; then
20790     echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
20791 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6
20792 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   ac_check_lib_save_LIBS=$LIBS
20796 LIBS="-lbsd  $LIBS"
20797 cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803
20804 /* Override any gcc2 internal prototype to avoid an error.  */
20805 #ifdef __cplusplus
20806 extern "C"
20807 #endif
20808 /* We use char because int might match the return type of a gcc2
20809    builtin and then its argument prototype would still apply.  */
20810 char daemon ();
20811 int
20812 main ()
20813 {
20814 daemon ();
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20821   (eval $ac_link) 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } &&
20828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830   (eval $ac_try) 2>&5
20831   ac_status=$?
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); }; } &&
20834          { ac_try='test -s conftest$ac_exeext'
20835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836   (eval $ac_try) 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; }; then
20840   ac_cv_lib_bsd_daemon=yes
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845 ac_cv_lib_bsd_daemon=no
20846 fi
20847 rm -f conftest.err conftest.$ac_objext \
20848       conftest$ac_exeext conftest.$ac_ext
20849 LIBS=$ac_check_lib_save_LIBS
20850 fi
20851 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
20852 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6
20853 if test $ac_cv_lib_bsd_daemon = yes; then
20854   LIBBSD="-lbsd"
20855 fi
20856
20857 fi
20858
20859
20860
20861
20862
20863 if test "$enable_gss" = yes; then
20864
20865 for ac_header in nfsidmap.h
20866 do
20867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20869   echo "$as_me:$LINENO: checking for $ac_header" >&5
20870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20872   echo $ECHO_N "(cached) $ECHO_C" >&6
20873 fi
20874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20876 else
20877   # Is the header compilable?
20878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20880 cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h.  */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h.  */
20886 $ac_includes_default
20887 #include <$ac_header>
20888 _ACEOF
20889 rm -f conftest.$ac_objext
20890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20891   (eval $ac_compile) 2>conftest.er1
20892   ac_status=$?
20893   grep -v '^ *+' conftest.er1 >conftest.err
20894   rm -f conftest.er1
20895   cat conftest.err >&5
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } &&
20898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900   (eval $ac_try) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; } &&
20904          { ac_try='test -s conftest.$ac_objext'
20905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906   (eval $ac_try) 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   ac_header_compiler=yes
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 ac_header_compiler=no
20916 fi
20917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919 echo "${ECHO_T}$ac_header_compiler" >&6
20920
20921 # Is the header present?
20922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930 #include <$ac_header>
20931 _ACEOF
20932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20934   ac_status=$?
20935   grep -v '^ *+' conftest.er1 >conftest.err
20936   rm -f conftest.er1
20937   cat conftest.err >&5
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); } >/dev/null; then
20940   if test -s conftest.err; then
20941     ac_cpp_err=$ac_c_preproc_warn_flag
20942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20943   else
20944     ac_cpp_err=
20945   fi
20946 else
20947   ac_cpp_err=yes
20948 fi
20949 if test -z "$ac_cpp_err"; then
20950   ac_header_preproc=yes
20951 else
20952   echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955   ac_header_preproc=no
20956 fi
20957 rm -f conftest.err conftest.$ac_ext
20958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20959 echo "${ECHO_T}$ac_header_preproc" >&6
20960
20961 # So?  What about this header?
20962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20963   yes:no: )
20964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20968     ac_header_preproc=yes
20969     ;;
20970   no:yes:* )
20971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20983     (
20984       cat <<\_ASBOX
20985 ## ------------------------------- ##
20986 ## Report this to nfs@lists.sf.net ##
20987 ## ------------------------------- ##
20988 _ASBOX
20989     ) |
20990       sed "s/^/$as_me: WARNING:     /" >&2
20991     ;;
20992 esac
20993 echo "$as_me:$LINENO: checking for $ac_header" >&5
20994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20996   echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20998   eval "$as_ac_Header=\$ac_header_preproc"
20999 fi
21000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21002
21003 fi
21004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005   cat >>confdefs.h <<_ACEOF
21006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21007 _ACEOF
21008
21009 else
21010   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
21011 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
21012    { (exit 1); exit 1; }; }
21013 fi
21014
21015 done
21016
21017
21018 for ac_header in spkm3.h
21019 do
21020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21022   echo "$as_me:$LINENO: checking for $ac_header" >&5
21023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 fi
21027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21029 else
21030   # Is the header compilable?
21031 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h.  */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h.  */
21039 $ac_includes_default
21040 #include <$ac_header>
21041 _ACEOF
21042 rm -f conftest.$ac_objext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044   (eval $ac_compile) 2>conftest.er1
21045   ac_status=$?
21046   grep -v '^ *+' conftest.er1 >conftest.err
21047   rm -f conftest.er1
21048   cat conftest.err >&5
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } &&
21051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; } &&
21057          { ac_try='test -s conftest.$ac_objext'
21058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059   (eval $ac_try) 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); }; }; then
21063   ac_header_compiler=yes
21064 else
21065   echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 ac_header_compiler=no
21069 fi
21070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21072 echo "${ECHO_T}$ac_header_compiler" >&6
21073
21074 # Is the header present?
21075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h.  */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h.  */
21083 #include <$ac_header>
21084 _ACEOF
21085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21087   ac_status=$?
21088   grep -v '^ *+' conftest.er1 >conftest.err
21089   rm -f conftest.er1
21090   cat conftest.err >&5
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); } >/dev/null; then
21093   if test -s conftest.err; then
21094     ac_cpp_err=$ac_c_preproc_warn_flag
21095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21096   else
21097     ac_cpp_err=
21098   fi
21099 else
21100   ac_cpp_err=yes
21101 fi
21102 if test -z "$ac_cpp_err"; then
21103   ac_header_preproc=yes
21104 else
21105   echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21107
21108   ac_header_preproc=no
21109 fi
21110 rm -f conftest.err conftest.$ac_ext
21111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21112 echo "${ECHO_T}$ac_header_preproc" >&6
21113
21114 # So?  What about this header?
21115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21116   yes:no: )
21117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21121     ac_header_preproc=yes
21122     ;;
21123   no:yes:* )
21124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21136     (
21137       cat <<\_ASBOX
21138 ## ------------------------------- ##
21139 ## Report this to nfs@lists.sf.net ##
21140 ## ------------------------------- ##
21141 _ASBOX
21142     ) |
21143       sed "s/^/$as_me: WARNING:     /" >&2
21144     ;;
21145 esac
21146 echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   eval "$as_ac_Header=\$ac_header_preproc"
21152 fi
21153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21155
21156 fi
21157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21158   cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 else
21163   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
21164 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
21165 fi
21166
21167 done
21168
21169
21170
21171   echo "$as_me:$LINENO: checking for Kerberos v5" >&5
21172 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6
21173
21174 # Check whether --with-krb5 or --without-krb5 was given.
21175 if test "${with_krb5+set}" = set; then
21176   withval="$with_krb5"
21177    case "$withval" in
21178     yes|no)
21179        krb5_with=""
21180        ;;
21181     *)
21182        krb5_with="$withval"
21183        ;;
21184     esac
21185
21186 fi;
21187
21188   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
21189              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
21190             K5CONFIG=""
21191     if test -f $dir/bin/krb5-config; then
21192       K5CONFIG=$dir/bin/krb5-config
21193     elif test -f "/usr/kerberos/bin/krb5-config"; then
21194       K5CONFIG="/usr/kerberos/bin/krb5-config"
21195     elif test -f "/usr/lib/mit/bin/krb5-config"; then
21196       K5CONFIG="/usr/lib/mit/bin/krb5-config"
21197     fi
21198     if test "$K5CONFIG" != ""; then
21199       KRBCFLAGS=`$K5CONFIG --cflags`
21200       KRBLIBS=`$K5CONFIG --libs gssapi`
21201       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
21202
21203 cat >>confdefs.h <<_ACEOF
21204 #define KRB5_VERSION $K5VERS
21205 _ACEOF
21206
21207       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
21208                 \( -f $dir/lib/libgssapi_krb5.a -o \
21209                    -f $dir/lib/libgssapi_krb5.so \) ; then
21210
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_KRB5 1
21213 _ACEOF
21214
21215          KRBDIR="$dir"
21216                      if test $K5VERS -le 131; then
21217
21218 cat >>confdefs.h <<\_ACEOF
21219 #define USE_GSS_KRB5_CCACHE_NAME 1
21220 _ACEOF
21221
21222          fi
21223          gssapi_lib=gssapi_krb5
21224          break
21225                   elif test \( -f $dir/include/heim_err.h -o\
21226                  -f $dir/include/heimdal/heim_err.h \) -a \
21227                 -f $dir/lib/libroken.a; then
21228
21229 cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_HEIMDAL 1
21231 _ACEOF
21232
21233          KRBDIR="$dir"
21234          gssapi_lib=gssapi
21235         break
21236       fi
21237     fi
21238   done
21239     if test "x$KRBDIR" = "x"; then
21240     if test "x$krb5_with" = "x"; then
21241       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
21242 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
21243    { (exit 1); exit 1; }; }
21244     else
21245       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
21246 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
21247    { (exit 1); exit 1; }; }
21248     fi
21249   fi
21250   echo "$as_me:$LINENO: result: $KRBDIR" >&5
21251 echo "${ECHO_T}$KRBDIR" >&6
21252
21253     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
21254 echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
21255 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6
21256 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   ac_check_lib_save_LIBS=$LIBS
21260 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267
21268 /* Override any gcc2 internal prototype to avoid an error.  */
21269 #ifdef __cplusplus
21270 extern "C"
21271 #endif
21272 /* We use char because int might match the return type of a gcc2
21273    builtin and then its argument prototype would still apply.  */
21274 char gss_krb5_export_lucid_sec_context ();
21275 int
21276 main ()
21277 {
21278 gss_krb5_export_lucid_sec_context ();
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext conftest$ac_exeext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21285   (eval $ac_link) 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } &&
21292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; } &&
21298          { ac_try='test -s conftest$ac_exeext'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304   eval "$as_ac_Lib=yes"
21305 else
21306   echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309 eval "$as_ac_Lib=no"
21310 fi
21311 rm -f conftest.err conftest.$ac_objext \
21312       conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21314 fi
21315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21316 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21317 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21318
21319 cat >>confdefs.h <<\_ACEOF
21320 #define HAVE_LUCID_CONTEXT_SUPPORT 1
21321 _ACEOF
21322
21323 fi
21324
21325   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
21326 echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
21327 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6
21328 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21329   echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331   ac_check_lib_save_LIBS=$LIBS
21332 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339
21340 /* Override any gcc2 internal prototype to avoid an error.  */
21341 #ifdef __cplusplus
21342 extern "C"
21343 #endif
21344 /* We use char because int might match the return type of a gcc2
21345    builtin and then its argument prototype would still apply.  */
21346 char gss_krb5_set_allowable_enctypes ();
21347 int
21348 main ()
21349 {
21350 gss_krb5_set_allowable_enctypes ();
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext conftest$ac_exeext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21357   (eval $ac_link) 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; } &&
21370          { ac_try='test -s conftest$ac_exeext'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; }; then
21376   eval "$as_ac_Lib=yes"
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 eval "$as_ac_Lib=no"
21382 fi
21383 rm -f conftest.err conftest.$ac_objext \
21384       conftest$ac_exeext conftest.$ac_ext
21385 LIBS=$ac_check_lib_save_LIBS
21386 fi
21387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21388 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21389 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21390
21391 cat >>confdefs.h <<\_ACEOF
21392 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
21393 _ACEOF
21394
21395 fi
21396
21397   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
21398 echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
21399 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6
21400 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403   ac_check_lib_save_LIBS=$LIBS
21404 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
21405 cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411
21412 /* Override any gcc2 internal prototype to avoid an error.  */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 /* We use char because int might match the return type of a gcc2
21417    builtin and then its argument prototype would still apply.  */
21418 char gss_krb5_ccache_name ();
21419 int
21420 main ()
21421 {
21422 gss_krb5_ccache_name ();
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429   (eval $ac_link) 2>conftest.er1
21430   ac_status=$?
21431   grep -v '^ *+' conftest.er1 >conftest.err
21432   rm -f conftest.er1
21433   cat conftest.err >&5
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } &&
21436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; } &&
21442          { ac_try='test -s conftest$ac_exeext'
21443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444   (eval $ac_try) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; }; then
21448   eval "$as_ac_Lib=yes"
21449 else
21450   echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453 eval "$as_ac_Lib=no"
21454 fi
21455 rm -f conftest.err conftest.$ac_objext \
21456       conftest$ac_exeext conftest.$ac_ext
21457 LIBS=$ac_check_lib_save_LIBS
21458 fi
21459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21460 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21461 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21462
21463 cat >>confdefs.h <<\_ACEOF
21464 #define HAVE_GSS_KRB5_CCACHE_NAME 1
21465 _ACEOF
21466
21467 fi
21468
21469
21470     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
21471     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
21472 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
21473   fi
21474
21475
21476
21477
21478
21479
21480
21481
21482       echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
21483 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6
21484 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
21485   echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487   ac_check_lib_save_LIBS=$LIBS
21488 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495
21496 /* Override any gcc2 internal prototype to avoid an error.  */
21497 #ifdef __cplusplus
21498 extern "C"
21499 #endif
21500 /* We use char because int might match the return type of a gcc2
21501    builtin and then its argument prototype would still apply.  */
21502 char authgss_create_default ();
21503 int
21504 main ()
21505 {
21506 authgss_create_default ();
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21513   (eval $ac_link) 2>conftest.er1
21514   ac_status=$?
21515   grep -v '^ *+' conftest.er1 >conftest.err
21516   rm -f conftest.er1
21517   cat conftest.err >&5
21518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519   (exit $ac_status); } &&
21520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522   (eval $ac_try) 2>&5
21523   ac_status=$?
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); }; } &&
21526          { ac_try='test -s conftest$ac_exeext'
21527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528   (eval $ac_try) 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   ac_cv_lib_rpcsecgss_authgss_create_default=yes
21533 else
21534   echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537 ac_cv_lib_rpcsecgss_authgss_create_default=no
21538 fi
21539 rm -f conftest.err conftest.$ac_objext \
21540       conftest$ac_exeext conftest.$ac_ext
21541 LIBS=$ac_check_lib_save_LIBS
21542 fi
21543 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
21544 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6
21545 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
21546   librpcsecgss=1
21547 else
21548   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
21549 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
21550    { (exit 1); exit 1; }; }
21551 fi
21552
21553   echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
21554 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6
21555 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
21556   echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558   ac_check_lib_save_LIBS=$LIBS
21559 LIBS="-lrpcsecgss $KRBLIBS $LIBS"
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h.  */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h.  */
21566
21567 /* Override any gcc2 internal prototype to avoid an error.  */
21568 #ifdef __cplusplus
21569 extern "C"
21570 #endif
21571 /* We use char because int might match the return type of a gcc2
21572    builtin and then its argument prototype would still apply.  */
21573 char authgss_set_debug_level ();
21574 int
21575 main ()
21576 {
21577 authgss_set_debug_level ();
21578   ;
21579   return 0;
21580 }
21581 _ACEOF
21582 rm -f conftest.$ac_objext conftest$ac_exeext
21583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584   (eval $ac_link) 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } &&
21591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21593   (eval $ac_try) 2>&5
21594   ac_status=$?
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); }; } &&
21597          { ac_try='test -s conftest$ac_exeext'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; }; then
21603   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608 ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
21609 fi
21610 rm -f conftest.err conftest.$ac_objext \
21611       conftest$ac_exeext conftest.$ac_ext
21612 LIBS=$ac_check_lib_save_LIBS
21613 fi
21614 echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
21615 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6
21616 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
21617
21618 cat >>confdefs.h <<\_ACEOF
21619 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
21620 _ACEOF
21621
21622 fi
21623
21624
21625 fi
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
21650                  malloc.h memory.h netdb.h netinet/in.h paths.h \
21651                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
21652                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
21653                  syslog.h unistd.h com_err.h et/com_err.h
21654 do
21655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21657   echo "$as_me:$LINENO: checking for $ac_header" >&5
21658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 fi
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21664 else
21665   # Is the header compilable?
21666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 $ac_includes_default
21675 #include <$ac_header>
21676 _ACEOF
21677 rm -f conftest.$ac_objext
21678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679   (eval $ac_compile) 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } &&
21686          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; } &&
21692          { ac_try='test -s conftest.$ac_objext'
21693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694   (eval $ac_try) 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); }; }; then
21698   ac_header_compiler=yes
21699 else
21700   echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_header_compiler=no
21704 fi
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21707 echo "${ECHO_T}$ac_header_compiler" >&6
21708
21709 # Is the header present?
21710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718 #include <$ac_header>
21719 _ACEOF
21720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21722   ac_status=$?
21723   grep -v '^ *+' conftest.er1 >conftest.err
21724   rm -f conftest.er1
21725   cat conftest.err >&5
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); } >/dev/null; then
21728   if test -s conftest.err; then
21729     ac_cpp_err=$ac_c_preproc_warn_flag
21730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21731   else
21732     ac_cpp_err=
21733   fi
21734 else
21735   ac_cpp_err=yes
21736 fi
21737 if test -z "$ac_cpp_err"; then
21738   ac_header_preproc=yes
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743   ac_header_preproc=no
21744 fi
21745 rm -f conftest.err conftest.$ac_ext
21746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21747 echo "${ECHO_T}$ac_header_preproc" >&6
21748
21749 # So?  What about this header?
21750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751   yes:no: )
21752     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21756     ac_header_preproc=yes
21757     ;;
21758   no:yes:* )
21759     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21762 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21763     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21765     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21766 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21769     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21771     (
21772       cat <<\_ASBOX
21773 ## ------------------------------- ##
21774 ## Report this to nfs@lists.sf.net ##
21775 ## ------------------------------- ##
21776 _ASBOX
21777     ) |
21778       sed "s/^/$as_me: WARNING:     /" >&2
21779     ;;
21780 esac
21781 echo "$as_me:$LINENO: checking for $ac_header" >&5
21782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21784   echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786   eval "$as_ac_Header=\$ac_header_preproc"
21787 fi
21788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21790
21791 fi
21792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21793   cat >>confdefs.h <<_ACEOF
21794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21795 _ACEOF
21796
21797 fi
21798
21799 done
21800
21801
21802 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21803 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21804 if test "${ac_cv_c_const+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807   cat >conftest.$ac_ext <<_ACEOF
21808 /* confdefs.h.  */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h.  */
21813
21814 int
21815 main ()
21816 {
21817 /* FIXME: Include the comments suggested by Paul. */
21818 #ifndef __cplusplus
21819   /* Ultrix mips cc rejects this.  */
21820   typedef int charset[2];
21821   const charset x;
21822   /* SunOS 4.1.1 cc rejects this.  */
21823   char const *const *ccp;
21824   char **p;
21825   /* NEC SVR4.0.2 mips cc rejects this.  */
21826   struct point {int x, y;};
21827   static struct point const zero = {0,0};
21828   /* AIX XL C 1.02.0.0 rejects this.
21829      It does not let you subtract one const X* pointer from another in
21830      an arm of an if-expression whose if-part is not a constant
21831      expression */
21832   const char *g = "string";
21833   ccp = &g + (g ? g-g : 0);
21834   /* HPUX 7.0 cc rejects these. */
21835   ++ccp;
21836   p = (char**) ccp;
21837   ccp = (char const *const *) p;
21838   { /* SCO 3.2v4 cc rejects this.  */
21839     char *t;
21840     char const *s = 0 ? (char *) 0 : (char const *) 0;
21841
21842     *t++ = 0;
21843   }
21844   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21845     int x[] = {25, 17};
21846     const int *foo = &x[0];
21847     ++foo;
21848   }
21849   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21850     typedef const int *iptr;
21851     iptr p = 0;
21852     ++p;
21853   }
21854   { /* AIX XL C 1.02.0.0 rejects this saying
21855        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21856     struct s { int j; const int *ap[3]; };
21857     struct s *b; b->j = 5;
21858   }
21859   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21860     const int foo = 10;
21861   }
21862 #endif
21863
21864   ;
21865   return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870   (eval $ac_compile) 2>conftest.er1
21871   ac_status=$?
21872   grep -v '^ *+' conftest.er1 >conftest.err
21873   rm -f conftest.er1
21874   cat conftest.err >&5
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); } &&
21877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879   (eval $ac_try) 2>&5
21880   ac_status=$?
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); }; } &&
21883          { ac_try='test -s conftest.$ac_objext'
21884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885   (eval $ac_try) 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; }; then
21889   ac_cv_c_const=yes
21890 else
21891   echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894 ac_cv_c_const=no
21895 fi
21896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21897 fi
21898 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21899 echo "${ECHO_T}$ac_cv_c_const" >&6
21900 if test $ac_cv_c_const = no; then
21901
21902 cat >>confdefs.h <<\_ACEOF
21903 #define const
21904 _ACEOF
21905
21906 fi
21907
21908 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21909 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21910 if test "${ac_cv_type_uid_t+set}" = set; then
21911   echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913   cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919 #include <sys/types.h>
21920
21921 _ACEOF
21922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21923   $EGREP "uid_t" >/dev/null 2>&1; then
21924   ac_cv_type_uid_t=yes
21925 else
21926   ac_cv_type_uid_t=no
21927 fi
21928 rm -f conftest*
21929
21930 fi
21931 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21932 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21933 if test $ac_cv_type_uid_t = no; then
21934
21935 cat >>confdefs.h <<\_ACEOF
21936 #define uid_t int
21937 _ACEOF
21938
21939
21940 cat >>confdefs.h <<\_ACEOF
21941 #define gid_t int
21942 _ACEOF
21943
21944 fi
21945
21946 echo "$as_me:$LINENO: checking for inline" >&5
21947 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21948 if test "${ac_cv_c_inline+set}" = set; then
21949   echo $ECHO_N "(cached) $ECHO_C" >&6
21950 else
21951   ac_cv_c_inline=no
21952 for ac_kw in inline __inline__ __inline; do
21953   cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 #ifndef __cplusplus
21960 typedef int foo_t;
21961 static $ac_kw foo_t static_foo () {return 0; }
21962 $ac_kw foo_t foo () {return 0; }
21963 #endif
21964
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21968   (eval $ac_compile) 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977   (eval $ac_try) 2>&5
21978   ac_status=$?
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); }; } &&
21981          { ac_try='test -s conftest.$ac_objext'
21982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983   (eval $ac_try) 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); }; }; then
21987   ac_cv_c_inline=$ac_kw; break
21988 else
21989   echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992 fi
21993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994 done
21995
21996 fi
21997 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21998 echo "${ECHO_T}$ac_cv_c_inline" >&6
21999
22000
22001 case $ac_cv_c_inline in
22002   inline | yes) ;;
22003   *)
22004     case $ac_cv_c_inline in
22005       no) ac_val=;;
22006       *) ac_val=$ac_cv_c_inline;;
22007     esac
22008     cat >>confdefs.h <<_ACEOF
22009 #ifndef __cplusplus
22010 #define inline $ac_val
22011 #endif
22012 _ACEOF
22013     ;;
22014 esac
22015
22016 echo "$as_me:$LINENO: checking for off_t" >&5
22017 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22018 if test "${ac_cv_type_off_t+set}" = set; then
22019   echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021   cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 $ac_includes_default
22028 int
22029 main ()
22030 {
22031 if ((off_t *) 0)
22032   return 0;
22033 if (sizeof (off_t))
22034   return 0;
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22041   (eval $ac_compile) 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } &&
22048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050   (eval $ac_try) 2>&5
22051   ac_status=$?
22052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053   (exit $ac_status); }; } &&
22054          { ac_try='test -s conftest.$ac_objext'
22055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056   (eval $ac_try) 2>&5
22057   ac_status=$?
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); }; }; then
22060   ac_cv_type_off_t=yes
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065 ac_cv_type_off_t=no
22066 fi
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22068 fi
22069 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22070 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22071 if test $ac_cv_type_off_t = yes; then
22072   :
22073 else
22074
22075 cat >>confdefs.h <<_ACEOF
22076 #define off_t long
22077 _ACEOF
22078
22079 fi
22080
22081 echo "$as_me:$LINENO: checking for pid_t" >&5
22082 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22083 if test "${ac_cv_type_pid_t+set}" = set; then
22084   echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086   cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092 $ac_includes_default
22093 int
22094 main ()
22095 {
22096 if ((pid_t *) 0)
22097   return 0;
22098 if (sizeof (pid_t))
22099   return 0;
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 rm -f conftest.$ac_objext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22106   (eval $ac_compile) 2>conftest.er1
22107   ac_status=$?
22108   grep -v '^ *+' conftest.er1 >conftest.err
22109   rm -f conftest.er1
22110   cat conftest.err >&5
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } &&
22113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115   (eval $ac_try) 2>&5
22116   ac_status=$?
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); }; } &&
22119          { ac_try='test -s conftest.$ac_objext'
22120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121   (eval $ac_try) 2>&5
22122   ac_status=$?
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); }; }; then
22125   ac_cv_type_pid_t=yes
22126 else
22127   echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130 ac_cv_type_pid_t=no
22131 fi
22132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22133 fi
22134 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22135 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22136 if test $ac_cv_type_pid_t = yes; then
22137   :
22138 else
22139
22140 cat >>confdefs.h <<_ACEOF
22141 #define pid_t int
22142 _ACEOF
22143
22144 fi
22145
22146 echo "$as_me:$LINENO: checking for size_t" >&5
22147 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22148 if test "${ac_cv_type_size_t+set}" = set; then
22149   echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151   cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157 $ac_includes_default
22158 int
22159 main ()
22160 {
22161 if ((size_t *) 0)
22162   return 0;
22163 if (sizeof (size_t))
22164   return 0;
22165   ;
22166   return 0;
22167 }
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22171   (eval $ac_compile) 2>conftest.er1
22172   ac_status=$?
22173   grep -v '^ *+' conftest.er1 >conftest.err
22174   rm -f conftest.er1
22175   cat conftest.err >&5
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } &&
22178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; } &&
22184          { ac_try='test -s conftest.$ac_objext'
22185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); }; }; then
22190   ac_cv_type_size_t=yes
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 ac_cv_type_size_t=no
22196 fi
22197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22198 fi
22199 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22200 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22201 if test $ac_cv_type_size_t = yes; then
22202   :
22203 else
22204
22205 cat >>confdefs.h <<_ACEOF
22206 #define size_t unsigned
22207 _ACEOF
22208
22209 fi
22210
22211 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22212 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22213 if test "${ac_cv_header_time+set}" = set; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 #include <sys/types.h>
22223 #include <sys/time.h>
22224 #include <time.h>
22225
22226 int
22227 main ()
22228 {
22229 if ((struct tm *) 0)
22230 return 0;
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22237   (eval $ac_compile) 2>conftest.er1
22238   ac_status=$?
22239   grep -v '^ *+' conftest.er1 >conftest.err
22240   rm -f conftest.er1
22241   cat conftest.err >&5
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); } &&
22244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246   (eval $ac_try) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); }; } &&
22250          { ac_try='test -s conftest.$ac_objext'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; }; then
22256   ac_cv_header_time=yes
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261 ac_cv_header_time=no
22262 fi
22263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264 fi
22265 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22266 echo "${ECHO_T}$ac_cv_header_time" >&6
22267 if test $ac_cv_header_time = yes; then
22268
22269 cat >>confdefs.h <<\_ACEOF
22270 #define TIME_WITH_SYS_TIME 1
22271 _ACEOF
22272
22273 fi
22274
22275 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22276 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22277 if test "${ac_cv_struct_tm+set}" = set; then
22278   echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 #include <sys/types.h>
22287 #include <time.h>
22288
22289 int
22290 main ()
22291 {
22292 struct tm *tp; tp->tm_sec;
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299   (eval $ac_compile) 2>conftest.er1
22300   ac_status=$?
22301   grep -v '^ *+' conftest.er1 >conftest.err
22302   rm -f conftest.er1
22303   cat conftest.err >&5
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); } &&
22306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; } &&
22312          { ac_try='test -s conftest.$ac_objext'
22313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); }; }; then
22318   ac_cv_struct_tm=time.h
22319 else
22320   echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22322
22323 ac_cv_struct_tm=sys/time.h
22324 fi
22325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22326 fi
22327 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22328 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22329 if test $ac_cv_struct_tm = sys/time.h; then
22330
22331 cat >>confdefs.h <<\_ACEOF
22332 #define TM_IN_SYS_TIME 1
22333 _ACEOF
22334
22335 fi
22336
22337
22338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22339 # for constant arguments.  Useless!
22340 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22341 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22342 if test "${ac_cv_working_alloca_h+set}" = set; then
22343   echo $ECHO_N "(cached) $ECHO_C" >&6
22344 else
22345   cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 #include <alloca.h>
22352 int
22353 main ()
22354 {
22355 char *p = (char *) alloca (2 * sizeof (int));
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext conftest$ac_exeext
22361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22362   (eval $ac_link) 2>conftest.er1
22363   ac_status=$?
22364   grep -v '^ *+' conftest.er1 >conftest.err
22365   rm -f conftest.er1
22366   cat conftest.err >&5
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } &&
22369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371   (eval $ac_try) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; } &&
22375          { ac_try='test -s conftest$ac_exeext'
22376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; }; then
22381   ac_cv_working_alloca_h=yes
22382 else
22383   echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22385
22386 ac_cv_working_alloca_h=no
22387 fi
22388 rm -f conftest.err conftest.$ac_objext \
22389       conftest$ac_exeext conftest.$ac_ext
22390 fi
22391 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22392 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22393 if test $ac_cv_working_alloca_h = yes; then
22394
22395 cat >>confdefs.h <<\_ACEOF
22396 #define HAVE_ALLOCA_H 1
22397 _ACEOF
22398
22399 fi
22400
22401 echo "$as_me:$LINENO: checking for alloca" >&5
22402 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22403 if test "${ac_cv_func_alloca_works+set}" = set; then
22404   echo $ECHO_N "(cached) $ECHO_C" >&6
22405 else
22406   cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h.  */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h.  */
22412 #ifdef __GNUC__
22413 # define alloca __builtin_alloca
22414 #else
22415 # ifdef _MSC_VER
22416 #  include <malloc.h>
22417 #  define alloca _alloca
22418 # else
22419 #  if HAVE_ALLOCA_H
22420 #   include <alloca.h>
22421 #  else
22422 #   ifdef _AIX
22423  #pragma alloca
22424 #   else
22425 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22426 char *alloca ();
22427 #    endif
22428 #   endif
22429 #  endif
22430 # endif
22431 #endif
22432
22433 int
22434 main ()
22435 {
22436 char *p = (char *) alloca (1);
22437   ;
22438   return 0;
22439 }
22440 _ACEOF
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443   (eval $ac_link) 2>conftest.er1
22444   ac_status=$?
22445   grep -v '^ *+' conftest.er1 >conftest.err
22446   rm -f conftest.er1
22447   cat conftest.err >&5
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); } &&
22450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); }; } &&
22456          { ac_try='test -s conftest$ac_exeext'
22457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; }; then
22462   ac_cv_func_alloca_works=yes
22463 else
22464   echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 ac_cv_func_alloca_works=no
22468 fi
22469 rm -f conftest.err conftest.$ac_objext \
22470       conftest$ac_exeext conftest.$ac_ext
22471 fi
22472 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22473 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22474
22475 if test $ac_cv_func_alloca_works = yes; then
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_ALLOCA 1
22479 _ACEOF
22480
22481 else
22482   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22483 # that cause trouble.  Some versions do not even contain alloca or
22484 # contain a buggy version.  If you still want to use their alloca,
22485 # use ar to extract alloca.o from them instead of compiling alloca.c.
22486
22487 ALLOCA=alloca.$ac_objext
22488
22489 cat >>confdefs.h <<\_ACEOF
22490 #define C_ALLOCA 1
22491 _ACEOF
22492
22493
22494 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22495 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22496 if test "${ac_cv_os_cray+set}" = set; then
22497   echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499   cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505 #if defined(CRAY) && ! defined(CRAY2)
22506 webecray
22507 #else
22508 wenotbecray
22509 #endif
22510
22511 _ACEOF
22512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22513   $EGREP "webecray" >/dev/null 2>&1; then
22514   ac_cv_os_cray=yes
22515 else
22516   ac_cv_os_cray=no
22517 fi
22518 rm -f conftest*
22519
22520 fi
22521 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22522 echo "${ECHO_T}$ac_cv_os_cray" >&6
22523 if test $ac_cv_os_cray = yes; then
22524   for ac_func in _getb67 GETB67 getb67; do
22525     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22526 echo "$as_me:$LINENO: checking for $ac_func" >&5
22527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22528 if eval "test \"\${$as_ac_var+set}\" = set"; then
22529   echo $ECHO_N "(cached) $ECHO_C" >&6
22530 else
22531   cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h.  */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h.  */
22537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22539 #define $ac_func innocuous_$ac_func
22540
22541 /* System header to define __stub macros and hopefully few prototypes,
22542     which can conflict with char $ac_func (); below.
22543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22544     <limits.h> exists even on freestanding compilers.  */
22545
22546 #ifdef __STDC__
22547 # include <limits.h>
22548 #else
22549 # include <assert.h>
22550 #endif
22551
22552 #undef $ac_func
22553
22554 /* Override any gcc2 internal prototype to avoid an error.  */
22555 #ifdef __cplusplus
22556 extern "C"
22557 {
22558 #endif
22559 /* We use char because int might match the return type of a gcc2
22560    builtin and then its argument prototype would still apply.  */
22561 char $ac_func ();
22562 /* The GNU C library defines this for functions which it implements
22563     to always fail with ENOSYS.  Some functions are actually named
22564     something starting with __ and the normal name is an alias.  */
22565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22566 choke me
22567 #else
22568 char (*f) () = $ac_func;
22569 #endif
22570 #ifdef __cplusplus
22571 }
22572 #endif
22573
22574 int
22575 main ()
22576 {
22577 return f != $ac_func;
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext conftest$ac_exeext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22584   (eval $ac_link) 2>conftest.er1
22585   ac_status=$?
22586   grep -v '^ *+' conftest.er1 >conftest.err
22587   rm -f conftest.er1
22588   cat conftest.err >&5
22589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590   (exit $ac_status); } &&
22591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593   (eval $ac_try) 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; } &&
22597          { ac_try='test -s conftest$ac_exeext'
22598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599   (eval $ac_try) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); }; }; then
22603   eval "$as_ac_var=yes"
22604 else
22605   echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22607
22608 eval "$as_ac_var=no"
22609 fi
22610 rm -f conftest.err conftest.$ac_objext \
22611       conftest$ac_exeext conftest.$ac_ext
22612 fi
22613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22615 if test `eval echo '${'$as_ac_var'}'` = yes; then
22616
22617 cat >>confdefs.h <<_ACEOF
22618 #define CRAY_STACKSEG_END $ac_func
22619 _ACEOF
22620
22621     break
22622 fi
22623
22624   done
22625 fi
22626
22627 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22628 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22629 if test "${ac_cv_c_stack_direction+set}" = set; then
22630   echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632   if test "$cross_compiling" = yes; then
22633   ac_cv_c_stack_direction=0
22634 else
22635   cat >conftest.$ac_ext <<_ACEOF
22636 /* confdefs.h.  */
22637 _ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h.  */
22641 int
22642 find_stack_direction ()
22643 {
22644   static char *addr = 0;
22645   auto char dummy;
22646   if (addr == 0)
22647     {
22648       addr = &dummy;
22649       return find_stack_direction ();
22650     }
22651   else
22652     return (&dummy > addr) ? 1 : -1;
22653 }
22654
22655 int
22656 main ()
22657 {
22658   exit (find_stack_direction () < 0);
22659 }
22660 _ACEOF
22661 rm -f conftest$ac_exeext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22663   (eval $ac_link) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668   (eval $ac_try) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); }; }; then
22672   ac_cv_c_stack_direction=1
22673 else
22674   echo "$as_me: program exited with status $ac_status" >&5
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678 ( exit $ac_status )
22679 ac_cv_c_stack_direction=-1
22680 fi
22681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22682 fi
22683 fi
22684 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22685 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22686
22687 cat >>confdefs.h <<_ACEOF
22688 #define STACK_DIRECTION $ac_cv_c_stack_direction
22689 _ACEOF
22690
22691
22692 fi
22693
22694
22695
22696
22697
22698
22699 ac_header_dirent=no
22700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22701   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22702 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22703 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707   cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h.  */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h.  */
22713 #include <sys/types.h>
22714 #include <$ac_hdr>
22715
22716 int
22717 main ()
22718 {
22719 if ((DIR *) 0)
22720 return 0;
22721   ;
22722   return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22727   (eval $ac_compile) 2>conftest.er1
22728   ac_status=$?
22729   grep -v '^ *+' conftest.er1 >conftest.err
22730   rm -f conftest.er1
22731   cat conftest.err >&5
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } &&
22734          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736   (eval $ac_try) 2>&5
22737   ac_status=$?
22738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739   (exit $ac_status); }; } &&
22740          { ac_try='test -s conftest.$ac_objext'
22741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742   (eval $ac_try) 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); }; }; then
22746   eval "$as_ac_Header=yes"
22747 else
22748   echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751 eval "$as_ac_Header=no"
22752 fi
22753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22754 fi
22755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22758   cat >>confdefs.h <<_ACEOF
22759 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22760 _ACEOF
22761
22762 ac_header_dirent=$ac_hdr; break
22763 fi
22764
22765 done
22766 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22767 if test $ac_header_dirent = dirent.h; then
22768   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22769 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22770 if test "${ac_cv_search_opendir+set}" = set; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   ac_func_search_save_LIBS=$LIBS
22774 ac_cv_search_opendir=no
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h.  */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h.  */
22781
22782 /* Override any gcc2 internal prototype to avoid an error.  */
22783 #ifdef __cplusplus
22784 extern "C"
22785 #endif
22786 /* We use char because int might match the return type of a gcc2
22787    builtin and then its argument prototype would still apply.  */
22788 char opendir ();
22789 int
22790 main ()
22791 {
22792 opendir ();
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   ac_cv_search_opendir="none required"
22819 else
22820   echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823 fi
22824 rm -f conftest.err conftest.$ac_objext \
22825       conftest$ac_exeext conftest.$ac_ext
22826 if test "$ac_cv_search_opendir" = no; then
22827   for ac_lib in dir; do
22828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22829     cat >conftest.$ac_ext <<_ACEOF
22830 /* confdefs.h.  */
22831 _ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h.  */
22835
22836 /* Override any gcc2 internal prototype to avoid an error.  */
22837 #ifdef __cplusplus
22838 extern "C"
22839 #endif
22840 /* We use char because int might match the return type of a gcc2
22841    builtin and then its argument prototype would still apply.  */
22842 char opendir ();
22843 int
22844 main ()
22845 {
22846 opendir ();
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext conftest$ac_exeext
22852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22853   (eval $ac_link) 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } &&
22860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862   (eval $ac_try) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; } &&
22866          { ac_try='test -s conftest$ac_exeext'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; }; then
22872   ac_cv_search_opendir="-l$ac_lib"
22873 break
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878 fi
22879 rm -f conftest.err conftest.$ac_objext \
22880       conftest$ac_exeext conftest.$ac_ext
22881   done
22882 fi
22883 LIBS=$ac_func_search_save_LIBS
22884 fi
22885 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22886 echo "${ECHO_T}$ac_cv_search_opendir" >&6
22887 if test "$ac_cv_search_opendir" != no; then
22888   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22889
22890 fi
22891
22892 else
22893   echo "$as_me:$LINENO: checking for library containing opendir" >&5
22894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22895 if test "${ac_cv_search_opendir+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   ac_func_search_save_LIBS=$LIBS
22899 ac_cv_search_opendir=no
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906
22907 /* Override any gcc2 internal prototype to avoid an error.  */
22908 #ifdef __cplusplus
22909 extern "C"
22910 #endif
22911 /* We use char because int might match the return type of a gcc2
22912    builtin and then its argument prototype would still apply.  */
22913 char opendir ();
22914 int
22915 main ()
22916 {
22917 opendir ();
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 rm -f conftest.$ac_objext conftest$ac_exeext
22923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22924   (eval $ac_link) 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } &&
22931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22933   (eval $ac_try) 2>&5
22934   ac_status=$?
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); }; } &&
22937          { ac_try='test -s conftest$ac_exeext'
22938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939   (eval $ac_try) 2>&5
22940   ac_status=$?
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); }; }; then
22943   ac_cv_search_opendir="none required"
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948 fi
22949 rm -f conftest.err conftest.$ac_objext \
22950       conftest$ac_exeext conftest.$ac_ext
22951 if test "$ac_cv_search_opendir" = no; then
22952   for ac_lib in x; do
22953     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22954     cat >conftest.$ac_ext <<_ACEOF
22955 /* confdefs.h.  */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h.  */
22960
22961 /* Override any gcc2 internal prototype to avoid an error.  */
22962 #ifdef __cplusplus
22963 extern "C"
22964 #endif
22965 /* We use char because int might match the return type of a gcc2
22966    builtin and then its argument prototype would still apply.  */
22967 char opendir ();
22968 int
22969 main ()
22970 {
22971 opendir ();
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext conftest$ac_exeext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22978   (eval $ac_link) 2>conftest.er1
22979   ac_status=$?
22980   grep -v '^ *+' conftest.er1 >conftest.err
22981   rm -f conftest.er1
22982   cat conftest.err >&5
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } &&
22985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; } &&
22991          { ac_try='test -s conftest$ac_exeext'
22992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993   (eval $ac_try) 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); }; }; then
22997   ac_cv_search_opendir="-l$ac_lib"
22998 break
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003 fi
23004 rm -f conftest.err conftest.$ac_objext \
23005       conftest$ac_exeext conftest.$ac_ext
23006   done
23007 fi
23008 LIBS=$ac_func_search_save_LIBS
23009 fi
23010 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23011 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23012 if test "$ac_cv_search_opendir" != no; then
23013   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23014
23015 fi
23016
23017 fi
23018
23019 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
23020 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
23021 if test "${ac_cv_func_closedir_void+set}" = set; then
23022   echo $ECHO_N "(cached) $ECHO_C" >&6
23023 else
23024   if test "$cross_compiling" = yes; then
23025   ac_cv_func_closedir_void=yes
23026 else
23027   cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h.  */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h.  */
23033 $ac_includes_default
23034 #include <$ac_header_dirent>
23035 #ifndef __cplusplus
23036 int closedir ();
23037 #endif
23038
23039 int
23040 main ()
23041 {
23042 exit (closedir (opendir (".")) != 0);
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest$ac_exeext
23048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23049   (eval $ac_link) 2>&5
23050   ac_status=$?
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; }; then
23058   ac_cv_func_closedir_void=no
23059 else
23060   echo "$as_me: program exited with status $ac_status" >&5
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064 ( exit $ac_status )
23065 ac_cv_func_closedir_void=yes
23066 fi
23067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23068 fi
23069 fi
23070 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
23071 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
23072 if test $ac_cv_func_closedir_void = yes; then
23073
23074 cat >>confdefs.h <<\_ACEOF
23075 #define CLOSEDIR_VOID 1
23076 _ACEOF
23077
23078 fi
23079
23080 echo "$as_me:$LINENO: checking for error_at_line" >&5
23081 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
23082 if test "${ac_cv_lib_error_at_line+set}" = set; then
23083   echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085   cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091 $ac_includes_default
23092 int
23093 main ()
23094 {
23095 error_at_line (0, 0, "", 0, "");
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext conftest$ac_exeext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23102   (eval $ac_link) 2>conftest.er1
23103   ac_status=$?
23104   grep -v '^ *+' conftest.er1 >conftest.err
23105   rm -f conftest.er1
23106   cat conftest.err >&5
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); } &&
23109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; } &&
23115          { ac_try='test -s conftest$ac_exeext'
23116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117   (eval $ac_try) 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; }; then
23121   ac_cv_lib_error_at_line=yes
23122 else
23123   echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_cv_lib_error_at_line=no
23127 fi
23128 rm -f conftest.err conftest.$ac_objext \
23129       conftest$ac_exeext conftest.$ac_ext
23130 fi
23131 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
23132 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
23133 if test $ac_cv_lib_error_at_line = no; then
23134   case $LIBOBJS in
23135     "error.$ac_objext"   | \
23136   *" error.$ac_objext"   | \
23137     "error.$ac_objext "* | \
23138   *" error.$ac_objext "* ) ;;
23139   *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
23140 esac
23141
23142 fi
23143
23144
23145
23146 for ac_header in unistd.h vfork.h
23147 do
23148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23150   echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23153   echo $ECHO_N "(cached) $ECHO_C" >&6
23154 fi
23155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23157 else
23158   # Is the header compilable?
23159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23161 cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167 $ac_includes_default
23168 #include <$ac_header>
23169 _ACEOF
23170 rm -f conftest.$ac_objext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23172   (eval $ac_compile) 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } &&
23179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; } &&
23185          { ac_try='test -s conftest.$ac_objext'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; }; then
23191   ac_header_compiler=yes
23192 else
23193   echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_header_compiler=no
23197 fi
23198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23200 echo "${ECHO_T}$ac_header_compiler" >&6
23201
23202 # Is the header present?
23203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 #include <$ac_header>
23212 _ACEOF
23213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } >/dev/null; then
23221   if test -s conftest.err; then
23222     ac_cpp_err=$ac_c_preproc_warn_flag
23223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23224   else
23225     ac_cpp_err=
23226   fi
23227 else
23228   ac_cpp_err=yes
23229 fi
23230 if test -z "$ac_cpp_err"; then
23231   ac_header_preproc=yes
23232 else
23233   echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236   ac_header_preproc=no
23237 fi
23238 rm -f conftest.err conftest.$ac_ext
23239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23240 echo "${ECHO_T}$ac_header_preproc" >&6
23241
23242 # So?  What about this header?
23243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23244   yes:no: )
23245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23249     ac_header_preproc=yes
23250     ;;
23251   no:yes:* )
23252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23264     (
23265       cat <<\_ASBOX
23266 ## ------------------------------- ##
23267 ## Report this to nfs@lists.sf.net ##
23268 ## ------------------------------- ##
23269 _ASBOX
23270     ) |
23271       sed "s/^/$as_me: WARNING:     /" >&2
23272     ;;
23273 esac
23274 echo "$as_me:$LINENO: checking for $ac_header" >&5
23275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   eval "$as_ac_Header=\$ac_header_preproc"
23280 fi
23281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23283
23284 fi
23285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23286   cat >>confdefs.h <<_ACEOF
23287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23288 _ACEOF
23289
23290 fi
23291
23292 done
23293
23294
23295
23296 for ac_func in fork vfork
23297 do
23298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23299 echo "$as_me:$LINENO: checking for $ac_func" >&5
23300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23301 if eval "test \"\${$as_ac_var+set}\" = set"; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304   cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23312 #define $ac_func innocuous_$ac_func
23313
23314 /* System header to define __stub macros and hopefully few prototypes,
23315     which can conflict with char $ac_func (); below.
23316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23317     <limits.h> exists even on freestanding compilers.  */
23318
23319 #ifdef __STDC__
23320 # include <limits.h>
23321 #else
23322 # include <assert.h>
23323 #endif
23324
23325 #undef $ac_func
23326
23327 /* Override any gcc2 internal prototype to avoid an error.  */
23328 #ifdef __cplusplus
23329 extern "C"
23330 {
23331 #endif
23332 /* We use char because int might match the return type of a gcc2
23333    builtin and then its argument prototype would still apply.  */
23334 char $ac_func ();
23335 /* The GNU C library defines this for functions which it implements
23336     to always fail with ENOSYS.  Some functions are actually named
23337     something starting with __ and the normal name is an alias.  */
23338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23339 choke me
23340 #else
23341 char (*f) () = $ac_func;
23342 #endif
23343 #ifdef __cplusplus
23344 }
23345 #endif
23346
23347 int
23348 main ()
23349 {
23350 return f != $ac_func;
23351   ;
23352   return 0;
23353 }
23354 _ACEOF
23355 rm -f conftest.$ac_objext conftest$ac_exeext
23356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23357   (eval $ac_link) 2>conftest.er1
23358   ac_status=$?
23359   grep -v '^ *+' conftest.er1 >conftest.err
23360   rm -f conftest.er1
23361   cat conftest.err >&5
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); } &&
23364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366   (eval $ac_try) 2>&5
23367   ac_status=$?
23368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369   (exit $ac_status); }; } &&
23370          { ac_try='test -s conftest$ac_exeext'
23371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372   (eval $ac_try) 2>&5
23373   ac_status=$?
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); }; }; then
23376   eval "$as_ac_var=yes"
23377 else
23378   echo "$as_me: failed program was:" >&5
23379 sed 's/^/| /' conftest.$ac_ext >&5
23380
23381 eval "$as_ac_var=no"
23382 fi
23383 rm -f conftest.err conftest.$ac_objext \
23384       conftest$ac_exeext conftest.$ac_ext
23385 fi
23386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23388 if test `eval echo '${'$as_ac_var'}'` = yes; then
23389   cat >>confdefs.h <<_ACEOF
23390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23391 _ACEOF
23392
23393 fi
23394 done
23395
23396 if test "x$ac_cv_func_fork" = xyes; then
23397   echo "$as_me:$LINENO: checking for working fork" >&5
23398 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23399 if test "${ac_cv_func_fork_works+set}" = set; then
23400   echo $ECHO_N "(cached) $ECHO_C" >&6
23401 else
23402   if test "$cross_compiling" = yes; then
23403   ac_cv_func_fork_works=cross
23404 else
23405   cat >conftest.$ac_ext <<_ACEOF
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411 $ac_includes_default
23412 int
23413 main ()
23414 {
23415
23416           /* By Ruediger Kuhlmann. */
23417           if (fork() < 0)
23418             exit (1);
23419           exit (0);
23420
23421   ;
23422   return 0;
23423 }
23424 _ACEOF
23425 rm -f conftest$ac_exeext
23426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23427   (eval $ac_link) 2>&5
23428   ac_status=$?
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432   (eval $ac_try) 2>&5
23433   ac_status=$?
23434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435   (exit $ac_status); }; }; then
23436   ac_cv_func_fork_works=yes
23437 else
23438   echo "$as_me: program exited with status $ac_status" >&5
23439 echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23441
23442 ( exit $ac_status )
23443 ac_cv_func_fork_works=no
23444 fi
23445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23446 fi
23447 fi
23448 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23449 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23450
23451 else
23452   ac_cv_func_fork_works=$ac_cv_func_fork
23453 fi
23454 if test "x$ac_cv_func_fork_works" = xcross; then
23455   case $host in
23456     *-*-amigaos* | *-*-msdosdjgpp*)
23457       # Override, as these systems have only a dummy fork() stub
23458       ac_cv_func_fork_works=no
23459       ;;
23460     *)
23461       ac_cv_func_fork_works=yes
23462       ;;
23463   esac
23464   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23465 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23466 fi
23467 ac_cv_func_vfork_works=$ac_cv_func_vfork
23468 if test "x$ac_cv_func_vfork" = xyes; then
23469   echo "$as_me:$LINENO: checking for working vfork" >&5
23470 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23471 if test "${ac_cv_func_vfork_works+set}" = set; then
23472   echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474   if test "$cross_compiling" = yes; then
23475   ac_cv_func_vfork_works=cross
23476 else
23477   cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 /* Thanks to Paul Eggert for this test.  */
23484 #include <stdio.h>
23485 #include <stdlib.h>
23486 #include <sys/types.h>
23487 #include <sys/stat.h>
23488 #include <sys/wait.h>
23489 #if HAVE_UNISTD_H
23490 # include <unistd.h>
23491 #endif
23492 #if HAVE_VFORK_H
23493 # include <vfork.h>
23494 #endif
23495 /* On some sparc systems, changes by the child to local and incoming
23496    argument registers are propagated back to the parent.  The compiler
23497    is told about this with #include <vfork.h>, but some compilers
23498    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
23499    static variable whose address is put into a register that is
23500    clobbered by the vfork.  */
23501 static void
23502 #ifdef __cplusplus
23503 sparc_address_test (int arg)
23504 # else
23505 sparc_address_test (arg) int arg;
23506 #endif
23507 {
23508   static pid_t child;
23509   if (!child) {
23510     child = vfork ();
23511     if (child < 0) {
23512       perror ("vfork");
23513       _exit(2);
23514     }
23515     if (!child) {
23516       arg = getpid();
23517       write(-1, "", 0);
23518       _exit (arg);
23519     }
23520   }
23521 }
23522
23523 int
23524 main ()
23525 {
23526   pid_t parent = getpid ();
23527   pid_t child;
23528
23529   sparc_address_test (0);
23530
23531   child = vfork ();
23532
23533   if (child == 0) {
23534     /* Here is another test for sparc vfork register problems.  This
23535        test uses lots of local variables, at least as many local
23536        variables as main has allocated so far including compiler
23537        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
23538        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
23539        reuse the register of parent for one of the local variables,
23540        since it will think that parent can't possibly be used any more
23541        in this routine.  Assigning to the local variable will thus
23542        munge parent in the parent process.  */
23543     pid_t
23544       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23545       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23546     /* Convince the compiler that p..p7 are live; otherwise, it might
23547        use the same hardware register for all 8 local variables.  */
23548     if (p != p1 || p != p2 || p != p3 || p != p4
23549         || p != p5 || p != p6 || p != p7)
23550       _exit(1);
23551
23552     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23553        from child file descriptors.  If the child closes a descriptor
23554        before it execs or exits, this munges the parent's descriptor
23555        as well.  Test for this by closing stdout in the child.  */
23556     _exit(close(fileno(stdout)) != 0);
23557   } else {
23558     int status;
23559     struct stat st;
23560
23561     while (wait(&status) != child)
23562       ;
23563     exit(
23564          /* Was there some problem with vforking?  */
23565          child < 0
23566
23567          /* Did the child fail?  (This shouldn't happen.)  */
23568          || status
23569
23570          /* Did the vfork/compiler bug occur?  */
23571          || parent != getpid()
23572
23573          /* Did the file descriptor bug occur?  */
23574          || fstat(fileno(stdout), &st) != 0
23575          );
23576   }
23577 }
23578 _ACEOF
23579 rm -f conftest$ac_exeext
23580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23581   (eval $ac_link) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586   (eval $ac_try) 2>&5
23587   ac_status=$?
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); }; }; then
23590   ac_cv_func_vfork_works=yes
23591 else
23592   echo "$as_me: program exited with status $ac_status" >&5
23593 echo "$as_me: failed program was:" >&5
23594 sed 's/^/| /' conftest.$ac_ext >&5
23595
23596 ( exit $ac_status )
23597 ac_cv_func_vfork_works=no
23598 fi
23599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23600 fi
23601 fi
23602 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23603 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23604
23605 fi;
23606 if test "x$ac_cv_func_fork_works" = xcross; then
23607   ac_cv_func_vfork_works=$ac_cv_func_vfork
23608   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23609 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23610 fi
23611
23612 if test "x$ac_cv_func_vfork_works" = xyes; then
23613
23614 cat >>confdefs.h <<\_ACEOF
23615 #define HAVE_WORKING_VFORK 1
23616 _ACEOF
23617
23618 else
23619
23620 cat >>confdefs.h <<\_ACEOF
23621 #define vfork fork
23622 _ACEOF
23623
23624 fi
23625 if test "x$ac_cv_func_fork_works" = xyes; then
23626
23627 cat >>confdefs.h <<\_ACEOF
23628 #define HAVE_WORKING_FORK 1
23629 _ACEOF
23630
23631 fi
23632
23633 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
23634 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
23635 if test "${ac_cv_type_getgroups+set}" = set; then
23636   echo $ECHO_N "(cached) $ECHO_C" >&6
23637 else
23638   if test "$cross_compiling" = yes; then
23639   ac_cv_type_getgroups=cross
23640 else
23641   cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647 /* Thanks to Mike Rendell for this test.  */
23648 #include <sys/types.h>
23649 #define NGID 256
23650 #undef MAX
23651 #define MAX(x, y) ((x) > (y) ? (x) : (y))
23652
23653 int
23654 main ()
23655 {
23656   gid_t gidset[NGID];
23657   int i, n;
23658   union { gid_t gval; long lval; }  val;
23659
23660   val.lval = -1;
23661   for (i = 0; i < NGID; i++)
23662     gidset[i] = val.gval;
23663   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
23664                  gidset);
23665   /* Exit non-zero if getgroups seems to require an array of ints.  This
23666      happens when gid_t is short but getgroups modifies an array of ints.  */
23667   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
23668 }
23669 _ACEOF
23670 rm -f conftest$ac_exeext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23672   (eval $ac_link) 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677   (eval $ac_try) 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); }; }; then
23681   ac_cv_type_getgroups=gid_t
23682 else
23683   echo "$as_me: program exited with status $ac_status" >&5
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ( exit $ac_status )
23688 ac_cv_type_getgroups=int
23689 fi
23690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23691 fi
23692 if test $ac_cv_type_getgroups = cross; then
23693         cat >conftest.$ac_ext <<_ACEOF
23694 /* confdefs.h.  */
23695 _ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h.  */
23699 #include <unistd.h>
23700
23701 _ACEOF
23702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23703   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
23704   ac_cv_type_getgroups=gid_t
23705 else
23706   ac_cv_type_getgroups=int
23707 fi
23708 rm -f conftest*
23709
23710 fi
23711 fi
23712 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
23713 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
23714
23715 cat >>confdefs.h <<_ACEOF
23716 #define GETGROUPS_T $ac_cv_type_getgroups
23717 _ACEOF
23718
23719
23720 echo "$as_me:$LINENO: checking for getgroups" >&5
23721 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
23722 if test "${ac_cv_func_getgroups+set}" = set; then
23723   echo $ECHO_N "(cached) $ECHO_C" >&6
23724 else
23725   cat >conftest.$ac_ext <<_ACEOF
23726 /* confdefs.h.  */
23727 _ACEOF
23728 cat confdefs.h >>conftest.$ac_ext
23729 cat >>conftest.$ac_ext <<_ACEOF
23730 /* end confdefs.h.  */
23731 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
23732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23733 #define getgroups innocuous_getgroups
23734
23735 /* System header to define __stub macros and hopefully few prototypes,
23736     which can conflict with char getgroups (); below.
23737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23738     <limits.h> exists even on freestanding compilers.  */
23739
23740 #ifdef __STDC__
23741 # include <limits.h>
23742 #else
23743 # include <assert.h>
23744 #endif
23745
23746 #undef getgroups
23747
23748 /* Override any gcc2 internal prototype to avoid an error.  */
23749 #ifdef __cplusplus
23750 extern "C"
23751 {
23752 #endif
23753 /* We use char because int might match the return type of a gcc2
23754    builtin and then its argument prototype would still apply.  */
23755 char getgroups ();
23756 /* The GNU C library defines this for functions which it implements
23757     to always fail with ENOSYS.  Some functions are actually named
23758     something starting with __ and the normal name is an alias.  */
23759 #if defined (__stub_getgroups) || defined (__stub___getgroups)
23760 choke me
23761 #else
23762 char (*f) () = getgroups;
23763 #endif
23764 #ifdef __cplusplus
23765 }
23766 #endif
23767
23768 int
23769 main ()
23770 {
23771 return f != getgroups;
23772   ;
23773   return 0;
23774 }
23775 _ACEOF
23776 rm -f conftest.$ac_objext conftest$ac_exeext
23777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23778   (eval $ac_link) 2>conftest.er1
23779   ac_status=$?
23780   grep -v '^ *+' conftest.er1 >conftest.err
23781   rm -f conftest.er1
23782   cat conftest.err >&5
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } &&
23785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; } &&
23791          { ac_try='test -s conftest$ac_exeext'
23792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793   (eval $ac_try) 2>&5
23794   ac_status=$?
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); }; }; then
23797   ac_cv_func_getgroups=yes
23798 else
23799   echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23801
23802 ac_cv_func_getgroups=no
23803 fi
23804 rm -f conftest.err conftest.$ac_objext \
23805       conftest$ac_exeext conftest.$ac_ext
23806 fi
23807 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
23808 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
23809
23810
23811 # If we don't yet have getgroups, see if it's in -lbsd.
23812 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
23813 ac_save_LIBS=$LIBS
23814 if test $ac_cv_func_getgroups = no; then
23815   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
23816 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
23817 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
23818   echo $ECHO_N "(cached) $ECHO_C" >&6
23819 else
23820   ac_check_lib_save_LIBS=$LIBS
23821 LIBS="-lbsd  $LIBS"
23822 cat >conftest.$ac_ext <<_ACEOF
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828
23829 /* Override any gcc2 internal prototype to avoid an error.  */
23830 #ifdef __cplusplus
23831 extern "C"
23832 #endif
23833 /* We use char because int might match the return type of a gcc2
23834    builtin and then its argument prototype would still apply.  */
23835 char getgroups ();
23836 int
23837 main ()
23838 {
23839 getgroups ();
23840   ;
23841   return 0;
23842 }
23843 _ACEOF
23844 rm -f conftest.$ac_objext conftest$ac_exeext
23845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23846   (eval $ac_link) 2>conftest.er1
23847   ac_status=$?
23848   grep -v '^ *+' conftest.er1 >conftest.err
23849   rm -f conftest.er1
23850   cat conftest.err >&5
23851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); } &&
23853          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855   (eval $ac_try) 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest$ac_exeext'
23860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861   (eval $ac_try) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); }; }; then
23865   ac_cv_lib_bsd_getgroups=yes
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 ac_cv_lib_bsd_getgroups=no
23871 fi
23872 rm -f conftest.err conftest.$ac_objext \
23873       conftest$ac_exeext conftest.$ac_ext
23874 LIBS=$ac_check_lib_save_LIBS
23875 fi
23876 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
23877 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
23878 if test $ac_cv_lib_bsd_getgroups = yes; then
23879   GETGROUPS_LIB=-lbsd
23880 fi
23881
23882 fi
23883
23884 # Run the program to test the functionality of the system-supplied
23885 # getgroups function only if there is such a function.
23886 if test $ac_cv_func_getgroups = yes; then
23887   echo "$as_me:$LINENO: checking for working getgroups" >&5
23888 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
23889 if test "${ac_cv_func_getgroups_works+set}" = set; then
23890   echo $ECHO_N "(cached) $ECHO_C" >&6
23891 else
23892   if test "$cross_compiling" = yes; then
23893   ac_cv_func_getgroups_works=no
23894 else
23895   cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 $ac_includes_default
23902 int
23903 main ()
23904 {
23905 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
23906        exit (getgroups (0, 0) == -1 ? 1 : 0);
23907   ;
23908   return 0;
23909 }
23910 _ACEOF
23911 rm -f conftest$ac_exeext
23912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23913   (eval $ac_link) 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23918   (eval $ac_try) 2>&5
23919   ac_status=$?
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); }; }; then
23922   ac_cv_func_getgroups_works=yes
23923 else
23924   echo "$as_me: program exited with status $ac_status" >&5
23925 echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23927
23928 ( exit $ac_status )
23929 ac_cv_func_getgroups_works=no
23930 fi
23931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23932 fi
23933
23934 fi
23935 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
23936 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
23937   if test $ac_cv_func_getgroups_works = yes; then
23938
23939 cat >>confdefs.h <<\_ACEOF
23940 #define HAVE_GETGROUPS 1
23941 _ACEOF
23942
23943   fi
23944 fi
23945 LIBS=$ac_save_LIBS
23946
23947 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
23948 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
23949 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
23950 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
23951   echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953   ac_check_lib_save_LIBS=$LIBS
23954 LIBS="-lsun  $LIBS"
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961
23962 /* Override any gcc2 internal prototype to avoid an error.  */
23963 #ifdef __cplusplus
23964 extern "C"
23965 #endif
23966 /* We use char because int might match the return type of a gcc2
23967    builtin and then its argument prototype would still apply.  */
23968 char getmntent ();
23969 int
23970 main ()
23971 {
23972 getmntent ();
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext conftest$ac_exeext
23978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23979   (eval $ac_link) 2>conftest.er1
23980   ac_status=$?
23981   grep -v '^ *+' conftest.er1 >conftest.err
23982   rm -f conftest.er1
23983   cat conftest.err >&5
23984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985   (exit $ac_status); } &&
23986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988   (eval $ac_try) 2>&5
23989   ac_status=$?
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); }; } &&
23992          { ac_try='test -s conftest$ac_exeext'
23993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994   (eval $ac_try) 2>&5
23995   ac_status=$?
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); }; }; then
23998   ac_cv_lib_sun_getmntent=yes
23999 else
24000   echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003 ac_cv_lib_sun_getmntent=no
24004 fi
24005 rm -f conftest.err conftest.$ac_objext \
24006       conftest$ac_exeext conftest.$ac_ext
24007 LIBS=$ac_check_lib_save_LIBS
24008 fi
24009 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
24010 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
24011 if test $ac_cv_lib_sun_getmntent = yes; then
24012   LIBS="-lsun $LIBS"
24013 else
24014   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
24015 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
24016 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
24017   echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019   ac_check_lib_save_LIBS=$LIBS
24020 LIBS="-lseq  $LIBS"
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h.  */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h.  */
24027
24028 /* Override any gcc2 internal prototype to avoid an error.  */
24029 #ifdef __cplusplus
24030 extern "C"
24031 #endif
24032 /* We use char because int might match the return type of a gcc2
24033    builtin and then its argument prototype would still apply.  */
24034 char getmntent ();
24035 int
24036 main ()
24037 {
24038 getmntent ();
24039   ;
24040   return 0;
24041 }
24042 _ACEOF
24043 rm -f conftest.$ac_objext conftest$ac_exeext
24044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24045   (eval $ac_link) 2>conftest.er1
24046   ac_status=$?
24047   grep -v '^ *+' conftest.er1 >conftest.err
24048   rm -f conftest.er1
24049   cat conftest.err >&5
24050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051   (exit $ac_status); } &&
24052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054   (eval $ac_try) 2>&5
24055   ac_status=$?
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); }; } &&
24058          { ac_try='test -s conftest$ac_exeext'
24059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060   (eval $ac_try) 2>&5
24061   ac_status=$?
24062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063   (exit $ac_status); }; }; then
24064   ac_cv_lib_seq_getmntent=yes
24065 else
24066   echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24068
24069 ac_cv_lib_seq_getmntent=no
24070 fi
24071 rm -f conftest.err conftest.$ac_objext \
24072       conftest$ac_exeext conftest.$ac_ext
24073 LIBS=$ac_check_lib_save_LIBS
24074 fi
24075 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
24076 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
24077 if test $ac_cv_lib_seq_getmntent = yes; then
24078   LIBS="-lseq $LIBS"
24079 else
24080   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
24081 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
24082 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
24083   echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085   ac_check_lib_save_LIBS=$LIBS
24086 LIBS="-lgen  $LIBS"
24087 cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093
24094 /* Override any gcc2 internal prototype to avoid an error.  */
24095 #ifdef __cplusplus
24096 extern "C"
24097 #endif
24098 /* We use char because int might match the return type of a gcc2
24099    builtin and then its argument prototype would still apply.  */
24100 char getmntent ();
24101 int
24102 main ()
24103 {
24104 getmntent ();
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 rm -f conftest.$ac_objext conftest$ac_exeext
24110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24111   (eval $ac_link) 2>conftest.er1
24112   ac_status=$?
24113   grep -v '^ *+' conftest.er1 >conftest.err
24114   rm -f conftest.er1
24115   cat conftest.err >&5
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); } &&
24118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120   (eval $ac_try) 2>&5
24121   ac_status=$?
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); }; } &&
24124          { ac_try='test -s conftest$ac_exeext'
24125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126   (eval $ac_try) 2>&5
24127   ac_status=$?
24128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); }; }; then
24130   ac_cv_lib_gen_getmntent=yes
24131 else
24132   echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24134
24135 ac_cv_lib_gen_getmntent=no
24136 fi
24137 rm -f conftest.err conftest.$ac_objext \
24138       conftest$ac_exeext conftest.$ac_ext
24139 LIBS=$ac_check_lib_save_LIBS
24140 fi
24141 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
24142 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
24143 if test $ac_cv_lib_gen_getmntent = yes; then
24144   LIBS="-lgen $LIBS"
24145 fi
24146
24147 fi
24148
24149 fi
24150
24151
24152 for ac_func in getmntent
24153 do
24154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24155 echo "$as_me:$LINENO: checking for $ac_func" >&5
24156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24157 if eval "test \"\${$as_ac_var+set}\" = set"; then
24158   echo $ECHO_N "(cached) $ECHO_C" >&6
24159 else
24160   cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h.  */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h.  */
24166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24168 #define $ac_func innocuous_$ac_func
24169
24170 /* System header to define __stub macros and hopefully few prototypes,
24171     which can conflict with char $ac_func (); below.
24172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24173     <limits.h> exists even on freestanding compilers.  */
24174
24175 #ifdef __STDC__
24176 # include <limits.h>
24177 #else
24178 # include <assert.h>
24179 #endif
24180
24181 #undef $ac_func
24182
24183 /* Override any gcc2 internal prototype to avoid an error.  */
24184 #ifdef __cplusplus
24185 extern "C"
24186 {
24187 #endif
24188 /* We use char because int might match the return type of a gcc2
24189    builtin and then its argument prototype would still apply.  */
24190 char $ac_func ();
24191 /* The GNU C library defines this for functions which it implements
24192     to always fail with ENOSYS.  Some functions are actually named
24193     something starting with __ and the normal name is an alias.  */
24194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24195 choke me
24196 #else
24197 char (*f) () = $ac_func;
24198 #endif
24199 #ifdef __cplusplus
24200 }
24201 #endif
24202
24203 int
24204 main ()
24205 {
24206 return f != $ac_func;
24207   ;
24208   return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213   (eval $ac_link) 2>conftest.er1
24214   ac_status=$?
24215   grep -v '^ *+' conftest.er1 >conftest.err
24216   rm -f conftest.er1
24217   cat conftest.err >&5
24218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } &&
24220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222   (eval $ac_try) 2>&5
24223   ac_status=$?
24224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225   (exit $ac_status); }; } &&
24226          { ac_try='test -s conftest$ac_exeext'
24227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228   (eval $ac_try) 2>&5
24229   ac_status=$?
24230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231   (exit $ac_status); }; }; then
24232   eval "$as_ac_var=yes"
24233 else
24234   echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 eval "$as_ac_var=no"
24238 fi
24239 rm -f conftest.err conftest.$ac_objext \
24240       conftest$ac_exeext conftest.$ac_ext
24241 fi
24242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24244 if test `eval echo '${'$as_ac_var'}'` = yes; then
24245   cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24247 _ACEOF
24248
24249 fi
24250 done
24251
24252
24253 if test $ac_cv_c_compiler_gnu = yes; then
24254     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
24255 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
24256 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
24257   echo $ECHO_N "(cached) $ECHO_C" >&6
24258 else
24259     ac_pattern="Autoconf.*'x'"
24260   cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266 #include <sgtty.h>
24267 Autoconf TIOCGETP
24268 _ACEOF
24269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24270   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24271   ac_cv_prog_gcc_traditional=yes
24272 else
24273   ac_cv_prog_gcc_traditional=no
24274 fi
24275 rm -f conftest*
24276
24277
24278   if test $ac_cv_prog_gcc_traditional = no; then
24279     cat >conftest.$ac_ext <<_ACEOF
24280 /* confdefs.h.  */
24281 _ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h.  */
24285 #include <termio.h>
24286 Autoconf TCGETA
24287 _ACEOF
24288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24289   $EGREP "$ac_pattern" >/dev/null 2>&1; then
24290   ac_cv_prog_gcc_traditional=yes
24291 fi
24292 rm -f conftest*
24293
24294   fi
24295 fi
24296 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
24297 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
24298   if test $ac_cv_prog_gcc_traditional = yes; then
24299     CC="$CC -traditional"
24300   fi
24301 fi
24302
24303 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24304 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24305 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24306   echo $ECHO_N "(cached) $ECHO_C" >&6
24307 else
24308   rm -f conftest.sym conftest.file
24309 echo >conftest.file
24310 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24311   if test "$cross_compiling" = yes; then
24312   ac_cv_func_lstat_dereferences_slashed_symlink=no
24313 else
24314   cat >conftest.$ac_ext <<_ACEOF
24315 /* confdefs.h.  */
24316 _ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h.  */
24320 $ac_includes_default
24321 int
24322 main ()
24323 {
24324 struct stat sbuf;
24325      /* Linux will dereference the symlink and fail.
24326         That is better in the sense that it means we will not
24327         have to compile and use the lstat wrapper.  */
24328      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24329   ;
24330   return 0;
24331 }
24332 _ACEOF
24333 rm -f conftest$ac_exeext
24334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24335   (eval $ac_link) 2>&5
24336   ac_status=$?
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340   (eval $ac_try) 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; }; then
24344   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24345 else
24346   echo "$as_me: program exited with status $ac_status" >&5
24347 echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 ( exit $ac_status )
24351 ac_cv_func_lstat_dereferences_slashed_symlink=no
24352 fi
24353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24354 fi
24355 else
24356   # If the `ln -s' command failed, then we probably don't even
24357   # have an lstat function.
24358   ac_cv_func_lstat_dereferences_slashed_symlink=no
24359 fi
24360 rm -f conftest.sym conftest.file
24361
24362 fi
24363 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24364 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24365
24366 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24367
24368 cat >>confdefs.h <<_ACEOF
24369 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24370 _ACEOF
24371
24372
24373 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24374   case $LIBOBJS in
24375     "lstat.$ac_objext"   | \
24376   *" lstat.$ac_objext"   | \
24377     "lstat.$ac_objext "* | \
24378   *" lstat.$ac_objext "* ) ;;
24379   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24380 esac
24381
24382 fi
24383
24384 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
24385 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
24386 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
24387   echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389   if test "$cross_compiling" = yes; then
24390   ac_cv_func_lstat_empty_string_bug=yes
24391 else
24392   cat >conftest.$ac_ext <<_ACEOF
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398 $ac_includes_default
24399 int
24400 main ()
24401 {
24402 struct stat sbuf;
24403   exit (lstat ("", &sbuf) ? 1 : 0);
24404   ;
24405   return 0;
24406 }
24407 _ACEOF
24408 rm -f conftest$ac_exeext
24409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24410   (eval $ac_link) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415   (eval $ac_try) 2>&5
24416   ac_status=$?
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); }; }; then
24419   ac_cv_func_lstat_empty_string_bug=yes
24420 else
24421   echo "$as_me: program exited with status $ac_status" >&5
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 ( exit $ac_status )
24426 ac_cv_func_lstat_empty_string_bug=no
24427 fi
24428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24429 fi
24430 fi
24431 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
24432 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
24433 if test $ac_cv_func_lstat_empty_string_bug = yes; then
24434   case $LIBOBJS in
24435     "lstat.$ac_objext"   | \
24436   *" lstat.$ac_objext"   | \
24437     "lstat.$ac_objext "* | \
24438   *" lstat.$ac_objext "* ) ;;
24439   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24440 esac
24441
24442
24443 cat >>confdefs.h <<_ACEOF
24444 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
24445 _ACEOF
24446
24447 fi
24448
24449 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
24450 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
24451 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
24452   echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454   rm -f conftest.sym conftest.file
24455 echo >conftest.file
24456 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24457   if test "$cross_compiling" = yes; then
24458   ac_cv_func_lstat_dereferences_slashed_symlink=no
24459 else
24460   cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466 $ac_includes_default
24467 int
24468 main ()
24469 {
24470 struct stat sbuf;
24471      /* Linux will dereference the symlink and fail.
24472         That is better in the sense that it means we will not
24473         have to compile and use the lstat wrapper.  */
24474      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest$ac_exeext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24481   (eval $ac_link) 2>&5
24482   ac_status=$?
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486   (eval $ac_try) 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; }; then
24490   ac_cv_func_lstat_dereferences_slashed_symlink=yes
24491 else
24492   echo "$as_me: program exited with status $ac_status" >&5
24493 echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24495
24496 ( exit $ac_status )
24497 ac_cv_func_lstat_dereferences_slashed_symlink=no
24498 fi
24499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24500 fi
24501 else
24502   # If the `ln -s' command failed, then we probably don't even
24503   # have an lstat function.
24504   ac_cv_func_lstat_dereferences_slashed_symlink=no
24505 fi
24506 rm -f conftest.sym conftest.file
24507
24508 fi
24509 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24510 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
24511
24512 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24513
24514 cat >>confdefs.h <<_ACEOF
24515 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24516 _ACEOF
24517
24518
24519 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
24520   case $LIBOBJS in
24521     "lstat.$ac_objext"   | \
24522   *" lstat.$ac_objext"   | \
24523     "lstat.$ac_objext "* | \
24524   *" lstat.$ac_objext "* ) ;;
24525   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
24526 esac
24527
24528 fi
24529
24530 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
24531 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
24532 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h.  */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h.  */
24541 #include <sys/types.h>
24542 int
24543 main ()
24544 {
24545 return makedev(0, 0);
24546   ;
24547   return 0;
24548 }
24549 _ACEOF
24550 rm -f conftest.$ac_objext conftest$ac_exeext
24551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24552   (eval $ac_link) 2>conftest.er1
24553   ac_status=$?
24554   grep -v '^ *+' conftest.er1 >conftest.err
24555   rm -f conftest.er1
24556   cat conftest.err >&5
24557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558   (exit $ac_status); } &&
24559          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24561   (eval $ac_try) 2>&5
24562   ac_status=$?
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); }; } &&
24565          { ac_try='test -s conftest$ac_exeext'
24566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24567   (eval $ac_try) 2>&5
24568   ac_status=$?
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); }; }; then
24571   ac_cv_header_sys_types_h_makedev=yes
24572 else
24573   echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24575
24576 ac_cv_header_sys_types_h_makedev=no
24577 fi
24578 rm -f conftest.err conftest.$ac_objext \
24579       conftest$ac_exeext conftest.$ac_ext
24580
24581 fi
24582 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
24583 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
24584
24585 if test $ac_cv_header_sys_types_h_makedev = no; then
24586 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24587   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24588 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24589 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24590   echo $ECHO_N "(cached) $ECHO_C" >&6
24591 fi
24592 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24593 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24594 else
24595   # Is the header compilable?
24596 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
24597 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
24598 cat >conftest.$ac_ext <<_ACEOF
24599 /* confdefs.h.  */
24600 _ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h.  */
24604 $ac_includes_default
24605 #include <sys/mkdev.h>
24606 _ACEOF
24607 rm -f conftest.$ac_objext
24608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24609   (eval $ac_compile) 2>conftest.er1
24610   ac_status=$?
24611   grep -v '^ *+' conftest.er1 >conftest.err
24612   rm -f conftest.er1
24613   cat conftest.err >&5
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); } &&
24616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24618   (eval $ac_try) 2>&5
24619   ac_status=$?
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); }; } &&
24622          { ac_try='test -s conftest.$ac_objext'
24623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624   (eval $ac_try) 2>&5
24625   ac_status=$?
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); }; }; then
24628   ac_header_compiler=yes
24629 else
24630   echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 ac_header_compiler=no
24634 fi
24635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24637 echo "${ECHO_T}$ac_header_compiler" >&6
24638
24639 # Is the header present?
24640 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
24641 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
24642 cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648 #include <sys/mkdev.h>
24649 _ACEOF
24650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24652   ac_status=$?
24653   grep -v '^ *+' conftest.er1 >conftest.err
24654   rm -f conftest.er1
24655   cat conftest.err >&5
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } >/dev/null; then
24658   if test -s conftest.err; then
24659     ac_cpp_err=$ac_c_preproc_warn_flag
24660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24661   else
24662     ac_cpp_err=
24663   fi
24664 else
24665   ac_cpp_err=yes
24666 fi
24667 if test -z "$ac_cpp_err"; then
24668   ac_header_preproc=yes
24669 else
24670   echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24672
24673   ac_header_preproc=no
24674 fi
24675 rm -f conftest.err conftest.$ac_ext
24676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24677 echo "${ECHO_T}$ac_header_preproc" >&6
24678
24679 # So?  What about this header?
24680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24681   yes:no: )
24682     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
24683 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24684     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
24685 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
24686     ac_header_preproc=yes
24687     ;;
24688   no:yes:* )
24689     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
24690 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
24691     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
24692 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
24693     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
24694 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
24695     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
24696 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24697     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
24698 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
24699     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
24700 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
24701     (
24702       cat <<\_ASBOX
24703 ## ------------------------------- ##
24704 ## Report this to nfs@lists.sf.net ##
24705 ## ------------------------------- ##
24706 _ASBOX
24707     ) |
24708       sed "s/^/$as_me: WARNING:     /" >&2
24709     ;;
24710 esac
24711 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
24712 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
24713 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
24714   echo $ECHO_N "(cached) $ECHO_C" >&6
24715 else
24716   ac_cv_header_sys_mkdev_h=$ac_header_preproc
24717 fi
24718 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
24719 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
24720
24721 fi
24722 if test $ac_cv_header_sys_mkdev_h = yes; then
24723
24724 cat >>confdefs.h <<\_ACEOF
24725 #define MAJOR_IN_MKDEV 1
24726 _ACEOF
24727
24728 fi
24729
24730
24731
24732   if test $ac_cv_header_sys_mkdev_h = no; then
24733     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24734   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24735 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24736 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24737   echo $ECHO_N "(cached) $ECHO_C" >&6
24738 fi
24739 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24740 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24741 else
24742   # Is the header compilable?
24743 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
24744 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
24745 cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h.  */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h.  */
24751 $ac_includes_default
24752 #include <sys/sysmacros.h>
24753 _ACEOF
24754 rm -f conftest.$ac_objext
24755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24756   (eval $ac_compile) 2>conftest.er1
24757   ac_status=$?
24758   grep -v '^ *+' conftest.er1 >conftest.err
24759   rm -f conftest.er1
24760   cat conftest.err >&5
24761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); } &&
24763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765   (eval $ac_try) 2>&5
24766   ac_status=$?
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); }; } &&
24769          { ac_try='test -s conftest.$ac_objext'
24770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771   (eval $ac_try) 2>&5
24772   ac_status=$?
24773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); }; }; then
24775   ac_header_compiler=yes
24776 else
24777   echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 ac_header_compiler=no
24781 fi
24782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24783 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24784 echo "${ECHO_T}$ac_header_compiler" >&6
24785
24786 # Is the header present?
24787 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
24788 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
24789 cat >conftest.$ac_ext <<_ACEOF
24790 /* confdefs.h.  */
24791 _ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h.  */
24795 #include <sys/sysmacros.h>
24796 _ACEOF
24797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24799   ac_status=$?
24800   grep -v '^ *+' conftest.er1 >conftest.err
24801   rm -f conftest.er1
24802   cat conftest.err >&5
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } >/dev/null; then
24805   if test -s conftest.err; then
24806     ac_cpp_err=$ac_c_preproc_warn_flag
24807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24808   else
24809     ac_cpp_err=
24810   fi
24811 else
24812   ac_cpp_err=yes
24813 fi
24814 if test -z "$ac_cpp_err"; then
24815   ac_header_preproc=yes
24816 else
24817   echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820   ac_header_preproc=no
24821 fi
24822 rm -f conftest.err conftest.$ac_ext
24823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24824 echo "${ECHO_T}$ac_header_preproc" >&6
24825
24826 # So?  What about this header?
24827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24828   yes:no: )
24829     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
24830 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24831     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
24832 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
24833     ac_header_preproc=yes
24834     ;;
24835   no:yes:* )
24836     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
24837 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
24838     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
24839 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
24840     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
24841 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
24842     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
24843 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24844     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
24845 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
24846     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
24847 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
24848     (
24849       cat <<\_ASBOX
24850 ## ------------------------------- ##
24851 ## Report this to nfs@lists.sf.net ##
24852 ## ------------------------------- ##
24853 _ASBOX
24854     ) |
24855       sed "s/^/$as_me: WARNING:     /" >&2
24856     ;;
24857 esac
24858 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
24859 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
24860 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
24864 fi
24865 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
24866 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
24867
24868 fi
24869 if test $ac_cv_header_sys_sysmacros_h = yes; then
24870
24871 cat >>confdefs.h <<\_ACEOF
24872 #define MAJOR_IN_SYSMACROS 1
24873 _ACEOF
24874
24875 fi
24876
24877
24878   fi
24879 fi
24880
24881 #AC_FUNC_MALLOC
24882 echo "$as_me:$LINENO: checking for working memcmp" >&5
24883 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
24884 if test "${ac_cv_func_memcmp_working+set}" = set; then
24885   echo $ECHO_N "(cached) $ECHO_C" >&6
24886 else
24887   if test "$cross_compiling" = yes; then
24888   ac_cv_func_memcmp_working=no
24889 else
24890   cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897 int
24898 main ()
24899 {
24900
24901   /* Some versions of memcmp are not 8-bit clean.  */
24902   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
24903   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24904     exit (1);
24905
24906   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24907      or more and with at least one buffer not starting on a 4-byte boundary.
24908      William Lewis provided this test program.   */
24909   {
24910     char foo[21];
24911     char bar[21];
24912     int i;
24913     for (i = 0; i < 4; i++)
24914       {
24915         char *a = foo + i;
24916         char *b = bar + i;
24917         strcpy (a, "--------01111111");
24918         strcpy (b, "--------10000000");
24919         if (memcmp (a, b, 16) >= 0)
24920           exit (1);
24921       }
24922     exit (0);
24923   }
24924
24925   ;
24926   return 0;
24927 }
24928 _ACEOF
24929 rm -f conftest$ac_exeext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24931   (eval $ac_link) 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_cv_func_memcmp_working=yes
24941 else
24942   echo "$as_me: program exited with status $ac_status" >&5
24943 echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24945
24946 ( exit $ac_status )
24947 ac_cv_func_memcmp_working=no
24948 fi
24949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24950 fi
24951 fi
24952 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24953 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
24954 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
24955     "memcmp.$ac_objext"   | \
24956   *" memcmp.$ac_objext"   | \
24957     "memcmp.$ac_objext "* | \
24958   *" memcmp.$ac_objext "* ) ;;
24959   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
24960 esac
24961
24962
24963 #AC_FUNC_REALLOC
24964
24965
24966 for ac_header in sys/select.h sys/socket.h
24967 do
24968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24970   echo "$as_me:$LINENO: checking for $ac_header" >&5
24971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24973   echo $ECHO_N "(cached) $ECHO_C" >&6
24974 fi
24975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24977 else
24978   # Is the header compilable?
24979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24982 /* confdefs.h.  */
24983 _ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h.  */
24987 $ac_includes_default
24988 #include <$ac_header>
24989 _ACEOF
24990 rm -f conftest.$ac_objext
24991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24992   (eval $ac_compile) 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } &&
24999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001   (eval $ac_try) 2>&5
25002   ac_status=$?
25003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004   (exit $ac_status); }; } &&
25005          { ac_try='test -s conftest.$ac_objext'
25006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007   (eval $ac_try) 2>&5
25008   ac_status=$?
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); }; }; then
25011   ac_header_compiler=yes
25012 else
25013   echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25015
25016 ac_header_compiler=no
25017 fi
25018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25019 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25020 echo "${ECHO_T}$ac_header_compiler" >&6
25021
25022 # Is the header present?
25023 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031 #include <$ac_header>
25032 _ACEOF
25033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } >/dev/null; then
25041   if test -s conftest.err; then
25042     ac_cpp_err=$ac_c_preproc_warn_flag
25043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25044   else
25045     ac_cpp_err=
25046   fi
25047 else
25048   ac_cpp_err=yes
25049 fi
25050 if test -z "$ac_cpp_err"; then
25051   ac_header_preproc=yes
25052 else
25053   echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056   ac_header_preproc=no
25057 fi
25058 rm -f conftest.err conftest.$ac_ext
25059 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060 echo "${ECHO_T}$ac_header_preproc" >&6
25061
25062 # So?  What about this header?
25063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25064   yes:no: )
25065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25069     ac_header_preproc=yes
25070     ;;
25071   no:yes:* )
25072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25074     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25075 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25078     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25079 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25084     (
25085       cat <<\_ASBOX
25086 ## ------------------------------- ##
25087 ## Report this to nfs@lists.sf.net ##
25088 ## ------------------------------- ##
25089 _ASBOX
25090     ) |
25091       sed "s/^/$as_me: WARNING:     /" >&2
25092     ;;
25093 esac
25094 echo "$as_me:$LINENO: checking for $ac_header" >&5
25095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25097   echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099   eval "$as_ac_Header=\$ac_header_preproc"
25100 fi
25101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25103
25104 fi
25105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25106   cat >>confdefs.h <<_ACEOF
25107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25108 _ACEOF
25109
25110 fi
25111
25112 done
25113
25114 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25115 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25116 if test "${ac_cv_func_select_args+set}" = set; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 else
25119   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25120  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25121   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25122    cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128 $ac_includes_default
25129 #if HAVE_SYS_SELECT_H
25130 # include <sys/select.h>
25131 #endif
25132 #if HAVE_SYS_SOCKET_H
25133 # include <sys/socket.h>
25134 #endif
25135
25136 int
25137 main ()
25138 {
25139 extern int select ($ac_arg1,
25140                                             $ac_arg234, $ac_arg234, $ac_arg234,
25141                                             $ac_arg5);
25142   ;
25143   return 0;
25144 }
25145 _ACEOF
25146 rm -f conftest.$ac_objext
25147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25148   (eval $ac_compile) 2>conftest.er1
25149   ac_status=$?
25150   grep -v '^ *+' conftest.er1 >conftest.err
25151   rm -f conftest.er1
25152   cat conftest.err >&5
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); } &&
25155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157   (eval $ac_try) 2>&5
25158   ac_status=$?
25159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160   (exit $ac_status); }; } &&
25161          { ac_try='test -s conftest.$ac_objext'
25162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163   (eval $ac_try) 2>&5
25164   ac_status=$?
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); }; }; then
25167   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25168 else
25169   echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172 fi
25173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25174   done
25175  done
25176 done
25177 # Provide a safe default value.
25178 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25179
25180 fi
25181 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25182 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25183 ac_save_IFS=$IFS; IFS=','
25184 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25185 IFS=$ac_save_IFS
25186 shift
25187
25188 cat >>confdefs.h <<_ACEOF
25189 #define SELECT_TYPE_ARG1 $1
25190 _ACEOF
25191
25192
25193 cat >>confdefs.h <<_ACEOF
25194 #define SELECT_TYPE_ARG234 ($2)
25195 _ACEOF
25196
25197
25198 cat >>confdefs.h <<_ACEOF
25199 #define SELECT_TYPE_ARG5 ($3)
25200 _ACEOF
25201
25202 rm -f conftest*
25203
25204 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25205 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25206 if test "${ac_cv_type_signal+set}" = set; then
25207   echo $ECHO_N "(cached) $ECHO_C" >&6
25208 else
25209   cat >conftest.$ac_ext <<_ACEOF
25210 /* confdefs.h.  */
25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h.  */
25215 #include <sys/types.h>
25216 #include <signal.h>
25217 #ifdef signal
25218 # undef signal
25219 #endif
25220 #ifdef __cplusplus
25221 extern "C" void (*signal (int, void (*)(int)))(int);
25222 #else
25223 void (*signal ()) ();
25224 #endif
25225
25226 int
25227 main ()
25228 {
25229 int i;
25230   ;
25231   return 0;
25232 }
25233 _ACEOF
25234 rm -f conftest.$ac_objext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25236   (eval $ac_compile) 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
25240   cat conftest.err >&5
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } &&
25243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25245   (eval $ac_try) 2>&5
25246   ac_status=$?
25247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); }; } &&
25249          { ac_try='test -s conftest.$ac_objext'
25250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251   (eval $ac_try) 2>&5
25252   ac_status=$?
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); }; }; then
25255   ac_cv_type_signal=void
25256 else
25257   echo "$as_me: failed program was:" >&5
25258 sed 's/^/| /' conftest.$ac_ext >&5
25259
25260 ac_cv_type_signal=int
25261 fi
25262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25263 fi
25264 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25265 echo "${ECHO_T}$ac_cv_type_signal" >&6
25266
25267 cat >>confdefs.h <<_ACEOF
25268 #define RETSIGTYPE $ac_cv_type_signal
25269 _ACEOF
25270
25271
25272 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
25273 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
25274 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
25275   echo $ECHO_N "(cached) $ECHO_C" >&6
25276 else
25277   if test "$cross_compiling" = yes; then
25278   ac_cv_func_stat_empty_string_bug=yes
25279 else
25280   cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 $ac_includes_default
25287 int
25288 main ()
25289 {
25290 struct stat sbuf;
25291   exit (stat ("", &sbuf) ? 1 : 0);
25292   ;
25293   return 0;
25294 }
25295 _ACEOF
25296 rm -f conftest$ac_exeext
25297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25298   (eval $ac_link) 2>&5
25299   ac_status=$?
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303   (eval $ac_try) 2>&5
25304   ac_status=$?
25305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); }; }; then
25307   ac_cv_func_stat_empty_string_bug=yes
25308 else
25309   echo "$as_me: program exited with status $ac_status" >&5
25310 echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25312
25313 ( exit $ac_status )
25314 ac_cv_func_stat_empty_string_bug=no
25315 fi
25316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25317 fi
25318 fi
25319 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
25320 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
25321 if test $ac_cv_func_stat_empty_string_bug = yes; then
25322   case $LIBOBJS in
25323     "stat.$ac_objext"   | \
25324   *" stat.$ac_objext"   | \
25325     "stat.$ac_objext "* | \
25326   *" stat.$ac_objext "* ) ;;
25327   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
25328 esac
25329
25330
25331 cat >>confdefs.h <<_ACEOF
25332 #define HAVE_STAT_EMPTY_STRING_BUG 1
25333 _ACEOF
25334
25335 fi
25336
25337
25338 for ac_func in vprintf
25339 do
25340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25341 echo "$as_me:$LINENO: checking for $ac_func" >&5
25342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25343 if eval "test \"\${$as_ac_var+set}\" = set"; then
25344   echo $ECHO_N "(cached) $ECHO_C" >&6
25345 else
25346   cat >conftest.$ac_ext <<_ACEOF
25347 /* confdefs.h.  */
25348 _ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h.  */
25352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25354 #define $ac_func innocuous_$ac_func
25355
25356 /* System header to define __stub macros and hopefully few prototypes,
25357     which can conflict with char $ac_func (); below.
25358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25359     <limits.h> exists even on freestanding compilers.  */
25360
25361 #ifdef __STDC__
25362 # include <limits.h>
25363 #else
25364 # include <assert.h>
25365 #endif
25366
25367 #undef $ac_func
25368
25369 /* Override any gcc2 internal prototype to avoid an error.  */
25370 #ifdef __cplusplus
25371 extern "C"
25372 {
25373 #endif
25374 /* We use char because int might match the return type of a gcc2
25375    builtin and then its argument prototype would still apply.  */
25376 char $ac_func ();
25377 /* The GNU C library defines this for functions which it implements
25378     to always fail with ENOSYS.  Some functions are actually named
25379     something starting with __ and the normal name is an alias.  */
25380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25381 choke me
25382 #else
25383 char (*f) () = $ac_func;
25384 #endif
25385 #ifdef __cplusplus
25386 }
25387 #endif
25388
25389 int
25390 main ()
25391 {
25392 return f != $ac_func;
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 rm -f conftest.$ac_objext conftest$ac_exeext
25398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25399   (eval $ac_link) 2>conftest.er1
25400   ac_status=$?
25401   grep -v '^ *+' conftest.er1 >conftest.err
25402   rm -f conftest.er1
25403   cat conftest.err >&5
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); } &&
25406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408   (eval $ac_try) 2>&5
25409   ac_status=$?
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); }; } &&
25412          { ac_try='test -s conftest$ac_exeext'
25413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414   (eval $ac_try) 2>&5
25415   ac_status=$?
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); }; }; then
25418   eval "$as_ac_var=yes"
25419 else
25420   echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25422
25423 eval "$as_ac_var=no"
25424 fi
25425 rm -f conftest.err conftest.$ac_objext \
25426       conftest$ac_exeext conftest.$ac_ext
25427 fi
25428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25430 if test `eval echo '${'$as_ac_var'}'` = yes; then
25431   cat >>confdefs.h <<_ACEOF
25432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25433 _ACEOF
25434
25435 echo "$as_me:$LINENO: checking for _doprnt" >&5
25436 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25437 if test "${ac_cv_func__doprnt+set}" = set; then
25438   echo $ECHO_N "(cached) $ECHO_C" >&6
25439 else
25440   cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25448 #define _doprnt innocuous__doprnt
25449
25450 /* System header to define __stub macros and hopefully few prototypes,
25451     which can conflict with char _doprnt (); below.
25452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25453     <limits.h> exists even on freestanding compilers.  */
25454
25455 #ifdef __STDC__
25456 # include <limits.h>
25457 #else
25458 # include <assert.h>
25459 #endif
25460
25461 #undef _doprnt
25462
25463 /* Override any gcc2 internal prototype to avoid an error.  */
25464 #ifdef __cplusplus
25465 extern "C"
25466 {
25467 #endif
25468 /* We use char because int might match the return type of a gcc2
25469    builtin and then its argument prototype would still apply.  */
25470 char _doprnt ();
25471 /* The GNU C library defines this for functions which it implements
25472     to always fail with ENOSYS.  Some functions are actually named
25473     something starting with __ and the normal name is an alias.  */
25474 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25475 choke me
25476 #else
25477 char (*f) () = _doprnt;
25478 #endif
25479 #ifdef __cplusplus
25480 }
25481 #endif
25482
25483 int
25484 main ()
25485 {
25486 return f != _doprnt;
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25493   (eval $ac_link) 2>conftest.er1
25494   ac_status=$?
25495   grep -v '^ *+' conftest.er1 >conftest.err
25496   rm -f conftest.er1
25497   cat conftest.err >&5
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); } &&
25500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502   (eval $ac_try) 2>&5
25503   ac_status=$?
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); }; } &&
25506          { ac_try='test -s conftest$ac_exeext'
25507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508   (eval $ac_try) 2>&5
25509   ac_status=$?
25510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511   (exit $ac_status); }; }; then
25512   ac_cv_func__doprnt=yes
25513 else
25514   echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517 ac_cv_func__doprnt=no
25518 fi
25519 rm -f conftest.err conftest.$ac_objext \
25520       conftest$ac_exeext conftest.$ac_ext
25521 fi
25522 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25523 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25524 if test $ac_cv_func__doprnt = yes; then
25525
25526 cat >>confdefs.h <<\_ACEOF
25527 #define HAVE_DOPRNT 1
25528 _ACEOF
25529
25530 fi
25531
25532 fi
25533 done
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
25564                gethostbyaddr gethostbyname gethostname getmntent \
25565                gettimeofday hasmntopt inet_ntoa memset mkdir pathconf \
25566                realpath rmdir select socket strcasecmp strchr strdup \
25567                strerror strrchr strtol strtoul
25568 do
25569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25570 echo "$as_me:$LINENO: checking for $ac_func" >&5
25571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25572 if eval "test \"\${$as_ac_var+set}\" = set"; then
25573   echo $ECHO_N "(cached) $ECHO_C" >&6
25574 else
25575   cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h.  */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h.  */
25581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25583 #define $ac_func innocuous_$ac_func
25584
25585 /* System header to define __stub macros and hopefully few prototypes,
25586     which can conflict with char $ac_func (); below.
25587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25588     <limits.h> exists even on freestanding compilers.  */
25589
25590 #ifdef __STDC__
25591 # include <limits.h>
25592 #else
25593 # include <assert.h>
25594 #endif
25595
25596 #undef $ac_func
25597
25598 /* Override any gcc2 internal prototype to avoid an error.  */
25599 #ifdef __cplusplus
25600 extern "C"
25601 {
25602 #endif
25603 /* We use char because int might match the return type of a gcc2
25604    builtin and then its argument prototype would still apply.  */
25605 char $ac_func ();
25606 /* The GNU C library defines this for functions which it implements
25607     to always fail with ENOSYS.  Some functions are actually named
25608     something starting with __ and the normal name is an alias.  */
25609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25610 choke me
25611 #else
25612 char (*f) () = $ac_func;
25613 #endif
25614 #ifdef __cplusplus
25615 }
25616 #endif
25617
25618 int
25619 main ()
25620 {
25621 return f != $ac_func;
25622   ;
25623   return 0;
25624 }
25625 _ACEOF
25626 rm -f conftest.$ac_objext conftest$ac_exeext
25627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25628   (eval $ac_link) 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } &&
25635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637   (eval $ac_try) 2>&5
25638   ac_status=$?
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); }; } &&
25641          { ac_try='test -s conftest$ac_exeext'
25642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643   (eval $ac_try) 2>&5
25644   ac_status=$?
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); }; }; then
25647   eval "$as_ac_var=yes"
25648 else
25649   echo "$as_me: failed program was:" >&5
25650 sed 's/^/| /' conftest.$ac_ext >&5
25651
25652 eval "$as_ac_var=no"
25653 fi
25654 rm -f conftest.err conftest.$ac_objext \
25655       conftest$ac_exeext conftest.$ac_ext
25656 fi
25657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25659 if test `eval echo '${'$as_ac_var'}'` = yes; then
25660   cat >>confdefs.h <<_ACEOF
25661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25662 _ACEOF
25663
25664 fi
25665 done
25666
25667
25668
25669 echo "$as_me:$LINENO: checking for short" >&5
25670 echo $ECHO_N "checking for short... $ECHO_C" >&6
25671 if test "${ac_cv_type_short+set}" = set; then
25672   echo $ECHO_N "(cached) $ECHO_C" >&6
25673 else
25674   cat >conftest.$ac_ext <<_ACEOF
25675 /* confdefs.h.  */
25676 _ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h.  */
25680 $ac_includes_default
25681 int
25682 main ()
25683 {
25684 if ((short *) 0)
25685   return 0;
25686 if (sizeof (short))
25687   return 0;
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25694   (eval $ac_compile) 2>conftest.er1
25695   ac_status=$?
25696   grep -v '^ *+' conftest.er1 >conftest.err
25697   rm -f conftest.er1
25698   cat conftest.err >&5
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); } &&
25701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703   (eval $ac_try) 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; } &&
25707          { ac_try='test -s conftest.$ac_objext'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; }; then
25713   ac_cv_type_short=yes
25714 else
25715   echo "$as_me: failed program was:" >&5
25716 sed 's/^/| /' conftest.$ac_ext >&5
25717
25718 ac_cv_type_short=no
25719 fi
25720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25721 fi
25722 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25723 echo "${ECHO_T}$ac_cv_type_short" >&6
25724
25725 echo "$as_me:$LINENO: checking size of short" >&5
25726 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25727 if test "${ac_cv_sizeof_short+set}" = set; then
25728   echo $ECHO_N "(cached) $ECHO_C" >&6
25729 else
25730   if test "$ac_cv_type_short" = yes; then
25731   # The cast to unsigned long works around a bug in the HP C Compiler
25732   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25733   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25734   # This bug is HP SR number 8606223364.
25735   if test "$cross_compiling" = yes; then
25736   # Depending upon the size, compute the lo and hi bounds.
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h.  */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h.  */
25743 $ac_includes_default
25744 int
25745 main ()
25746 {
25747 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25748 test_array [0] = 0
25749
25750   ;
25751   return 0;
25752 }
25753 _ACEOF
25754 rm -f conftest.$ac_objext
25755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25756   (eval $ac_compile) 2>conftest.er1
25757   ac_status=$?
25758   grep -v '^ *+' conftest.er1 >conftest.err
25759   rm -f conftest.er1
25760   cat conftest.err >&5
25761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); } &&
25763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765   (eval $ac_try) 2>&5
25766   ac_status=$?
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); }; } &&
25769          { ac_try='test -s conftest.$ac_objext'
25770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771   (eval $ac_try) 2>&5
25772   ac_status=$?
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); }; }; then
25775   ac_lo=0 ac_mid=0
25776   while :; do
25777     cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783 $ac_includes_default
25784 int
25785 main ()
25786 {
25787 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25788 test_array [0] = 0
25789
25790   ;
25791   return 0;
25792 }
25793 _ACEOF
25794 rm -f conftest.$ac_objext
25795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25796   (eval $ac_compile) 2>conftest.er1
25797   ac_status=$?
25798   grep -v '^ *+' conftest.er1 >conftest.err
25799   rm -f conftest.er1
25800   cat conftest.err >&5
25801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); } &&
25803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25805   (eval $ac_try) 2>&5
25806   ac_status=$?
25807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); }; } &&
25809          { ac_try='test -s conftest.$ac_objext'
25810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811   (eval $ac_try) 2>&5
25812   ac_status=$?
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); }; }; then
25815   ac_hi=$ac_mid; break
25816 else
25817   echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820 ac_lo=`expr $ac_mid + 1`
25821                     if test $ac_lo -le $ac_mid; then
25822                       ac_lo= ac_hi=
25823                       break
25824                     fi
25825                     ac_mid=`expr 2 '*' $ac_mid + 1`
25826 fi
25827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25828   done
25829 else
25830   echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833 cat >conftest.$ac_ext <<_ACEOF
25834 /* confdefs.h.  */
25835 _ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h.  */
25839 $ac_includes_default
25840 int
25841 main ()
25842 {
25843 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
25844 test_array [0] = 0
25845
25846   ;
25847   return 0;
25848 }
25849 _ACEOF
25850 rm -f conftest.$ac_objext
25851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25852   (eval $ac_compile) 2>conftest.er1
25853   ac_status=$?
25854   grep -v '^ *+' conftest.er1 >conftest.err
25855   rm -f conftest.er1
25856   cat conftest.err >&5
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); } &&
25859          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861   (eval $ac_try) 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; } &&
25865          { ac_try='test -s conftest.$ac_objext'
25866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867   (eval $ac_try) 2>&5
25868   ac_status=$?
25869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870   (exit $ac_status); }; }; then
25871   ac_hi=-1 ac_mid=-1
25872   while :; do
25873     cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879 $ac_includes_default
25880 int
25881 main ()
25882 {
25883 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25884 test_array [0] = 0
25885
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext
25891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25892   (eval $ac_compile) 2>conftest.er1
25893   ac_status=$?
25894   grep -v '^ *+' conftest.er1 >conftest.err
25895   rm -f conftest.er1
25896   cat conftest.err >&5
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); } &&
25899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901   (eval $ac_try) 2>&5
25902   ac_status=$?
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); }; } &&
25905          { ac_try='test -s conftest.$ac_objext'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; }; then
25911   ac_lo=$ac_mid; break
25912 else
25913   echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25915
25916 ac_hi=`expr '(' $ac_mid ')' - 1`
25917                        if test $ac_mid -le $ac_hi; then
25918                          ac_lo= ac_hi=
25919                          break
25920                        fi
25921                        ac_mid=`expr 2 '*' $ac_mid`
25922 fi
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25924   done
25925 else
25926   echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25928
25929 ac_lo= ac_hi=
25930 fi
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932 fi
25933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25934 # Binary search between lo and hi bounds.
25935 while test "x$ac_lo" != "x$ac_hi"; do
25936   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25937   cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h.  */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h.  */
25943 $ac_includes_default
25944 int
25945 main ()
25946 {
25947 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25948 test_array [0] = 0
25949
25950   ;
25951   return 0;
25952 }
25953 _ACEOF
25954 rm -f conftest.$ac_objext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25956   (eval $ac_compile) 2>conftest.er1
25957   ac_status=$?
25958   grep -v '^ *+' conftest.er1 >conftest.err
25959   rm -f conftest.er1
25960   cat conftest.err >&5
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } &&
25963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; } &&
25969          { ac_try='test -s conftest.$ac_objext'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; }; then
25975   ac_hi=$ac_mid
25976 else
25977   echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25979
25980 ac_lo=`expr '(' $ac_mid ')' + 1`
25981 fi
25982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25983 done
25984 case $ac_lo in
25985 ?*) ac_cv_sizeof_short=$ac_lo;;
25986 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25987 See \`config.log' for more details." >&5
25988 echo "$as_me: error: cannot compute sizeof (short), 77
25989 See \`config.log' for more details." >&2;}
25990    { (exit 1); exit 1; }; } ;;
25991 esac
25992 else
25993   if test "$cross_compiling" = yes; then
25994   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25995 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25996    { (exit 1); exit 1; }; }
25997 else
25998   cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 $ac_includes_default
26005 long longval () { return (long) (sizeof (short)); }
26006 unsigned long ulongval () { return (long) (sizeof (short)); }
26007 #include <stdio.h>
26008 #include <stdlib.h>
26009 int
26010 main ()
26011 {
26012
26013   FILE *f = fopen ("conftest.val", "w");
26014   if (! f)
26015     exit (1);
26016   if (((long) (sizeof (short))) < 0)
26017     {
26018       long i = longval ();
26019       if (i != ((long) (sizeof (short))))
26020         exit (1);
26021       fprintf (f, "%ld\n", i);
26022     }
26023   else
26024     {
26025       unsigned long i = ulongval ();
26026       if (i != ((long) (sizeof (short))))
26027         exit (1);
26028       fprintf (f, "%lu\n", i);
26029     }
26030   exit (ferror (f) || fclose (f) != 0);
26031
26032   ;
26033   return 0;
26034 }
26035 _ACEOF
26036 rm -f conftest$ac_exeext
26037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26038   (eval $ac_link) 2>&5
26039   ac_status=$?
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043   (eval $ac_try) 2>&5
26044   ac_status=$?
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); }; }; then
26047   ac_cv_sizeof_short=`cat conftest.val`
26048 else
26049   echo "$as_me: program exited with status $ac_status" >&5
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ( exit $ac_status )
26054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
26055 See \`config.log' for more details." >&5
26056 echo "$as_me: error: cannot compute sizeof (short), 77
26057 See \`config.log' for more details." >&2;}
26058    { (exit 1); exit 1; }; }
26059 fi
26060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26061 fi
26062 fi
26063 rm -f conftest.val
26064 else
26065   ac_cv_sizeof_short=0
26066 fi
26067 fi
26068 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26069 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
26070 cat >>confdefs.h <<_ACEOF
26071 #define SIZEOF_SHORT $ac_cv_sizeof_short
26072 _ACEOF
26073
26074
26075 echo "$as_me:$LINENO: checking for int" >&5
26076 echo $ECHO_N "checking for int... $ECHO_C" >&6
26077 if test "${ac_cv_type_int+set}" = set; then
26078   echo $ECHO_N "(cached) $ECHO_C" >&6
26079 else
26080   cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086 $ac_includes_default
26087 int
26088 main ()
26089 {
26090 if ((int *) 0)
26091   return 0;
26092 if (sizeof (int))
26093   return 0;
26094   ;
26095   return 0;
26096 }
26097 _ACEOF
26098 rm -f conftest.$ac_objext
26099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26100   (eval $ac_compile) 2>conftest.er1
26101   ac_status=$?
26102   grep -v '^ *+' conftest.er1 >conftest.err
26103   rm -f conftest.er1
26104   cat conftest.err >&5
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); } &&
26107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; } &&
26113          { ac_try='test -s conftest.$ac_objext'
26114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115   (eval $ac_try) 2>&5
26116   ac_status=$?
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); }; }; then
26119   ac_cv_type_int=yes
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124 ac_cv_type_int=no
26125 fi
26126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26127 fi
26128 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26129 echo "${ECHO_T}$ac_cv_type_int" >&6
26130
26131 echo "$as_me:$LINENO: checking size of int" >&5
26132 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26133 if test "${ac_cv_sizeof_int+set}" = set; then
26134   echo $ECHO_N "(cached) $ECHO_C" >&6
26135 else
26136   if test "$ac_cv_type_int" = yes; then
26137   # The cast to unsigned long works around a bug in the HP C Compiler
26138   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26139   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26140   # This bug is HP SR number 8606223364.
26141   if test "$cross_compiling" = yes; then
26142   # Depending upon the size, compute the lo and hi bounds.
26143 cat >conftest.$ac_ext <<_ACEOF
26144 /* confdefs.h.  */
26145 _ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h.  */
26149 $ac_includes_default
26150 int
26151 main ()
26152 {
26153 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26154 test_array [0] = 0
26155
26156   ;
26157   return 0;
26158 }
26159 _ACEOF
26160 rm -f conftest.$ac_objext
26161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26162   (eval $ac_compile) 2>conftest.er1
26163   ac_status=$?
26164   grep -v '^ *+' conftest.er1 >conftest.err
26165   rm -f conftest.er1
26166   cat conftest.err >&5
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } &&
26169          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171   (eval $ac_try) 2>&5
26172   ac_status=$?
26173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174   (exit $ac_status); }; } &&
26175          { ac_try='test -s conftest.$ac_objext'
26176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177   (eval $ac_try) 2>&5
26178   ac_status=$?
26179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180   (exit $ac_status); }; }; then
26181   ac_lo=0 ac_mid=0
26182   while :; do
26183     cat >conftest.$ac_ext <<_ACEOF
26184 /* confdefs.h.  */
26185 _ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h.  */
26189 $ac_includes_default
26190 int
26191 main ()
26192 {
26193 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26194 test_array [0] = 0
26195
26196   ;
26197   return 0;
26198 }
26199 _ACEOF
26200 rm -f conftest.$ac_objext
26201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26202   (eval $ac_compile) 2>conftest.er1
26203   ac_status=$?
26204   grep -v '^ *+' conftest.er1 >conftest.err
26205   rm -f conftest.er1
26206   cat conftest.err >&5
26207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208   (exit $ac_status); } &&
26209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26211   (eval $ac_try) 2>&5
26212   ac_status=$?
26213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214   (exit $ac_status); }; } &&
26215          { ac_try='test -s conftest.$ac_objext'
26216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217   (eval $ac_try) 2>&5
26218   ac_status=$?
26219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220   (exit $ac_status); }; }; then
26221   ac_hi=$ac_mid; break
26222 else
26223   echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26225
26226 ac_lo=`expr $ac_mid + 1`
26227                     if test $ac_lo -le $ac_mid; then
26228                       ac_lo= ac_hi=
26229                       break
26230                     fi
26231                     ac_mid=`expr 2 '*' $ac_mid + 1`
26232 fi
26233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26234   done
26235 else
26236   echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26238
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245 $ac_includes_default
26246 int
26247 main ()
26248 {
26249 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26250 test_array [0] = 0
26251
26252   ;
26253   return 0;
26254 }
26255 _ACEOF
26256 rm -f conftest.$ac_objext
26257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26258   (eval $ac_compile) 2>conftest.er1
26259   ac_status=$?
26260   grep -v '^ *+' conftest.er1 >conftest.err
26261   rm -f conftest.er1
26262   cat conftest.err >&5
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); } &&
26265          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267   (eval $ac_try) 2>&5
26268   ac_status=$?
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); }; } &&
26271          { ac_try='test -s conftest.$ac_objext'
26272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26273   (eval $ac_try) 2>&5
26274   ac_status=$?
26275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276   (exit $ac_status); }; }; then
26277   ac_hi=-1 ac_mid=-1
26278   while :; do
26279     cat >conftest.$ac_ext <<_ACEOF
26280 /* confdefs.h.  */
26281 _ACEOF
26282 cat confdefs.h >>conftest.$ac_ext
26283 cat >>conftest.$ac_ext <<_ACEOF
26284 /* end confdefs.h.  */
26285 $ac_includes_default
26286 int
26287 main ()
26288 {
26289 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26290 test_array [0] = 0
26291
26292   ;
26293   return 0;
26294 }
26295 _ACEOF
26296 rm -f conftest.$ac_objext
26297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26298   (eval $ac_compile) 2>conftest.er1
26299   ac_status=$?
26300   grep -v '^ *+' conftest.er1 >conftest.err
26301   rm -f conftest.er1
26302   cat conftest.err >&5
26303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304   (exit $ac_status); } &&
26305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307   (eval $ac_try) 2>&5
26308   ac_status=$?
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); }; } &&
26311          { ac_try='test -s conftest.$ac_objext'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; }; then
26317   ac_lo=$ac_mid; break
26318 else
26319   echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322 ac_hi=`expr '(' $ac_mid ')' - 1`
26323                        if test $ac_mid -le $ac_hi; then
26324                          ac_lo= ac_hi=
26325                          break
26326                        fi
26327                        ac_mid=`expr 2 '*' $ac_mid`
26328 fi
26329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26330   done
26331 else
26332   echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26334
26335 ac_lo= ac_hi=
26336 fi
26337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26338 fi
26339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26340 # Binary search between lo and hi bounds.
26341 while test "x$ac_lo" != "x$ac_hi"; do
26342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26343   cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349 $ac_includes_default
26350 int
26351 main ()
26352 {
26353 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26354 test_array [0] = 0
26355
26356   ;
26357   return 0;
26358 }
26359 _ACEOF
26360 rm -f conftest.$ac_objext
26361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26362   (eval $ac_compile) 2>conftest.er1
26363   ac_status=$?
26364   grep -v '^ *+' conftest.er1 >conftest.err
26365   rm -f conftest.er1
26366   cat conftest.err >&5
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); } &&
26369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371   (eval $ac_try) 2>&5
26372   ac_status=$?
26373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); }; } &&
26375          { ac_try='test -s conftest.$ac_objext'
26376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377   (eval $ac_try) 2>&5
26378   ac_status=$?
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); }; }; then
26381   ac_hi=$ac_mid
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386 ac_lo=`expr '(' $ac_mid ')' + 1`
26387 fi
26388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26389 done
26390 case $ac_lo in
26391 ?*) ac_cv_sizeof_int=$ac_lo;;
26392 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26393 See \`config.log' for more details." >&5
26394 echo "$as_me: error: cannot compute sizeof (int), 77
26395 See \`config.log' for more details." >&2;}
26396    { (exit 1); exit 1; }; } ;;
26397 esac
26398 else
26399   if test "$cross_compiling" = yes; then
26400   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26401 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26402    { (exit 1); exit 1; }; }
26403 else
26404   cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h.  */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h.  */
26410 $ac_includes_default
26411 long longval () { return (long) (sizeof (int)); }
26412 unsigned long ulongval () { return (long) (sizeof (int)); }
26413 #include <stdio.h>
26414 #include <stdlib.h>
26415 int
26416 main ()
26417 {
26418
26419   FILE *f = fopen ("conftest.val", "w");
26420   if (! f)
26421     exit (1);
26422   if (((long) (sizeof (int))) < 0)
26423     {
26424       long i = longval ();
26425       if (i != ((long) (sizeof (int))))
26426         exit (1);
26427       fprintf (f, "%ld\n", i);
26428     }
26429   else
26430     {
26431       unsigned long i = ulongval ();
26432       if (i != ((long) (sizeof (int))))
26433         exit (1);
26434       fprintf (f, "%lu\n", i);
26435     }
26436   exit (ferror (f) || fclose (f) != 0);
26437
26438   ;
26439   return 0;
26440 }
26441 _ACEOF
26442 rm -f conftest$ac_exeext
26443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26444   (eval $ac_link) 2>&5
26445   ac_status=$?
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449   (eval $ac_try) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; }; then
26453   ac_cv_sizeof_int=`cat conftest.val`
26454 else
26455   echo "$as_me: program exited with status $ac_status" >&5
26456 echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459 ( exit $ac_status )
26460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26461 See \`config.log' for more details." >&5
26462 echo "$as_me: error: cannot compute sizeof (int), 77
26463 See \`config.log' for more details." >&2;}
26464    { (exit 1); exit 1; }; }
26465 fi
26466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26467 fi
26468 fi
26469 rm -f conftest.val
26470 else
26471   ac_cv_sizeof_int=0
26472 fi
26473 fi
26474 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26475 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
26476 cat >>confdefs.h <<_ACEOF
26477 #define SIZEOF_INT $ac_cv_sizeof_int
26478 _ACEOF
26479
26480
26481 echo "$as_me:$LINENO: checking for long" >&5
26482 echo $ECHO_N "checking for long... $ECHO_C" >&6
26483 if test "${ac_cv_type_long+set}" = set; then
26484   echo $ECHO_N "(cached) $ECHO_C" >&6
26485 else
26486   cat >conftest.$ac_ext <<_ACEOF
26487 /* confdefs.h.  */
26488 _ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h.  */
26492 $ac_includes_default
26493 int
26494 main ()
26495 {
26496 if ((long *) 0)
26497   return 0;
26498 if (sizeof (long))
26499   return 0;
26500   ;
26501   return 0;
26502 }
26503 _ACEOF
26504 rm -f conftest.$ac_objext
26505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26506   (eval $ac_compile) 2>conftest.er1
26507   ac_status=$?
26508   grep -v '^ *+' conftest.er1 >conftest.err
26509   rm -f conftest.er1
26510   cat conftest.err >&5
26511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512   (exit $ac_status); } &&
26513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515   (eval $ac_try) 2>&5
26516   ac_status=$?
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); }; } &&
26519          { ac_try='test -s conftest.$ac_objext'
26520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26521   (eval $ac_try) 2>&5
26522   ac_status=$?
26523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524   (exit $ac_status); }; }; then
26525   ac_cv_type_long=yes
26526 else
26527   echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26529
26530 ac_cv_type_long=no
26531 fi
26532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26533 fi
26534 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26535 echo "${ECHO_T}$ac_cv_type_long" >&6
26536
26537 echo "$as_me:$LINENO: checking size of long" >&5
26538 echo $ECHO_N "checking size of long... $ECHO_C" >&6
26539 if test "${ac_cv_sizeof_long+set}" = set; then
26540   echo $ECHO_N "(cached) $ECHO_C" >&6
26541 else
26542   if test "$ac_cv_type_long" = yes; then
26543   # The cast to unsigned long works around a bug in the HP C Compiler
26544   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26545   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26546   # This bug is HP SR number 8606223364.
26547   if test "$cross_compiling" = yes; then
26548   # Depending upon the size, compute the lo and hi bounds.
26549 cat >conftest.$ac_ext <<_ACEOF
26550 /* confdefs.h.  */
26551 _ACEOF
26552 cat confdefs.h >>conftest.$ac_ext
26553 cat >>conftest.$ac_ext <<_ACEOF
26554 /* end confdefs.h.  */
26555 $ac_includes_default
26556 int
26557 main ()
26558 {
26559 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26560 test_array [0] = 0
26561
26562   ;
26563   return 0;
26564 }
26565 _ACEOF
26566 rm -f conftest.$ac_objext
26567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26568   (eval $ac_compile) 2>conftest.er1
26569   ac_status=$?
26570   grep -v '^ *+' conftest.er1 >conftest.err
26571   rm -f conftest.er1
26572   cat conftest.err >&5
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); } &&
26575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577   (eval $ac_try) 2>&5
26578   ac_status=$?
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); }; } &&
26581          { ac_try='test -s conftest.$ac_objext'
26582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583   (eval $ac_try) 2>&5
26584   ac_status=$?
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); }; }; then
26587   ac_lo=0 ac_mid=0
26588   while :; do
26589     cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h.  */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h.  */
26595 $ac_includes_default
26596 int
26597 main ()
26598 {
26599 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26600 test_array [0] = 0
26601
26602   ;
26603   return 0;
26604 }
26605 _ACEOF
26606 rm -f conftest.$ac_objext
26607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26608   (eval $ac_compile) 2>conftest.er1
26609   ac_status=$?
26610   grep -v '^ *+' conftest.er1 >conftest.err
26611   rm -f conftest.er1
26612   cat conftest.err >&5
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } &&
26615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617   (eval $ac_try) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; } &&
26621          { ac_try='test -s conftest.$ac_objext'
26622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623   (eval $ac_try) 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); }; }; then
26627   ac_hi=$ac_mid; break
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 ac_lo=`expr $ac_mid + 1`
26633                     if test $ac_lo -le $ac_mid; then
26634                       ac_lo= ac_hi=
26635                       break
26636                     fi
26637                     ac_mid=`expr 2 '*' $ac_mid + 1`
26638 fi
26639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26640   done
26641 else
26642   echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26644
26645 cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h.  */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h.  */
26651 $ac_includes_default
26652 int
26653 main ()
26654 {
26655 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26656 test_array [0] = 0
26657
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext
26663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26664   (eval $ac_compile) 2>conftest.er1
26665   ac_status=$?
26666   grep -v '^ *+' conftest.er1 >conftest.err
26667   rm -f conftest.er1
26668   cat conftest.err >&5
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } &&
26671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26673   (eval $ac_try) 2>&5
26674   ac_status=$?
26675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); }; } &&
26677          { ac_try='test -s conftest.$ac_objext'
26678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679   (eval $ac_try) 2>&5
26680   ac_status=$?
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); }; }; then
26683   ac_hi=-1 ac_mid=-1
26684   while :; do
26685     cat >conftest.$ac_ext <<_ACEOF
26686 /* confdefs.h.  */
26687 _ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h.  */
26691 $ac_includes_default
26692 int
26693 main ()
26694 {
26695 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26696 test_array [0] = 0
26697
26698   ;
26699   return 0;
26700 }
26701 _ACEOF
26702 rm -f conftest.$ac_objext
26703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26704   (eval $ac_compile) 2>conftest.er1
26705   ac_status=$?
26706   grep -v '^ *+' conftest.er1 >conftest.err
26707   rm -f conftest.er1
26708   cat conftest.err >&5
26709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710   (exit $ac_status); } &&
26711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713   (eval $ac_try) 2>&5
26714   ac_status=$?
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); }; } &&
26717          { ac_try='test -s conftest.$ac_objext'
26718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719   (eval $ac_try) 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; }; then
26723   ac_lo=$ac_mid; break
26724 else
26725   echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728 ac_hi=`expr '(' $ac_mid ')' - 1`
26729                        if test $ac_mid -le $ac_hi; then
26730                          ac_lo= ac_hi=
26731                          break
26732                        fi
26733                        ac_mid=`expr 2 '*' $ac_mid`
26734 fi
26735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26736   done
26737 else
26738   echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26740
26741 ac_lo= ac_hi=
26742 fi
26743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26744 fi
26745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26746 # Binary search between lo and hi bounds.
26747 while test "x$ac_lo" != "x$ac_hi"; do
26748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26749   cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h.  */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h.  */
26755 $ac_includes_default
26756 int
26757 main ()
26758 {
26759 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26760 test_array [0] = 0
26761
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext
26767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768   (eval $ac_compile) 2>conftest.er1
26769   ac_status=$?
26770   grep -v '^ *+' conftest.er1 >conftest.err
26771   rm -f conftest.er1
26772   cat conftest.err >&5
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); } &&
26775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; } &&
26781          { ac_try='test -s conftest.$ac_objext'
26782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783   (eval $ac_try) 2>&5
26784   ac_status=$?
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); }; }; then
26787   ac_hi=$ac_mid
26788 else
26789   echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 ac_lo=`expr '(' $ac_mid ')' + 1`
26793 fi
26794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26795 done
26796 case $ac_lo in
26797 ?*) ac_cv_sizeof_long=$ac_lo;;
26798 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26799 See \`config.log' for more details." >&5
26800 echo "$as_me: error: cannot compute sizeof (long), 77
26801 See \`config.log' for more details." >&2;}
26802    { (exit 1); exit 1; }; } ;;
26803 esac
26804 else
26805   if test "$cross_compiling" = yes; then
26806   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26807 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26808    { (exit 1); exit 1; }; }
26809 else
26810   cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 $ac_includes_default
26817 long longval () { return (long) (sizeof (long)); }
26818 unsigned long ulongval () { return (long) (sizeof (long)); }
26819 #include <stdio.h>
26820 #include <stdlib.h>
26821 int
26822 main ()
26823 {
26824
26825   FILE *f = fopen ("conftest.val", "w");
26826   if (! f)
26827     exit (1);
26828   if (((long) (sizeof (long))) < 0)
26829     {
26830       long i = longval ();
26831       if (i != ((long) (sizeof (long))))
26832         exit (1);
26833       fprintf (f, "%ld\n", i);
26834     }
26835   else
26836     {
26837       unsigned long i = ulongval ();
26838       if (i != ((long) (sizeof (long))))
26839         exit (1);
26840       fprintf (f, "%lu\n", i);
26841     }
26842   exit (ferror (f) || fclose (f) != 0);
26843
26844   ;
26845   return 0;
26846 }
26847 _ACEOF
26848 rm -f conftest$ac_exeext
26849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26850   (eval $ac_link) 2>&5
26851   ac_status=$?
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855   (eval $ac_try) 2>&5
26856   ac_status=$?
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); }; }; then
26859   ac_cv_sizeof_long=`cat conftest.val`
26860 else
26861   echo "$as_me: program exited with status $ac_status" >&5
26862 echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26864
26865 ( exit $ac_status )
26866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26867 See \`config.log' for more details." >&5
26868 echo "$as_me: error: cannot compute sizeof (long), 77
26869 See \`config.log' for more details." >&2;}
26870    { (exit 1); exit 1; }; }
26871 fi
26872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26873 fi
26874 fi
26875 rm -f conftest.val
26876 else
26877   ac_cv_sizeof_long=0
26878 fi
26879 fi
26880 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26881 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26882 cat >>confdefs.h <<_ACEOF
26883 #define SIZEOF_LONG $ac_cv_sizeof_long
26884 _ACEOF
26885
26886
26887 echo "$as_me:$LINENO: checking for size_t" >&5
26888 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26889 if test "${ac_cv_type_size_t+set}" = set; then
26890   echo $ECHO_N "(cached) $ECHO_C" >&6
26891 else
26892   cat >conftest.$ac_ext <<_ACEOF
26893 /* confdefs.h.  */
26894 _ACEOF
26895 cat confdefs.h >>conftest.$ac_ext
26896 cat >>conftest.$ac_ext <<_ACEOF
26897 /* end confdefs.h.  */
26898 $ac_includes_default
26899 int
26900 main ()
26901 {
26902 if ((size_t *) 0)
26903   return 0;
26904 if (sizeof (size_t))
26905   return 0;
26906   ;
26907   return 0;
26908 }
26909 _ACEOF
26910 rm -f conftest.$ac_objext
26911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26912   (eval $ac_compile) 2>conftest.er1
26913   ac_status=$?
26914   grep -v '^ *+' conftest.er1 >conftest.err
26915   rm -f conftest.er1
26916   cat conftest.err >&5
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); } &&
26919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; } &&
26925          { ac_try='test -s conftest.$ac_objext'
26926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927   (eval $ac_try) 2>&5
26928   ac_status=$?
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); }; }; then
26931   ac_cv_type_size_t=yes
26932 else
26933   echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936 ac_cv_type_size_t=no
26937 fi
26938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26939 fi
26940 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26941 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26942
26943 echo "$as_me:$LINENO: checking size of size_t" >&5
26944 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26945 if test "${ac_cv_sizeof_size_t+set}" = set; then
26946   echo $ECHO_N "(cached) $ECHO_C" >&6
26947 else
26948   if test "$ac_cv_type_size_t" = yes; then
26949   # The cast to unsigned long works around a bug in the HP C Compiler
26950   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26951   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26952   # This bug is HP SR number 8606223364.
26953   if test "$cross_compiling" = yes; then
26954   # Depending upon the size, compute the lo and hi bounds.
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 $ac_includes_default
26962 int
26963 main ()
26964 {
26965 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26966 test_array [0] = 0
26967
26968   ;
26969   return 0;
26970 }
26971 _ACEOF
26972 rm -f conftest.$ac_objext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26974   (eval $ac_compile) 2>conftest.er1
26975   ac_status=$?
26976   grep -v '^ *+' conftest.er1 >conftest.err
26977   rm -f conftest.er1
26978   cat conftest.err >&5
26979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980   (exit $ac_status); } &&
26981          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983   (eval $ac_try) 2>&5
26984   ac_status=$?
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); }; } &&
26987          { ac_try='test -s conftest.$ac_objext'
26988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989   (eval $ac_try) 2>&5
26990   ac_status=$?
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); }; }; then
26993   ac_lo=0 ac_mid=0
26994   while :; do
26995     cat >conftest.$ac_ext <<_ACEOF
26996 /* confdefs.h.  */
26997 _ACEOF
26998 cat confdefs.h >>conftest.$ac_ext
26999 cat >>conftest.$ac_ext <<_ACEOF
27000 /* end confdefs.h.  */
27001 $ac_includes_default
27002 int
27003 main ()
27004 {
27005 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27006 test_array [0] = 0
27007
27008   ;
27009   return 0;
27010 }
27011 _ACEOF
27012 rm -f conftest.$ac_objext
27013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27014   (eval $ac_compile) 2>conftest.er1
27015   ac_status=$?
27016   grep -v '^ *+' conftest.er1 >conftest.err
27017   rm -f conftest.er1
27018   cat conftest.err >&5
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); } &&
27021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; } &&
27027          { ac_try='test -s conftest.$ac_objext'
27028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029   (eval $ac_try) 2>&5
27030   ac_status=$?
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); }; }; then
27033   ac_hi=$ac_mid; break
27034 else
27035   echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038 ac_lo=`expr $ac_mid + 1`
27039                     if test $ac_lo -le $ac_mid; then
27040                       ac_lo= ac_hi=
27041                       break
27042                     fi
27043                     ac_mid=`expr 2 '*' $ac_mid + 1`
27044 fi
27045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27046   done
27047 else
27048   echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27050
27051 cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h.  */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h.  */
27057 $ac_includes_default
27058 int
27059 main ()
27060 {
27061 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27062 test_array [0] = 0
27063
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext
27069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27070   (eval $ac_compile) 2>conftest.er1
27071   ac_status=$?
27072   grep -v '^ *+' conftest.er1 >conftest.err
27073   rm -f conftest.er1
27074   cat conftest.err >&5
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); } &&
27077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079   (eval $ac_try) 2>&5
27080   ac_status=$?
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); }; } &&
27083          { ac_try='test -s conftest.$ac_objext'
27084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085   (eval $ac_try) 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; }; then
27089   ac_hi=-1 ac_mid=-1
27090   while :; do
27091     cat >conftest.$ac_ext <<_ACEOF
27092 /* confdefs.h.  */
27093 _ACEOF
27094 cat confdefs.h >>conftest.$ac_ext
27095 cat >>conftest.$ac_ext <<_ACEOF
27096 /* end confdefs.h.  */
27097 $ac_includes_default
27098 int
27099 main ()
27100 {
27101 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27102 test_array [0] = 0
27103
27104   ;
27105   return 0;
27106 }
27107 _ACEOF
27108 rm -f conftest.$ac_objext
27109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27110   (eval $ac_compile) 2>conftest.er1
27111   ac_status=$?
27112   grep -v '^ *+' conftest.er1 >conftest.err
27113   rm -f conftest.er1
27114   cat conftest.err >&5
27115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116   (exit $ac_status); } &&
27117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119   (eval $ac_try) 2>&5
27120   ac_status=$?
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); }; } &&
27123          { ac_try='test -s conftest.$ac_objext'
27124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125   (eval $ac_try) 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); }; }; then
27129   ac_lo=$ac_mid; break
27130 else
27131   echo "$as_me: failed program was:" >&5
27132 sed 's/^/| /' conftest.$ac_ext >&5
27133
27134 ac_hi=`expr '(' $ac_mid ')' - 1`
27135                        if test $ac_mid -le $ac_hi; then
27136                          ac_lo= ac_hi=
27137                          break
27138                        fi
27139                        ac_mid=`expr 2 '*' $ac_mid`
27140 fi
27141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27142   done
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147 ac_lo= ac_hi=
27148 fi
27149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27150 fi
27151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27152 # Binary search between lo and hi bounds.
27153 while test "x$ac_lo" != "x$ac_hi"; do
27154   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27155   cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161 $ac_includes_default
27162 int
27163 main ()
27164 {
27165 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27166 test_array [0] = 0
27167
27168   ;
27169   return 0;
27170 }
27171 _ACEOF
27172 rm -f conftest.$ac_objext
27173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27174   (eval $ac_compile) 2>conftest.er1
27175   ac_status=$?
27176   grep -v '^ *+' conftest.er1 >conftest.err
27177   rm -f conftest.er1
27178   cat conftest.err >&5
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); } &&
27181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183   (eval $ac_try) 2>&5
27184   ac_status=$?
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; } &&
27187          { ac_try='test -s conftest.$ac_objext'
27188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189   (eval $ac_try) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; }; then
27193   ac_hi=$ac_mid
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 ac_lo=`expr '(' $ac_mid ')' + 1`
27199 fi
27200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201 done
27202 case $ac_lo in
27203 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27205 See \`config.log' for more details." >&5
27206 echo "$as_me: error: cannot compute sizeof (size_t), 77
27207 See \`config.log' for more details." >&2;}
27208    { (exit 1); exit 1; }; } ;;
27209 esac
27210 else
27211   if test "$cross_compiling" = yes; then
27212   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27213 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27214    { (exit 1); exit 1; }; }
27215 else
27216   cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 $ac_includes_default
27223 long longval () { return (long) (sizeof (size_t)); }
27224 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27225 #include <stdio.h>
27226 #include <stdlib.h>
27227 int
27228 main ()
27229 {
27230
27231   FILE *f = fopen ("conftest.val", "w");
27232   if (! f)
27233     exit (1);
27234   if (((long) (sizeof (size_t))) < 0)
27235     {
27236       long i = longval ();
27237       if (i != ((long) (sizeof (size_t))))
27238         exit (1);
27239       fprintf (f, "%ld\n", i);
27240     }
27241   else
27242     {
27243       unsigned long i = ulongval ();
27244       if (i != ((long) (sizeof (size_t))))
27245         exit (1);
27246       fprintf (f, "%lu\n", i);
27247     }
27248   exit (ferror (f) || fclose (f) != 0);
27249
27250   ;
27251   return 0;
27252 }
27253 _ACEOF
27254 rm -f conftest$ac_exeext
27255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27256   (eval $ac_link) 2>&5
27257   ac_status=$?
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261   (eval $ac_try) 2>&5
27262   ac_status=$?
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); }; }; then
27265   ac_cv_sizeof_size_t=`cat conftest.val`
27266 else
27267   echo "$as_me: program exited with status $ac_status" >&5
27268 echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271 ( exit $ac_status )
27272 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27273 See \`config.log' for more details." >&5
27274 echo "$as_me: error: cannot compute sizeof (size_t), 77
27275 See \`config.log' for more details." >&2;}
27276    { (exit 1); exit 1; }; }
27277 fi
27278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27279 fi
27280 fi
27281 rm -f conftest.val
27282 else
27283   ac_cv_sizeof_size_t=0
27284 fi
27285 fi
27286 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27287 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27288 cat >>confdefs.h <<_ACEOF
27289 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27290 _ACEOF
27291
27292
27293
27294
27295 cat >>confdefs.h <<_ACEOF
27296 #define NFS_STATEDIR "$statedir"
27297 _ACEOF
27298
27299
27300 if test "x$cross_compiling" = "xno"; then
27301         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
27302         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
27303         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
27304         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
27305 else
27306         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
27307         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
27308         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
27309         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
27310 fi
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322 case $host in
27323   alpha*)
27324     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
27325   *)
27326     ARCHFLAGS="" ;;
27327 esac
27328
27329 my_am_cflags="-Wall $ARCHFLAGS -pipe"
27330
27331 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
27332
27333 AM_CFLAGS="$my_am_cflags"
27334
27335
27336 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
27337 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
27338
27339
27340                                                                                                                                                                                                                                                                                                             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"
27341
27342 cat >confcache <<\_ACEOF
27343 # This file is a shell script that caches the results of configure
27344 # tests run on this system so they can be shared between configure
27345 # scripts and configure runs, see configure's option --config-cache.
27346 # It is not useful on other systems.  If it contains results you don't
27347 # want to keep, you may remove or edit it.
27348 #
27349 # config.status only pays attention to the cache file if you give it
27350 # the --recheck option to rerun configure.
27351 #
27352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27354 # following values.
27355
27356 _ACEOF
27357
27358 # The following way of writing the cache mishandles newlines in values,
27359 # but we know of no workaround that is simple, portable, and efficient.
27360 # So, don't put newlines in cache variables' values.
27361 # Ultrix sh set writes to stderr and can't be redirected directly,
27362 # and sets the high bit in the cache file unless we assign to the vars.
27363 {
27364   (set) 2>&1 |
27365     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27366     *ac_space=\ *)
27367       # `set' does not quote correctly, so add quotes (double-quote
27368       # substitution turns \\\\ into \\, and sed turns \\ into \).
27369       sed -n \
27370         "s/'/'\\\\''/g;
27371           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27372       ;;
27373     *)
27374       # `set' quotes correctly as required by POSIX, so do not add quotes.
27375       sed -n \
27376         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27377       ;;
27378     esac;
27379 } |
27380   sed '
27381      t clear
27382      : clear
27383      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27384      t end
27385      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27386      : end' >>confcache
27387 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27388   if test -w $cache_file; then
27389     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27390     cat confcache >$cache_file
27391   else
27392     echo "not updating unwritable cache $cache_file"
27393   fi
27394 fi
27395 rm -f confcache
27396
27397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27398 # Let make expand exec_prefix.
27399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27400
27401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27403 # trailing colons and then remove the whole line if VPATH becomes empty
27404 # (actually we leave an empty line to preserve line numbers).
27405 if test "x$srcdir" = x.; then
27406   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27407 s/:*\$(srcdir):*/:/;
27408 s/:*\${srcdir}:*/:/;
27409 s/:*@srcdir@:*/:/;
27410 s/^\([^=]*=[     ]*\):*/\1/;
27411 s/:*$//;
27412 s/^[^=]*=[       ]*$//;
27413 }'
27414 fi
27415
27416 DEFS=-DHAVE_CONFIG_H
27417
27418 ac_libobjs=
27419 ac_ltlibobjs=
27420 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27421   # 1. Remove the extension, and $U if already installed.
27422   ac_i=`echo "$ac_i" |
27423          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27424   # 2. Add them.
27425   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27426   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27427 done
27428 LIBOBJS=$ac_libobjs
27429
27430 LTLIBOBJS=$ac_ltlibobjs
27431
27432
27433 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
27434   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
27435 Usually this means the macro was only invoked conditionally." >&5
27436 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
27437 Usually this means the macro was only invoked conditionally." >&2;}
27438    { (exit 1); exit 1; }; }
27439 fi
27440 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
27441   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
27442 Usually this means the macro was only invoked conditionally." >&5
27443 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
27444 Usually this means the macro was only invoked conditionally." >&2;}
27445    { (exit 1); exit 1; }; }
27446 fi
27447 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
27448   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27449 Usually this means the macro was only invoked conditionally." >&5
27450 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
27451 Usually this means the macro was only invoked conditionally." >&2;}
27452    { (exit 1); exit 1; }; }
27453 fi
27454 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27455   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27456 Usually this means the macro was only invoked conditionally." >&5
27457 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27458 Usually this means the macro was only invoked conditionally." >&2;}
27459    { (exit 1); exit 1; }; }
27460 fi
27461 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27462   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27463 Usually this means the macro was only invoked conditionally." >&5
27464 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27465 Usually this means the macro was only invoked conditionally." >&2;}
27466    { (exit 1); exit 1; }; }
27467 fi
27468 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27469   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27470 Usually this means the macro was only invoked conditionally." >&5
27471 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27472 Usually this means the macro was only invoked conditionally." >&2;}
27473    { (exit 1); exit 1; }; }
27474 fi
27475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27476   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27477 Usually this means the macro was only invoked conditionally." >&5
27478 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27479 Usually this means the macro was only invoked conditionally." >&2;}
27480    { (exit 1); exit 1; }; }
27481 fi
27482
27483 : ${CONFIG_STATUS=./config.status}
27484 ac_clean_files_save=$ac_clean_files
27485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27486 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27487 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27488 cat >$CONFIG_STATUS <<_ACEOF
27489 #! $SHELL
27490 # Generated by $as_me.
27491 # Run this file to recreate the current configuration.
27492 # Compiler output produced by configure, useful for debugging
27493 # configure, is in config.log if it exists.
27494
27495 debug=false
27496 ac_cs_recheck=false
27497 ac_cs_silent=false
27498 SHELL=\${CONFIG_SHELL-$SHELL}
27499 _ACEOF
27500
27501 cat >>$CONFIG_STATUS <<\_ACEOF
27502 ## --------------------- ##
27503 ## M4sh Initialization.  ##
27504 ## --------------------- ##
27505
27506 # Be Bourne compatible
27507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27508   emulate sh
27509   NULLCMD=:
27510   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27511   # is contrary to our usage.  Disable this feature.
27512   alias -g '${1+"$@"}'='"$@"'
27513 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27514   set -o posix
27515 fi
27516 DUALCASE=1; export DUALCASE # for MKS sh
27517
27518 # Support unset when possible.
27519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27520   as_unset=unset
27521 else
27522   as_unset=false
27523 fi
27524
27525
27526 # Work around bugs in pre-3.0 UWIN ksh.
27527 $as_unset ENV MAIL MAILPATH
27528 PS1='$ '
27529 PS2='> '
27530 PS4='+ '
27531
27532 # NLS nuisances.
27533 for as_var in \
27534   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27535   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27536   LC_TELEPHONE LC_TIME
27537 do
27538   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27539     eval $as_var=C; export $as_var
27540   else
27541     $as_unset $as_var
27542   fi
27543 done
27544
27545 # Required to use basename.
27546 if expr a : '\(a\)' >/dev/null 2>&1; then
27547   as_expr=expr
27548 else
27549   as_expr=false
27550 fi
27551
27552 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27553   as_basename=basename
27554 else
27555   as_basename=false
27556 fi
27557
27558
27559 # Name of the executable.
27560 as_me=`$as_basename "$0" ||
27561 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27562          X"$0" : 'X\(//\)$' \| \
27563          X"$0" : 'X\(/\)$' \| \
27564          .     : '\(.\)' 2>/dev/null ||
27565 echo X/"$0" |
27566     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27567           /^X\/\(\/\/\)$/{ s//\1/; q; }
27568           /^X\/\(\/\).*/{ s//\1/; q; }
27569           s/.*/./; q'`
27570
27571
27572 # PATH needs CR, and LINENO needs CR and PATH.
27573 # Avoid depending upon Character Ranges.
27574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27577 as_cr_digits='0123456789'
27578 as_cr_alnum=$as_cr_Letters$as_cr_digits
27579
27580 # The user is always right.
27581 if test "${PATH_SEPARATOR+set}" != set; then
27582   echo "#! /bin/sh" >conf$$.sh
27583   echo  "exit 0"   >>conf$$.sh
27584   chmod +x conf$$.sh
27585   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27586     PATH_SEPARATOR=';'
27587   else
27588     PATH_SEPARATOR=:
27589   fi
27590   rm -f conf$$.sh
27591 fi
27592
27593
27594   as_lineno_1=$LINENO
27595   as_lineno_2=$LINENO
27596   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27597   test "x$as_lineno_1" != "x$as_lineno_2" &&
27598   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27599   # Find who we are.  Look in the path if we contain no path at all
27600   # relative or not.
27601   case $0 in
27602     *[\\/]* ) as_myself=$0 ;;
27603     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27604 for as_dir in $PATH
27605 do
27606   IFS=$as_save_IFS
27607   test -z "$as_dir" && as_dir=.
27608   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27609 done
27610
27611        ;;
27612   esac
27613   # We did not find ourselves, most probably we were run as `sh COMMAND'
27614   # in which case we are not to be found in the path.
27615   if test "x$as_myself" = x; then
27616     as_myself=$0
27617   fi
27618   if test ! -f "$as_myself"; then
27619     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27620 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27621    { (exit 1); exit 1; }; }
27622   fi
27623   case $CONFIG_SHELL in
27624   '')
27625     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27626 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27627 do
27628   IFS=$as_save_IFS
27629   test -z "$as_dir" && as_dir=.
27630   for as_base in sh bash ksh sh5; do
27631          case $as_dir in
27632          /*)
27633            if ("$as_dir/$as_base" -c '
27634   as_lineno_1=$LINENO
27635   as_lineno_2=$LINENO
27636   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27637   test "x$as_lineno_1" != "x$as_lineno_2" &&
27638   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27639              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27640              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27641              CONFIG_SHELL=$as_dir/$as_base
27642              export CONFIG_SHELL
27643              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27644            fi;;
27645          esac
27646        done
27647 done
27648 ;;
27649   esac
27650
27651   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27652   # uniformly replaced by the line number.  The first 'sed' inserts a
27653   # line-number line before each line; the second 'sed' does the real
27654   # work.  The second script uses 'N' to pair each line-number line
27655   # with the numbered line, and appends trailing '-' during
27656   # substitution so that $LINENO is not a special case at line end.
27657   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27658   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
27659   sed '=' <$as_myself |
27660     sed '
27661       N
27662       s,$,-,
27663       : loop
27664       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27665       t loop
27666       s,-$,,
27667       s,^['$as_cr_digits']*\n,,
27668     ' >$as_me.lineno &&
27669   chmod +x $as_me.lineno ||
27670     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27671 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27672    { (exit 1); exit 1; }; }
27673
27674   # Don't try to exec as it changes $[0], causing all sort of problems
27675   # (the dirname of $[0] is not the place where we might find the
27676   # original and so on.  Autoconf is especially sensible to this).
27677   . ./$as_me.lineno
27678   # Exit status is that of the last command.
27679   exit
27680 }
27681
27682
27683 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27684   *c*,-n*) ECHO_N= ECHO_C='
27685 ' ECHO_T='      ' ;;
27686   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27687   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
27688 esac
27689
27690 if expr a : '\(a\)' >/dev/null 2>&1; then
27691   as_expr=expr
27692 else
27693   as_expr=false
27694 fi
27695
27696 rm -f conf$$ conf$$.exe conf$$.file
27697 echo >conf$$.file
27698 if ln -s conf$$.file conf$$ 2>/dev/null; then
27699   # We could just check for DJGPP; but this test a) works b) is more generic
27700   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27701   if test -f conf$$.exe; then
27702     # Don't use ln at all; we don't have any links
27703     as_ln_s='cp -p'
27704   else
27705     as_ln_s='ln -s'
27706   fi
27707 elif ln conf$$.file conf$$ 2>/dev/null; then
27708   as_ln_s=ln
27709 else
27710   as_ln_s='cp -p'
27711 fi
27712 rm -f conf$$ conf$$.exe conf$$.file
27713
27714 if mkdir -p . 2>/dev/null; then
27715   as_mkdir_p=:
27716 else
27717   test -d ./-p && rmdir ./-p
27718   as_mkdir_p=false
27719 fi
27720
27721 as_executable_p="test -f"
27722
27723 # Sed expression to map a string onto a valid CPP name.
27724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27725
27726 # Sed expression to map a string onto a valid variable name.
27727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27728
27729
27730 # IFS
27731 # We need space, tab and new line, in precisely that order.
27732 as_nl='
27733 '
27734 IFS="   $as_nl"
27735
27736 # CDPATH.
27737 $as_unset CDPATH
27738
27739 exec 6>&1
27740
27741 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27742 # report actual input values of CONFIG_FILES etc. instead of their
27743 # values after options handling.  Logging --version etc. is OK.
27744 exec 5>>config.log
27745 {
27746   echo
27747   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27748 ## Running $as_me. ##
27749 _ASBOX
27750 } >&5
27751 cat >&5 <<_CSEOF
27752
27753 This file was extended by linux nfs-utils $as_me 1.0.8-rc4, which was
27754 generated by GNU Autoconf 2.59.  Invocation command line was
27755
27756   CONFIG_FILES    = $CONFIG_FILES
27757   CONFIG_HEADERS  = $CONFIG_HEADERS
27758   CONFIG_LINKS    = $CONFIG_LINKS
27759   CONFIG_COMMANDS = $CONFIG_COMMANDS
27760   $ $0 $@
27761
27762 _CSEOF
27763 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27764 echo >&5
27765 _ACEOF
27766
27767 # Files that config.status was made for.
27768 if test -n "$ac_config_files"; then
27769   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27770 fi
27771
27772 if test -n "$ac_config_headers"; then
27773   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27774 fi
27775
27776 if test -n "$ac_config_links"; then
27777   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27778 fi
27779
27780 if test -n "$ac_config_commands"; then
27781   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27782 fi
27783
27784 cat >>$CONFIG_STATUS <<\_ACEOF
27785
27786 ac_cs_usage="\
27787 \`$as_me' instantiates files from templates according to the
27788 current configuration.
27789
27790 Usage: $0 [OPTIONS] [FILE]...
27791
27792   -h, --help       print this help, then exit
27793   -V, --version    print version number, then exit
27794   -q, --quiet      do not print progress messages
27795   -d, --debug      don't remove temporary files
27796       --recheck    update $as_me by reconfiguring in the same conditions
27797   --file=FILE[:TEMPLATE]
27798                    instantiate the configuration file FILE
27799   --header=FILE[:TEMPLATE]
27800                    instantiate the configuration header FILE
27801
27802 Configuration files:
27803 $config_files
27804
27805 Configuration headers:
27806 $config_headers
27807
27808 Configuration commands:
27809 $config_commands
27810
27811 Report bugs to <bug-autoconf@gnu.org>."
27812 _ACEOF
27813
27814 cat >>$CONFIG_STATUS <<_ACEOF
27815 ac_cs_version="\\
27816 linux nfs-utils config.status 1.0.8-rc4
27817 configured by $0, generated by GNU Autoconf 2.59,
27818   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27819
27820 Copyright (C) 2003 Free Software Foundation, Inc.
27821 This config.status script is free software; the Free Software Foundation
27822 gives unlimited permission to copy, distribute and modify it."
27823 srcdir=$srcdir
27824 INSTALL="$INSTALL"
27825 _ACEOF
27826
27827 cat >>$CONFIG_STATUS <<\_ACEOF
27828 # If no file are specified by the user, then we need to provide default
27829 # value.  By we need to know if files were specified by the user.
27830 ac_need_defaults=:
27831 while test $# != 0
27832 do
27833   case $1 in
27834   --*=*)
27835     ac_option=`expr "x$1" : 'x\([^=]*\)='`
27836     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27837     ac_shift=:
27838     ;;
27839   -*)
27840     ac_option=$1
27841     ac_optarg=$2
27842     ac_shift=shift
27843     ;;
27844   *) # This is not an option, so the user has probably given explicit
27845      # arguments.
27846      ac_option=$1
27847      ac_need_defaults=false;;
27848   esac
27849
27850   case $ac_option in
27851   # Handling of the options.
27852 _ACEOF
27853 cat >>$CONFIG_STATUS <<\_ACEOF
27854   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27855     ac_cs_recheck=: ;;
27856   --version | --vers* | -V )
27857     echo "$ac_cs_version"; exit 0 ;;
27858   --he | --h)
27859     # Conflict between --help and --header
27860     { { echo "$as_me:$LINENO: error: ambiguous option: $1
27861 Try \`$0 --help' for more information." >&5
27862 echo "$as_me: error: ambiguous option: $1
27863 Try \`$0 --help' for more information." >&2;}
27864    { (exit 1); exit 1; }; };;
27865   --help | --hel | -h )
27866     echo "$ac_cs_usage"; exit 0 ;;
27867   --debug | --d* | -d )
27868     debug=: ;;
27869   --file | --fil | --fi | --f )
27870     $ac_shift
27871     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27872     ac_need_defaults=false;;
27873   --header | --heade | --head | --hea )
27874     $ac_shift
27875     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27876     ac_need_defaults=false;;
27877   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27878   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27879     ac_cs_silent=: ;;
27880
27881   # This is an error.
27882   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27883 Try \`$0 --help' for more information." >&5
27884 echo "$as_me: error: unrecognized option: $1
27885 Try \`$0 --help' for more information." >&2;}
27886    { (exit 1); exit 1; }; } ;;
27887
27888   *) ac_config_targets="$ac_config_targets $1" ;;
27889
27890   esac
27891   shift
27892 done
27893
27894 ac_configure_extra_args=
27895
27896 if $ac_cs_silent; then
27897   exec 6>/dev/null
27898   ac_configure_extra_args="$ac_configure_extra_args --silent"
27899 fi
27900
27901 _ACEOF
27902 cat >>$CONFIG_STATUS <<_ACEOF
27903 if \$ac_cs_recheck; then
27904   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27905   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27906 fi
27907
27908 _ACEOF
27909
27910 cat >>$CONFIG_STATUS <<_ACEOF
27911 #
27912 # INIT-COMMANDS section.
27913 #
27914
27915 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27916
27917 _ACEOF
27918
27919
27920
27921 cat >>$CONFIG_STATUS <<\_ACEOF
27922 for ac_config_target in $ac_config_targets
27923 do
27924   case "$ac_config_target" in
27925   # Handling of arguments.
27926   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27927   "linux-nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
27928   "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27929   "support/export/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
27930   "support/include/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
27931   "support/include/rpcsvc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
27932   "support/include/sys/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
27933   "support/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
27934   "support/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
27935   "support/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
27936   "support/nfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
27937   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27938   "tools/getiversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
27939   "tools/getkversion/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
27940   "tools/locktest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
27941   "tools/nlmtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
27942   "tools/rpcdebug/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
27943   "tools/rpcgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
27944   "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27945   "utils/exportfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
27946   "utils/gssd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
27947   "utils/idmapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
27948   "utils/lockd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
27949   "utils/mountd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
27950   "utils/nfsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
27951   "utils/nfsstat/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
27952   "utils/nhfsstone/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/nhfsstone/Makefile" ;;
27953   "utils/rquotad/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
27954   "utils/showmount/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
27955   "utils/statd/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
27956   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27957   "support/include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
27958   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27959 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27960    { (exit 1); exit 1; }; };;
27961   esac
27962 done
27963
27964 # If the user did not use the arguments to specify the items to instantiate,
27965 # then the envvar interface is used.  Set only those that are not.
27966 # We use the long form for the default assignment because of an extremely
27967 # bizarre bug on SunOS 4.1.3.
27968 if $ac_need_defaults; then
27969   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27970   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27971   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27972 fi
27973
27974 # Have a temporary directory for convenience.  Make it in the build tree
27975 # simply because there is no reason to put it here, and in addition,
27976 # creating and moving files from /tmp can sometimes cause problems.
27977 # Create a temporary directory, and hook for its removal unless debugging.
27978 $debug ||
27979 {
27980   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27981   trap '{ (exit 1); exit 1; }' 1 2 13 15
27982 }
27983
27984 # Create a (secure) tmp directory for tmp files.
27985
27986 {
27987   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27988   test -n "$tmp" && test -d "$tmp"
27989 }  ||
27990 {
27991   tmp=./confstat$$-$RANDOM
27992   (umask 077 && mkdir $tmp)
27993 } ||
27994 {
27995    echo "$me: cannot create a temporary directory in ." >&2
27996    { (exit 1); exit 1; }
27997 }
27998
27999 _ACEOF
28000
28001 cat >>$CONFIG_STATUS <<_ACEOF
28002
28003 #
28004 # CONFIG_FILES section.
28005 #
28006
28007 # No need to generate the scripts if there are no CONFIG_FILES.
28008 # This happens for instance when ./config.status config.h
28009 if test -n "\$CONFIG_FILES"; then
28010   # Protect against being on the right side of a sed subst in config.status.
28011   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28012    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28013 s,@SHELL@,$SHELL,;t t
28014 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28015 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28016 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28017 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28018 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28019 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28020 s,@exec_prefix@,$exec_prefix,;t t
28021 s,@prefix@,$prefix,;t t
28022 s,@program_transform_name@,$program_transform_name,;t t
28023 s,@bindir@,$bindir,;t t
28024 s,@sbindir@,$sbindir,;t t
28025 s,@libexecdir@,$libexecdir,;t t
28026 s,@datadir@,$datadir,;t t
28027 s,@sysconfdir@,$sysconfdir,;t t
28028 s,@sharedstatedir@,$sharedstatedir,;t t
28029 s,@localstatedir@,$localstatedir,;t t
28030 s,@libdir@,$libdir,;t t
28031 s,@includedir@,$includedir,;t t
28032 s,@oldincludedir@,$oldincludedir,;t t
28033 s,@infodir@,$infodir,;t t
28034 s,@mandir@,$mandir,;t t
28035 s,@build_alias@,$build_alias,;t t
28036 s,@host_alias@,$host_alias,;t t
28037 s,@target_alias@,$target_alias,;t t
28038 s,@DEFS@,$DEFS,;t t
28039 s,@ECHO_C@,$ECHO_C,;t t
28040 s,@ECHO_N@,$ECHO_N,;t t
28041 s,@ECHO_T@,$ECHO_T,;t t
28042 s,@LIBS@,$LIBS,;t t
28043 s,@build@,$build,;t t
28044 s,@build_cpu@,$build_cpu,;t t
28045 s,@build_vendor@,$build_vendor,;t t
28046 s,@build_os@,$build_os,;t t
28047 s,@host@,$host,;t t
28048 s,@host_cpu@,$host_cpu,;t t
28049 s,@host_vendor@,$host_vendor,;t t
28050 s,@host_os@,$host_os,;t t
28051 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28052 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28053 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28054 s,@CYGPATH_W@,$CYGPATH_W,;t t
28055 s,@PACKAGE@,$PACKAGE,;t t
28056 s,@VERSION@,$VERSION,;t t
28057 s,@ACLOCAL@,$ACLOCAL,;t t
28058 s,@AUTOCONF@,$AUTOCONF,;t t
28059 s,@AUTOMAKE@,$AUTOMAKE,;t t
28060 s,@AUTOHEADER@,$AUTOHEADER,;t t
28061 s,@MAKEINFO@,$MAKEINFO,;t t
28062 s,@install_sh@,$install_sh,;t t
28063 s,@STRIP@,$STRIP,;t t
28064 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28065 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28066 s,@mkdir_p@,$mkdir_p,;t t
28067 s,@AWK@,$AWK,;t t
28068 s,@SET_MAKE@,$SET_MAKE,;t t
28069 s,@am__leading_dot@,$am__leading_dot,;t t
28070 s,@AMTAR@,$AMTAR,;t t
28071 s,@am__tar@,$am__tar,;t t
28072 s,@am__untar@,$am__untar,;t t
28073 s,@RELEASE@,$RELEASE,;t t
28074 s,@statedir@,$statedir,;t t
28075 s,@statduser@,$statduser,;t t
28076 s,@enable_nfsv3@,$enable_nfsv3,;t t
28077 s,@IDMAPD@,$IDMAPD,;t t
28078 s,@enable_nfsv4@,$enable_nfsv4,;t t
28079 s,@CONFIG_NFSV4_TRUE@,$CONFIG_NFSV4_TRUE,;t t
28080 s,@CONFIG_NFSV4_FALSE@,$CONFIG_NFSV4_FALSE,;t t
28081 s,@GSSD@,$GSSD,;t t
28082 s,@SVCGSSD@,$SVCGSSD,;t t
28083 s,@enable_gss@,$enable_gss,;t t
28084 s,@CONFIG_GSS_TRUE@,$CONFIG_GSS_TRUE,;t t
28085 s,@CONFIG_GSS_FALSE@,$CONFIG_GSS_FALSE,;t t
28086 s,@kprefix@,$kprefix,;t t
28087 s,@secure_statd@,$secure_statd,;t t
28088 s,@CONFIG_RQUOTAD_TRUE@,$CONFIG_RQUOTAD_TRUE,;t t
28089 s,@CONFIG_RQUOTAD_FALSE@,$CONFIG_RQUOTAD_FALSE,;t t
28090 s,@CC@,$CC,;t t
28091 s,@CFLAGS@,$CFLAGS,;t t
28092 s,@LDFLAGS@,$LDFLAGS,;t t
28093 s,@CPPFLAGS@,$CPPFLAGS,;t t
28094 s,@ac_ct_CC@,$ac_ct_CC,;t t
28095 s,@EXEEXT@,$EXEEXT,;t t
28096 s,@OBJEXT@,$OBJEXT,;t t
28097 s,@DEPDIR@,$DEPDIR,;t t
28098 s,@am__include@,$am__include,;t t
28099 s,@am__quote@,$am__quote,;t t
28100 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28101 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28102 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28103 s,@CCDEPMODE@,$CCDEPMODE,;t t
28104 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28105 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28106 s,@LIBWRAP@,$LIBWRAP,;t t
28107 s,@CXX@,$CXX,;t t
28108 s,@CXXFLAGS@,$CXXFLAGS,;t t
28109 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28110 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28111 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28112 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28113 s,@CPP@,$CPP,;t t
28114 s,@LN_S@,$LN_S,;t t
28115 s,@EGREP@,$EGREP,;t t
28116 s,@ECHO@,$ECHO,;t t
28117 s,@AR@,$AR,;t t
28118 s,@ac_ct_AR@,$ac_ct_AR,;t t
28119 s,@RANLIB@,$RANLIB,;t t
28120 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28121 s,@CXXCPP@,$CXXCPP,;t t
28122 s,@F77@,$F77,;t t
28123 s,@FFLAGS@,$FFLAGS,;t t
28124 s,@ac_ct_F77@,$ac_ct_F77,;t t
28125 s,@LIBTOOL@,$LIBTOOL,;t t
28126 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
28127 s,@LD@,$LD,;t t
28128 s,@ac_ct_LD@,$ac_ct_LD,;t t
28129 s,@LIBSOCKET@,$LIBSOCKET,;t t
28130 s,@LIBNSL@,$LIBNSL,;t t
28131 s,@LIBCRYPT@,$LIBCRYPT,;t t
28132 s,@LIBBSD@,$LIBBSD,;t t
28133 s,@KRBDIR@,$KRBDIR,;t t
28134 s,@KRBLIBS@,$KRBLIBS,;t t
28135 s,@KRBCFLAGS@,$KRBCFLAGS,;t t
28136 s,@K5VERS@,$K5VERS,;t t
28137 s,@ALLOCA@,$ALLOCA,;t t
28138 s,@LIBOBJS@,$LIBOBJS,;t t
28139 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
28140 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
28141 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
28142 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
28143 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
28144 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
28145 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
28146 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28147 CEOF
28148
28149 _ACEOF
28150
28151   cat >>$CONFIG_STATUS <<\_ACEOF
28152   # Split the substitutions into bite-sized pieces for seds with
28153   # small command number limits, like on Digital OSF/1 and HP-UX.
28154   ac_max_sed_lines=48
28155   ac_sed_frag=1 # Number of current file.
28156   ac_beg=1 # First line for current file.
28157   ac_end=$ac_max_sed_lines # Line after last line for current file.
28158   ac_more_lines=:
28159   ac_sed_cmds=
28160   while $ac_more_lines; do
28161     if test $ac_beg -gt 1; then
28162       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28163     else
28164       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28165     fi
28166     if test ! -s $tmp/subs.frag; then
28167       ac_more_lines=false
28168     else
28169       # The purpose of the label and of the branching condition is to
28170       # speed up the sed processing (if there are no `@' at all, there
28171       # is no need to browse any of the substitutions).
28172       # These are the two extra sed commands mentioned above.
28173       (echo ':t
28174   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28175       if test -z "$ac_sed_cmds"; then
28176         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28177       else
28178         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28179       fi
28180       ac_sed_frag=`expr $ac_sed_frag + 1`
28181       ac_beg=$ac_end
28182       ac_end=`expr $ac_end + $ac_max_sed_lines`
28183     fi
28184   done
28185   if test -z "$ac_sed_cmds"; then
28186     ac_sed_cmds=cat
28187   fi
28188 fi # test -n "$CONFIG_FILES"
28189
28190 _ACEOF
28191 cat >>$CONFIG_STATUS <<\_ACEOF
28192 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28193   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28194   case $ac_file in
28195   - | *:- | *:-:* ) # input from stdin
28196         cat >$tmp/stdin
28197         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28198         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28199   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28200         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28201   * )   ac_file_in=$ac_file.in ;;
28202   esac
28203
28204   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28205   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28207          X"$ac_file" : 'X\(//\)[^/]' \| \
28208          X"$ac_file" : 'X\(//\)$' \| \
28209          X"$ac_file" : 'X\(/\)' \| \
28210          .     : '\(.\)' 2>/dev/null ||
28211 echo X"$ac_file" |
28212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28214           /^X\(\/\/\)$/{ s//\1/; q; }
28215           /^X\(\/\).*/{ s//\1/; q; }
28216           s/.*/./; q'`
28217   { if $as_mkdir_p; then
28218     mkdir -p "$ac_dir"
28219   else
28220     as_dir="$ac_dir"
28221     as_dirs=
28222     while test ! -d "$as_dir"; do
28223       as_dirs="$as_dir $as_dirs"
28224       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28226          X"$as_dir" : 'X\(//\)[^/]' \| \
28227          X"$as_dir" : 'X\(//\)$' \| \
28228          X"$as_dir" : 'X\(/\)' \| \
28229          .     : '\(.\)' 2>/dev/null ||
28230 echo X"$as_dir" |
28231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28233           /^X\(\/\/\)$/{ s//\1/; q; }
28234           /^X\(\/\).*/{ s//\1/; q; }
28235           s/.*/./; q'`
28236     done
28237     test ! -n "$as_dirs" || mkdir $as_dirs
28238   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28240    { (exit 1); exit 1; }; }; }
28241
28242   ac_builddir=.
28243
28244 if test "$ac_dir" != .; then
28245   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28246   # A "../" for each directory in $ac_dir_suffix.
28247   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28248 else
28249   ac_dir_suffix= ac_top_builddir=
28250 fi
28251
28252 case $srcdir in
28253   .)  # No --srcdir option.  We are building in place.
28254     ac_srcdir=.
28255     if test -z "$ac_top_builddir"; then
28256        ac_top_srcdir=.
28257     else
28258        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28259     fi ;;
28260   [\\/]* | ?:[\\/]* )  # Absolute path.
28261     ac_srcdir=$srcdir$ac_dir_suffix;
28262     ac_top_srcdir=$srcdir ;;
28263   *) # Relative path.
28264     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28265     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28266 esac
28267
28268 # Do not use `cd foo && pwd` to compute absolute paths, because
28269 # the directories may not exist.
28270 case `pwd` in
28271 .) ac_abs_builddir="$ac_dir";;
28272 *)
28273   case "$ac_dir" in
28274   .) ac_abs_builddir=`pwd`;;
28275   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28276   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28277   esac;;
28278 esac
28279 case $ac_abs_builddir in
28280 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28281 *)
28282   case ${ac_top_builddir}. in
28283   .) ac_abs_top_builddir=$ac_abs_builddir;;
28284   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28285   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28286   esac;;
28287 esac
28288 case $ac_abs_builddir in
28289 .) ac_abs_srcdir=$ac_srcdir;;
28290 *)
28291   case $ac_srcdir in
28292   .) ac_abs_srcdir=$ac_abs_builddir;;
28293   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28294   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28295   esac;;
28296 esac
28297 case $ac_abs_builddir in
28298 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28299 *)
28300   case $ac_top_srcdir in
28301   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28302   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28303   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28304   esac;;
28305 esac
28306
28307
28308   case $INSTALL in
28309   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28310   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28311   esac
28312
28313   # Let's still pretend it is `configure' which instantiates (i.e., don't
28314   # use $as_me), people would be surprised to read:
28315   #    /* config.h.  Generated by config.status.  */
28316   if test x"$ac_file" = x-; then
28317     configure_input=
28318   else
28319     configure_input="$ac_file.  "
28320   fi
28321   configure_input=$configure_input"Generated from `echo $ac_file_in |
28322                                      sed 's,.*/,,'` by configure."
28323
28324   # First look for the input files in the build tree, otherwise in the
28325   # src tree.
28326   ac_file_inputs=`IFS=:
28327     for f in $ac_file_in; do
28328       case $f in
28329       -) echo $tmp/stdin ;;
28330       [\\/$]*)
28331          # Absolute (can't be DOS-style, as IFS=:)
28332          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28333 echo "$as_me: error: cannot find input file: $f" >&2;}
28334    { (exit 1); exit 1; }; }
28335          echo "$f";;
28336       *) # Relative
28337          if test -f "$f"; then
28338            # Build tree
28339            echo "$f"
28340          elif test -f "$srcdir/$f"; then
28341            # Source tree
28342            echo "$srcdir/$f"
28343          else
28344            # /dev/null tree
28345            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28346 echo "$as_me: error: cannot find input file: $f" >&2;}
28347    { (exit 1); exit 1; }; }
28348          fi;;
28349       esac
28350     done` || { (exit 1); exit 1; }
28351
28352   if test x"$ac_file" != x-; then
28353     { echo "$as_me:$LINENO: creating $ac_file" >&5
28354 echo "$as_me: creating $ac_file" >&6;}
28355     rm -f "$ac_file"
28356   fi
28357 _ACEOF
28358 cat >>$CONFIG_STATUS <<_ACEOF
28359   sed "$ac_vpsub
28360 $extrasub
28361 _ACEOF
28362 cat >>$CONFIG_STATUS <<\_ACEOF
28363 :t
28364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28365 s,@configure_input@,$configure_input,;t t
28366 s,@srcdir@,$ac_srcdir,;t t
28367 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28368 s,@top_srcdir@,$ac_top_srcdir,;t t
28369 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28370 s,@builddir@,$ac_builddir,;t t
28371 s,@abs_builddir@,$ac_abs_builddir,;t t
28372 s,@top_builddir@,$ac_top_builddir,;t t
28373 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28374 s,@INSTALL@,$ac_INSTALL,;t t
28375 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28376   rm -f $tmp/stdin
28377   if test x"$ac_file" != x-; then
28378     mv $tmp/out $ac_file
28379   else
28380     cat $tmp/out
28381     rm -f $tmp/out
28382   fi
28383
28384 done
28385 _ACEOF
28386 cat >>$CONFIG_STATUS <<\_ACEOF
28387
28388 #
28389 # CONFIG_HEADER section.
28390 #
28391
28392 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28393 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28394 #
28395 # ac_d sets the value in "#define NAME VALUE" lines.
28396 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28397 ac_dB='[         ].*$,\1#\2'
28398 ac_dC=' '
28399 ac_dD=',;t'
28400 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28401 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28402 ac_uB='$,\1#\2define\3'
28403 ac_uC=' '
28404 ac_uD=',;t'
28405
28406 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28407   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28408   case $ac_file in
28409   - | *:- | *:-:* ) # input from stdin
28410         cat >$tmp/stdin
28411         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28412         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28413   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28414         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28415   * )   ac_file_in=$ac_file.in ;;
28416   esac
28417
28418   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28419 echo "$as_me: creating $ac_file" >&6;}
28420
28421   # First look for the input files in the build tree, otherwise in the
28422   # src tree.
28423   ac_file_inputs=`IFS=:
28424     for f in $ac_file_in; do
28425       case $f in
28426       -) echo $tmp/stdin ;;
28427       [\\/$]*)
28428          # Absolute (can't be DOS-style, as IFS=:)
28429          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28430 echo "$as_me: error: cannot find input file: $f" >&2;}
28431    { (exit 1); exit 1; }; }
28432          # Do quote $f, to prevent DOS paths from being IFS'd.
28433          echo "$f";;
28434       *) # Relative
28435          if test -f "$f"; then
28436            # Build tree
28437            echo "$f"
28438          elif test -f "$srcdir/$f"; then
28439            # Source tree
28440            echo "$srcdir/$f"
28441          else
28442            # /dev/null tree
28443            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28444 echo "$as_me: error: cannot find input file: $f" >&2;}
28445    { (exit 1); exit 1; }; }
28446          fi;;
28447       esac
28448     done` || { (exit 1); exit 1; }
28449   # Remove the trailing spaces.
28450   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28451
28452 _ACEOF
28453
28454 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28455 # `conftest.undefs', that substitutes the proper values into
28456 # config.h.in to produce config.h.  The first handles `#define'
28457 # templates, and the second `#undef' templates.
28458 # And first: Protect against being on the right side of a sed subst in
28459 # config.status.  Protect against being in an unquoted here document
28460 # in config.status.
28461 rm -f conftest.defines conftest.undefs
28462 # Using a here document instead of a string reduces the quoting nightmare.
28463 # Putting comments in sed scripts is not portable.
28464 #
28465 # `end' is used to avoid that the second main sed command (meant for
28466 # 0-ary CPP macros) applies to n-ary macro definitions.
28467 # See the Autoconf documentation for `clear'.
28468 cat >confdef2sed.sed <<\_ACEOF
28469 s/[\\&,]/\\&/g
28470 s,[\\$`],\\&,g
28471 t clear
28472 : clear
28473 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28474 t end
28475 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28476 : end
28477 _ACEOF
28478 # If some macros were called several times there might be several times
28479 # the same #defines, which is useless.  Nevertheless, we may not want to
28480 # sort them, since we want the *last* AC-DEFINE to be honored.
28481 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28482 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28483 rm -f confdef2sed.sed
28484
28485 # This sed command replaces #undef with comments.  This is necessary, for
28486 # example, in the case of _POSIX_SOURCE, which is predefined and required
28487 # on some systems where configure will not decide to define it.
28488 cat >>conftest.undefs <<\_ACEOF
28489 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28490 _ACEOF
28491
28492 # Break up conftest.defines because some shells have a limit on the size
28493 # of here documents, and old seds have small limits too (100 cmds).
28494 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28495 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28496 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28497 echo '  :' >>$CONFIG_STATUS
28498 rm -f conftest.tail
28499 while grep . conftest.defines >/dev/null
28500 do
28501   # Write a limited-size here document to $tmp/defines.sed.
28502   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28503   # Speed up: don't consider the non `#define' lines.
28504   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28505   # Work around the forget-to-reset-the-flag bug.
28506   echo 't clr' >>$CONFIG_STATUS
28507   echo ': clr' >>$CONFIG_STATUS
28508   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28509   echo 'CEOF
28510   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28511   rm -f $tmp/in
28512   mv $tmp/out $tmp/in
28513 ' >>$CONFIG_STATUS
28514   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28515   rm -f conftest.defines
28516   mv conftest.tail conftest.defines
28517 done
28518 rm -f conftest.defines
28519 echo '  fi # grep' >>$CONFIG_STATUS
28520 echo >>$CONFIG_STATUS
28521
28522 # Break up conftest.undefs because some shells have a limit on the size
28523 # of here documents, and old seds have small limits too (100 cmds).
28524 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28525 rm -f conftest.tail
28526 while grep . conftest.undefs >/dev/null
28527 do
28528   # Write a limited-size here document to $tmp/undefs.sed.
28529   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28530   # Speed up: don't consider the non `#undef'
28531   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28532   # Work around the forget-to-reset-the-flag bug.
28533   echo 't clr' >>$CONFIG_STATUS
28534   echo ': clr' >>$CONFIG_STATUS
28535   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28536   echo 'CEOF
28537   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28538   rm -f $tmp/in
28539   mv $tmp/out $tmp/in
28540 ' >>$CONFIG_STATUS
28541   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28542   rm -f conftest.undefs
28543   mv conftest.tail conftest.undefs
28544 done
28545 rm -f conftest.undefs
28546
28547 cat >>$CONFIG_STATUS <<\_ACEOF
28548   # Let's still pretend it is `configure' which instantiates (i.e., don't
28549   # use $as_me), people would be surprised to read:
28550   #    /* config.h.  Generated by config.status.  */
28551   if test x"$ac_file" = x-; then
28552     echo "/* Generated by configure.  */" >$tmp/config.h
28553   else
28554     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28555   fi
28556   cat $tmp/in >>$tmp/config.h
28557   rm -f $tmp/in
28558   if test x"$ac_file" != x-; then
28559     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28560       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28561 echo "$as_me: $ac_file is unchanged" >&6;}
28562     else
28563       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28565          X"$ac_file" : 'X\(//\)[^/]' \| \
28566          X"$ac_file" : 'X\(//\)$' \| \
28567          X"$ac_file" : 'X\(/\)' \| \
28568          .     : '\(.\)' 2>/dev/null ||
28569 echo X"$ac_file" |
28570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28571           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28572           /^X\(\/\/\)$/{ s//\1/; q; }
28573           /^X\(\/\).*/{ s//\1/; q; }
28574           s/.*/./; q'`
28575       { if $as_mkdir_p; then
28576     mkdir -p "$ac_dir"
28577   else
28578     as_dir="$ac_dir"
28579     as_dirs=
28580     while test ! -d "$as_dir"; do
28581       as_dirs="$as_dir $as_dirs"
28582       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28584          X"$as_dir" : 'X\(//\)[^/]' \| \
28585          X"$as_dir" : 'X\(//\)$' \| \
28586          X"$as_dir" : 'X\(/\)' \| \
28587          .     : '\(.\)' 2>/dev/null ||
28588 echo X"$as_dir" |
28589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28590           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28591           /^X\(\/\/\)$/{ s//\1/; q; }
28592           /^X\(\/\).*/{ s//\1/; q; }
28593           s/.*/./; q'`
28594     done
28595     test ! -n "$as_dirs" || mkdir $as_dirs
28596   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28598    { (exit 1); exit 1; }; }; }
28599
28600       rm -f $ac_file
28601       mv $tmp/config.h $ac_file
28602     fi
28603   else
28604     cat $tmp/config.h
28605     rm -f $tmp/config.h
28606   fi
28607 # Compute $ac_file's index in $config_headers.
28608 _am_stamp_count=1
28609 for _am_header in $config_headers :; do
28610   case $_am_header in
28611     $ac_file | $ac_file:* )
28612       break ;;
28613     * )
28614       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28615   esac
28616 done
28617 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28618 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28619          X$ac_file : 'X\(//\)[^/]' \| \
28620          X$ac_file : 'X\(//\)$' \| \
28621          X$ac_file : 'X\(/\)' \| \
28622          .     : '\(.\)' 2>/dev/null ||
28623 echo X$ac_file |
28624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28626           /^X\(\/\/\)$/{ s//\1/; q; }
28627           /^X\(\/\).*/{ s//\1/; q; }
28628           s/.*/./; q'`/stamp-h$_am_stamp_count
28629 done
28630 _ACEOF
28631 cat >>$CONFIG_STATUS <<\_ACEOF
28632
28633 #
28634 # CONFIG_COMMANDS section.
28635 #
28636 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28637   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28638   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28639   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28640 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28641          X"$ac_dest" : 'X\(//\)[^/]' \| \
28642          X"$ac_dest" : 'X\(//\)$' \| \
28643          X"$ac_dest" : 'X\(/\)' \| \
28644          .     : '\(.\)' 2>/dev/null ||
28645 echo X"$ac_dest" |
28646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28648           /^X\(\/\/\)$/{ s//\1/; q; }
28649           /^X\(\/\).*/{ s//\1/; q; }
28650           s/.*/./; q'`
28651   { if $as_mkdir_p; then
28652     mkdir -p "$ac_dir"
28653   else
28654     as_dir="$ac_dir"
28655     as_dirs=
28656     while test ! -d "$as_dir"; do
28657       as_dirs="$as_dir $as_dirs"
28658       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28660          X"$as_dir" : 'X\(//\)[^/]' \| \
28661          X"$as_dir" : 'X\(//\)$' \| \
28662          X"$as_dir" : 'X\(/\)' \| \
28663          .     : '\(.\)' 2>/dev/null ||
28664 echo X"$as_dir" |
28665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28666           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28667           /^X\(\/\/\)$/{ s//\1/; q; }
28668           /^X\(\/\).*/{ s//\1/; q; }
28669           s/.*/./; q'`
28670     done
28671     test ! -n "$as_dirs" || mkdir $as_dirs
28672   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28674    { (exit 1); exit 1; }; }; }
28675
28676   ac_builddir=.
28677
28678 if test "$ac_dir" != .; then
28679   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28680   # A "../" for each directory in $ac_dir_suffix.
28681   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28682 else
28683   ac_dir_suffix= ac_top_builddir=
28684 fi
28685
28686 case $srcdir in
28687   .)  # No --srcdir option.  We are building in place.
28688     ac_srcdir=.
28689     if test -z "$ac_top_builddir"; then
28690        ac_top_srcdir=.
28691     else
28692        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28693     fi ;;
28694   [\\/]* | ?:[\\/]* )  # Absolute path.
28695     ac_srcdir=$srcdir$ac_dir_suffix;
28696     ac_top_srcdir=$srcdir ;;
28697   *) # Relative path.
28698     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28699     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28700 esac
28701
28702 # Do not use `cd foo && pwd` to compute absolute paths, because
28703 # the directories may not exist.
28704 case `pwd` in
28705 .) ac_abs_builddir="$ac_dir";;
28706 *)
28707   case "$ac_dir" in
28708   .) ac_abs_builddir=`pwd`;;
28709   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28710   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28711   esac;;
28712 esac
28713 case $ac_abs_builddir in
28714 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28715 *)
28716   case ${ac_top_builddir}. in
28717   .) ac_abs_top_builddir=$ac_abs_builddir;;
28718   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28719   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28720   esac;;
28721 esac
28722 case $ac_abs_builddir in
28723 .) ac_abs_srcdir=$ac_srcdir;;
28724 *)
28725   case $ac_srcdir in
28726   .) ac_abs_srcdir=$ac_abs_builddir;;
28727   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28728   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28729   esac;;
28730 esac
28731 case $ac_abs_builddir in
28732 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28733 *)
28734   case $ac_top_srcdir in
28735   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28736   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28737   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28738   esac;;
28739 esac
28740
28741
28742   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28743 echo "$as_me: executing $ac_dest commands" >&6;}
28744   case $ac_dest in
28745     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28746   # Strip MF so we end up with the name of the file.
28747   mf=`echo "$mf" | sed -e 's/:.*$//'`
28748   # Check whether this is an Automake generated Makefile or not.
28749   # We used to match only the files named `Makefile.in', but
28750   # some people rename them; so instead we look at the file content.
28751   # Grep'ing the first line is not enough: some people post-process
28752   # each Makefile.in and add a new line on top of each file to say so.
28753   # So let's grep whole file.
28754   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28755     dirpart=`(dirname "$mf") 2>/dev/null ||
28756 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28757          X"$mf" : 'X\(//\)[^/]' \| \
28758          X"$mf" : 'X\(//\)$' \| \
28759          X"$mf" : 'X\(/\)' \| \
28760          .     : '\(.\)' 2>/dev/null ||
28761 echo X"$mf" |
28762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28763           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28764           /^X\(\/\/\)$/{ s//\1/; q; }
28765           /^X\(\/\).*/{ s//\1/; q; }
28766           s/.*/./; q'`
28767   else
28768     continue
28769   fi
28770   # Extract the definition of DEPDIR, am__include, and am__quote
28771   # from the Makefile without running `make'.
28772   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28773   test -z "$DEPDIR" && continue
28774   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28775   test -z "am__include" && continue
28776   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28777   # When using ansi2knr, U may be empty or an underscore; expand it
28778   U=`sed -n 's/^U = //p' < "$mf"`
28779   # Find all dependency output files, they are included files with
28780   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28781   # simplest approach to changing $(DEPDIR) to its actual value in the
28782   # expansion.
28783   for file in `sed -n "
28784     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28785        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28786     # Make sure the directory exists.
28787     test -f "$dirpart/$file" && continue
28788     fdir=`(dirname "$file") 2>/dev/null ||
28789 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28790          X"$file" : 'X\(//\)[^/]' \| \
28791          X"$file" : 'X\(//\)$' \| \
28792          X"$file" : 'X\(/\)' \| \
28793          .     : '\(.\)' 2>/dev/null ||
28794 echo X"$file" |
28795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28797           /^X\(\/\/\)$/{ s//\1/; q; }
28798           /^X\(\/\).*/{ s//\1/; q; }
28799           s/.*/./; q'`
28800     { if $as_mkdir_p; then
28801     mkdir -p $dirpart/$fdir
28802   else
28803     as_dir=$dirpart/$fdir
28804     as_dirs=
28805     while test ! -d "$as_dir"; do
28806       as_dirs="$as_dir $as_dirs"
28807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28809          X"$as_dir" : 'X\(//\)[^/]' \| \
28810          X"$as_dir" : 'X\(//\)$' \| \
28811          X"$as_dir" : 'X\(/\)' \| \
28812          .     : '\(.\)' 2>/dev/null ||
28813 echo X"$as_dir" |
28814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28816           /^X\(\/\/\)$/{ s//\1/; q; }
28817           /^X\(\/\).*/{ s//\1/; q; }
28818           s/.*/./; q'`
28819     done
28820     test ! -n "$as_dirs" || mkdir $as_dirs
28821   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28822 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28823    { (exit 1); exit 1; }; }; }
28824
28825     # echo "creating $dirpart/$file"
28826     echo '# dummy' > "$dirpart/$file"
28827   done
28828 done
28829  ;;
28830   esac
28831 done
28832 _ACEOF
28833
28834 cat >>$CONFIG_STATUS <<\_ACEOF
28835
28836 { (exit 0); exit 0; }
28837 _ACEOF
28838 chmod +x $CONFIG_STATUS
28839 ac_clean_files=$ac_clean_files_save
28840
28841
28842 # configure is writing to config.log, and then calls config.status.
28843 # config.status does its own redirection, appending to config.log.
28844 # Unfortunately, on DOS this fails, as config.log is still kept open
28845 # by configure, so config.status won't be able to write to it; its
28846 # output is simply discarded.  So we exec the FD to /dev/null,
28847 # effectively closing config.log, so it can be properly (re)opened and
28848 # appended to by config.status.  When coming back to configure, we
28849 # need to make the FD available again.
28850 if test "$no_create" != yes; then
28851   ac_cs_success=:
28852   ac_config_status_args=
28853   test "$silent" = yes &&
28854     ac_config_status_args="$ac_config_status_args --quiet"
28855   exec 5>/dev/null
28856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28857   exec 5>>config.log
28858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28859   # would make configure fail if this is the last instruction.
28860   $ac_cs_success || { (exit 1); exit 1; }
28861 fi
28862
28863