OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / shadow / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 #  include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 #  include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 #  include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S YACC CPP EGREP U ANSI2KNR build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS XSLTPROC XML_CATALOG_FILE XMLCATALOG ENABLE_REGENERATE_MAN_TRUE ENABLE_REGENERATE_MAN_FALSE LIBCRYPT LIBAUDIT LIBCRACK LIBSELINUX LIBPAM LIBSKEY LIBMD MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518   # Accept the important Cygnus configure options, so we can diagnose typos.
519
520   case $ac_option in
521
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
526
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
531
532   -cache-file | --cache-file | --cache-fil | --cache-fi \
533   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534     ac_prev=cache_file ;;
535   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537     cache_file=$ac_optarg ;;
538
539   --config-cache | -C)
540     cache_file=config.cache ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir=$ac_optarg ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     eval "enable_$ac_feature=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     case $ac_option in
565       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_$ac_feature='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix=$ac_optarg ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he | -h)
584     ac_init_help=long ;;
585   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586     ac_init_help=recursive ;;
587   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588     ac_init_help=short ;;
589
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
594
595   -includedir | --includedir | --includedi | --included | --include \
596   | --includ | --inclu | --incl | --inc)
597     ac_prev=includedir ;;
598   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599   | --includ=* | --inclu=* | --incl=* | --inc=*)
600     includedir=$ac_optarg ;;
601
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
606
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
611
612   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613   | --libexe | --libex | --libe)
614     ac_prev=libexecdir ;;
615   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616   | --libexe=* | --libex=* | --libe=*)
617     libexecdir=$ac_optarg ;;
618
619   -localstatedir | --localstatedir | --localstatedi | --localstated \
620   | --localstate | --localstat | --localsta | --localst \
621   | --locals | --local | --loca | --loc | --lo)
622     ac_prev=localstatedir ;;
623   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626     localstatedir=$ac_optarg ;;
627
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
632
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
636
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
640
641   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643     no_recursion=yes ;;
644
645   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647   | --oldin | --oldi | --old | --ol | --o)
648     ac_prev=oldincludedir ;;
649   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652     oldincludedir=$ac_optarg ;;
653
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
658
659   -program-prefix | --program-prefix | --program-prefi | --program-pref \
660   | --program-pre | --program-pr | --program-p)
661     ac_prev=program_prefix ;;
662   -program-prefix=* | --program-prefix=* | --program-prefi=* \
663   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664     program_prefix=$ac_optarg ;;
665
666   -program-suffix | --program-suffix | --program-suffi | --program-suff \
667   | --program-suf | --program-su | --program-s)
668     ac_prev=program_suffix ;;
669   -program-suffix=* | --program-suffix=* | --program-suffi=* \
670   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671     program_suffix=$ac_optarg ;;
672
673   -program-transform-name | --program-transform-name \
674   | --program-transform-nam | --program-transform-na \
675   | --program-transform-n | --program-transform- \
676   | --program-transform | --program-transfor \
677   | --program-transfo | --program-transf \
678   | --program-trans | --program-tran \
679   | --progr-tra | --program-tr | --program-t)
680     ac_prev=program_transform_name ;;
681   -program-transform-name=* | --program-transform-name=* \
682   | --program-transform-nam=* | --program-transform-na=* \
683   | --program-transform-n=* | --program-transform-=* \
684   | --program-transform=* | --program-transfor=* \
685   | --program-transfo=* | --program-transf=* \
686   | --program-trans=* | --program-tran=* \
687   | --progr-tra=* | --program-tr=* | --program-t=*)
688     program_transform_name=$ac_optarg ;;
689
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
693
694   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695     ac_prev=sbindir ;;
696   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697   | --sbi=* | --sb=*)
698     sbindir=$ac_optarg ;;
699
700   -sharedstatedir | --sharedstatedir | --sharedstatedi \
701   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702   | --sharedst | --shareds | --shared | --share | --shar \
703   | --sha | --sh)
704     ac_prev=sharedstatedir ;;
705   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708   | --sha=* | --sh=*)
709     sharedstatedir=$ac_optarg ;;
710
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
715
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
720
721   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722   | --syscon | --sysco | --sysc | --sys | --sy)
723     ac_prev=sysconfdir ;;
724   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726     sysconfdir=$ac_optarg ;;
727
728   -target | --target | --targe | --targ | --tar | --ta | --t)
729     ac_prev=target_alias ;;
730   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731     target_alias=$ac_optarg ;;
732
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
735
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
738
739   -with-* | --with-*)
740     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741     # Reject names that are not valid shell variable names.
742     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743       { echo "$as_me: error: invalid package name: $ac_package" >&2
744    { (exit 1); exit 1; }; }
745     ac_package=`echo $ac_package| sed 's/-/_/g'`
746     case $ac_option in
747       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748       *) ac_optarg=yes ;;
749     esac
750     eval "with_$ac_package='$ac_optarg'" ;;
751
752   -without-* | --without-*)
753     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package | sed 's/-/_/g'`
759     eval "with_$ac_package=no" ;;
760
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
764
765   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766   | --x-incl | --x-inc | --x-in | --x-i)
767     ac_prev=x_includes ;;
768   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770     x_includes=$ac_optarg ;;
771
772   -x-libraries | --x-libraries | --x-librarie | --x-librari \
773   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774     ac_prev=x_libraries ;;
775   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777     x_libraries=$ac_optarg ;;
778
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
783
784   *=*)
785     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786     # Reject names that are not valid shell variable names.
787     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789    { (exit 1); exit 1; }; }
790     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791     eval "$ac_envvar='$ac_optarg'"
792     export $ac_envvar ;;
793
794   *)
795     # FIXME: should be removed in autoconf 3.0.
796     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800     ;;
801
802   esac
803 done
804
805 if test -n "$ac_prev"; then
806   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807   { echo "$as_me: error: missing argument to $ac_option" >&2
808    { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824               localstatedir libdir includedir oldincludedir infodir mandir
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843   if test "x$build_alias" = x; then
844     cross_compiling=maybe
845     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846     If a cross compiler is detected then cross compile mode will be used." >&2
847   elif test "x$build_alias" != "x$host_alias"; then
848     cross_compiling=yes
849   fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860   ac_srcdir_defaulted=yes
861   # Try the directory containing this script, then its parent.
862   ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864          X"$0" : 'X\(//\)[^/]' \| \
865          X"$0" : 'X\(//\)$' \| \
866          X"$0" : 'X\(/\)' \| \
867          .     : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871           /^X\(\/\/\)$/{ s//\1/; q; }
872           /^X\(\/\).*/{ s//\1/; q; }
873           s/.*/./; q'`
874   srcdir=$ac_confdir
875   if test ! -r $srcdir/$ac_unique_file; then
876     srcdir=..
877   fi
878 else
879   ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882   if test "$ac_srcdir_defaulted" = yes; then
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884    { (exit 1); exit 1; }; }
885   else
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887    { (exit 1); exit 1; }; }
888   fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892    { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if test "$ac_init_help" = "long"; then
951   # Omit some internal or obsolete options to make the list less imposing.
952   # This message is too long to be a string in the A/UX 3.1 sh.
953   cat <<_ACEOF
954 \`configure' configures this package to adapt to many kinds of systems.
955
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
964   -h, --help              display this help and exit
965       --help=short        display options specific to this package
966       --help=recursive    display the short help of all the included packages
967   -V, --version           display version information and exit
968   -q, --quiet, --silent   do not print \`checking...' messages
969       --cache-file=FILE   cache test results in FILE [disabled]
970   -C, --config-cache      alias for \`--cache-file=config.cache'
971   -n, --no-create         do not create output files
972       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974 _ACEOF
975
976   cat <<_ACEOF
977 Installation directories:
978   --prefix=PREFIX         install architecture-independent files in PREFIX
979                           [$ac_default_prefix]
980   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981                           [PREFIX]
982
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine tuning of the installation directories:
991   --bindir=DIR           user executables [EPREFIX/bin]
992   --sbindir=DIR          system admin executables [EPREFIX/sbin]
993   --libexecdir=DIR       program executables [EPREFIX/libexec]
994   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998   --libdir=DIR           object code libraries [EPREFIX/lib]
999   --includedir=DIR       C header files [PREFIX/include]
1000   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001   --infodir=DIR          info documentation [PREFIX/info]
1002   --mandir=DIR           man documentation [PREFIX/man]
1003 _ACEOF
1004
1005   cat <<\_ACEOF
1006
1007 Program names:
1008   --program-prefix=PREFIX            prepend PREFIX to installed program names
1009   --program-suffix=SUFFIX            append SUFFIX to installed program names
1010   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019
1020   cat <<\_ACEOF
1021
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-shared[=PKGS]
1026                           build shared libraries [default=no]
1027   --enable-static[=PKGS]
1028                           build static libraries [default=yes]
1029   --enable-maintainer-mode  enable make rules and dependencies not useful
1030                           (and sometimes confusing) to the casual installer
1031   --disable-dependency-tracking  speeds up one-time build
1032   --enable-dependency-tracking   do not reject slow dependency extractors
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036   --disable-largefile     omit support for large files
1037   --enable-shadowgrp      enable shadow group support [default=yes]
1038   --enable-man            regenerate roff man pages from Docbook
1039                           [default=no]
1040   --disable-nls           do not use Native Language Support
1041   --disable-rpath         do not hardcode runtime library paths
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-audit            use auditing support [default=yes if found]
1052   --with-libpam           use libpam for PAM support [default=yes if
1053                           found]
1054   --with-selinux          use SELinux support [default=autodetect]
1055   --with-skey             use S/Key support [default=no]
1056   --with-libcrack         use libcrack [default=yes if found and if PAM not
1057                           enabled]
1058   --with-xml-catalog=CATALOG
1059                           path to xml catalog to use
1060   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1061   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1062   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1063   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1064   --without-libintl-prefix     don't search for libintl in includedir and libdir
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 _ACEOF
1084 fi
1085
1086 if test "$ac_init_help" = "recursive"; then
1087   # If there are subdirs, report their specific --help.
1088   ac_popdir=`pwd`
1089   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090     test -d $ac_dir || continue
1091     ac_builddir=.
1092
1093 if test "$ac_dir" != .; then
1094   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095   # A "../" for each directory in $ac_dir_suffix.
1096   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098   ac_dir_suffix= ac_top_builddir=
1099 fi
1100
1101 case $srcdir in
1102   .)  # No --srcdir option.  We are building in place.
1103     ac_srcdir=.
1104     if test -z "$ac_top_builddir"; then
1105        ac_top_srcdir=.
1106     else
1107        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108     fi ;;
1109   [\\/]* | ?:[\\/]* )  # Absolute path.
1110     ac_srcdir=$srcdir$ac_dir_suffix;
1111     ac_top_srcdir=$srcdir ;;
1112   *) # Relative path.
1113     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1116
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122   case "$ac_dir" in
1123   .) ac_abs_builddir=`pwd`;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131   case ${ac_top_builddir}. in
1132   .) ac_abs_top_builddir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140   case $ac_srcdir in
1141   .) ac_abs_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149   case $ac_top_srcdir in
1150   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153   esac;;
1154 esac
1155
1156     cd $ac_dir
1157     # Check for guested configure; otherwise get Cygnus style configure.
1158     if test -f $ac_srcdir/configure.gnu; then
1159       echo
1160       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161     elif test -f $ac_srcdir/configure; then
1162       echo
1163       $SHELL $ac_srcdir/configure  --help=recursive
1164     elif test -f $ac_srcdir/configure.ac ||
1165            test -f $ac_srcdir/configure.in; then
1166       echo
1167       $ac_configure --help
1168     else
1169       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170     fi
1171     cd $ac_popdir
1172   done
1173 fi
1174
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177   cat <<\_ACEOF
1178
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by $as_me, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 am__api_version="1.9"
1519 ac_aux_dir=
1520 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521   if test -f $ac_dir/install-sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install-sh -c"
1524     break
1525   elif test -f $ac_dir/install.sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install.sh -c"
1528     break
1529   elif test -f $ac_dir/shtool; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/shtool install -c"
1532     break
1533   fi
1534 done
1535 if test -z "$ac_aux_dir"; then
1536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538    { (exit 1); exit 1; }; }
1539 fi
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544 # Find a good install program.  We prefer a C program (faster),
1545 # so one script is as good as another.  But avoid the broken or
1546 # incompatible versions:
1547 # SysV /etc/install, /usr/sbin/install
1548 # SunOS /usr/etc/install
1549 # IRIX /sbin/install
1550 # AIX /bin/install
1551 # AmigaOS /C/install, which installs bootblocks on floppy discs
1552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555 # OS/2's system install, which has a completely different semantic
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559 if test -z "$INSTALL"; then
1560 if test "${ac_cv_path_install+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   # Account for people who put trailing slashes in PATH elements.
1569 case $as_dir/ in
1570   ./ | .// | /cC/* | \
1571   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573   /usr/ucb/* ) ;;
1574   *)
1575     # OSF1 and SCO ODT 3.0 have their own names for install.
1576     # Don't use installbsd from OSF since it installs stuff as root
1577     # by default.
1578     for ac_prog in ginstall scoinst install; do
1579       for ac_exec_ext in '' $ac_executable_extensions; do
1580         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581           if test $ac_prog = install &&
1582             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583             # AIX install.  It has an incompatible calling convention.
1584             :
1585           elif test $ac_prog = install &&
1586             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587             # program-specific install script used by HP pwplus--don't use.
1588             :
1589           else
1590             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591             break 3
1592           fi
1593         fi
1594       done
1595     done
1596     ;;
1597 esac
1598 done
1599
1600
1601 fi
1602   if test "${ac_cv_path_install+set}" = set; then
1603     INSTALL=$ac_cv_path_install
1604   else
1605     # As a last resort, use the slow shell script.  We don't cache a
1606     # path for INSTALL within a source directory, because that will
1607     # break other packages using the cache if that directory is
1608     # removed, or if the path is relative.
1609     INSTALL=$ac_install_sh
1610   fi
1611 fi
1612 echo "$as_me:$LINENO: result: $INSTALL" >&5
1613 echo "${ECHO_T}$INSTALL" >&6
1614
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625 # Just in case
1626 sleep 1
1627 echo timestamp > conftest.file
1628 # Do `set' in a subshell so we don't clobber the current shell's
1629 # arguments.  Must try -L first in case configure is actually a
1630 # symlink; some systems play weird games with the mod time of symlinks
1631 # (eg FreeBSD returns the mod time of the symlink's containing
1632 # directory).
1633 if (
1634    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635    if test "$*" = "X"; then
1636       # -L didn't work.
1637       set X `ls -t $srcdir/configure conftest.file`
1638    fi
1639    rm -f conftest.file
1640    if test "$*" != "X $srcdir/configure conftest.file" \
1641       && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643       # If neither matched, then we have a broken ls.  This can happen
1644       # if, for instance, CONFIG_SHELL is bash and it inherits a
1645       # broken ls alias from the environment.  This has actually
1646       # happened.  Such a system could not be considered "sane".
1647       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1648 alias in your environment" >&5
1649 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1650 alias in your environment" >&2;}
1651    { (exit 1); exit 1; }; }
1652    fi
1653
1654    test "$2" = conftest.file
1655    )
1656 then
1657    # Ok.
1658    :
1659 else
1660    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661 Check your system clock" >&5
1662 echo "$as_me: error: newly created file is older than distributed files!
1663 Check your system clock" >&2;}
1664    { (exit 1); exit 1; }; }
1665 fi
1666 echo "$as_me:$LINENO: result: yes" >&5
1667 echo "${ECHO_T}yes" >&6
1668 test "$program_prefix" != NONE &&
1669   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670 # Use a double $ so make ignores it.
1671 test "$program_suffix" != NONE &&
1672   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673 # Double any \ or $.  echo might interpret backslashes.
1674 # By default was `s,x,x', remove it if useless.
1675 cat <<\_ACEOF >conftest.sed
1676 s/[\\$]/&&/g;s/;s,x,x,$//
1677 _ACEOF
1678 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679 rm conftest.sed
1680
1681 # expand $ac_aux_dir to an absolute path
1682 am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685 # Use eval to expand $SHELL
1686 if eval "$MISSING --run true"; then
1687   am_missing_run="$MISSING --run "
1688 else
1689   am_missing_run=
1690   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692 fi
1693
1694 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695   # We used to keeping the `.' as first argument, in order to
1696   # allow $(mkdir_p) to be used without argument.  As in
1697   #   $(mkdir_p) $(somedir)
1698   # where $(somedir) is conditionally defined.  However this is wrong
1699   # for two reasons:
1700   #  1. if the package is installed by a user who cannot write `.'
1701   #     make install will fail,
1702   #  2. the above comment should most certainly read
1703   #     $(mkdir_p) $(DESTDIR)$(somedir)
1704   #     so it does not work when $(somedir) is undefined and
1705   #     $(DESTDIR) is not.
1706   #  To support the latter case, we have to write
1707   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708   #  so the `.' trick is pointless.
1709   mkdir_p='mkdir -p --'
1710 else
1711   # On NextStep and OpenStep, the `mkdir' command does not
1712   # recognize any option.  It will interpret all options as
1713   # directories to create, and then abort because `.' already
1714   # exists.
1715   for d in ./-p ./--version;
1716   do
1717     test -d $d && rmdir $d
1718   done
1719   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720   if test -f "$ac_aux_dir/mkinstalldirs"; then
1721     mkdir_p='$(mkinstalldirs)'
1722   else
1723     mkdir_p='$(install_sh) -d'
1724   fi
1725 fi
1726
1727 for ac_prog in gawk mawk nawk awk
1728 do
1729   # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_AWK+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$AWK"; then
1737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_AWK="$ac_prog"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753 fi
1754 fi
1755 AWK=$ac_cv_prog_AWK
1756 if test -n "$AWK"; then
1757   echo "$as_me:$LINENO: result: $AWK" >&5
1758 echo "${ECHO_T}$AWK" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764   test -n "$AWK" && break
1765 done
1766
1767 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   cat >conftest.make <<\_ACEOF
1774 all:
1775         @echo 'ac_maketemp="$(MAKE)"'
1776 _ACEOF
1777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779 if test -n "$ac_maketemp"; then
1780   eval ac_cv_prog_make_${ac_make}_set=yes
1781 else
1782   eval ac_cv_prog_make_${ac_make}_set=no
1783 fi
1784 rm -f conftest.make
1785 fi
1786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787   echo "$as_me:$LINENO: result: yes" >&5
1788 echo "${ECHO_T}yes" >&6
1789   SET_MAKE=
1790 else
1791   echo "$as_me:$LINENO: result: no" >&5
1792 echo "${ECHO_T}no" >&6
1793   SET_MAKE="MAKE=${MAKE-make}"
1794 fi
1795
1796 rm -rf .tst 2>/dev/null
1797 mkdir .tst 2>/dev/null
1798 if test -d .tst; then
1799   am__leading_dot=.
1800 else
1801   am__leading_dot=_
1802 fi
1803 rmdir .tst 2>/dev/null
1804
1805 # test to see if srcdir already configured
1806 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807    test -f $srcdir/config.status; then
1808   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810    { (exit 1); exit 1; }; }
1811 fi
1812
1813 # test whether we have cygpath
1814 if test -z "$CYGPATH_W"; then
1815   if (cygpath --version) >/dev/null 2>/dev/null; then
1816     CYGPATH_W='cygpath -w'
1817   else
1818     CYGPATH_W=echo
1819   fi
1820 fi
1821
1822
1823 # Define the identity of the package.
1824  PACKAGE=shadow
1825  VERSION=4.0.14
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE "$PACKAGE"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define VERSION "$VERSION"
1835 _ACEOF
1836
1837 # Some tools Automake needs.
1838
1839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840
1841
1842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843
1844
1845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846
1847
1848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849
1850
1851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852
1853 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1854
1855 # Installed binaries are usually stripped using `strip' when the user
1856 # run `make install-strip'.  However `strip' might not be the right
1857 # tool to use in cross-compilation environments, therefore Automake
1858 # will honor the `STRIP' environment variable to overrule this program.
1859 if test "$cross_compiling" != no; then
1860   if test -n "$ac_tool_prefix"; then
1861   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862 set dummy ${ac_tool_prefix}strip; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_STRIP+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   if test -n "$STRIP"; then
1869   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870 else
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874   IFS=$as_save_IFS
1875   test -z "$as_dir" && as_dir=.
1876   for ac_exec_ext in '' $ac_executable_extensions; do
1877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880     break 2
1881   fi
1882 done
1883 done
1884
1885 fi
1886 fi
1887 STRIP=$ac_cv_prog_STRIP
1888 if test -n "$STRIP"; then
1889   echo "$as_me:$LINENO: result: $STRIP" >&5
1890 echo "${ECHO_T}$STRIP" >&6
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894 fi
1895
1896 fi
1897 if test -z "$ac_cv_prog_STRIP"; then
1898   ac_ct_STRIP=$STRIP
1899   # Extract the first word of "strip", so it can be a program name with args.
1900 set dummy strip; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   if test -n "$ac_ct_STRIP"; then
1907   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908 else
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1911 do
1912   IFS=$as_save_IFS
1913   test -z "$as_dir" && as_dir=.
1914   for ac_exec_ext in '' $ac_executable_extensions; do
1915   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916     ac_cv_prog_ac_ct_STRIP="strip"
1917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918     break 2
1919   fi
1920 done
1921 done
1922
1923   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924 fi
1925 fi
1926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927 if test -n "$ac_ct_STRIP"; then
1928   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929 echo "${ECHO_T}$ac_ct_STRIP" >&6
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933 fi
1934
1935   STRIP=$ac_ct_STRIP
1936 else
1937   STRIP="$ac_cv_prog_STRIP"
1938 fi
1939
1940 fi
1941 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1942
1943 # We need awk for the "check" target.  The system "awk" is bad on
1944 # some platforms.
1945 # Always define AMTAR for backward compatibility.
1946
1947 AMTAR=${AMTAR-"${am_missing_run}tar"}
1948
1949 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1950
1951
1952
1953
1954
1955           ac_config_headers="$ac_config_headers config.h"
1956
1957
1958 test "$prefix" = "NONE" && prefix="/usr"
1959 test "$prefix" = "/usr" && exec_prefix=""
1960
1961
1962 cat >>confdefs.h <<\_ACEOF
1963 #define _GNU_SOURCE 1
1964 _ACEOF
1965
1966
1967
1968 # Check whether --enable-shared or --disable-shared was given.
1969 if test "${enable_shared+set}" = set; then
1970   enableval="$enable_shared"
1971   p=${PACKAGE-default}
1972     case $enableval in
1973     yes) enable_shared=yes ;;
1974     no) enable_shared=no ;;
1975     *)
1976       enable_shared=no
1977       # Look at the argument we got.  We use all the common list separators.
1978       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1979       for pkg in $enableval; do
1980         IFS="$lt_save_ifs"
1981         if test "X$pkg" = "X$p"; then
1982           enable_shared=yes
1983         fi
1984       done
1985       IFS="$lt_save_ifs"
1986       ;;
1987     esac
1988 else
1989   enable_shared=no
1990 fi;
1991
1992
1993 # Check whether --enable-static or --disable-static was given.
1994 if test "${enable_static+set}" = set; then
1995   enableval="$enable_static"
1996   p=${PACKAGE-default}
1997     case $enableval in
1998     yes) enable_static=yes ;;
1999     no) enable_static=no ;;
2000     *)
2001      enable_static=no
2002       # Look at the argument we got.  We use all the common list separators.
2003       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2004       for pkg in $enableval; do
2005         IFS="$lt_save_ifs"
2006         if test "X$pkg" = "X$p"; then
2007           enable_static=yes
2008         fi
2009       done
2010       IFS="$lt_save_ifs"
2011       ;;
2012     esac
2013 else
2014   enable_static=yes
2015 fi;
2016
2017
2018 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2019 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2020     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2021 if test "${enable_maintainer_mode+set}" = set; then
2022   enableval="$enable_maintainer_mode"
2023   USE_MAINTAINER_MODE=$enableval
2024 else
2025   USE_MAINTAINER_MODE=no
2026 fi;
2027   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2028 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2029
2030
2031 if test $USE_MAINTAINER_MODE = yes; then
2032   MAINTAINER_MODE_TRUE=
2033   MAINTAINER_MODE_FALSE='#'
2034 else
2035   MAINTAINER_MODE_TRUE='#'
2036   MAINTAINER_MODE_FALSE=
2037 fi
2038
2039   MAINT=$MAINTAINER_MODE_TRUE
2040
2041
2042
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$CC"; then
2057   ac_cv_prog_CC="$CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077   echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2079 else
2080   echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084 fi
2085 if test -z "$ac_cv_prog_CC"; then
2086   ac_ct_CC=$CC
2087   # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$ac_ct_CC"; then
2095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104     ac_cv_prog_ac_ct_CC="gcc"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110
2111 fi
2112 fi
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2117 else
2118   echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2120 fi
2121
2122   CC=$ac_ct_CC
2123 else
2124   CC="$ac_cv_prog_CC"
2125 fi
2126
2127 if test -z "$CC"; then
2128   if test -n "$ac_tool_prefix"; then
2129   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_CC="${ac_tool_prefix}cc"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157   echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164 fi
2165 if test -z "$ac_cv_prog_CC"; then
2166   ac_ct_CC=$CC
2167   # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$ac_ct_CC"; then
2175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184     ac_cv_prog_ac_ct_CC="cc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191 fi
2192 fi
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2197 else
2198   echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2200 fi
2201
2202   CC=$ac_ct_CC
2203 else
2204   CC="$ac_cv_prog_CC"
2205 fi
2206
2207 fi
2208 if test -z "$CC"; then
2209   # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   if test -n "$CC"; then
2217   ac_cv_prog_CC="$CC" # Let the user override the test.
2218 else
2219   ac_prog_rejected=no
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   for ac_exec_ext in '' $ac_executable_extensions; do
2226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228        ac_prog_rejected=yes
2229        continue
2230      fi
2231     ac_cv_prog_CC="cc"
2232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233     break 2
2234   fi
2235 done
2236 done
2237
2238 if test $ac_prog_rejected = yes; then
2239   # We found a bogon in the path, so make sure we never use it.
2240   set dummy $ac_cv_prog_CC
2241   shift
2242   if test $# != 0; then
2243     # We chose a different compiler from the bogus one.
2244     # However, it has the same basename, so the bogon will be chosen
2245     # first if we set CC to just the basename; use the full file name.
2246     shift
2247     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2248   fi
2249 fi
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 fi
2262 if test -z "$CC"; then
2263   if test -n "$ac_tool_prefix"; then
2264   for ac_prog in cl
2265   do
2266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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     test -n "$CC" && break
2302   done
2303 fi
2304 if test -z "$CC"; then
2305   ac_ct_CC=$CC
2306   for ac_prog in cl
2307 do
2308   # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   if test -n "$ac_ct_CC"; then
2316   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321   IFS=$as_save_IFS
2322   test -z "$as_dir" && as_dir=.
2323   for ac_exec_ext in '' $ac_executable_extensions; do
2324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325     ac_cv_prog_ac_ct_CC="$ac_prog"
2326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327     break 2
2328   fi
2329 done
2330 done
2331
2332 fi
2333 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2338 else
2339   echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343   test -n "$ac_ct_CC" && break
2344 done
2345
2346   CC=$ac_ct_CC
2347 fi
2348
2349 fi
2350
2351
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356    { (exit 1); exit 1; }; }
2357
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360      "checking for C compiler version" >&5
2361 ac_compiler=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363   (eval $ac_compiler --version </dev/null >&5) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368   (eval $ac_compiler -v </dev/null >&5) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373   (eval $ac_compiler -V </dev/null >&5) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 int
2386 main ()
2387 {
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2397 # of exeext.
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402   (eval $ac_link_default) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; then
2406   # Find the output, starting from the most likely.  This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2408 # resort.
2409
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2412 ac_cv_exeext=
2413 # b.out is created by i960 compilers.
2414 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2415 do
2416   test -f "$ac_file" || continue
2417   case $ac_file in
2418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2419         ;;
2420     conftest.$ac_ext )
2421         # This is the source file.
2422         ;;
2423     [ab].out )
2424         # We found the default executable, but exeext='' is most
2425         # certainly right.
2426         break;;
2427     *.* )
2428         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429         # FIXME: I believe we export ac_cv_exeext for Libtool,
2430         # but it would be cool to find out if it's true.  Does anybody
2431         # maintain Libtool? --akim.
2432         export ac_cv_exeext
2433         break;;
2434     * )
2435         break;;
2436   esac
2437 done
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446    { (exit 77); exit 77; }; }
2447 fi
2448
2449 ac_exeext=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2452
2453 # Check the compiler produces executables we can run.  If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460   if { ac_try='./$ac_file'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466     cross_compiling=no
2467   else
2468     if test "$cross_compiling" = maybe; then
2469         cross_compiling=yes
2470     else
2471         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477    { (exit 1); exit 1; }; }
2478     fi
2479   fi
2480 fi
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2483
2484 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485 ac_clean_files=$ac_clean_files_save
2486 # Check the compiler produces executables we can run.  If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2492
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496   (eval $ac_link) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; then
2500   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2503 # `rm'.
2504 for ac_file in conftest.exe conftest conftest.*; do
2505   test -f "$ac_file" || continue
2506   case $ac_file in
2507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2508     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509           export ac_cv_exeext
2510           break;;
2511     * ) break;;
2512   esac
2513 done
2514 else
2515   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519    { (exit 1); exit 1; }; }
2520 fi
2521
2522 rm -f conftest$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2525
2526 rm -f conftest.$ac_ext
2527 EXEEXT=$ac_cv_exeext
2528 ac_exeext=$EXEEXT
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; then
2555   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559        break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570    { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594 #ifndef __GNUC__
2595        choke me
2596 #endif
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604   (eval $ac_compile) 2>conftest.er1
2605   ac_status=$?
2606   grep -v '^ *+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } &&
2611          { ac_try='test -z "$ac_c_werror_flag"
2612                          || test ! -s conftest.err'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; } &&
2618          { ac_try='test -s conftest.$ac_objext'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; }; then
2624   ac_compiler_gnu=yes
2625 else
2626   echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 ac_compiler_gnu=no
2630 fi
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633
2634 fi
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS=${CFLAGS+set}
2639 ac_save_CFLAGS=$CFLAGS
2640 CFLAGS="-g"
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652
2653 int
2654 main ()
2655 {
2656
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663   (eval $ac_compile) 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } &&
2670          { ac_try='test -z "$ac_c_werror_flag"
2671                          || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_prog_cc_g=yes
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 ac_cv_prog_cc_g=no
2689 fi
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695   CFLAGS=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697   if test "$GCC" = yes; then
2698     CFLAGS="-g -O2"
2699   else
2700     CFLAGS="-g"
2701   fi
2702 else
2703   if test "$GCC" = yes; then
2704     CFLAGS="-O2"
2705   else
2706     CFLAGS=
2707   fi
2708 fi
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   ac_cv_prog_cc_stdc=no
2715 ac_save_CC=$CC
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722 #include <stdarg.h>
2723 #include <stdio.h>
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2730      char **p;
2731      int i;
2732 {
2733   return p[i];
2734 }
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2736 {
2737   char *s;
2738   va_list v;
2739   va_start (v,p);
2740   s = g (p, va_arg (v,int));
2741   va_end (v);
2742   return s;
2743 }
2744
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2746    function prototypes and stuff, but not '\xHH' hex character constants.
2747    These don't provoke an error unfortunately, instead are silently treated
2748    as 'x'.  The following induces an error, until -std1 is added to get
2749    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2750    array size at least.  It's necessary to write '\x00'==0 to get something
2751    that's true only with -std1.  */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2753
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2758 int argc;
2759 char **argv;
2760 int
2761 main ()
2762 {
2763 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX                   -qlanglvl=ansi
2771 # Ultrix and OSF/1      -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2774 # SVR4                  -Xc -D__EXTENSIONS__
2775 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776 do
2777   CC="$ac_save_CC $ac_arg"
2778   rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780   (eval $ac_compile) 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -z "$ac_c_werror_flag"
2788                          || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_stdc=$ac_arg
2801 break
2802 else
2803   echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 fi
2807 rm -f conftest.err conftest.$ac_objext
2808 done
2809 rm -f conftest.$ac_ext conftest.$ac_objext
2810 CC=$ac_save_CC
2811
2812 fi
2813
2814 case "x$ac_cv_prog_cc_stdc" in
2815   x|xno)
2816     echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2818   *)
2819     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821     CC="$CC $ac_cv_prog_cc_stdc" ;;
2822 esac
2823
2824 # Some people use a C++ compiler to compile C.  Since we use `exit',
2825 # in C++ we need to declare it.  In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #ifndef __cplusplus
2830   choke me
2831 #endif
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835   (eval $ac_compile) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"
2843                          || test ! -s conftest.err'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; } &&
2849          { ac_try='test -s conftest.$ac_objext'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855   for ac_declaration in \
2856    '' \
2857    'extern "C" void std::exit (int) throw (); using std::exit;' \
2858    'extern "C" void std::exit (int); using std::exit;' \
2859    'extern "C" void exit (int) throw ();' \
2860    'extern "C" void exit (int);' \
2861    'void exit (int);'
2862 do
2863   cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869 $ac_declaration
2870 #include <stdlib.h>
2871 int
2872 main ()
2873 {
2874 exit (42);
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_c_werror_flag"
2889                          || test ! -s conftest.err'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; } &&
2895          { ac_try='test -s conftest.$ac_objext'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   :
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 continue
2907 fi
2908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 $ac_declaration
2916 int
2917 main ()
2918 {
2919 exit (42);
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926   (eval $ac_compile) 2>conftest.er1
2927   ac_status=$?
2928   grep -v '^ *+' conftest.er1 >conftest.err
2929   rm -f conftest.er1
2930   cat conftest.err >&5
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } &&
2933          { ac_try='test -z "$ac_c_werror_flag"
2934                          || test ! -s conftest.err'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; } &&
2940          { ac_try='test -s conftest.$ac_objext'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; }; then
2946   break
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 fi
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 done
2954 rm -f conftest*
2955 if test -n "$ac_declaration"; then
2956   echo '#ifdef __cplusplus' >>confdefs.h
2957   echo $ac_declaration      >>confdefs.h
2958   echo '#endif'             >>confdefs.h
2959 fi
2960
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 fi
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 DEPDIR="${am__leading_dot}deps"
2973
2974           ac_config_commands="$ac_config_commands depfiles"
2975
2976
2977 am_make=${MAKE-make}
2978 cat > confinc << 'END'
2979 am__doit:
2980         @echo done
2981 .PHONY: am__doit
2982 END
2983 # If we don't find an include directive, just comment out the code.
2984 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2985 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2986 am__include="#"
2987 am__quote=
2988 _am_result=none
2989 # First try GNU make style include.
2990 echo "include confinc" > confmf
2991 # We grep out `Entering directory' and `Leaving directory'
2992 # messages which can occur if `w' ends up in MAKEFLAGS.
2993 # In particular we don't look at `^make:' because GNU make might
2994 # be invoked under some other name (usually "gmake"), in which
2995 # case it prints its new name instead of `make'.
2996 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2997    am__include=include
2998    am__quote=
2999    _am_result=GNU
3000 fi
3001 # Now try BSD make style include.
3002 if test "$am__include" = "#"; then
3003    echo '.include "confinc"' > confmf
3004    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3005       am__include=.include
3006       am__quote="\""
3007       _am_result=BSD
3008    fi
3009 fi
3010
3011
3012 echo "$as_me:$LINENO: result: $_am_result" >&5
3013 echo "${ECHO_T}$_am_result" >&6
3014 rm -f confinc confmf
3015
3016 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3017 if test "${enable_dependency_tracking+set}" = set; then
3018   enableval="$enable_dependency_tracking"
3019
3020 fi;
3021 if test "x$enable_dependency_tracking" != xno; then
3022   am_depcomp="$ac_aux_dir/depcomp"
3023   AMDEPBACKSLASH='\'
3024 fi
3025
3026
3027 if test "x$enable_dependency_tracking" != xno; then
3028   AMDEP_TRUE=
3029   AMDEP_FALSE='#'
3030 else
3031   AMDEP_TRUE='#'
3032   AMDEP_FALSE=
3033 fi
3034
3035
3036
3037
3038 depcc="$CC"   am_compiler_list=
3039
3040 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3041 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3042 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3046   # We make a subdir and do the tests there.  Otherwise we can end up
3047   # making bogus files that we don't know about and never remove.  For
3048   # instance it was reported that on HP-UX the gcc test will end up
3049   # making a dummy file named `D' -- because `-MD' means `put the output
3050   # in D'.
3051   mkdir conftest.dir
3052   # Copy depcomp to subdir because otherwise we won't find it if we're
3053   # using a relative directory.
3054   cp "$am_depcomp" conftest.dir
3055   cd conftest.dir
3056   # We will build objects and dependencies in a subdirectory because
3057   # it helps to detect inapplicable dependency modes.  For instance
3058   # both Tru64's cc and ICC support -MD to output dependencies as a
3059   # side effect of compilation, but ICC will put the dependencies in
3060   # the current directory while Tru64 will put them in the object
3061   # directory.
3062   mkdir sub
3063
3064   am_cv_CC_dependencies_compiler_type=none
3065   if test "$am_compiler_list" = ""; then
3066      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3067   fi
3068   for depmode in $am_compiler_list; do
3069     # Setup a source with many dependencies, because some compilers
3070     # like to wrap large dependency lists on column 80 (with \), and
3071     # we should not choose a depcomp mode which is confused by this.
3072     #
3073     # We need to recreate these files for each test, as the compiler may
3074     # overwrite some of them when testing with obscure command lines.
3075     # This happens at least with the AIX C compiler.
3076     : > sub/conftest.c
3077     for i in 1 2 3 4 5 6; do
3078       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3079       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3080       # Solaris 8's {/usr,}/bin/sh.
3081       touch sub/conftst$i.h
3082     done
3083     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3084
3085     case $depmode in
3086     nosideeffect)
3087       # after this tag, mechanisms are not by side-effect, so they'll
3088       # only be used when explicitly requested
3089       if test "x$enable_dependency_tracking" = xyes; then
3090         continue
3091       else
3092         break
3093       fi
3094       ;;
3095     none) break ;;
3096     esac
3097     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3098     # mode.  It turns out that the SunPro C++ compiler does not properly
3099     # handle `-M -o', and we need to detect this.
3100     if depmode=$depmode \
3101        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3102        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3103        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3104          >/dev/null 2>conftest.err &&
3105        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3106        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3107        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3108       # icc doesn't choke on unknown options, it will just issue warnings
3109       # or remarks (even with -Werror).  So we grep stderr for any message
3110       # that says an option was ignored or not supported.
3111       # When given -MP, icc 7.0 and 7.1 complain thusly:
3112       #   icc: Command line warning: ignoring option '-M'; no argument required
3113       # The diagnosis changed in icc 8.0:
3114       #   icc: Command line remark: option '-MP' not supported
3115       if (grep 'ignoring option' conftest.err ||
3116           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3117         am_cv_CC_dependencies_compiler_type=$depmode
3118         break
3119       fi
3120     fi
3121   done
3122
3123   cd ..
3124   rm -rf conftest.dir
3125 else
3126   am_cv_CC_dependencies_compiler_type=none
3127 fi
3128
3129 fi
3130 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3131 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3132 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3133
3134
3135
3136 if
3137   test "x$enable_dependency_tracking" != xno \
3138   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3139   am__fastdepCC_TRUE=
3140   am__fastdepCC_FALSE='#'
3141 else
3142   am__fastdepCC_TRUE='#'
3143   am__fastdepCC_FALSE=
3144 fi
3145
3146
3147
3148 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3149 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3150 if test "${ac_cv_search_strerror+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   ac_func_search_save_LIBS=$LIBS
3154 ac_cv_search_strerror=no
3155 cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161
3162 /* Override any gcc2 internal prototype to avoid an error.  */
3163 #ifdef __cplusplus
3164 extern "C"
3165 #endif
3166 /* We use char because int might match the return type of a gcc2
3167    builtin and then its argument prototype would still apply.  */
3168 char strerror ();
3169 int
3170 main ()
3171 {
3172 strerror ();
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179   (eval $ac_link) 2>conftest.er1
3180   ac_status=$?
3181   grep -v '^ *+' conftest.er1 >conftest.err
3182   rm -f conftest.er1
3183   cat conftest.err >&5
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); } &&
3186          { ac_try='test -z "$ac_c_werror_flag"
3187                          || test ! -s conftest.err'
3188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189   (eval $ac_try) 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }; } &&
3193          { ac_try='test -s conftest$ac_exeext'
3194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195   (eval $ac_try) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   ac_cv_search_strerror="none required"
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 fi
3205 rm -f conftest.err conftest.$ac_objext \
3206       conftest$ac_exeext conftest.$ac_ext
3207 if test "$ac_cv_search_strerror" = no; then
3208   for ac_lib in cposix; do
3209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3210     cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h.  */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h.  */
3216
3217 /* Override any gcc2 internal prototype to avoid an error.  */
3218 #ifdef __cplusplus
3219 extern "C"
3220 #endif
3221 /* We use char because int might match the return type of a gcc2
3222    builtin and then its argument prototype would still apply.  */
3223 char strerror ();
3224 int
3225 main ()
3226 {
3227 strerror ();
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234   (eval $ac_link) 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -z "$ac_c_werror_flag"
3242                          || test ! -s conftest.err'
3243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244   (eval $ac_try) 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }; } &&
3248          { ac_try='test -s conftest$ac_exeext'
3249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250   (eval $ac_try) 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }; }; then
3254   ac_cv_search_strerror="-l$ac_lib"
3255 break
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 fi
3261 rm -f conftest.err conftest.$ac_objext \
3262       conftest$ac_exeext conftest.$ac_ext
3263   done
3264 fi
3265 LIBS=$ac_func_search_save_LIBS
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3268 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3269 if test "$ac_cv_search_strerror" != no; then
3270   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3271
3272 fi
3273
3274 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3275 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3276 LN_S=$as_ln_s
3277 if test "$LN_S" = "ln -s"; then
3278   echo "$as_me:$LINENO: result: yes" >&5
3279 echo "${ECHO_T}yes" >&6
3280 else
3281   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3282 echo "${ECHO_T}no, using $LN_S" >&6
3283 fi
3284
3285 for ac_prog in 'bison -y' byacc
3286 do
3287   # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291 if test "${ac_cv_prog_YACC+set}" = set; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294   if test -n "$YACC"; then
3295   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300   IFS=$as_save_IFS
3301   test -z "$as_dir" && as_dir=.
3302   for ac_exec_ext in '' $ac_executable_extensions; do
3303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304     ac_cv_prog_YACC="$ac_prog"
3305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306     break 2
3307   fi
3308 done
3309 done
3310
3311 fi
3312 fi
3313 YACC=$ac_cv_prog_YACC
3314 if test -n "$YACC"; then
3315   echo "$as_me:$LINENO: result: $YACC" >&5
3316 echo "${ECHO_T}$YACC" >&6
3317 else
3318   echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6
3320 fi
3321
3322   test -n "$YACC" && break
3323 done
3324 test -n "$YACC" || YACC="yacc"
3325
3326 echo "$as_me:$LINENO: checking for function prototypes" >&5
3327 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3328 if test "$ac_cv_prog_cc_stdc" != no; then
3329   echo "$as_me:$LINENO: result: yes" >&5
3330 echo "${ECHO_T}yes" >&6
3331
3332 cat >>confdefs.h <<\_ACEOF
3333 #define PROTOTYPES 1
3334 _ACEOF
3335
3336
3337 cat >>confdefs.h <<\_ACEOF
3338 #define __PROTOTYPES 1
3339 _ACEOF
3340
3341 else
3342   echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 ac_ext=c
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3352 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3353 # On Suns, sometimes $CPP names a directory.
3354 if test -n "$CPP" && test -d "$CPP"; then
3355   CPP=
3356 fi
3357 if test -z "$CPP"; then
3358   if test "${ac_cv_prog_CPP+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361       # Double quotes because CPP needs to be expanded
3362     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363     do
3364       ac_preproc_ok=false
3365 for ac_c_preproc_warn_flag in '' yes
3366 do
3367   # Use a header file that comes with gcc, so configuring glibc
3368   # with a fresh cross-compiler works.
3369   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370   # <limits.h> exists even on freestanding compilers.
3371   # On the NeXT, cc -E runs the code through the compiler's parser,
3372   # not just through cpp. "Syntax error" is here to catch this case.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #ifdef __STDC__
3380 # include <limits.h>
3381 #else
3382 # include <assert.h>
3383 #endif
3384                      Syntax error
3385 _ACEOF
3386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } >/dev/null; then
3394   if test -s conftest.err; then
3395     ac_cpp_err=$ac_c_preproc_warn_flag
3396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3397   else
3398     ac_cpp_err=
3399   fi
3400 else
3401   ac_cpp_err=yes
3402 fi
3403 if test -z "$ac_cpp_err"; then
3404   :
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409   # Broken: fails on valid input.
3410 continue
3411 fi
3412 rm -f conftest.err conftest.$ac_ext
3413
3414   # OK, works on sane cases.  Now check whether non-existent headers
3415   # can be detected and how.
3416   cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h.  */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h.  */
3422 #include <ac_nonexistent.h>
3423 _ACEOF
3424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3426   ac_status=$?
3427   grep -v '^ *+' conftest.er1 >conftest.err
3428   rm -f conftest.er1
3429   cat conftest.err >&5
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); } >/dev/null; then
3432   if test -s conftest.err; then
3433     ac_cpp_err=$ac_c_preproc_warn_flag
3434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435   else
3436     ac_cpp_err=
3437   fi
3438 else
3439   ac_cpp_err=yes
3440 fi
3441 if test -z "$ac_cpp_err"; then
3442   # Broken: success on invalid input.
3443 continue
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448   # Passes both tests.
3449 ac_preproc_ok=:
3450 break
3451 fi
3452 rm -f conftest.err conftest.$ac_ext
3453
3454 done
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3458   break
3459 fi
3460
3461     done
3462     ac_cv_prog_CPP=$CPP
3463
3464 fi
3465   CPP=$ac_cv_prog_CPP
3466 else
3467   ac_cv_prog_CPP=$CPP
3468 fi
3469 echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6
3471 ac_preproc_ok=false
3472 for ac_c_preproc_warn_flag in '' yes
3473 do
3474   # Use a header file that comes with gcc, so configuring glibc
3475   # with a fresh cross-compiler works.
3476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477   # <limits.h> exists even on freestanding compilers.
3478   # On the NeXT, cc -E runs the code through the compiler's parser,
3479   # not just through cpp. "Syntax error" is here to catch this case.
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491                      Syntax error
3492 _ACEOF
3493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3495   ac_status=$?
3496   grep -v '^ *+' conftest.er1 >conftest.err
3497   rm -f conftest.er1
3498   cat conftest.err >&5
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); } >/dev/null; then
3501   if test -s conftest.err; then
3502     ac_cpp_err=$ac_c_preproc_warn_flag
3503     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504   else
3505     ac_cpp_err=
3506   fi
3507 else
3508   ac_cpp_err=yes
3509 fi
3510 if test -z "$ac_cpp_err"; then
3511   :
3512 else
3513   echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516   # Broken: fails on valid input.
3517 continue
3518 fi
3519 rm -f conftest.err conftest.$ac_ext
3520
3521   # OK, works on sane cases.  Now check whether non-existent headers
3522   # can be detected and how.
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 #include <ac_nonexistent.h>
3530 _ACEOF
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3533   ac_status=$?
3534   grep -v '^ *+' conftest.er1 >conftest.err
3535   rm -f conftest.er1
3536   cat conftest.err >&5
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); } >/dev/null; then
3539   if test -s conftest.err; then
3540     ac_cpp_err=$ac_c_preproc_warn_flag
3541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542   else
3543     ac_cpp_err=
3544   fi
3545 else
3546   ac_cpp_err=yes
3547 fi
3548 if test -z "$ac_cpp_err"; then
3549   # Broken: success on invalid input.
3550 continue
3551 else
3552   echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555   # Passes both tests.
3556 ac_preproc_ok=:
3557 break
3558 fi
3559 rm -f conftest.err conftest.$ac_ext
3560
3561 done
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then
3565   :
3566 else
3567   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&5
3569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&2;}
3571    { (exit 1); exit 1; }; }
3572 fi
3573
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580
3581 echo "$as_me:$LINENO: checking for egrep" >&5
3582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3583 if test "${ac_cv_prog_egrep+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3587     then ac_cv_prog_egrep='grep -E'
3588     else ac_cv_prog_egrep='egrep'
3589     fi
3590 fi
3591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3593  EGREP=$ac_cv_prog_egrep
3594
3595
3596 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3597 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3598 if test "${ac_cv_header_stdc+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607 #include <stdlib.h>
3608 #include <stdarg.h>
3609 #include <string.h>
3610 #include <float.h>
3611
3612 int
3613 main ()
3614 {
3615
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622   (eval $ac_compile) 2>conftest.er1
3623   ac_status=$?
3624   grep -v '^ *+' conftest.er1 >conftest.err
3625   rm -f conftest.er1
3626   cat conftest.err >&5
3627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628   (exit $ac_status); } &&
3629          { ac_try='test -z "$ac_c_werror_flag"
3630                          || test ! -s conftest.err'
3631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632   (eval $ac_try) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; } &&
3636          { ac_try='test -s conftest.$ac_objext'
3637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638   (eval $ac_try) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; }; then
3642   ac_cv_header_stdc=yes
3643 else
3644   echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 ac_cv_header_stdc=no
3648 fi
3649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3650
3651 if test $ac_cv_header_stdc = yes; then
3652   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3653   cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h.  */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h.  */
3659 #include <string.h>
3660
3661 _ACEOF
3662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663   $EGREP "memchr" >/dev/null 2>&1; then
3664   :
3665 else
3666   ac_cv_header_stdc=no
3667 fi
3668 rm -f conftest*
3669
3670 fi
3671
3672 if test $ac_cv_header_stdc = yes; then
3673   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680 #include <stdlib.h>
3681
3682 _ACEOF
3683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684   $EGREP "free" >/dev/null 2>&1; then
3685   :
3686 else
3687   ac_cv_header_stdc=no
3688 fi
3689 rm -f conftest*
3690
3691 fi
3692
3693 if test $ac_cv_header_stdc = yes; then
3694   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3695   if test "$cross_compiling" = yes; then
3696   :
3697 else
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704 #include <ctype.h>
3705 #if ((' ' & 0x0FF) == 0x020)
3706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3708 #else
3709 # define ISLOWER(c) \
3710                    (('a' <= (c) && (c) <= 'i') \
3711                      || ('j' <= (c) && (c) <= 'r') \
3712                      || ('s' <= (c) && (c) <= 'z'))
3713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3714 #endif
3715
3716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717 int
3718 main ()
3719 {
3720   int i;
3721   for (i = 0; i < 256; i++)
3722     if (XOR (islower (i), ISLOWER (i))
3723         || toupper (i) != TOUPPER (i))
3724       exit(2);
3725   exit (0);
3726 }
3727 _ACEOF
3728 rm -f conftest$ac_exeext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730   (eval $ac_link) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; }; then
3739   :
3740 else
3741   echo "$as_me: program exited with status $ac_status" >&5
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 ( exit $ac_status )
3746 ac_cv_header_stdc=no
3747 fi
3748 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3749 fi
3750 fi
3751 fi
3752 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3753 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3754 if test $ac_cv_header_stdc = yes; then
3755
3756 cat >>confdefs.h <<\_ACEOF
3757 #define STDC_HEADERS 1
3758 _ACEOF
3759
3760 fi
3761
3762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3773                   inttypes.h stdint.h unistd.h
3774 do
3775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776 echo "$as_me:$LINENO: checking for $ac_header" >&5
3777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 $ac_includes_default
3788
3789 #include <$ac_header>
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793   (eval $ac_compile) 2>conftest.er1
3794   ac_status=$?
3795   grep -v '^ *+' conftest.er1 >conftest.err
3796   rm -f conftest.er1
3797   cat conftest.err >&5
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -z "$ac_c_werror_flag"
3801                          || test ! -s conftest.err'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; } &&
3807          { ac_try='test -s conftest.$ac_objext'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; }; then
3813   eval "$as_ac_Header=yes"
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 eval "$as_ac_Header=no"
3819 fi
3820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3825   cat >>confdefs.h <<_ACEOF
3826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3827 _ACEOF
3828
3829 fi
3830
3831 done
3832
3833
3834
3835 if test "$ac_cv_prog_cc_stdc" != no; then
3836   U= ANSI2KNR=
3837 else
3838   U=_ ANSI2KNR=./ansi2knr
3839 fi
3840 # Ensure some checks needed by ansi2knr itself.
3841
3842
3843 for ac_header in string.h
3844 do
3845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3847   echo "$as_me:$LINENO: checking for $ac_header" >&5
3848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 fi
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3854 else
3855   # Is the header compilable?
3856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h.  */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h.  */
3864 $ac_includes_default
3865 #include <$ac_header>
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869   (eval $ac_compile) 2>conftest.er1
3870   ac_status=$?
3871   grep -v '^ *+' conftest.er1 >conftest.err
3872   rm -f conftest.er1
3873   cat conftest.err >&5
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } &&
3876          { ac_try='test -z "$ac_c_werror_flag"
3877                          || test ! -s conftest.err'
3878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879   (eval $ac_try) 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; } &&
3883          { ac_try='test -s conftest.$ac_objext'
3884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885   (eval $ac_try) 2>&5
3886   ac_status=$?
3887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); }; }; then
3889   ac_header_compiler=yes
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894 ac_header_compiler=no
3895 fi
3896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3898 echo "${ECHO_T}$ac_header_compiler" >&6
3899
3900 # Is the header present?
3901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #include <$ac_header>
3910 _ACEOF
3911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3913   ac_status=$?
3914   grep -v '^ *+' conftest.er1 >conftest.err
3915   rm -f conftest.er1
3916   cat conftest.err >&5
3917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918   (exit $ac_status); } >/dev/null; then
3919   if test -s conftest.err; then
3920     ac_cpp_err=$ac_c_preproc_warn_flag
3921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3922   else
3923     ac_cpp_err=
3924   fi
3925 else
3926   ac_cpp_err=yes
3927 fi
3928 if test -z "$ac_cpp_err"; then
3929   ac_header_preproc=yes
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934   ac_header_preproc=no
3935 fi
3936 rm -f conftest.err conftest.$ac_ext
3937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3938 echo "${ECHO_T}$ac_header_preproc" >&6
3939
3940 # So?  What about this header?
3941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3942   yes:no: )
3943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3947     ac_header_preproc=yes
3948     ;;
3949   no:yes:* )
3950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3952     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3953 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3954     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3956     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3957 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3960     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3962     (
3963       cat <<\_ASBOX
3964 ## ------------------------------------------ ##
3965 ## Report this to the AC_PACKAGE_NAME lists.  ##
3966 ## ------------------------------------------ ##
3967 _ASBOX
3968     ) |
3969       sed "s/^/$as_me: WARNING:     /" >&2
3970     ;;
3971 esac
3972 echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   eval "$as_ac_Header=\$ac_header_preproc"
3978 fi
3979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3981
3982 fi
3983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3984   cat >>confdefs.h <<_ACEOF
3985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3986 _ACEOF
3987
3988 fi
3989
3990 done
3991
3992
3993 # Check whether --enable-fast-install or --disable-fast-install was given.
3994 if test "${enable_fast_install+set}" = set; then
3995   enableval="$enable_fast_install"
3996   p=${PACKAGE-default}
3997     case $enableval in
3998     yes) enable_fast_install=yes ;;
3999     no) enable_fast_install=no ;;
4000     *)
4001       enable_fast_install=no
4002       # Look at the argument we got.  We use all the common list separators.
4003       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4004       for pkg in $enableval; do
4005         IFS="$lt_save_ifs"
4006         if test "X$pkg" = "X$p"; then
4007           enable_fast_install=yes
4008         fi
4009       done
4010       IFS="$lt_save_ifs"
4011       ;;
4012     esac
4013 else
4014   enable_fast_install=yes
4015 fi;
4016
4017 # Make sure we can run config.sub.
4018 $ac_config_sub sun4 >/dev/null 2>&1 ||
4019   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4021    { (exit 1); exit 1; }; }
4022
4023 echo "$as_me:$LINENO: checking build system type" >&5
4024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4025 if test "${ac_cv_build+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   ac_cv_build_alias=$build_alias
4029 test -z "$ac_cv_build_alias" &&
4030   ac_cv_build_alias=`$ac_config_guess`
4031 test -z "$ac_cv_build_alias" &&
4032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4034    { (exit 1); exit 1; }; }
4035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4036   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4038    { (exit 1); exit 1; }; }
4039
4040 fi
4041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4042 echo "${ECHO_T}$ac_cv_build" >&6
4043 build=$ac_cv_build
4044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4047
4048
4049 echo "$as_me:$LINENO: checking host system type" >&5
4050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4051 if test "${ac_cv_host+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   ac_cv_host_alias=$host_alias
4055 test -z "$ac_cv_host_alias" &&
4056   ac_cv_host_alias=$ac_cv_build_alias
4057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4058   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4060    { (exit 1); exit 1; }; }
4061
4062 fi
4063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4064 echo "${ECHO_T}$ac_cv_host" >&6
4065 host=$ac_cv_host
4066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4069
4070
4071 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4072 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4073 if test "${lt_cv_path_SED+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   # Loop through the user's path and test for sed and gsed.
4077 # Then use that list of sed's as ones to test for truncation.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4080 do
4081   IFS=$as_save_IFS
4082   test -z "$as_dir" && as_dir=.
4083   for lt_ac_prog in sed gsed; do
4084     for ac_exec_ext in '' $ac_executable_extensions; do
4085       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4086         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4087       fi
4088     done
4089   done
4090 done
4091 lt_ac_max=0
4092 lt_ac_count=0
4093 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4094 # along with /bin/sed that truncates output.
4095 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4096   test ! -f $lt_ac_sed && continue
4097   cat /dev/null > conftest.in
4098   lt_ac_count=0
4099   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4100   # Check for GNU sed and select it if it is found.
4101   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4102     lt_cv_path_SED=$lt_ac_sed
4103     break
4104   fi
4105   while true; do
4106     cat conftest.in conftest.in >conftest.tmp
4107     mv conftest.tmp conftest.in
4108     cp conftest.in conftest.nl
4109     echo >>conftest.nl
4110     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4111     cmp -s conftest.out conftest.nl || break
4112     # 10000 chars as input seems more than enough
4113     test $lt_ac_count -gt 10 && break
4114     lt_ac_count=`expr $lt_ac_count + 1`
4115     if test $lt_ac_count -gt $lt_ac_max; then
4116       lt_ac_max=$lt_ac_count
4117       lt_cv_path_SED=$lt_ac_sed
4118     fi
4119   done
4120 done
4121
4122 fi
4123
4124 SED=$lt_cv_path_SED
4125 echo "$as_me:$LINENO: result: $SED" >&5
4126 echo "${ECHO_T}$SED" >&6
4127
4128
4129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4130 if test "${with_gnu_ld+set}" = set; then
4131   withval="$with_gnu_ld"
4132   test "$withval" = no || with_gnu_ld=yes
4133 else
4134   with_gnu_ld=no
4135 fi;
4136 ac_prog=ld
4137 if test "$GCC" = yes; then
4138   # Check if gcc -print-prog-name=ld gives a path.
4139   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4140 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4141   case $host in
4142   *-*-mingw*)
4143     # gcc leaves a trailing carriage return which upsets mingw
4144     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4145   *)
4146     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4147   esac
4148   case $ac_prog in
4149     # Accept absolute paths.
4150     [\\/]* | ?:[\\/]*)
4151       re_direlt='/[^/][^/]*/\.\./'
4152       # Canonicalize the pathname of ld
4153       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4154       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4155         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4156       done
4157       test -z "$LD" && LD="$ac_prog"
4158       ;;
4159   "")
4160     # If it fails, then pretend we aren't using GCC.
4161     ac_prog=ld
4162     ;;
4163   *)
4164     # If it is relative, then search for the first ld in PATH.
4165     with_gnu_ld=unknown
4166     ;;
4167   esac
4168 elif test "$with_gnu_ld" = yes; then
4169   echo "$as_me:$LINENO: checking for GNU ld" >&5
4170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4171 else
4172   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4174 fi
4175 if test "${lt_cv_path_LD+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   if test -z "$LD"; then
4179   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4180   for ac_dir in $PATH; do
4181     IFS="$lt_save_ifs"
4182     test -z "$ac_dir" && ac_dir=.
4183     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4184       lt_cv_path_LD="$ac_dir/$ac_prog"
4185       # Check to see if the program is GNU ld.  I'd rather use --version,
4186       # but apparently some variants of GNU ld only accept -v.
4187       # Break only if it was the GNU/non-GNU ld that we prefer.
4188       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4189       *GNU* | *'with BFD'*)
4190         test "$with_gnu_ld" != no && break
4191         ;;
4192       *)
4193         test "$with_gnu_ld" != yes && break
4194         ;;
4195       esac
4196     fi
4197   done
4198   IFS="$lt_save_ifs"
4199 else
4200   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4201 fi
4202 fi
4203
4204 LD="$lt_cv_path_LD"
4205 if test -n "$LD"; then
4206   echo "$as_me:$LINENO: result: $LD" >&5
4207 echo "${ECHO_T}$LD" >&6
4208 else
4209   echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4211 fi
4212 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4213 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4214    { (exit 1); exit 1; }; }
4215 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4216 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4217 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4221 case `$LD -v 2>&1 </dev/null` in
4222 *GNU* | *'with BFD'*)
4223   lt_cv_prog_gnu_ld=yes
4224   ;;
4225 *)
4226   lt_cv_prog_gnu_ld=no
4227   ;;
4228 esac
4229 fi
4230 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4231 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4232 with_gnu_ld=$lt_cv_prog_gnu_ld
4233
4234
4235 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4236 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4237 if test "${lt_cv_ld_reload_flag+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   lt_cv_ld_reload_flag='-r'
4241 fi
4242 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4243 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4244 reload_flag=$lt_cv_ld_reload_flag
4245 case $reload_flag in
4246 "" | " "*) ;;
4247 *) reload_flag=" $reload_flag" ;;
4248 esac
4249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4250 case $host_os in
4251   darwin*)
4252     if test "$GCC" = yes; then
4253       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4254     else
4255       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4256     fi
4257     ;;
4258 esac
4259
4260 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4261 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4262 if test "${lt_cv_path_NM+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$NM"; then
4266   # Let the user override the test.
4267   lt_cv_path_NM="$NM"
4268 else
4269   lt_nm_to_check="${ac_tool_prefix}nm"
4270   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4271     lt_nm_to_check="$lt_nm_to_check nm"
4272   fi
4273   for lt_tmp_nm in $lt_nm_to_check; do
4274     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4275     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4276       IFS="$lt_save_ifs"
4277       test -z "$ac_dir" && ac_dir=.
4278       tmp_nm="$ac_dir/$lt_tmp_nm"
4279       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4280         # Check to see if the nm accepts a BSD-compat flag.
4281         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4282         #   nm: unknown option "B" ignored
4283         # Tru64's nm complains that /dev/null is an invalid object file
4284         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4285         */dev/null* | *'Invalid file or object type'*)
4286           lt_cv_path_NM="$tmp_nm -B"
4287           break
4288           ;;
4289         *)
4290           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4291           */dev/null*)
4292             lt_cv_path_NM="$tmp_nm -p"
4293             break
4294             ;;
4295           *)
4296             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4297             continue # so that we can try to find one that supports BSD flags
4298             ;;
4299           esac
4300           ;;
4301         esac
4302       fi
4303     done
4304     IFS="$lt_save_ifs"
4305   done
4306   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4307 fi
4308 fi
4309 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4310 echo "${ECHO_T}$lt_cv_path_NM" >&6
4311 NM="$lt_cv_path_NM"
4312
4313 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4314 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4315 if test "${lt_cv_deplibs_check_method+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   lt_cv_file_magic_cmd='$MAGIC_CMD'
4319 lt_cv_file_magic_test_file=
4320 lt_cv_deplibs_check_method='unknown'
4321 # Need to set the preceding variable on all platforms that support
4322 # interlibrary dependencies.
4323 # 'none' -- dependencies not supported.
4324 # `unknown' -- same as none, but documents that we really don't know.
4325 # 'pass_all' -- all dependencies passed with no checks.
4326 # 'test_compile' -- check by making test program.
4327 # 'file_magic [[regex]]' -- check by looking for files in library path
4328 # which responds to the $file_magic_cmd with a given extended regex.
4329 # If you have `file' or equivalent on your system and you're not sure
4330 # whether `pass_all' will *always* work, you probably want this one.
4331
4332 case $host_os in
4333 aix4* | aix5*)
4334   lt_cv_deplibs_check_method=pass_all
4335   ;;
4336
4337 beos*)
4338   lt_cv_deplibs_check_method=pass_all
4339   ;;
4340
4341 bsdi[45]*)
4342   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4343   lt_cv_file_magic_cmd='/usr/bin/file -L'
4344   lt_cv_file_magic_test_file=/shlib/libc.so
4345   ;;
4346
4347 cygwin*)
4348   # func_win32_libid is a shell function defined in ltmain.sh
4349   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4350   lt_cv_file_magic_cmd='func_win32_libid'
4351   ;;
4352
4353 mingw* | pw32*)
4354   # Base MSYS/MinGW do not provide the 'file' command needed by
4355   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4356   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4357   lt_cv_file_magic_cmd='$OBJDUMP -f'
4358   ;;
4359
4360 darwin* | rhapsody*)
4361   lt_cv_deplibs_check_method=pass_all
4362   ;;
4363
4364 freebsd* | kfreebsd*-gnu | dragonfly*)
4365   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4366     case $host_cpu in
4367     i*86 )
4368       # Not sure whether the presence of OpenBSD here was a mistake.
4369       # Let's accept both of them until this is cleared up.
4370       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4371       lt_cv_file_magic_cmd=/usr/bin/file
4372       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4373       ;;
4374     esac
4375   else
4376     lt_cv_deplibs_check_method=pass_all
4377   fi
4378   ;;
4379
4380 gnu*)
4381   lt_cv_deplibs_check_method=pass_all
4382   ;;
4383
4384 hpux10.20* | hpux11*)
4385   lt_cv_file_magic_cmd=/usr/bin/file
4386   case $host_cpu in
4387   ia64*)
4388     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4389     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4390     ;;
4391   hppa*64*)
4392     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]'
4393     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4394     ;;
4395   *)
4396     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4397     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4398     ;;
4399   esac
4400   ;;
4401
4402 interix3*)
4403   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4404   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4405   ;;
4406
4407 irix5* | irix6* | nonstopux*)
4408   case $LD in
4409   *-32|*"-32 ") libmagic=32-bit;;
4410   *-n32|*"-n32 ") libmagic=N32;;
4411   *-64|*"-64 ") libmagic=64-bit;;
4412   *) libmagic=never-match;;
4413   esac
4414   lt_cv_deplibs_check_method=pass_all
4415   ;;
4416
4417 # This must be Linux ELF.
4418 linux*)
4419   lt_cv_deplibs_check_method=pass_all
4420   ;;
4421
4422 netbsd*)
4423   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4424     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4425   else
4426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4427   fi
4428   ;;
4429
4430 newos6*)
4431   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4432   lt_cv_file_magic_cmd=/usr/bin/file
4433   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4434   ;;
4435
4436 nto-qnx*)
4437   lt_cv_deplibs_check_method=unknown
4438   ;;
4439
4440 openbsd*)
4441   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4443   else
4444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4445   fi
4446   ;;
4447
4448 osf3* | osf4* | osf5*)
4449   lt_cv_deplibs_check_method=pass_all
4450   ;;
4451
4452 solaris*)
4453   lt_cv_deplibs_check_method=pass_all
4454   ;;
4455
4456 sysv4 | sysv4.3*)
4457   case $host_vendor in
4458   motorola)
4459     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]'
4460     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4461     ;;
4462   ncr)
4463     lt_cv_deplibs_check_method=pass_all
4464     ;;
4465   sequent)
4466     lt_cv_file_magic_cmd='/bin/file'
4467     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4468     ;;
4469   sni)
4470     lt_cv_file_magic_cmd='/bin/file'
4471     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4472     lt_cv_file_magic_test_file=/lib/libc.so
4473     ;;
4474   siemens)
4475     lt_cv_deplibs_check_method=pass_all
4476     ;;
4477   pc)
4478     lt_cv_deplibs_check_method=pass_all
4479     ;;
4480   esac
4481   ;;
4482
4483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4484   lt_cv_deplibs_check_method=pass_all
4485   ;;
4486 esac
4487
4488 fi
4489 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4490 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4491 file_magic_cmd=$lt_cv_file_magic_cmd
4492 deplibs_check_method=$lt_cv_deplibs_check_method
4493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4494
4495
4496
4497
4498 # If no C compiler was specified, use CC.
4499 LTCC=${LTCC-"$CC"}
4500
4501 # If no C compiler flags were specified, use CFLAGS.
4502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4503
4504 # Allow CC to be a program name with arguments.
4505 compiler=$CC
4506
4507 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4508 if test "${enable_libtool_lock+set}" = set; then
4509   enableval="$enable_libtool_lock"
4510
4511 fi;
4512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4513
4514 # Some flags need to be propagated to the compiler or linker for good
4515 # libtool support.
4516 case $host in
4517 ia64-*-hpux*)
4518   # Find out which ABI we are using.
4519   echo 'int i;' > conftest.$ac_ext
4520   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; then
4525     case `/usr/bin/file conftest.$ac_objext` in
4526     *ELF-32*)
4527       HPUX_IA64_MODE="32"
4528       ;;
4529     *ELF-64*)
4530       HPUX_IA64_MODE="64"
4531       ;;
4532     esac
4533   fi
4534   rm -rf conftest*
4535   ;;
4536 *-*-irix6*)
4537   # Find out which ABI we are using.
4538   echo '#line 4538 "configure"' > conftest.$ac_ext
4539   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540   (eval $ac_compile) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }; then
4544    if test "$lt_cv_prog_gnu_ld" = yes; then
4545     case `/usr/bin/file conftest.$ac_objext` in
4546     *32-bit*)
4547       LD="${LD-ld} -melf32bsmip"
4548       ;;
4549     *N32*)
4550       LD="${LD-ld} -melf32bmipn32"
4551       ;;
4552     *64-bit*)
4553       LD="${LD-ld} -melf64bmip"
4554       ;;
4555     esac
4556    else
4557     case `/usr/bin/file conftest.$ac_objext` in
4558     *32-bit*)
4559       LD="${LD-ld} -32"
4560       ;;
4561     *N32*)
4562       LD="${LD-ld} -n32"
4563       ;;
4564     *64-bit*)
4565       LD="${LD-ld} -64"
4566       ;;
4567     esac
4568    fi
4569   fi
4570   rm -rf conftest*
4571   ;;
4572
4573 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4574   # Find out which ABI we are using.
4575   echo 'int i;' > conftest.$ac_ext
4576   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577   (eval $ac_compile) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; then
4581     case `/usr/bin/file conftest.o` in
4582     *32-bit*)
4583       case $host in
4584         x86_64-*linux*)
4585           LD="${LD-ld} -m elf_i386"
4586           ;;
4587         ppc64-*linux*|powerpc64-*linux*)
4588           LD="${LD-ld} -m elf32ppclinux"
4589           ;;
4590         s390x-*linux*)
4591           LD="${LD-ld} -m elf_s390"
4592           ;;
4593         sparc64-*linux*)
4594           LD="${LD-ld} -m elf32_sparc"
4595           ;;
4596       esac
4597       ;;
4598     *64-bit*)
4599       case $host in
4600         x86_64-*linux*)
4601           LD="${LD-ld} -m elf_x86_64"
4602           ;;
4603         ppc*-*linux*|powerpc*-*linux*)
4604           LD="${LD-ld} -m elf64ppc"
4605           ;;
4606         s390*-*linux*)
4607           LD="${LD-ld} -m elf64_s390"
4608           ;;
4609         sparc*-*linux*)
4610           LD="${LD-ld} -m elf64_sparc"
4611           ;;
4612       esac
4613       ;;
4614     esac
4615   fi
4616   rm -rf conftest*
4617   ;;
4618
4619 *-*-sco3.2v5*)
4620   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4621   SAVE_CFLAGS="$CFLAGS"
4622   CFLAGS="$CFLAGS -belf"
4623   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4624 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4625 if test "${lt_cv_cc_needs_belf+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634      cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640
4641 int
4642 main ()
4643 {
4644
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651   (eval $ac_link) 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_c_werror_flag"
4659                          || test ! -s conftest.err'
4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661   (eval $ac_try) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; } &&
4665          { ac_try='test -s conftest$ac_exeext'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; }; then
4671   lt_cv_cc_needs_belf=yes
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 lt_cv_cc_needs_belf=no
4677 fi
4678 rm -f conftest.err conftest.$ac_objext \
4679       conftest$ac_exeext conftest.$ac_ext
4680      ac_ext=c
4681 ac_cpp='$CPP $CPPFLAGS'
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685
4686 fi
4687 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4688 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4689   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4690     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4691     CFLAGS="$SAVE_CFLAGS"
4692   fi
4693   ;;
4694 sparc*-*solaris*)
4695   # Find out which ABI we are using.
4696   echo 'int i;' > conftest.$ac_ext
4697   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4698   (eval $ac_compile) 2>&5
4699   ac_status=$?
4700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701   (exit $ac_status); }; then
4702     case `/usr/bin/file conftest.o` in
4703     *64-bit*)
4704       case $lt_cv_prog_gnu_ld in
4705       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4706       *)    LD="${LD-ld} -64" ;;
4707       esac
4708       ;;
4709     esac
4710   fi
4711   rm -rf conftest*
4712   ;;
4713
4714
4715 esac
4716
4717 need_locks="$enable_libtool_lock"
4718
4719
4720
4721 for ac_header in dlfcn.h
4722 do
4723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4725   echo "$as_me:$LINENO: checking for $ac_header" >&5
4726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 fi
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4732 else
4733   # Is the header compilable?
4734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 $ac_includes_default
4743 #include <$ac_header>
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>conftest.er1
4748   ac_status=$?
4749   grep -v '^ *+' conftest.er1 >conftest.err
4750   rm -f conftest.er1
4751   cat conftest.err >&5
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -z "$ac_c_werror_flag"
4755                          || test ! -s conftest.err'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; } &&
4761          { ac_try='test -s conftest.$ac_objext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_header_compiler=yes
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_compiler=no
4773 fi
4774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4777
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 #include <$ac_header>
4788 _ACEOF
4789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } >/dev/null; then
4797   if test -s conftest.err; then
4798     ac_cpp_err=$ac_c_preproc_warn_flag
4799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800   else
4801     ac_cpp_err=
4802   fi
4803 else
4804   ac_cpp_err=yes
4805 fi
4806 if test -z "$ac_cpp_err"; then
4807   ac_header_preproc=yes
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   ac_header_preproc=no
4813 fi
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4817
4818 # So?  What about this header?
4819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820   yes:no: )
4821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825     ac_header_preproc=yes
4826     ;;
4827   no:yes:* )
4828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4840     (
4841       cat <<\_ASBOX
4842 ## ------------------------------------------ ##
4843 ## Report this to the AC_PACKAGE_NAME lists.  ##
4844 ## ------------------------------------------ ##
4845 _ASBOX
4846     ) |
4847       sed "s/^/$as_me: WARNING:     /" >&2
4848     ;;
4849 esac
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   eval "$as_ac_Header=\$ac_header_preproc"
4856 fi
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4859
4860 fi
4861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862   cat >>confdefs.h <<_ACEOF
4863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 _ACEOF
4865
4866 fi
4867
4868 done
4869
4870 ac_ext=cc
4871 ac_cpp='$CXXCPP $CPPFLAGS'
4872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4875 if test -n "$ac_tool_prefix"; then
4876   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4877   do
4878     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4880 echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_CXX+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test -n "$CXX"; then
4886   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901
4902 fi
4903 fi
4904 CXX=$ac_cv_prog_CXX
4905 if test -n "$CXX"; then
4906   echo "$as_me:$LINENO: result: $CXX" >&5
4907 echo "${ECHO_T}$CXX" >&6
4908 else
4909   echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911 fi
4912
4913     test -n "$CXX" && break
4914   done
4915 fi
4916 if test -z "$CXX"; then
4917   ac_ct_CXX=$CXX
4918   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4919 do
4920   # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy $ac_prog; ac_word=$2
4922 echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4924 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   if test -n "$ac_ct_CXX"; then
4928   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935   for ac_exec_ext in '' $ac_executable_extensions; do
4936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_prog_ac_ct_CXX="$ac_prog"
4938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942 done
4943
4944 fi
4945 fi
4946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4947 if test -n "$ac_ct_CXX"; then
4948   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4949 echo "${ECHO_T}$ac_ct_CXX" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954
4955   test -n "$ac_ct_CXX" && break
4956 done
4957 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4958
4959   CXX=$ac_ct_CXX
4960 fi
4961
4962
4963 # Provide some information about the compiler.
4964 echo "$as_me:$LINENO:" \
4965      "checking for C++ compiler version" >&5
4966 ac_compiler=`set X $ac_compile; echo $2`
4967 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4968   (eval $ac_compiler --version </dev/null >&5) 2>&5
4969   ac_status=$?
4970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); }
4972 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4973   (eval $ac_compiler -v </dev/null >&5) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }
4977 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4978   (eval $ac_compiler -V </dev/null >&5) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }
4982
4983 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4984 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4985 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h.  */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h.  */
4994
4995 int
4996 main ()
4997 {
4998 #ifndef __GNUC__
4999        choke me
5000 #endif
5001
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_cxx_werror_flag"
5016                          || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   ac_compiler_gnu=yes
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 ac_compiler_gnu=no
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5037
5038 fi
5039 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5040 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5041 GXX=`test $ac_compiler_gnu = yes && echo yes`
5042 ac_test_CXXFLAGS=${CXXFLAGS+set}
5043 ac_save_CXXFLAGS=$CXXFLAGS
5044 CXXFLAGS="-g"
5045 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5046 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5047 if test "${ac_cv_prog_cxx_g+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h.  */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h.  */
5056
5057 int
5058 main ()
5059 {
5060
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -z "$ac_cxx_werror_flag"
5075                          || test ! -s conftest.err'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   ac_cv_prog_cxx_g=yes
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_cv_prog_cxx_g=no
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5097 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5098 if test "$ac_test_CXXFLAGS" = set; then
5099   CXXFLAGS=$ac_save_CXXFLAGS
5100 elif test $ac_cv_prog_cxx_g = yes; then
5101   if test "$GXX" = yes; then
5102     CXXFLAGS="-g -O2"
5103   else
5104     CXXFLAGS="-g"
5105   fi
5106 else
5107   if test "$GXX" = yes; then
5108     CXXFLAGS="-O2"
5109   else
5110     CXXFLAGS=
5111   fi
5112 fi
5113 for ac_declaration in \
5114    '' \
5115    'extern "C" void std::exit (int) throw (); using std::exit;' \
5116    'extern "C" void std::exit (int); using std::exit;' \
5117    'extern "C" void exit (int) throw ();' \
5118    'extern "C" void exit (int);' \
5119    'void exit (int);'
5120 do
5121   cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127 $ac_declaration
5128 #include <stdlib.h>
5129 int
5130 main ()
5131 {
5132 exit (42);
5133   ;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest.$ac_objext
5138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5139   (eval $ac_compile) 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } &&
5146          { ac_try='test -z "$ac_cxx_werror_flag"
5147                          || test ! -s conftest.err'
5148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149   (eval $ac_try) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); }; } &&
5153          { ac_try='test -s conftest.$ac_objext'
5154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155   (eval $ac_try) 2>&5
5156   ac_status=$?
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); }; }; then
5159   :
5160 else
5161   echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 continue
5165 fi
5166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5167   cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 $ac_declaration
5174 int
5175 main ()
5176 {
5177 exit (42);
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_cxx_werror_flag"
5192                          || test ! -s conftest.err'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; } &&
5198          { ac_try='test -s conftest.$ac_objext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   break
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 fi
5210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5211 done
5212 rm -f conftest*
5213 if test -n "$ac_declaration"; then
5214   echo '#ifdef __cplusplus' >>confdefs.h
5215   echo $ac_declaration      >>confdefs.h
5216   echo '#endif'             >>confdefs.h
5217 fi
5218
5219 ac_ext=cc
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224
5225 depcc="$CXX"  am_compiler_list=
5226
5227 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5228 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5229 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233   # We make a subdir and do the tests there.  Otherwise we can end up
5234   # making bogus files that we don't know about and never remove.  For
5235   # instance it was reported that on HP-UX the gcc test will end up
5236   # making a dummy file named `D' -- because `-MD' means `put the output
5237   # in D'.
5238   mkdir conftest.dir
5239   # Copy depcomp to subdir because otherwise we won't find it if we're
5240   # using a relative directory.
5241   cp "$am_depcomp" conftest.dir
5242   cd conftest.dir
5243   # We will build objects and dependencies in a subdirectory because
5244   # it helps to detect inapplicable dependency modes.  For instance
5245   # both Tru64's cc and ICC support -MD to output dependencies as a
5246   # side effect of compilation, but ICC will put the dependencies in
5247   # the current directory while Tru64 will put them in the object
5248   # directory.
5249   mkdir sub
5250
5251   am_cv_CXX_dependencies_compiler_type=none
5252   if test "$am_compiler_list" = ""; then
5253      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5254   fi
5255   for depmode in $am_compiler_list; do
5256     # Setup a source with many dependencies, because some compilers
5257     # like to wrap large dependency lists on column 80 (with \), and
5258     # we should not choose a depcomp mode which is confused by this.
5259     #
5260     # We need to recreate these files for each test, as the compiler may
5261     # overwrite some of them when testing with obscure command lines.
5262     # This happens at least with the AIX C compiler.
5263     : > sub/conftest.c
5264     for i in 1 2 3 4 5 6; do
5265       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5266       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5267       # Solaris 8's {/usr,}/bin/sh.
5268       touch sub/conftst$i.h
5269     done
5270     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5271
5272     case $depmode in
5273     nosideeffect)
5274       # after this tag, mechanisms are not by side-effect, so they'll
5275       # only be used when explicitly requested
5276       if test "x$enable_dependency_tracking" = xyes; then
5277         continue
5278       else
5279         break
5280       fi
5281       ;;
5282     none) break ;;
5283     esac
5284     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5285     # mode.  It turns out that the SunPro C++ compiler does not properly
5286     # handle `-M -o', and we need to detect this.
5287     if depmode=$depmode \
5288        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5289        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5290        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5291          >/dev/null 2>conftest.err &&
5292        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5293        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5294        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5295       # icc doesn't choke on unknown options, it will just issue warnings
5296       # or remarks (even with -Werror).  So we grep stderr for any message
5297       # that says an option was ignored or not supported.
5298       # When given -MP, icc 7.0 and 7.1 complain thusly:
5299       #   icc: Command line warning: ignoring option '-M'; no argument required
5300       # The diagnosis changed in icc 8.0:
5301       #   icc: Command line remark: option '-MP' not supported
5302       if (grep 'ignoring option' conftest.err ||
5303           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5304         am_cv_CXX_dependencies_compiler_type=$depmode
5305         break
5306       fi
5307     fi
5308   done
5309
5310   cd ..
5311   rm -rf conftest.dir
5312 else
5313   am_cv_CXX_dependencies_compiler_type=none
5314 fi
5315
5316 fi
5317 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5318 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5319 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5320
5321
5322
5323 if
5324   test "x$enable_dependency_tracking" != xno \
5325   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5326   am__fastdepCXX_TRUE=
5327   am__fastdepCXX_FALSE='#'
5328 else
5329   am__fastdepCXX_TRUE='#'
5330   am__fastdepCXX_FALSE=
5331 fi
5332
5333
5334
5335
5336 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5337     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5338     (test "X$CXX" != "Xg++"))) ; then
5339   ac_ext=cc
5340 ac_cpp='$CXXCPP $CPPFLAGS'
5341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5345 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5346 if test -z "$CXXCPP"; then
5347   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350       # Double quotes because CXXCPP needs to be expanded
5351     for CXXCPP in "$CXX -E" "/lib/cpp"
5352     do
5353       ac_preproc_ok=false
5354 for ac_cxx_preproc_warn_flag in '' yes
5355 do
5356   # Use a header file that comes with gcc, so configuring glibc
5357   # with a fresh cross-compiler works.
5358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359   # <limits.h> exists even on freestanding compilers.
5360   # On the NeXT, cc -E runs the code through the compiler's parser,
5361   # not just through cpp. "Syntax error" is here to catch this case.
5362   cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 #ifdef __STDC__
5369 # include <limits.h>
5370 #else
5371 # include <assert.h>
5372 #endif
5373                      Syntax error
5374 _ACEOF
5375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } >/dev/null; then
5383   if test -s conftest.err; then
5384     ac_cpp_err=$ac_cxx_preproc_warn_flag
5385     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5386   else
5387     ac_cpp_err=
5388   fi
5389 else
5390   ac_cpp_err=yes
5391 fi
5392 if test -z "$ac_cpp_err"; then
5393   :
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398   # Broken: fails on valid input.
5399 continue
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402
5403   # OK, works on sane cases.  Now check whether non-existent headers
5404   # can be detected and how.
5405   cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h.  */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h.  */
5411 #include <ac_nonexistent.h>
5412 _ACEOF
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415   ac_status=$?
5416   grep -v '^ *+' conftest.er1 >conftest.err
5417   rm -f conftest.er1
5418   cat conftest.err >&5
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); } >/dev/null; then
5421   if test -s conftest.err; then
5422     ac_cpp_err=$ac_cxx_preproc_warn_flag
5423     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5424   else
5425     ac_cpp_err=
5426   fi
5427 else
5428   ac_cpp_err=yes
5429 fi
5430 if test -z "$ac_cpp_err"; then
5431   # Broken: success on invalid input.
5432 continue
5433 else
5434   echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437   # Passes both tests.
5438 ac_preproc_ok=:
5439 break
5440 fi
5441 rm -f conftest.err conftest.$ac_ext
5442
5443 done
5444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445 rm -f conftest.err conftest.$ac_ext
5446 if $ac_preproc_ok; then
5447   break
5448 fi
5449
5450     done
5451     ac_cv_prog_CXXCPP=$CXXCPP
5452
5453 fi
5454   CXXCPP=$ac_cv_prog_CXXCPP
5455 else
5456   ac_cv_prog_CXXCPP=$CXXCPP
5457 fi
5458 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5459 echo "${ECHO_T}$CXXCPP" >&6
5460 ac_preproc_ok=false
5461 for ac_cxx_preproc_warn_flag in '' yes
5462 do
5463   # Use a header file that comes with gcc, so configuring glibc
5464   # with a fresh cross-compiler works.
5465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5466   # <limits.h> exists even on freestanding compilers.
5467   # On the NeXT, cc -E runs the code through the compiler's parser,
5468   # not just through cpp. "Syntax error" is here to catch this case.
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 #ifdef __STDC__
5476 # include <limits.h>
5477 #else
5478 # include <assert.h>
5479 #endif
5480                      Syntax error
5481 _ACEOF
5482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } >/dev/null; then
5490   if test -s conftest.err; then
5491     ac_cpp_err=$ac_cxx_preproc_warn_flag
5492     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5493   else
5494     ac_cpp_err=
5495   fi
5496 else
5497   ac_cpp_err=yes
5498 fi
5499 if test -z "$ac_cpp_err"; then
5500   :
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505   # Broken: fails on valid input.
5506 continue
5507 fi
5508 rm -f conftest.err conftest.$ac_ext
5509
5510   # OK, works on sane cases.  Now check whether non-existent headers
5511   # can be detected and how.
5512   cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518 #include <ac_nonexistent.h>
5519 _ACEOF
5520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5522   ac_status=$?
5523   grep -v '^ *+' conftest.er1 >conftest.err
5524   rm -f conftest.er1
5525   cat conftest.err >&5
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } >/dev/null; then
5528   if test -s conftest.err; then
5529     ac_cpp_err=$ac_cxx_preproc_warn_flag
5530     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5531   else
5532     ac_cpp_err=
5533   fi
5534 else
5535   ac_cpp_err=yes
5536 fi
5537 if test -z "$ac_cpp_err"; then
5538   # Broken: success on invalid input.
5539 continue
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544   # Passes both tests.
5545 ac_preproc_ok=:
5546 break
5547 fi
5548 rm -f conftest.err conftest.$ac_ext
5549
5550 done
5551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552 rm -f conftest.err conftest.$ac_ext
5553 if $ac_preproc_ok; then
5554   :
5555 else
5556   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5559 See \`config.log' for more details." >&2;}
5560    { (exit 1); exit 1; }; }
5561 fi
5562
5563 ac_ext=cc
5564 ac_cpp='$CXXCPP $CPPFLAGS'
5565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5568
5569 fi
5570
5571
5572 ac_ext=f
5573 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5574 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5575 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5576 if test -n "$ac_tool_prefix"; then
5577   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5578   do
5579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5581 echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583 if test "${ac_cv_prog_F77+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   if test -n "$F77"; then
5587   ac_cv_prog_F77="$F77" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594   for ac_exec_ext in '' $ac_executable_extensions; do
5595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601 done
5602
5603 fi
5604 fi
5605 F77=$ac_cv_prog_F77
5606 if test -n "$F77"; then
5607   echo "$as_me:$LINENO: result: $F77" >&5
5608 echo "${ECHO_T}$F77" >&6
5609 else
5610   echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5612 fi
5613
5614     test -n "$F77" && break
5615   done
5616 fi
5617 if test -z "$F77"; then
5618   ac_ct_F77=$F77
5619   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5620 do
5621   # Extract the first word of "$ac_prog", so it can be a program name with args.
5622 set dummy $ac_prog; ac_word=$2
5623 echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5625 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   if test -n "$ac_ct_F77"; then
5629   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636   for ac_exec_ext in '' $ac_executable_extensions; do
5637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638     ac_cv_prog_ac_ct_F77="$ac_prog"
5639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643 done
5644
5645 fi
5646 fi
5647 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5648 if test -n "$ac_ct_F77"; then
5649   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5650 echo "${ECHO_T}$ac_ct_F77" >&6
5651 else
5652   echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654 fi
5655
5656   test -n "$ac_ct_F77" && break
5657 done
5658
5659   F77=$ac_ct_F77
5660 fi
5661
5662
5663 # Provide some information about the compiler.
5664 echo "$as_me:5664:" \
5665      "checking for Fortran 77 compiler version" >&5
5666 ac_compiler=`set X $ac_compile; echo $2`
5667 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5668   (eval $ac_compiler --version </dev/null >&5) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }
5672 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5673   (eval $ac_compiler -v </dev/null >&5) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }
5677 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5678   (eval $ac_compiler -V </dev/null >&5) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }
5682 rm -f a.out
5683
5684 # If we don't use `.F' as extension, the preprocessor is not run on the
5685 # input file.  (Note that this only needs to work for GNU compilers.)
5686 ac_save_ext=$ac_ext
5687 ac_ext=F
5688 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5689 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5690 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   cat >conftest.$ac_ext <<_ACEOF
5694       program main
5695 #ifndef __GNUC__
5696        choke me
5697 #endif
5698
5699       end
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703   (eval $ac_compile) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -z "$ac_f77_werror_flag"
5711                          || test ! -s conftest.err'
5712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713   (eval $ac_try) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; } &&
5717          { ac_try='test -s conftest.$ac_objext'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; }; then
5723   ac_compiler_gnu=yes
5724 else
5725   echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5727
5728 ac_compiler_gnu=no
5729 fi
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5732
5733 fi
5734 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5735 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5736 ac_ext=$ac_save_ext
5737 ac_test_FFLAGS=${FFLAGS+set}
5738 ac_save_FFLAGS=$FFLAGS
5739 FFLAGS=
5740 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5741 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5742 if test "${ac_cv_prog_f77_g+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   FFLAGS=-g
5746 cat >conftest.$ac_ext <<_ACEOF
5747       program main
5748
5749       end
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753   (eval $ac_compile) 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } &&
5760          { ac_try='test -z "$ac_f77_werror_flag"
5761                          || test ! -s conftest.err'
5762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763   (eval $ac_try) 2>&5
5764   ac_status=$?
5765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766   (exit $ac_status); }; } &&
5767          { ac_try='test -s conftest.$ac_objext'
5768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769   (eval $ac_try) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); }; }; then
5773   ac_cv_prog_f77_g=yes
5774 else
5775   echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_prog_f77_g=no
5779 fi
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781
5782 fi
5783 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5784 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5785 if test "$ac_test_FFLAGS" = set; then
5786   FFLAGS=$ac_save_FFLAGS
5787 elif test $ac_cv_prog_f77_g = yes; then
5788   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5789     FFLAGS="-g -O2"
5790   else
5791     FFLAGS="-g"
5792   fi
5793 else
5794   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5795     FFLAGS="-O2"
5796   else
5797     FFLAGS=
5798   fi
5799 fi
5800
5801 G77=`test $ac_compiler_gnu = yes && echo yes`
5802 ac_ext=c
5803 ac_cpp='$CPP $CPPFLAGS'
5804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807
5808
5809
5810 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5811
5812 # find the maximum length of command line arguments
5813 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5814 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818     i=0
5819   teststring="ABCD"
5820
5821   case $build_os in
5822   msdosdjgpp*)
5823     # On DJGPP, this test can blow up pretty badly due to problems in libc
5824     # (any single argument exceeding 2000 bytes causes a buffer overrun
5825     # during glob expansion).  Even if it were fixed, the result of this
5826     # check would be larger than it should be.
5827     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5828     ;;
5829
5830   gnu*)
5831     # Under GNU Hurd, this test is not required because there is
5832     # no limit to the length of command line arguments.
5833     # Libtool will interpret -1 as no limit whatsoever
5834     lt_cv_sys_max_cmd_len=-1;
5835     ;;
5836
5837   cygwin* | mingw*)
5838     # On Win9x/ME, this test blows up -- it succeeds, but takes
5839     # about 5 minutes as the teststring grows exponentially.
5840     # Worse, since 9x/ME are not pre-emptively multitasking,
5841     # you end up with a "frozen" computer, even though with patience
5842     # the test eventually succeeds (with a max line length of 256k).
5843     # Instead, let's just punt: use the minimum linelength reported by
5844     # all of the supported platforms: 8192 (on NT/2K/XP).
5845     lt_cv_sys_max_cmd_len=8192;
5846     ;;
5847
5848   amigaos*)
5849     # On AmigaOS with pdksh, this test takes hours, literally.
5850     # So we just punt and use a minimum line length of 8192.
5851     lt_cv_sys_max_cmd_len=8192;
5852     ;;
5853
5854   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5855     # This has been around since 386BSD, at least.  Likely further.
5856     if test -x /sbin/sysctl; then
5857       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5858     elif test -x /usr/sbin/sysctl; then
5859       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5860     else
5861       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5862     fi
5863     # And add a safety zone
5864     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5866     ;;
5867
5868   interix*)
5869     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5870     lt_cv_sys_max_cmd_len=196608
5871     ;;
5872
5873   osf*)
5874     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5875     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5876     # nice to cause kernel panics so lets avoid the loop below.
5877     # First set a reasonable default.
5878     lt_cv_sys_max_cmd_len=16384
5879     #
5880     if test -x /sbin/sysconfig; then
5881       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5882         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5883       esac
5884     fi
5885     ;;
5886   sco3.2v5*)
5887     lt_cv_sys_max_cmd_len=102400
5888     ;;
5889   sysv5* | sco5v6* | sysv4.2uw2*)
5890     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5891     if test -n "$kargmax"; then
5892       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5893     else
5894       lt_cv_sys_max_cmd_len=32768
5895     fi
5896     ;;
5897   *)
5898     # If test is not a shell built-in, we'll probably end up computing a
5899     # maximum length that is only half of the actual maximum length, but
5900     # we can't tell.
5901     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5902     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5903                = "XX$teststring") >/dev/null 2>&1 &&
5904             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5905             lt_cv_sys_max_cmd_len=$new_result &&
5906             test $i != 17 # 1/2 MB should be enough
5907     do
5908       i=`expr $i + 1`
5909       teststring=$teststring$teststring
5910     done
5911     teststring=
5912     # Add a significant safety factor because C++ compilers can tack on massive
5913     # amounts of additional arguments before passing them to the linker.
5914     # It appears as though 1/2 is a usable value.
5915     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5916     ;;
5917   esac
5918
5919 fi
5920
5921 if test -n $lt_cv_sys_max_cmd_len ; then
5922   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5923 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5924 else
5925   echo "$as_me:$LINENO: result: none" >&5
5926 echo "${ECHO_T}none" >&6
5927 fi
5928
5929
5930
5931
5932 # Check for command to grab the raw symbol name followed by C symbol from nm.
5933 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5934 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5935 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938
5939 # These are sane defaults that work on at least a few old systems.
5940 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5941
5942 # Character class describing NM global symbol codes.
5943 symcode='[BCDEGRST]'
5944
5945 # Regexp to match symbols that can be accessed directly from C.
5946 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5947
5948 # Transform an extracted symbol line into a proper C declaration
5949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5950
5951 # Transform an extracted symbol line into symbol name and symbol address
5952 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'"
5953
5954 # Define system-specific variables.
5955 case $host_os in
5956 aix*)
5957   symcode='[BCDT]'
5958   ;;
5959 cygwin* | mingw* | pw32*)
5960   symcode='[ABCDGISTW]'
5961   ;;
5962 hpux*) # Its linker distinguishes data from code symbols
5963   if test "$host_cpu" = ia64; then
5964     symcode='[ABCDEGRST]'
5965   fi
5966   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5967   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'"
5968   ;;
5969 linux*)
5970   if test "$host_cpu" = ia64; then
5971     symcode='[ABCDGIRSTW]'
5972     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5973     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'"
5974   fi
5975   ;;
5976 irix* | nonstopux*)
5977   symcode='[BCDEGRST]'
5978   ;;
5979 osf*)
5980   symcode='[BCDEGQRST]'
5981   ;;
5982 solaris*)
5983   symcode='[BDRT]'
5984   ;;
5985 sco3.2v5*)
5986   symcode='[DT]'
5987   ;;
5988 sysv4.2uw2*)
5989   symcode='[DT]'
5990   ;;
5991 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5992   symcode='[ABDT]'
5993   ;;
5994 sysv4)
5995   symcode='[DFNSTU]'
5996   ;;
5997 esac
5998
5999 # Handle CRLF in mingw tool chain
6000 opt_cr=
6001 case $build_os in
6002 mingw*)
6003   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6004   ;;
6005 esac
6006
6007 # If we're using GNU nm, then use its standard symbol codes.
6008 case `$NM -V 2>&1` in
6009 *GNU* | *'with BFD'*)
6010   symcode='[ABCDGIRSTW]' ;;
6011 esac
6012
6013 # Try without a prefix undercore, then with it.
6014 for ac_symprfx in "" "_"; do
6015
6016   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6017   symxfrm="\\1 $ac_symprfx\\2 \\2"
6018
6019   # Write the raw and C identifiers.
6020   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6021
6022   # Check to see that the pipe works correctly.
6023   pipe_works=no
6024
6025   rm -f conftest*
6026   cat > conftest.$ac_ext <<EOF
6027 #ifdef __cplusplus
6028 extern "C" {
6029 #endif
6030 char nm_test_var;
6031 void nm_test_func(){}
6032 #ifdef __cplusplus
6033 }
6034 #endif
6035 int main(){nm_test_var='a';nm_test_func();return(0);}
6036 EOF
6037
6038   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039   (eval $ac_compile) 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; then
6043     # Now try to grab the symbols.
6044     nlist=conftest.nm
6045     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6046   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); } && test -s "$nlist"; then
6050       # Try sorting and uniquifying the output.
6051       if sort "$nlist" | uniq > "$nlist"T; then
6052         mv -f "$nlist"T "$nlist"
6053       else
6054         rm -f "$nlist"T
6055       fi
6056
6057       # Make sure that we snagged all the symbols we need.
6058       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6059         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6060           cat <<EOF > conftest.$ac_ext
6061 #ifdef __cplusplus
6062 extern "C" {
6063 #endif
6064
6065 EOF
6066           # Now generate the symbol file.
6067           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6068
6069           cat <<EOF >> conftest.$ac_ext
6070 #if defined (__STDC__) && __STDC__
6071 # define lt_ptr_t void *
6072 #else
6073 # define lt_ptr_t char *
6074 # define const
6075 #endif
6076
6077 /* The mapping between symbol names and symbols. */
6078 const struct {
6079   const char *name;
6080   lt_ptr_t address;
6081 }
6082 lt_preloaded_symbols[] =
6083 {
6084 EOF
6085           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6086           cat <<\EOF >> conftest.$ac_ext
6087   {0, (lt_ptr_t) 0}
6088 };
6089
6090 #ifdef __cplusplus
6091 }
6092 #endif
6093 EOF
6094           # Now try linking the two files.
6095           mv conftest.$ac_objext conftstm.$ac_objext
6096           lt_save_LIBS="$LIBS"
6097           lt_save_CFLAGS="$CFLAGS"
6098           LIBS="conftstm.$ac_objext"
6099           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6100           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6101   (eval $ac_link) 2>&5
6102   ac_status=$?
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6105             pipe_works=yes
6106           fi
6107           LIBS="$lt_save_LIBS"
6108           CFLAGS="$lt_save_CFLAGS"
6109         else
6110           echo "cannot find nm_test_func in $nlist" >&5
6111         fi
6112       else
6113         echo "cannot find nm_test_var in $nlist" >&5
6114       fi
6115     else
6116       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6117     fi
6118   else
6119     echo "$progname: failed program was:" >&5
6120     cat conftest.$ac_ext >&5
6121   fi
6122   rm -f conftest* conftst*
6123
6124   # Do not use the global_symbol_pipe unless it works.
6125   if test "$pipe_works" = yes; then
6126     break
6127   else
6128     lt_cv_sys_global_symbol_pipe=
6129   fi
6130 done
6131
6132 fi
6133
6134 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6135   lt_cv_sys_global_symbol_to_cdecl=
6136 fi
6137 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6138   echo "$as_me:$LINENO: result: failed" >&5
6139 echo "${ECHO_T}failed" >&6
6140 else
6141   echo "$as_me:$LINENO: result: ok" >&5
6142 echo "${ECHO_T}ok" >&6
6143 fi
6144
6145 echo "$as_me:$LINENO: checking for objdir" >&5
6146 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6147 if test "${lt_cv_objdir+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   rm -f .libs 2>/dev/null
6151 mkdir .libs 2>/dev/null
6152 if test -d .libs; then
6153   lt_cv_objdir=.libs
6154 else
6155   # MS-DOS does not allow filenames that begin with a dot.
6156   lt_cv_objdir=_libs
6157 fi
6158 rmdir .libs 2>/dev/null
6159 fi
6160 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6161 echo "${ECHO_T}$lt_cv_objdir" >&6
6162 objdir=$lt_cv_objdir
6163
6164
6165
6166
6167
6168 case $host_os in
6169 aix3*)
6170   # AIX sometimes has problems with the GCC collect2 program.  For some
6171   # reason, if we set the COLLECT_NAMES environment variable, the problems
6172   # vanish in a puff of smoke.
6173   if test "X${COLLECT_NAMES+set}" != Xset; then
6174     COLLECT_NAMES=
6175     export COLLECT_NAMES
6176   fi
6177   ;;
6178 esac
6179
6180 # Sed substitution that helps us do robust quoting.  It backslashifies
6181 # metacharacters that are still active within double-quoted strings.
6182 Xsed='sed -e 1s/^X//'
6183 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6184
6185 # Same as above, but do not quote variable references.
6186 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6187
6188 # Sed substitution to delay expansion of an escaped shell variable in a
6189 # double_quote_subst'ed string.
6190 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6191
6192 # Sed substitution to avoid accidental globbing in evaled expressions
6193 no_glob_subst='s/\*/\\\*/g'
6194
6195 # Constants:
6196 rm="rm -f"
6197
6198 # Global variables:
6199 default_ofile=libtool
6200 can_build_shared=yes
6201
6202 # All known linkers require a `.a' archive for static linking (except MSVC,
6203 # which needs '.lib').
6204 libext=a
6205 ltmain="$ac_aux_dir/ltmain.sh"
6206 ofile="$default_ofile"
6207 with_gnu_ld="$lt_cv_prog_gnu_ld"
6208
6209 if test -n "$ac_tool_prefix"; then
6210   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}ar; ac_word=$2
6212 echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6214 if test "${ac_cv_prog_AR+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$AR"; then
6218   ac_cv_prog_AR="$AR" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227     ac_cv_prog_AR="${ac_tool_prefix}ar"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233
6234 fi
6235 fi
6236 AR=$ac_cv_prog_AR
6237 if test -n "$AR"; then
6238   echo "$as_me:$LINENO: result: $AR" >&5
6239 echo "${ECHO_T}$AR" >&6
6240 else
6241   echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6
6243 fi
6244
6245 fi
6246 if test -z "$ac_cv_prog_AR"; then
6247   ac_ct_AR=$AR
6248   # Extract the first word of "ar", so it can be a program name with args.
6249 set dummy ar; ac_word=$2
6250 echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255   if test -n "$ac_ct_AR"; then
6256   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261   IFS=$as_save_IFS
6262   test -z "$as_dir" && as_dir=.
6263   for ac_exec_ext in '' $ac_executable_extensions; do
6264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265     ac_cv_prog_ac_ct_AR="ar"
6266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267     break 2
6268   fi
6269 done
6270 done
6271
6272   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6273 fi
6274 fi
6275 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6276 if test -n "$ac_ct_AR"; then
6277   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6278 echo "${ECHO_T}$ac_ct_AR" >&6
6279 else
6280   echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6282 fi
6283
6284   AR=$ac_ct_AR
6285 else
6286   AR="$ac_cv_prog_AR"
6287 fi
6288
6289 if test -n "$ac_tool_prefix"; then
6290   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   if test -n "$RANLIB"; then
6298   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305   for ac_exec_ext in '' $ac_executable_extensions; do
6306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312 done
6313
6314 fi
6315 fi
6316 RANLIB=$ac_cv_prog_RANLIB
6317 if test -n "$RANLIB"; then
6318   echo "$as_me:$LINENO: result: $RANLIB" >&5
6319 echo "${ECHO_T}$RANLIB" >&6
6320 else
6321   echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6323 fi
6324
6325 fi
6326 if test -z "$ac_cv_prog_RANLIB"; then
6327   ac_ct_RANLIB=$RANLIB
6328   # Extract the first word of "ranlib", so it can be a program name with args.
6329 set dummy ranlib; ac_word=$2
6330 echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   if test -n "$ac_ct_RANLIB"; then
6336   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343   for ac_exec_ext in '' $ac_executable_extensions; do
6344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345     ac_cv_prog_ac_ct_RANLIB="ranlib"
6346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350 done
6351
6352   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6353 fi
6354 fi
6355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6356 if test -n "$ac_ct_RANLIB"; then
6357   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6358 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6359 else
6360   echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6
6362 fi
6363
6364   RANLIB=$ac_ct_RANLIB
6365 else
6366   RANLIB="$ac_cv_prog_RANLIB"
6367 fi
6368
6369 if test -n "$ac_tool_prefix"; then
6370   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6371 set dummy ${ac_tool_prefix}strip; ac_word=$2
6372 echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374 if test "${ac_cv_prog_STRIP+set}" = set; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   if test -n "$STRIP"; then
6378   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385   for ac_exec_ext in '' $ac_executable_extensions; do
6386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392 done
6393
6394 fi
6395 fi
6396 STRIP=$ac_cv_prog_STRIP
6397 if test -n "$STRIP"; then
6398   echo "$as_me:$LINENO: result: $STRIP" >&5
6399 echo "${ECHO_T}$STRIP" >&6
6400 else
6401   echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6
6403 fi
6404
6405 fi
6406 if test -z "$ac_cv_prog_STRIP"; then
6407   ac_ct_STRIP=$STRIP
6408   # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6413   echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415   if test -n "$ac_ct_STRIP"; then
6416   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423   for ac_exec_ext in '' $ac_executable_extensions; do
6424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425     ac_cv_prog_ac_ct_STRIP="strip"
6426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430 done
6431
6432   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6433 fi
6434 fi
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6438 echo "${ECHO_T}$ac_ct_STRIP" >&6
6439 else
6440   echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6
6442 fi
6443
6444   STRIP=$ac_ct_STRIP
6445 else
6446   STRIP="$ac_cv_prog_STRIP"
6447 fi
6448
6449
6450 old_CC="$CC"
6451 old_CFLAGS="$CFLAGS"
6452
6453 # Set sane defaults for various variables
6454 test -z "$AR" && AR=ar
6455 test -z "$AR_FLAGS" && AR_FLAGS=cru
6456 test -z "$AS" && AS=as
6457 test -z "$CC" && CC=cc
6458 test -z "$LTCC" && LTCC=$CC
6459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6460 test -z "$DLLTOOL" && DLLTOOL=dlltool
6461 test -z "$LD" && LD=ld
6462 test -z "$LN_S" && LN_S="ln -s"
6463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6464 test -z "$NM" && NM=nm
6465 test -z "$SED" && SED=sed
6466 test -z "$OBJDUMP" && OBJDUMP=objdump
6467 test -z "$RANLIB" && RANLIB=:
6468 test -z "$STRIP" && STRIP=:
6469 test -z "$ac_objext" && ac_objext=o
6470
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6475
6476 if test -n "$RANLIB"; then
6477   case $host_os in
6478   openbsd*)
6479     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6480     ;;
6481   *)
6482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6483     ;;
6484   esac
6485   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6486 fi
6487
6488 for cc_temp in $compiler""; do
6489   case $cc_temp in
6490     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6491     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6492     \-*) ;;
6493     *) break;;
6494   esac
6495 done
6496 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6497
6498
6499 # Only perform the check for file, if the check method requires it
6500 case $deplibs_check_method in
6501 file_magic*)
6502   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6503     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6504 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6505 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   case $MAGIC_CMD in
6509 [\\/*] |  ?:[\\/]*)
6510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6511   ;;
6512 *)
6513   lt_save_MAGIC_CMD="$MAGIC_CMD"
6514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6515   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6516   for ac_dir in $ac_dummy; do
6517     IFS="$lt_save_ifs"
6518     test -z "$ac_dir" && ac_dir=.
6519     if test -f $ac_dir/${ac_tool_prefix}file; then
6520       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6521       if test -n "$file_magic_test_file"; then
6522         case $deplibs_check_method in
6523         "file_magic "*)
6524           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6525           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6526           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6527             $EGREP "$file_magic_regex" > /dev/null; then
6528             :
6529           else
6530             cat <<EOF 1>&2
6531
6532 *** Warning: the command libtool uses to detect shared libraries,
6533 *** $file_magic_cmd, produces output that libtool cannot recognize.
6534 *** The result is that libtool may fail to recognize shared libraries
6535 *** as such.  This will affect the creation of libtool libraries that
6536 *** depend on shared libraries, but programs linked with such libtool
6537 *** libraries will work regardless of this problem.  Nevertheless, you
6538 *** may want to report the problem to your system manager and/or to
6539 *** bug-libtool@gnu.org
6540
6541 EOF
6542           fi ;;
6543         esac
6544       fi
6545       break
6546     fi
6547   done
6548   IFS="$lt_save_ifs"
6549   MAGIC_CMD="$lt_save_MAGIC_CMD"
6550   ;;
6551 esac
6552 fi
6553
6554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6555 if test -n "$MAGIC_CMD"; then
6556   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6557 echo "${ECHO_T}$MAGIC_CMD" >&6
6558 else
6559   echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6
6561 fi
6562
6563 if test -z "$lt_cv_path_MAGIC_CMD"; then
6564   if test -n "$ac_tool_prefix"; then
6565     echo "$as_me:$LINENO: checking for file" >&5
6566 echo $ECHO_N "checking for file... $ECHO_C" >&6
6567 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   case $MAGIC_CMD in
6571 [\\/*] |  ?:[\\/]*)
6572   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6573   ;;
6574 *)
6575   lt_save_MAGIC_CMD="$MAGIC_CMD"
6576   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6578   for ac_dir in $ac_dummy; do
6579     IFS="$lt_save_ifs"
6580     test -z "$ac_dir" && ac_dir=.
6581     if test -f $ac_dir/file; then
6582       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6583       if test -n "$file_magic_test_file"; then
6584         case $deplibs_check_method in
6585         "file_magic "*)
6586           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6587           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6588           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6589             $EGREP "$file_magic_regex" > /dev/null; then
6590             :
6591           else
6592             cat <<EOF 1>&2
6593
6594 *** Warning: the command libtool uses to detect shared libraries,
6595 *** $file_magic_cmd, produces output that libtool cannot recognize.
6596 *** The result is that libtool may fail to recognize shared libraries
6597 *** as such.  This will affect the creation of libtool libraries that
6598 *** depend on shared libraries, but programs linked with such libtool
6599 *** libraries will work regardless of this problem.  Nevertheless, you
6600 *** may want to report the problem to your system manager and/or to
6601 *** bug-libtool@gnu.org
6602
6603 EOF
6604           fi ;;
6605         esac
6606       fi
6607       break
6608     fi
6609   done
6610   IFS="$lt_save_ifs"
6611   MAGIC_CMD="$lt_save_MAGIC_CMD"
6612   ;;
6613 esac
6614 fi
6615
6616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6617 if test -n "$MAGIC_CMD"; then
6618   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6619 echo "${ECHO_T}$MAGIC_CMD" >&6
6620 else
6621   echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6623 fi
6624
6625   else
6626     MAGIC_CMD=:
6627   fi
6628 fi
6629
6630   fi
6631   ;;
6632 esac
6633
6634 enable_dlopen=no
6635 enable_win32_dll=no
6636
6637 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6638 if test "${enable_libtool_lock+set}" = set; then
6639   enableval="$enable_libtool_lock"
6640
6641 fi;
6642 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6643
6644
6645 # Check whether --with-pic or --without-pic was given.
6646 if test "${with_pic+set}" = set; then
6647   withval="$with_pic"
6648   pic_mode="$withval"
6649 else
6650   pic_mode=default
6651 fi;
6652 test -z "$pic_mode" && pic_mode=default
6653
6654 # Use C for the default configuration in the libtool script
6655 tagname=
6656 lt_save_CC="$CC"
6657 ac_ext=c
6658 ac_cpp='$CPP $CPPFLAGS'
6659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662
6663
6664 # Source file extension for C test sources.
6665 ac_ext=c
6666
6667 # Object file extension for compiled C test sources.
6668 objext=o
6669 objext=$objext
6670
6671 # Code to be used in simple compile tests
6672 lt_simple_compile_test_code="int some_variable = 0;\n"
6673
6674 # Code to be used in simple link tests
6675 lt_simple_link_test_code='int main(){return(0);}\n'
6676
6677
6678 # If no C compiler was specified, use CC.
6679 LTCC=${LTCC-"$CC"}
6680
6681 # If no C compiler flags were specified, use CFLAGS.
6682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6683
6684 # Allow CC to be a program name with arguments.
6685 compiler=$CC
6686
6687
6688 # save warnings/boilerplate of simple test code
6689 ac_outfile=conftest.$ac_objext
6690 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6691 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6692 _lt_compiler_boilerplate=`cat conftest.err`
6693 $rm conftest*
6694
6695 ac_outfile=conftest.$ac_objext
6696 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6697 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6698 _lt_linker_boilerplate=`cat conftest.err`
6699 $rm conftest*
6700
6701
6702
6703 lt_prog_compiler_no_builtin_flag=
6704
6705 if test "$GCC" = yes; then
6706   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6707
6708
6709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   lt_cv_prog_compiler_rtti_exceptions=no
6715   ac_outfile=conftest.$ac_objext
6716    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717    lt_compiler_flag="-fno-rtti -fno-exceptions"
6718    # Insert the option either (1) after the last *FLAGS variable, or
6719    # (2) before a word containing "conftest.", or (3) at the end.
6720    # Note that $ac_compile itself does not contain backslashes and begins
6721    # with a dollar sign (not a hyphen), so the echo should work correctly.
6722    # The option is referenced via a variable to avoid confusing sed.
6723    lt_compile=`echo "$ac_compile" | $SED \
6724    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6725    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726    -e 's:$: $lt_compiler_flag:'`
6727    (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728    (eval "$lt_compile" 2>conftest.err)
6729    ac_status=$?
6730    cat conftest.err >&5
6731    echo "$as_me:6731: \$? = $ac_status" >&5
6732    if (exit $ac_status) && test -s "$ac_outfile"; then
6733      # The compiler can only warn and ignore the option if not recognized
6734      # So say no if there are warnings other than the usual output.
6735      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6736      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6737      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6738        lt_cv_prog_compiler_rtti_exceptions=yes
6739      fi
6740    fi
6741    $rm conftest*
6742
6743 fi
6744 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6745 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6746
6747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6748     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6749 else
6750     :
6751 fi
6752
6753 fi
6754
6755 lt_prog_compiler_wl=
6756 lt_prog_compiler_pic=
6757 lt_prog_compiler_static=
6758
6759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6761
6762   if test "$GCC" = yes; then
6763     lt_prog_compiler_wl='-Wl,'
6764     lt_prog_compiler_static='-static'
6765
6766     case $host_os in
6767       aix*)
6768       # All AIX code is PIC.
6769       if test "$host_cpu" = ia64; then
6770         # AIX 5 now supports IA64 processor
6771         lt_prog_compiler_static='-Bstatic'
6772       fi
6773       ;;
6774
6775     amigaos*)
6776       # FIXME: we need at least 68020 code to build shared libraries, but
6777       # adding the `-m68020' flag to GCC prevents building anything better,
6778       # like `-m68040'.
6779       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6780       ;;
6781
6782     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6783       # PIC is the default for these OSes.
6784       ;;
6785
6786     mingw* | pw32* | os2*)
6787       # This hack is so that the source file can tell whether it is being
6788       # built for inclusion in a dll (and should export symbols for example).
6789       lt_prog_compiler_pic='-DDLL_EXPORT'
6790       ;;
6791
6792     darwin* | rhapsody*)
6793       # PIC is the default on this platform
6794       # Common symbols not allowed in MH_DYLIB files
6795       lt_prog_compiler_pic='-fno-common'
6796       ;;
6797
6798     interix3*)
6799       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6800       # Instead, we relocate shared libraries at runtime.
6801       ;;
6802
6803     msdosdjgpp*)
6804       # Just because we use GCC doesn't mean we suddenly get shared libraries
6805       # on systems that don't support them.
6806       lt_prog_compiler_can_build_shared=no
6807       enable_shared=no
6808       ;;
6809
6810     sysv4*MP*)
6811       if test -d /usr/nec; then
6812         lt_prog_compiler_pic=-Kconform_pic
6813       fi
6814       ;;
6815
6816     hpux*)
6817       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6818       # not for PA HP-UX.
6819       case $host_cpu in
6820       hppa*64*|ia64*)
6821         # +Z the default
6822         ;;
6823       *)
6824         lt_prog_compiler_pic='-fPIC'
6825         ;;
6826       esac
6827       ;;
6828
6829     *)
6830       lt_prog_compiler_pic='-fPIC'
6831       ;;
6832     esac
6833   else
6834     # PORTME Check for flag to pass linker flags through the system compiler.
6835     case $host_os in
6836     aix*)
6837       lt_prog_compiler_wl='-Wl,'
6838       if test "$host_cpu" = ia64; then
6839         # AIX 5 now supports IA64 processor
6840         lt_prog_compiler_static='-Bstatic'
6841       else
6842         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6843       fi
6844       ;;
6845       darwin*)
6846         # PIC is the default on this platform
6847         # Common symbols not allowed in MH_DYLIB files
6848        case $cc_basename in
6849          xlc*)
6850          lt_prog_compiler_pic='-qnocommon'
6851          lt_prog_compiler_wl='-Wl,'
6852          ;;
6853        esac
6854        ;;
6855
6856     mingw* | pw32* | os2*)
6857       # This hack is so that the source file can tell whether it is being
6858       # built for inclusion in a dll (and should export symbols for example).
6859       lt_prog_compiler_pic='-DDLL_EXPORT'
6860       ;;
6861
6862     hpux9* | hpux10* | hpux11*)
6863       lt_prog_compiler_wl='-Wl,'
6864       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6865       # not for PA HP-UX.
6866       case $host_cpu in
6867       hppa*64*|ia64*)
6868         # +Z the default
6869         ;;
6870       *)
6871         lt_prog_compiler_pic='+Z'
6872         ;;
6873       esac
6874       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6875       lt_prog_compiler_static='${wl}-a ${wl}archive'
6876       ;;
6877
6878     irix5* | irix6* | nonstopux*)
6879       lt_prog_compiler_wl='-Wl,'
6880       # PIC (with -KPIC) is the default.
6881       lt_prog_compiler_static='-non_shared'
6882       ;;
6883
6884     newsos6)
6885       lt_prog_compiler_pic='-KPIC'
6886       lt_prog_compiler_static='-Bstatic'
6887       ;;
6888
6889     linux*)
6890       case $cc_basename in
6891       icc* | ecc*)
6892         lt_prog_compiler_wl='-Wl,'
6893         lt_prog_compiler_pic='-KPIC'
6894         lt_prog_compiler_static='-static'
6895         ;;
6896       pgcc* | pgf77* | pgf90* | pgf95*)
6897         # Portland Group compilers (*not* the Pentium gcc compiler,
6898         # which looks to be a dead project)
6899         lt_prog_compiler_wl='-Wl,'
6900         lt_prog_compiler_pic='-fpic'
6901         lt_prog_compiler_static='-Bstatic'
6902         ;;
6903       ccc*)
6904         lt_prog_compiler_wl='-Wl,'
6905         # All Alpha code is PIC.
6906         lt_prog_compiler_static='-non_shared'
6907         ;;
6908       esac
6909       ;;
6910
6911     osf3* | osf4* | osf5*)
6912       lt_prog_compiler_wl='-Wl,'
6913       # All OSF/1 code is PIC.
6914       lt_prog_compiler_static='-non_shared'
6915       ;;
6916
6917     solaris*)
6918       lt_prog_compiler_pic='-KPIC'
6919       lt_prog_compiler_static='-Bstatic'
6920       case $cc_basename in
6921       f77* | f90* | f95*)
6922         lt_prog_compiler_wl='-Qoption ld ';;
6923       *)
6924         lt_prog_compiler_wl='-Wl,';;
6925       esac
6926       ;;
6927
6928     sunos4*)
6929       lt_prog_compiler_wl='-Qoption ld '
6930       lt_prog_compiler_pic='-PIC'
6931       lt_prog_compiler_static='-Bstatic'
6932       ;;
6933
6934     sysv4 | sysv4.2uw2* | sysv4.3*)
6935       lt_prog_compiler_wl='-Wl,'
6936       lt_prog_compiler_pic='-KPIC'
6937       lt_prog_compiler_static='-Bstatic'
6938       ;;
6939
6940     sysv4*MP*)
6941       if test -d /usr/nec ;then
6942         lt_prog_compiler_pic='-Kconform_pic'
6943         lt_prog_compiler_static='-Bstatic'
6944       fi
6945       ;;
6946
6947     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6948       lt_prog_compiler_wl='-Wl,'
6949       lt_prog_compiler_pic='-KPIC'
6950       lt_prog_compiler_static='-Bstatic'
6951       ;;
6952
6953     unicos*)
6954       lt_prog_compiler_wl='-Wl,'
6955       lt_prog_compiler_can_build_shared=no
6956       ;;
6957
6958     uts4*)
6959       lt_prog_compiler_pic='-pic'
6960       lt_prog_compiler_static='-Bstatic'
6961       ;;
6962
6963     *)
6964       lt_prog_compiler_can_build_shared=no
6965       ;;
6966     esac
6967   fi
6968
6969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6970 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6971
6972 #
6973 # Check to make sure the PIC flag actually works.
6974 #
6975 if test -n "$lt_prog_compiler_pic"; then
6976
6977 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6979 if test "${lt_prog_compiler_pic_works+set}" = set; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982   lt_prog_compiler_pic_works=no
6983   ac_outfile=conftest.$ac_objext
6984    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6985    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6986    # Insert the option either (1) after the last *FLAGS variable, or
6987    # (2) before a word containing "conftest.", or (3) at the end.
6988    # Note that $ac_compile itself does not contain backslashes and begins
6989    # with a dollar sign (not a hyphen), so the echo should work correctly.
6990    # The option is referenced via a variable to avoid confusing sed.
6991    lt_compile=`echo "$ac_compile" | $SED \
6992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6994    -e 's:$: $lt_compiler_flag:'`
6995    (eval echo "\"\$as_me:6995: $lt_compile\"" >&5)
6996    (eval "$lt_compile" 2>conftest.err)
6997    ac_status=$?
6998    cat conftest.err >&5
6999    echo "$as_me:6999: \$? = $ac_status" >&5
7000    if (exit $ac_status) && test -s "$ac_outfile"; then
7001      # The compiler can only warn and ignore the option if not recognized
7002      # So say no if there are warnings other than the usual output.
7003      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7004      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7005      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7006        lt_prog_compiler_pic_works=yes
7007      fi
7008    fi
7009    $rm conftest*
7010
7011 fi
7012 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7013 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7014
7015 if test x"$lt_prog_compiler_pic_works" = xyes; then
7016     case $lt_prog_compiler_pic in
7017      "" | " "*) ;;
7018      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7019      esac
7020 else
7021     lt_prog_compiler_pic=
7022      lt_prog_compiler_can_build_shared=no
7023 fi
7024
7025 fi
7026 case $host_os in
7027   # For platforms which do not support PIC, -DPIC is meaningless:
7028   *djgpp*)
7029     lt_prog_compiler_pic=
7030     ;;
7031   *)
7032     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7033     ;;
7034 esac
7035
7036 #
7037 # Check to make sure the static flag actually works.
7038 #
7039 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7040 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7041 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7042 if test "${lt_prog_compiler_static_works+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   lt_prog_compiler_static_works=no
7046    save_LDFLAGS="$LDFLAGS"
7047    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7048    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7049    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7050      # The linker can only warn and ignore the option if not recognized
7051      # So say no if there are warnings
7052      if test -s conftest.err; then
7053        # Append any errors to the config.log.
7054        cat conftest.err 1>&5
7055        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7056        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7057        if diff conftest.exp conftest.er2 >/dev/null; then
7058          lt_prog_compiler_static_works=yes
7059        fi
7060      else
7061        lt_prog_compiler_static_works=yes
7062      fi
7063    fi
7064    $rm conftest*
7065    LDFLAGS="$save_LDFLAGS"
7066
7067 fi
7068 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7069 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7070
7071 if test x"$lt_prog_compiler_static_works" = xyes; then
7072     :
7073 else
7074     lt_prog_compiler_static=
7075 fi
7076
7077
7078 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7079 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7080 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   lt_cv_prog_compiler_c_o=no
7084    $rm -r conftest 2>/dev/null
7085    mkdir conftest
7086    cd conftest
7087    mkdir out
7088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089
7090    lt_compiler_flag="-o out/conftest2.$ac_objext"
7091    # Insert the option either (1) after the last *FLAGS variable, or
7092    # (2) before a word containing "conftest.", or (3) at the end.
7093    # Note that $ac_compile itself does not contain backslashes and begins
7094    # with a dollar sign (not a hyphen), so the echo should work correctly.
7095    lt_compile=`echo "$ac_compile" | $SED \
7096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098    -e 's:$: $lt_compiler_flag:'`
7099    (eval echo "\"\$as_me:7099: $lt_compile\"" >&5)
7100    (eval "$lt_compile" 2>out/conftest.err)
7101    ac_status=$?
7102    cat out/conftest.err >&5
7103    echo "$as_me:7103: \$? = $ac_status" >&5
7104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7105    then
7106      # The compiler can only warn and ignore the option if not recognized
7107      # So say no if there are warnings
7108      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7109      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7110      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7111        lt_cv_prog_compiler_c_o=yes
7112      fi
7113    fi
7114    chmod u+w . 2>&5
7115    $rm conftest*
7116    # SGI C++ compiler will create directory out/ii_files/ for
7117    # template instantiation
7118    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7119    $rm out/* && rmdir out
7120    cd ..
7121    rmdir conftest
7122    $rm conftest*
7123
7124 fi
7125 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7126 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7127
7128
7129 hard_links="nottested"
7130 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7131   # do not overwrite the value of need_locks provided by the user
7132   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7133 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7134   hard_links=yes
7135   $rm conftest*
7136   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7137   touch conftest.a
7138   ln conftest.a conftest.b 2>&5 || hard_links=no
7139   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7140   echo "$as_me:$LINENO: result: $hard_links" >&5
7141 echo "${ECHO_T}$hard_links" >&6
7142   if test "$hard_links" = no; then
7143     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7145     need_locks=warn
7146   fi
7147 else
7148   need_locks=no
7149 fi
7150
7151 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7152 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7153
7154   runpath_var=
7155   allow_undefined_flag=
7156   enable_shared_with_static_runtimes=no
7157   archive_cmds=
7158   archive_expsym_cmds=
7159   old_archive_From_new_cmds=
7160   old_archive_from_expsyms_cmds=
7161   export_dynamic_flag_spec=
7162   whole_archive_flag_spec=
7163   thread_safe_flag_spec=
7164   hardcode_libdir_flag_spec=
7165   hardcode_libdir_flag_spec_ld=
7166   hardcode_libdir_separator=
7167   hardcode_direct=no
7168   hardcode_minus_L=no
7169   hardcode_shlibpath_var=unsupported
7170   link_all_deplibs=unknown
7171   hardcode_automatic=no
7172   module_cmds=
7173   module_expsym_cmds=
7174   always_export_symbols=no
7175   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7176   # include_expsyms should be a list of space-separated symbols to be *always*
7177   # included in the symbol list
7178   include_expsyms=
7179   # exclude_expsyms can be an extended regexp of symbols to exclude
7180   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7181   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7182   # as well as any symbol that contains `d'.
7183   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7184   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7185   # platforms (ab)use it in PIC code, but their linkers get confused if
7186   # the symbol is explicitly referenced.  Since portable code cannot
7187   # rely on this symbol name, it's probably fine to never include it in
7188   # preloaded symbol tables.
7189   extract_expsyms_cmds=
7190   # Just being paranoid about ensuring that cc_basename is set.
7191   for cc_temp in $compiler""; do
7192   case $cc_temp in
7193     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7194     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7195     \-*) ;;
7196     *) break;;
7197   esac
7198 done
7199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7200
7201   case $host_os in
7202   cygwin* | mingw* | pw32*)
7203     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7204     # When not using gcc, we currently assume that we are using
7205     # Microsoft Visual C++.
7206     if test "$GCC" != yes; then
7207       with_gnu_ld=no
7208     fi
7209     ;;
7210   interix*)
7211     # we just hope/assume this is gcc and not c89 (= MSVC++)
7212     with_gnu_ld=yes
7213     ;;
7214   openbsd*)
7215     with_gnu_ld=no
7216     ;;
7217   esac
7218
7219   ld_shlibs=yes
7220   if test "$with_gnu_ld" = yes; then
7221     # If archive_cmds runs LD, not CC, wlarc should be empty
7222     wlarc='${wl}'
7223
7224     # Set some defaults for GNU ld with shared library support. These
7225     # are reset later if shared libraries are not supported. Putting them
7226     # here allows them to be overridden if necessary.
7227     runpath_var=LD_RUN_PATH
7228     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7229     export_dynamic_flag_spec='${wl}--export-dynamic'
7230     # ancient GNU ld didn't support --whole-archive et. al.
7231     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7232         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7233       else
7234         whole_archive_flag_spec=
7235     fi
7236     supports_anon_versioning=no
7237     case `$LD -v 2>/dev/null` in
7238       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7239       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7240       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7241       *\ 2.11.*) ;; # other 2.11 versions
7242       *) supports_anon_versioning=yes ;;
7243     esac
7244
7245     # See if GNU ld supports shared libraries.
7246     case $host_os in
7247     aix3* | aix4* | aix5*)
7248       # On AIX/PPC, the GNU linker is very broken
7249       if test "$host_cpu" != ia64; then
7250         ld_shlibs=no
7251         cat <<EOF 1>&2
7252
7253 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7254 *** to be unable to reliably create shared libraries on AIX.
7255 *** Therefore, libtool is disabling shared libraries support.  If you
7256 *** really care for shared libraries, you may want to modify your PATH
7257 *** so that a non-GNU linker is found, and then restart.
7258
7259 EOF
7260       fi
7261       ;;
7262
7263     amigaos*)
7264       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)'
7265       hardcode_libdir_flag_spec='-L$libdir'
7266       hardcode_minus_L=yes
7267
7268       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7269       # that the semantics of dynamic libraries on AmigaOS, at least up
7270       # to version 4, is to share data among multiple programs linked
7271       # with the same dynamic library.  Since this doesn't match the
7272       # behavior of shared libraries on other platforms, we can't use
7273       # them.
7274       ld_shlibs=no
7275       ;;
7276
7277     beos*)
7278       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7279         allow_undefined_flag=unsupported
7280         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7281         # support --undefined.  This deserves some investigation.  FIXME
7282         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7283       else
7284         ld_shlibs=no
7285       fi
7286       ;;
7287
7288     cygwin* | mingw* | pw32*)
7289       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7290       # as there is no search path for DLLs.
7291       hardcode_libdir_flag_spec='-L$libdir'
7292       allow_undefined_flag=unsupported
7293       always_export_symbols=no
7294       enable_shared_with_static_runtimes=yes
7295       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7296
7297       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7299         # If the export-symbols file already is a .def file (1st line
7300         # is EXPORTS), use it as is; otherwise, prepend...
7301         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7302           cp $export_symbols $output_objdir/$soname.def;
7303         else
7304           echo EXPORTS > $output_objdir/$soname.def;
7305           cat $export_symbols >> $output_objdir/$soname.def;
7306         fi~
7307         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7308       else
7309         ld_shlibs=no
7310       fi
7311       ;;
7312
7313     interix3*)
7314       hardcode_direct=no
7315       hardcode_shlibpath_var=no
7316       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7317       export_dynamic_flag_spec='${wl}-E'
7318       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7319       # Instead, shared libraries are loaded at an image base (0x10000000 by
7320       # default) and relocated if they conflict, which is a slow very memory
7321       # consuming and fragmenting process.  To avoid this, we pick a random,
7322       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7323       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7324       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7325       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'
7326       ;;
7327
7328     linux*)
7329       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7330         tmp_addflag=
7331         case $cc_basename,$host_cpu in
7332         pgcc*)                          # Portland Group C compiler
7333           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'
7334           tmp_addflag=' $pic_flag'
7335           ;;
7336         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7337           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'
7338           tmp_addflag=' $pic_flag -Mnomain' ;;
7339         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7340           tmp_addflag=' -i_dynamic' ;;
7341         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7342           tmp_addflag=' -i_dynamic -nofor_main' ;;
7343         ifc* | ifort*)                  # Intel Fortran compiler
7344           tmp_addflag=' -nofor_main' ;;
7345         esac
7346         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7347
7348         if test $supports_anon_versioning = yes; then
7349           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7350   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7351   $echo "local: *; };" >> $output_objdir/$libname.ver~
7352           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7353         fi
7354       else
7355         ld_shlibs=no
7356       fi
7357       ;;
7358
7359     netbsd*)
7360       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7361         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7362         wlarc=
7363       else
7364         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7365         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7366       fi
7367       ;;
7368
7369     solaris*)
7370       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7371         ld_shlibs=no
7372         cat <<EOF 1>&2
7373
7374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7375 *** create shared libraries on Solaris systems.  Therefore, libtool
7376 *** is disabling shared libraries support.  We urge you to upgrade GNU
7377 *** binutils to release 2.9.1 or newer.  Another option is to modify
7378 *** your PATH or compiler configuration so that the native linker is
7379 *** used, and then restart.
7380
7381 EOF
7382       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7385       else
7386         ld_shlibs=no
7387       fi
7388       ;;
7389
7390     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7391       case `$LD -v 2>&1` in
7392         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7393         ld_shlibs=no
7394         cat <<_LT_EOF 1>&2
7395
7396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7397 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7398 *** is disabling shared libraries support.  We urge you to upgrade GNU
7399 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7400 *** your PATH or compiler configuration so that the native linker is
7401 *** used, and then restart.
7402
7403 _LT_EOF
7404         ;;
7405         *)
7406           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7407             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7408             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7409             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7410           else
7411             ld_shlibs=no
7412           fi
7413         ;;
7414       esac
7415       ;;
7416
7417     sunos4*)
7418       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7419       wlarc=
7420       hardcode_direct=yes
7421       hardcode_shlibpath_var=no
7422       ;;
7423
7424     *)
7425       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7426         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7428       else
7429         ld_shlibs=no
7430       fi
7431       ;;
7432     esac
7433
7434     if test "$ld_shlibs" = no; then
7435       runpath_var=
7436       hardcode_libdir_flag_spec=
7437       export_dynamic_flag_spec=
7438       whole_archive_flag_spec=
7439     fi
7440   else
7441     # PORTME fill in a description of your system's linker (not GNU ld)
7442     case $host_os in
7443     aix3*)
7444       allow_undefined_flag=unsupported
7445       always_export_symbols=yes
7446       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'
7447       # Note: this linker hardcodes the directories in LIBPATH if there
7448       # are no directories specified by -L.
7449       hardcode_minus_L=yes
7450       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7451         # Neither direct hardcoding nor static linking is supported with a
7452         # broken collect2.
7453         hardcode_direct=unsupported
7454       fi
7455       ;;
7456
7457     aix4* | aix5*)
7458       if test "$host_cpu" = ia64; then
7459         # On IA64, the linker does run time linking by default, so we don't
7460         # have to do anything special.
7461         aix_use_runtimelinking=no
7462         exp_sym_flag='-Bexport'
7463         no_entry_flag=""
7464       else
7465         # If we're using GNU nm, then we don't want the "-C" option.
7466         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7467         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7468           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'
7469         else
7470           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'
7471         fi
7472         aix_use_runtimelinking=no
7473
7474         # Test if we are trying to use run time linking or normal
7475         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7476         # need to do runtime linking.
7477         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7478           for ld_flag in $LDFLAGS; do
7479           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7480             aix_use_runtimelinking=yes
7481             break
7482           fi
7483           done
7484           ;;
7485         esac
7486
7487         exp_sym_flag='-bexport'
7488         no_entry_flag='-bnoentry'
7489       fi
7490
7491       # When large executables or shared objects are built, AIX ld can
7492       # have problems creating the table of contents.  If linking a library
7493       # or program results in "error TOC overflow" add -mminimal-toc to
7494       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7495       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7496
7497       archive_cmds=''
7498       hardcode_direct=yes
7499       hardcode_libdir_separator=':'
7500       link_all_deplibs=yes
7501
7502       if test "$GCC" = yes; then
7503         case $host_os in aix4.[012]|aix4.[012].*)
7504         # We only want to do this on AIX 4.2 and lower, the check
7505         # below for broken collect2 doesn't work under 4.3+
7506           collect2name=`${CC} -print-prog-name=collect2`
7507           if test -f "$collect2name" && \
7508            strings "$collect2name" | grep resolve_lib_name >/dev/null
7509           then
7510           # We have reworked collect2
7511           hardcode_direct=yes
7512           else
7513           # We have old collect2
7514           hardcode_direct=unsupported
7515           # It fails to find uninstalled libraries when the uninstalled
7516           # path is not listed in the libpath.  Setting hardcode_minus_L
7517           # to unsupported forces relinking
7518           hardcode_minus_L=yes
7519           hardcode_libdir_flag_spec='-L$libdir'
7520           hardcode_libdir_separator=
7521           fi
7522           ;;
7523         esac
7524         shared_flag='-shared'
7525         if test "$aix_use_runtimelinking" = yes; then
7526           shared_flag="$shared_flag "'${wl}-G'
7527         fi
7528       else
7529         # not using gcc
7530         if test "$host_cpu" = ia64; then
7531         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7532         # chokes on -Wl,-G. The following line is correct:
7533           shared_flag='-G'
7534         else
7535           if test "$aix_use_runtimelinking" = yes; then
7536             shared_flag='${wl}-G'
7537           else
7538             shared_flag='${wl}-bM:SRE'
7539           fi
7540         fi
7541       fi
7542
7543       # It seems that -bexpall does not export symbols beginning with
7544       # underscore (_), so it is better to generate a list of symbols to export.
7545       always_export_symbols=yes
7546       if test "$aix_use_runtimelinking" = yes; then
7547         # Warning - without using the other runtime loading flags (-brtl),
7548         # -berok will link without error, but may produce a broken library.
7549         allow_undefined_flag='-berok'
7550        # Determine the default libpath from the value encoded in an empty executable.
7551        cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557
7558 int
7559 main ()
7560 {
7561
7562   ;
7563   return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568   (eval $ac_link) 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } &&
7575          { ac_try='test -z "$ac_c_werror_flag"
7576                          || test ! -s conftest.err'
7577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578   (eval $ac_try) 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; } &&
7582          { ac_try='test -s conftest$ac_exeext'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; }; then
7588
7589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7590 }'`
7591 # Check for a 64-bit object if we didn't find anything.
7592 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; }
7593 }'`; fi
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 fi
7599 rm -f conftest.err conftest.$ac_objext \
7600       conftest$ac_exeext conftest.$ac_ext
7601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7602
7603        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7604         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"
7605        else
7606         if test "$host_cpu" = ia64; then
7607           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7608           allow_undefined_flag="-z nodefs"
7609           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"
7610         else
7611          # Determine the default libpath from the value encoded in an empty executable.
7612          cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618
7619 int
7620 main ()
7621 {
7622
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7629   (eval $ac_link) 2>conftest.er1
7630   ac_status=$?
7631   grep -v '^ *+' conftest.er1 >conftest.err
7632   rm -f conftest.er1
7633   cat conftest.err >&5
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } &&
7636          { ac_try='test -z "$ac_c_werror_flag"
7637                          || test ! -s conftest.err'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; } &&
7643          { ac_try='test -s conftest$ac_exeext'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; }; then
7649
7650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7651 }'`
7652 # Check for a 64-bit object if we didn't find anything.
7653 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; }
7654 }'`; fi
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 fi
7660 rm -f conftest.err conftest.$ac_objext \
7661       conftest$ac_exeext conftest.$ac_ext
7662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7663
7664          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7665           # Warning - without using the other run time loading flags,
7666           # -berok will link without error, but may produce a broken library.
7667           no_undefined_flag=' ${wl}-bernotok'
7668           allow_undefined_flag=' ${wl}-berok'
7669           # Exported symbols can be pulled into shared objects from archives
7670           whole_archive_flag_spec='$convenience'
7671           archive_cmds_need_lc=yes
7672           # This is similar to how AIX traditionally builds its shared libraries.
7673           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'
7674         fi
7675       fi
7676       ;;
7677
7678     amigaos*)
7679       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)'
7680       hardcode_libdir_flag_spec='-L$libdir'
7681       hardcode_minus_L=yes
7682       # see comment about different semantics on the GNU ld section
7683       ld_shlibs=no
7684       ;;
7685
7686     bsdi[45]*)
7687       export_dynamic_flag_spec=-rdynamic
7688       ;;
7689
7690     cygwin* | mingw* | pw32*)
7691       # When not using gcc, we currently assume that we are using
7692       # Microsoft Visual C++.
7693       # hardcode_libdir_flag_spec is actually meaningless, as there is
7694       # no search path for DLLs.
7695       hardcode_libdir_flag_spec=' '
7696       allow_undefined_flag=unsupported
7697       # Tell ltmain to make .lib files, not .a files.
7698       libext=lib
7699       # Tell ltmain to make .dll files, not .so files.
7700       shrext_cmds=".dll"
7701       # FIXME: Setting linknames here is a bad hack.
7702       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7703       # The linker will automatically build a .lib file if we build a DLL.
7704       old_archive_From_new_cmds='true'
7705       # FIXME: Should let the user specify the lib program.
7706       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7707       fix_srcfile_path='`cygpath -w "$srcfile"`'
7708       enable_shared_with_static_runtimes=yes
7709       ;;
7710
7711     darwin* | rhapsody*)
7712       case $host_os in
7713         rhapsody* | darwin1.[012])
7714          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7715          ;;
7716        *) # Darwin 1.3 on
7717          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7718            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7719          else
7720            case ${MACOSX_DEPLOYMENT_TARGET} in
7721              10.[012])
7722                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7723                ;;
7724              10.*)
7725                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7726                ;;
7727            esac
7728          fi
7729          ;;
7730       esac
7731       archive_cmds_need_lc=no
7732       hardcode_direct=no
7733       hardcode_automatic=yes
7734       hardcode_shlibpath_var=unsupported
7735       whole_archive_flag_spec=''
7736       link_all_deplibs=yes
7737     if test "$GCC" = yes ; then
7738         output_verbose_link_cmd='echo'
7739         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7740       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7741       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7742       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}'
7743       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}'
7744     else
7745       case $cc_basename in
7746         xlc*)
7747          output_verbose_link_cmd='echo'
7748          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7749          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7750           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7751          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}'
7752           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}'
7753           ;;
7754        *)
7755          ld_shlibs=no
7756           ;;
7757       esac
7758     fi
7759       ;;
7760
7761     dgux*)
7762       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7763       hardcode_libdir_flag_spec='-L$libdir'
7764       hardcode_shlibpath_var=no
7765       ;;
7766
7767     freebsd1*)
7768       ld_shlibs=no
7769       ;;
7770
7771     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7772     # support.  Future versions do this automatically, but an explicit c++rt0.o
7773     # does not break anything, and helps significantly (at the cost of a little
7774     # extra space).
7775     freebsd2.2*)
7776       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7777       hardcode_libdir_flag_spec='-R$libdir'
7778       hardcode_direct=yes
7779       hardcode_shlibpath_var=no
7780       ;;
7781
7782     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7783     freebsd2*)
7784       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7785       hardcode_direct=yes
7786       hardcode_minus_L=yes
7787       hardcode_shlibpath_var=no
7788       ;;
7789
7790     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7791     freebsd* | kfreebsd*-gnu | dragonfly*)
7792       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7793       hardcode_libdir_flag_spec='-R$libdir'
7794       hardcode_direct=yes
7795       hardcode_shlibpath_var=no
7796       ;;
7797
7798     hpux9*)
7799       if test "$GCC" = yes; then
7800         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'
7801       else
7802         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'
7803       fi
7804       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7805       hardcode_libdir_separator=:
7806       hardcode_direct=yes
7807
7808       # hardcode_minus_L: Not really in the search PATH,
7809       # but as the default location of the library.
7810       hardcode_minus_L=yes
7811       export_dynamic_flag_spec='${wl}-E'
7812       ;;
7813
7814     hpux10*)
7815       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7816         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7817       else
7818         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7819       fi
7820       if test "$with_gnu_ld" = no; then
7821         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7822         hardcode_libdir_separator=:
7823
7824         hardcode_direct=yes
7825         export_dynamic_flag_spec='${wl}-E'
7826
7827         # hardcode_minus_L: Not really in the search PATH,
7828         # but as the default location of the library.
7829         hardcode_minus_L=yes
7830       fi
7831       ;;
7832
7833     hpux11*)
7834       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7835         case $host_cpu in
7836         hppa*64*)
7837           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7838           ;;
7839         ia64*)
7840           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7841           ;;
7842         *)
7843           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7844           ;;
7845         esac
7846       else
7847         case $host_cpu in
7848         hppa*64*)
7849           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7850           ;;
7851         ia64*)
7852           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7853           ;;
7854         *)
7855           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7856           ;;
7857         esac
7858       fi
7859       if test "$with_gnu_ld" = no; then
7860         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861         hardcode_libdir_separator=:
7862
7863         case $host_cpu in
7864         hppa*64*|ia64*)
7865           hardcode_libdir_flag_spec_ld='+b $libdir'
7866           hardcode_direct=no
7867           hardcode_shlibpath_var=no
7868           ;;
7869         *)
7870           hardcode_direct=yes
7871           export_dynamic_flag_spec='${wl}-E'
7872
7873           # hardcode_minus_L: Not really in the search PATH,
7874           # but as the default location of the library.
7875           hardcode_minus_L=yes
7876           ;;
7877         esac
7878       fi
7879       ;;
7880
7881     irix5* | irix6* | nonstopux*)
7882       if test "$GCC" = yes; then
7883         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'
7884       else
7885         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'
7886         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7887       fi
7888       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7889       hardcode_libdir_separator=:
7890       link_all_deplibs=yes
7891       ;;
7892
7893     netbsd*)
7894       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7895         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7896       else
7897         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7898       fi
7899       hardcode_libdir_flag_spec='-R$libdir'
7900       hardcode_direct=yes
7901       hardcode_shlibpath_var=no
7902       ;;
7903
7904     newsos6)
7905       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7906       hardcode_direct=yes
7907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7908       hardcode_libdir_separator=:
7909       hardcode_shlibpath_var=no
7910       ;;
7911
7912     openbsd*)
7913       hardcode_direct=yes
7914       hardcode_shlibpath_var=no
7915       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7916         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7917         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7918         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7919         export_dynamic_flag_spec='${wl}-E'
7920       else
7921        case $host_os in
7922          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7923            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924            hardcode_libdir_flag_spec='-R$libdir'
7925            ;;
7926          *)
7927            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7928            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7929            ;;
7930        esac
7931       fi
7932       ;;
7933
7934     os2*)
7935       hardcode_libdir_flag_spec='-L$libdir'
7936       hardcode_minus_L=yes
7937       allow_undefined_flag=unsupported
7938       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'
7939       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7940       ;;
7941
7942     osf3*)
7943       if test "$GCC" = yes; then
7944         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7945         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'
7946       else
7947         allow_undefined_flag=' -expect_unresolved \*'
7948         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'
7949       fi
7950       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7951       hardcode_libdir_separator=:
7952       ;;
7953
7954     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7955       if test "$GCC" = yes; then
7956         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7957         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'
7958         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959       else
7960         allow_undefined_flag=' -expect_unresolved \*'
7961         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'
7962         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7963         $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'
7964
7965         # Both c and cxx compiler support -rpath directly
7966         hardcode_libdir_flag_spec='-rpath $libdir'
7967       fi
7968       hardcode_libdir_separator=:
7969       ;;
7970
7971     solaris*)
7972       no_undefined_flag=' -z text'
7973       if test "$GCC" = yes; then
7974         wlarc='${wl}'
7975         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7976         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7977           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7978       else
7979         wlarc=''
7980         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7982         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7983       fi
7984       hardcode_libdir_flag_spec='-R$libdir'
7985       hardcode_shlibpath_var=no
7986       case $host_os in
7987       solaris2.[0-5] | solaris2.[0-5].*) ;;
7988       *)
7989         # The compiler driver will combine linker options so we
7990         # cannot just pass the convience library names through
7991         # without $wl, iff we do not link with $LD.
7992         # Luckily, gcc supports the same syntax we need for Sun Studio.
7993         # Supported since Solaris 2.6 (maybe 2.5.1?)
7994         case $wlarc in
7995         '')
7996           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7997         *)
7998           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' ;;
7999         esac ;;
8000       esac
8001       link_all_deplibs=yes
8002       ;;
8003
8004     sunos4*)
8005       if test "x$host_vendor" = xsequent; then
8006         # Use $CC to link under sequent, because it throws in some extra .o
8007         # files that make .init and .fini sections work.
8008         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8009       else
8010         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8011       fi
8012       hardcode_libdir_flag_spec='-L$libdir'
8013       hardcode_direct=yes
8014       hardcode_minus_L=yes
8015       hardcode_shlibpath_var=no
8016       ;;
8017
8018     sysv4)
8019       case $host_vendor in
8020         sni)
8021           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8022           hardcode_direct=yes # is this really true???
8023         ;;
8024         siemens)
8025           ## LD is ld it makes a PLAMLIB
8026           ## CC just makes a GrossModule.
8027           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8028           reload_cmds='$CC -r -o $output$reload_objs'
8029           hardcode_direct=no
8030         ;;
8031         motorola)
8032           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8033           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8034         ;;
8035       esac
8036       runpath_var='LD_RUN_PATH'
8037       hardcode_shlibpath_var=no
8038       ;;
8039
8040     sysv4.3*)
8041       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8042       hardcode_shlibpath_var=no
8043       export_dynamic_flag_spec='-Bexport'
8044       ;;
8045
8046     sysv4*MP*)
8047       if test -d /usr/nec; then
8048         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049         hardcode_shlibpath_var=no
8050         runpath_var=LD_RUN_PATH
8051         hardcode_runpath_var=yes
8052         ld_shlibs=yes
8053       fi
8054       ;;
8055
8056     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8057       no_undefined_flag='${wl}-z,text'
8058       archive_cmds_need_lc=no
8059       hardcode_shlibpath_var=no
8060       runpath_var='LD_RUN_PATH'
8061
8062       if test "$GCC" = yes; then
8063         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8064         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8065       else
8066         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8067         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8068       fi
8069       ;;
8070
8071     sysv5* | sco3.2v5* | sco5v6*)
8072       # Note: We can NOT use -z defs as we might desire, because we do not
8073       # link with -lc, and that would cause any symbols used from libc to
8074       # always be unresolved, which means just about no library would
8075       # ever link correctly.  If we're not using GNU ld we use -z text
8076       # though, which does catch some bad symbols but isn't as heavy-handed
8077       # as -z defs.
8078       no_undefined_flag='${wl}-z,text'
8079       allow_undefined_flag='${wl}-z,nodefs'
8080       archive_cmds_need_lc=no
8081       hardcode_shlibpath_var=no
8082       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8083       hardcode_libdir_separator=':'
8084       link_all_deplibs=yes
8085       export_dynamic_flag_spec='${wl}-Bexport'
8086       runpath_var='LD_RUN_PATH'
8087
8088       if test "$GCC" = yes; then
8089         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8090         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8091       else
8092         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8093         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8094       fi
8095       ;;
8096
8097     uts4*)
8098       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8099       hardcode_libdir_flag_spec='-L$libdir'
8100       hardcode_shlibpath_var=no
8101       ;;
8102
8103     *)
8104       ld_shlibs=no
8105       ;;
8106     esac
8107   fi
8108
8109 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8110 echo "${ECHO_T}$ld_shlibs" >&6
8111 test "$ld_shlibs" = no && can_build_shared=no
8112
8113 #
8114 # Do we need to explicitly link libc?
8115 #
8116 case "x$archive_cmds_need_lc" in
8117 x|xyes)
8118   # Assume -lc should be added
8119   archive_cmds_need_lc=yes
8120
8121   if test "$enable_shared" = yes && test "$GCC" = yes; then
8122     case $archive_cmds in
8123     *'~'*)
8124       # FIXME: we may have to deal with multi-command sequences.
8125       ;;
8126     '$CC '*)
8127       # Test whether the compiler implicitly links with -lc since on some
8128       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8129       # to ld, don't add -lc before -lgcc.
8130       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8131 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8132       $rm conftest*
8133       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8134
8135       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136   (eval $ac_compile) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } 2>conftest.err; then
8140         soname=conftest
8141         lib=conftest
8142         libobjs=conftest.$ac_objext
8143         deplibs=
8144         wl=$lt_prog_compiler_wl
8145         pic_flag=$lt_prog_compiler_pic
8146         compiler_flags=-v
8147         linker_flags=-v
8148         verstring=
8149         output_objdir=.
8150         libname=conftest
8151         lt_save_allow_undefined_flag=$allow_undefined_flag
8152         allow_undefined_flag=
8153         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8154   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }
8158         then
8159           archive_cmds_need_lc=no
8160         else
8161           archive_cmds_need_lc=yes
8162         fi
8163         allow_undefined_flag=$lt_save_allow_undefined_flag
8164       else
8165         cat conftest.err 1>&5
8166       fi
8167       $rm conftest*
8168       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8169 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8170       ;;
8171     esac
8172   fi
8173   ;;
8174 esac
8175
8176 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8177 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8178 library_names_spec=
8179 libname_spec='lib$name'
8180 soname_spec=
8181 shrext_cmds=".so"
8182 postinstall_cmds=
8183 postuninstall_cmds=
8184 finish_cmds=
8185 finish_eval=
8186 shlibpath_var=
8187 shlibpath_overrides_runpath=unknown
8188 version_type=none
8189 dynamic_linker="$host_os ld.so"
8190 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8191 if test "$GCC" = yes; then
8192   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8193   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8194     # if the path contains ";" then we assume it to be the separator
8195     # otherwise default to the standard path separator (i.e. ":") - it is
8196     # assumed that no part of a normal pathname contains ";" but that should
8197     # okay in the real world where ";" in dirpaths is itself problematic.
8198     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8199   else
8200     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8201   fi
8202 else
8203   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8204 fi
8205 need_lib_prefix=unknown
8206 hardcode_into_libs=no
8207
8208 # when you set need_version to no, make sure it does not cause -set_version
8209 # flags to be left without arguments
8210 need_version=unknown
8211
8212 case $host_os in
8213 aix3*)
8214   version_type=linux
8215   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8216   shlibpath_var=LIBPATH
8217
8218   # AIX 3 has no versioning support, so we append a major version to the name.
8219   soname_spec='${libname}${release}${shared_ext}$major'
8220   ;;
8221
8222 aix4* | aix5*)
8223   version_type=linux
8224   need_lib_prefix=no
8225   need_version=no
8226   hardcode_into_libs=yes
8227   if test "$host_cpu" = ia64; then
8228     # AIX 5 supports IA64
8229     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8230     shlibpath_var=LD_LIBRARY_PATH
8231   else
8232     # With GCC up to 2.95.x, collect2 would create an import file
8233     # for dependence libraries.  The import file would start with
8234     # the line `#! .'.  This would cause the generated library to
8235     # depend on `.', always an invalid library.  This was fixed in
8236     # development snapshots of GCC prior to 3.0.
8237     case $host_os in
8238       aix4 | aix4.[01] | aix4.[01].*)
8239       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8240            echo ' yes '
8241            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8242         :
8243       else
8244         can_build_shared=no
8245       fi
8246       ;;
8247     esac
8248     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8249     # soname into executable. Probably we can add versioning support to
8250     # collect2, so additional links can be useful in future.
8251     if test "$aix_use_runtimelinking" = yes; then
8252       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8253       # instead of lib<name>.a to let people know that these are not
8254       # typical AIX shared libraries.
8255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256     else
8257       # We preserve .a as extension for shared libraries through AIX4.2
8258       # and later when we are not doing run time linking.
8259       library_names_spec='${libname}${release}.a $libname.a'
8260       soname_spec='${libname}${release}${shared_ext}$major'
8261     fi
8262     shlibpath_var=LIBPATH
8263   fi
8264   ;;
8265
8266 amigaos*)
8267   library_names_spec='$libname.ixlibrary $libname.a'
8268   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8269   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'
8270   ;;
8271
8272 beos*)
8273   library_names_spec='${libname}${shared_ext}'
8274   dynamic_linker="$host_os ld.so"
8275   shlibpath_var=LIBRARY_PATH
8276   ;;
8277
8278 bsdi[45]*)
8279   version_type=linux
8280   need_version=no
8281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282   soname_spec='${libname}${release}${shared_ext}$major'
8283   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8284   shlibpath_var=LD_LIBRARY_PATH
8285   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8286   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8287   # the default ld.so.conf also contains /usr/contrib/lib and
8288   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8289   # libtool to hard-code these into programs
8290   ;;
8291
8292 cygwin* | mingw* | pw32*)
8293   version_type=windows
8294   shrext_cmds=".dll"
8295   need_version=no
8296   need_lib_prefix=no
8297
8298   case $GCC,$host_os in
8299   yes,cygwin* | yes,mingw* | yes,pw32*)
8300     library_names_spec='$libname.dll.a'
8301     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8302     postinstall_cmds='base_file=`basename \${file}`~
8303       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8304       dldir=$destdir/`dirname \$dlpath`~
8305       test -d \$dldir || mkdir -p \$dldir~
8306       $install_prog $dir/$dlname \$dldir/$dlname~
8307       chmod a+x \$dldir/$dlname'
8308     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8309       dlpath=$dir/\$dldll~
8310        $rm \$dlpath'
8311     shlibpath_overrides_runpath=yes
8312
8313     case $host_os in
8314     cygwin*)
8315       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8316       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8317       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8318       ;;
8319     mingw*)
8320       # MinGW DLLs use traditional 'lib' prefix
8321       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8322       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8323       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8324         # It is most probably a Windows format PATH printed by
8325         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8326         # path with ; separators, and with drive letters. We can handle the
8327         # drive letters (cygwin fileutils understands them), so leave them,
8328         # especially as we might pass files found there to a mingw objdump,
8329         # which wouldn't understand a cygwinified path. Ahh.
8330         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8331       else
8332         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8333       fi
8334       ;;
8335     pw32*)
8336       # pw32 DLLs use 'pw' prefix rather than 'lib'
8337       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8338       ;;
8339     esac
8340     ;;
8341
8342   *)
8343     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8344     ;;
8345   esac
8346   dynamic_linker='Win32 ld.exe'
8347   # FIXME: first we should search . and the directory the executable is in
8348   shlibpath_var=PATH
8349   ;;
8350
8351 darwin* | rhapsody*)
8352   dynamic_linker="$host_os dyld"
8353   version_type=darwin
8354   need_lib_prefix=no
8355   need_version=no
8356   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8357   soname_spec='${libname}${release}${major}$shared_ext'
8358   shlibpath_overrides_runpath=yes
8359   shlibpath_var=DYLD_LIBRARY_PATH
8360   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8361   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8362   if test "$GCC" = yes; then
8363     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"`
8364   else
8365     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8366   fi
8367   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8368   ;;
8369
8370 dgux*)
8371   version_type=linux
8372   need_lib_prefix=no
8373   need_version=no
8374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8375   soname_spec='${libname}${release}${shared_ext}$major'
8376   shlibpath_var=LD_LIBRARY_PATH
8377   ;;
8378
8379 freebsd1*)
8380   dynamic_linker=no
8381   ;;
8382
8383 kfreebsd*-gnu)
8384   version_type=linux
8385   need_lib_prefix=no
8386   need_version=no
8387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8388   soname_spec='${libname}${release}${shared_ext}$major'
8389   shlibpath_var=LD_LIBRARY_PATH
8390   shlibpath_overrides_runpath=no
8391   hardcode_into_libs=yes
8392   dynamic_linker='GNU ld.so'
8393   ;;
8394
8395 freebsd* | dragonfly*)
8396   # DragonFly does not have aout.  When/if they implement a new
8397   # versioning mechanism, adjust this.
8398   if test -x /usr/bin/objformat; then
8399     objformat=`/usr/bin/objformat`
8400   else
8401     case $host_os in
8402     freebsd[123]*) objformat=aout ;;
8403     *) objformat=elf ;;
8404     esac
8405   fi
8406   version_type=freebsd-$objformat
8407   case $version_type in
8408     freebsd-elf*)
8409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8410       need_version=no
8411       need_lib_prefix=no
8412       ;;
8413     freebsd-*)
8414       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8415       need_version=yes
8416       ;;
8417   esac
8418   shlibpath_var=LD_LIBRARY_PATH
8419   case $host_os in
8420   freebsd2*)
8421     shlibpath_overrides_runpath=yes
8422     ;;
8423   freebsd3.[01]* | freebsdelf3.[01]*)
8424     shlibpath_overrides_runpath=yes
8425     hardcode_into_libs=yes
8426     ;;
8427   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8428   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8429     shlibpath_overrides_runpath=no
8430     hardcode_into_libs=yes
8431     ;;
8432   freebsd*) # from 4.6 on
8433     shlibpath_overrides_runpath=yes
8434     hardcode_into_libs=yes
8435     ;;
8436   esac
8437   ;;
8438
8439 gnu*)
8440   version_type=linux
8441   need_lib_prefix=no
8442   need_version=no
8443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8444   soname_spec='${libname}${release}${shared_ext}$major'
8445   shlibpath_var=LD_LIBRARY_PATH
8446   hardcode_into_libs=yes
8447   ;;
8448
8449 hpux9* | hpux10* | hpux11*)
8450   # Give a soname corresponding to the major version so that dld.sl refuses to
8451   # link against other versions.
8452   version_type=sunos
8453   need_lib_prefix=no
8454   need_version=no
8455   case $host_cpu in
8456   ia64*)
8457     shrext_cmds='.so'
8458     hardcode_into_libs=yes
8459     dynamic_linker="$host_os dld.so"
8460     shlibpath_var=LD_LIBRARY_PATH
8461     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463     soname_spec='${libname}${release}${shared_ext}$major'
8464     if test "X$HPUX_IA64_MODE" = X32; then
8465       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8466     else
8467       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8468     fi
8469     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8470     ;;
8471    hppa*64*)
8472      shrext_cmds='.sl'
8473      hardcode_into_libs=yes
8474      dynamic_linker="$host_os dld.sl"
8475      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8476      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478      soname_spec='${libname}${release}${shared_ext}$major'
8479      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8480      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8481      ;;
8482    *)
8483     shrext_cmds='.sl'
8484     dynamic_linker="$host_os dld.sl"
8485     shlibpath_var=SHLIB_PATH
8486     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488     soname_spec='${libname}${release}${shared_ext}$major'
8489     ;;
8490   esac
8491   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8492   postinstall_cmds='chmod 555 $lib'
8493   ;;
8494
8495 interix3*)
8496   version_type=linux
8497   need_lib_prefix=no
8498   need_version=no
8499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8500   soname_spec='${libname}${release}${shared_ext}$major'
8501   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8502   shlibpath_var=LD_LIBRARY_PATH
8503   shlibpath_overrides_runpath=no
8504   hardcode_into_libs=yes
8505   ;;
8506
8507 irix5* | irix6* | nonstopux*)
8508   case $host_os in
8509     nonstopux*) version_type=nonstopux ;;
8510     *)
8511         if test "$lt_cv_prog_gnu_ld" = yes; then
8512                 version_type=linux
8513         else
8514                 version_type=irix
8515         fi ;;
8516   esac
8517   need_lib_prefix=no
8518   need_version=no
8519   soname_spec='${libname}${release}${shared_ext}$major'
8520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8521   case $host_os in
8522   irix5* | nonstopux*)
8523     libsuff= shlibsuff=
8524     ;;
8525   *)
8526     case $LD in # libtool.m4 will add one of these switches to LD
8527     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8528       libsuff= shlibsuff= libmagic=32-bit;;
8529     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8530       libsuff=32 shlibsuff=N32 libmagic=N32;;
8531     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8532       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8533     *) libsuff= shlibsuff= libmagic=never-match;;
8534     esac
8535     ;;
8536   esac
8537   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8538   shlibpath_overrides_runpath=no
8539   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8540   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8541   hardcode_into_libs=yes
8542   ;;
8543
8544 # No shared lib support for Linux oldld, aout, or coff.
8545 linux*oldld* | linux*aout* | linux*coff*)
8546   dynamic_linker=no
8547   ;;
8548
8549 # This must be Linux ELF.
8550 linux*)
8551   version_type=linux
8552   need_lib_prefix=no
8553   need_version=no
8554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555   soname_spec='${libname}${release}${shared_ext}$major'
8556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8557   shlibpath_var=LD_LIBRARY_PATH
8558   shlibpath_overrides_runpath=no
8559   # This implies no fast_install, which is unacceptable.
8560   # Some rework will be needed to allow for fast_install
8561   # before this can be enabled.
8562   hardcode_into_libs=yes
8563
8564   # find out which ABI we are using
8565   libsuff=
8566   case "$host_cpu" in
8567   x86_64*|s390x*|powerpc64*)
8568     echo '#line 8568 "configure"' > conftest.$ac_ext
8569     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570   (eval $ac_compile) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; then
8574       case `/usr/bin/file conftest.$ac_objext` in
8575       *64-bit*)
8576         libsuff=64
8577         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8578         ;;
8579       esac
8580     fi
8581     rm -rf conftest*
8582     ;;
8583   esac
8584
8585   # Append ld.so.conf contents to the search path
8586   if test -f /etc/ld.so.conf; then
8587     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' ' '`
8588     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8589   fi
8590
8591   # We used to test for /lib/ld.so.1 and disable shared libraries on
8592   # powerpc, because MkLinux only supported shared libraries with the
8593   # GNU dynamic linker.  Since this was broken with cross compilers,
8594   # most powerpc-linux boxes support dynamic linking these days and
8595   # people can always --disable-shared, the test was removed, and we
8596   # assume the GNU/Linux dynamic linker is in use.
8597   dynamic_linker='GNU/Linux ld.so'
8598   ;;
8599
8600 knetbsd*-gnu)
8601   version_type=linux
8602   need_lib_prefix=no
8603   need_version=no
8604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8605   soname_spec='${libname}${release}${shared_ext}$major'
8606   shlibpath_var=LD_LIBRARY_PATH
8607   shlibpath_overrides_runpath=no
8608   hardcode_into_libs=yes
8609   dynamic_linker='GNU ld.so'
8610   ;;
8611
8612 netbsd*)
8613   version_type=sunos
8614   need_lib_prefix=no
8615   need_version=no
8616   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8618     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8619     dynamic_linker='NetBSD (a.out) ld.so'
8620   else
8621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8622     soname_spec='${libname}${release}${shared_ext}$major'
8623     dynamic_linker='NetBSD ld.elf_so'
8624   fi
8625   shlibpath_var=LD_LIBRARY_PATH
8626   shlibpath_overrides_runpath=yes
8627   hardcode_into_libs=yes
8628   ;;
8629
8630 newsos6)
8631   version_type=linux
8632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8633   shlibpath_var=LD_LIBRARY_PATH
8634   shlibpath_overrides_runpath=yes
8635   ;;
8636
8637 nto-qnx*)
8638   version_type=linux
8639   need_lib_prefix=no
8640   need_version=no
8641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642   soname_spec='${libname}${release}${shared_ext}$major'
8643   shlibpath_var=LD_LIBRARY_PATH
8644   shlibpath_overrides_runpath=yes
8645   ;;
8646
8647 openbsd*)
8648   version_type=sunos
8649   sys_lib_dlsearch_path_spec="/usr/lib"
8650   need_lib_prefix=no
8651   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8652   case $host_os in
8653     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8654     *)                         need_version=no  ;;
8655   esac
8656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8657   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8658   shlibpath_var=LD_LIBRARY_PATH
8659   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8660     case $host_os in
8661       openbsd2.[89] | openbsd2.[89].*)
8662         shlibpath_overrides_runpath=no
8663         ;;
8664       *)
8665         shlibpath_overrides_runpath=yes
8666         ;;
8667       esac
8668   else
8669     shlibpath_overrides_runpath=yes
8670   fi
8671   ;;
8672
8673 os2*)
8674   libname_spec='$name'
8675   shrext_cmds=".dll"
8676   need_lib_prefix=no
8677   library_names_spec='$libname${shared_ext} $libname.a'
8678   dynamic_linker='OS/2 ld.exe'
8679   shlibpath_var=LIBPATH
8680   ;;
8681
8682 osf3* | osf4* | osf5*)
8683   version_type=osf
8684   need_lib_prefix=no
8685   need_version=no
8686   soname_spec='${libname}${release}${shared_ext}$major'
8687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688   shlibpath_var=LD_LIBRARY_PATH
8689   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8690   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8691   ;;
8692
8693 solaris*)
8694   version_type=linux
8695   need_lib_prefix=no
8696   need_version=no
8697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698   soname_spec='${libname}${release}${shared_ext}$major'
8699   shlibpath_var=LD_LIBRARY_PATH
8700   shlibpath_overrides_runpath=yes
8701   hardcode_into_libs=yes
8702   # ldd complains unless libraries are executable
8703   postinstall_cmds='chmod +x $lib'
8704   ;;
8705
8706 sunos4*)
8707   version_type=sunos
8708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8709   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8710   shlibpath_var=LD_LIBRARY_PATH
8711   shlibpath_overrides_runpath=yes
8712   if test "$with_gnu_ld" = yes; then
8713     need_lib_prefix=no
8714   fi
8715   need_version=yes
8716   ;;
8717
8718 sysv4 | sysv4.3*)
8719   version_type=linux
8720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721   soname_spec='${libname}${release}${shared_ext}$major'
8722   shlibpath_var=LD_LIBRARY_PATH
8723   case $host_vendor in
8724     sni)
8725       shlibpath_overrides_runpath=no
8726       need_lib_prefix=no
8727       export_dynamic_flag_spec='${wl}-Blargedynsym'
8728       runpath_var=LD_RUN_PATH
8729       ;;
8730     siemens)
8731       need_lib_prefix=no
8732       ;;
8733     motorola)
8734       need_lib_prefix=no
8735       need_version=no
8736       shlibpath_overrides_runpath=no
8737       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8738       ;;
8739   esac
8740   ;;
8741
8742 sysv4*MP*)
8743   if test -d /usr/nec ;then
8744     version_type=linux
8745     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8746     soname_spec='$libname${shared_ext}.$major'
8747     shlibpath_var=LD_LIBRARY_PATH
8748   fi
8749   ;;
8750
8751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8752   version_type=freebsd-elf
8753   need_lib_prefix=no
8754   need_version=no
8755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8756   soname_spec='${libname}${release}${shared_ext}$major'
8757   shlibpath_var=LD_LIBRARY_PATH
8758   hardcode_into_libs=yes
8759   if test "$with_gnu_ld" = yes; then
8760     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8761     shlibpath_overrides_runpath=no
8762   else
8763     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8764     shlibpath_overrides_runpath=yes
8765     case $host_os in
8766       sco3.2v5*)
8767         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8768         ;;
8769     esac
8770   fi
8771   sys_lib_dlsearch_path_spec='/usr/lib'
8772   ;;
8773
8774 uts4*)
8775   version_type=linux
8776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777   soname_spec='${libname}${release}${shared_ext}$major'
8778   shlibpath_var=LD_LIBRARY_PATH
8779   ;;
8780
8781 *)
8782   dynamic_linker=no
8783   ;;
8784 esac
8785 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8786 echo "${ECHO_T}$dynamic_linker" >&6
8787 test "$dynamic_linker" = no && can_build_shared=no
8788
8789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8790 if test "$GCC" = yes; then
8791   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8792 fi
8793
8794 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8795 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8796 hardcode_action=
8797 if test -n "$hardcode_libdir_flag_spec" || \
8798    test -n "$runpath_var" || \
8799    test "X$hardcode_automatic" = "Xyes" ; then
8800
8801   # We can hardcode non-existant directories.
8802   if test "$hardcode_direct" != no &&
8803      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8804      # have to relink, otherwise we might link with an installed library
8805      # when we should be linking with a yet-to-be-installed one
8806      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8807      test "$hardcode_minus_L" != no; then
8808     # Linking always hardcodes the temporary library directory.
8809     hardcode_action=relink
8810   else
8811     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8812     hardcode_action=immediate
8813   fi
8814 else
8815   # We cannot hardcode anything, or else we can only hardcode existing
8816   # directories.
8817   hardcode_action=unsupported
8818 fi
8819 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8820 echo "${ECHO_T}$hardcode_action" >&6
8821
8822 if test "$hardcode_action" = relink; then
8823   # Fast installation is not supported
8824   enable_fast_install=no
8825 elif test "$shlibpath_overrides_runpath" = yes ||
8826      test "$enable_shared" = no; then
8827   # Fast installation is not necessary
8828   enable_fast_install=needless
8829 fi
8830
8831 striplib=
8832 old_striplib=
8833 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8834 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8835 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8836   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8837   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8838   echo "$as_me:$LINENO: result: yes" >&5
8839 echo "${ECHO_T}yes" >&6
8840 else
8841 # FIXME - insert some real tests, host_os isn't really good enough
8842   case $host_os in
8843    darwin*)
8844        if test -n "$STRIP" ; then
8845          striplib="$STRIP -x"
8846          echo "$as_me:$LINENO: result: yes" >&5
8847 echo "${ECHO_T}yes" >&6
8848        else
8849   echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6
8851 fi
8852        ;;
8853    *)
8854   echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856     ;;
8857   esac
8858 fi
8859
8860 if test "x$enable_dlopen" != xyes; then
8861   enable_dlopen=unknown
8862   enable_dlopen_self=unknown
8863   enable_dlopen_self_static=unknown
8864 else
8865   lt_cv_dlopen=no
8866   lt_cv_dlopen_libs=
8867
8868   case $host_os in
8869   beos*)
8870     lt_cv_dlopen="load_add_on"
8871     lt_cv_dlopen_libs=
8872     lt_cv_dlopen_self=yes
8873     ;;
8874
8875   mingw* | pw32*)
8876     lt_cv_dlopen="LoadLibrary"
8877     lt_cv_dlopen_libs=
8878    ;;
8879
8880   cygwin*)
8881     lt_cv_dlopen="dlopen"
8882     lt_cv_dlopen_libs=
8883    ;;
8884
8885   darwin*)
8886   # if libdl is installed we need to link against it
8887     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-ldl  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any gcc2 internal prototype to avoid an error.  */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 /* We use char because int might match the return type of a gcc2
8906    builtin and then its argument prototype would still apply.  */
8907 char dlopen ();
8908 int
8909 main ()
8910 {
8911 dlopen ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918   (eval $ac_link) 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -z "$ac_c_werror_flag"
8926                          || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest$ac_exeext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_lib_dl_dlopen=yes
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ac_cv_lib_dl_dlopen=no
8944 fi
8945 rm -f conftest.err conftest.$ac_objext \
8946       conftest$ac_exeext conftest.$ac_ext
8947 LIBS=$ac_check_lib_save_LIBS
8948 fi
8949 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8951 if test $ac_cv_lib_dl_dlopen = yes; then
8952   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8953 else
8954
8955     lt_cv_dlopen="dyld"
8956     lt_cv_dlopen_libs=
8957     lt_cv_dlopen_self=yes
8958
8959 fi
8960
8961    ;;
8962
8963   *)
8964     echo "$as_me:$LINENO: checking for shl_load" >&5
8965 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8966 if test "${ac_cv_func_shl_load+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969   cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h.  */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h.  */
8975 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8977 #define shl_load innocuous_shl_load
8978
8979 /* System header to define __stub macros and hopefully few prototypes,
8980     which can conflict with char shl_load (); below.
8981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8982     <limits.h> exists even on freestanding compilers.  */
8983
8984 #ifdef __STDC__
8985 # include <limits.h>
8986 #else
8987 # include <assert.h>
8988 #endif
8989
8990 #undef shl_load
8991
8992 /* Override any gcc2 internal prototype to avoid an error.  */
8993 #ifdef __cplusplus
8994 extern "C"
8995 {
8996 #endif
8997 /* We use char because int might match the return type of a gcc2
8998    builtin and then its argument prototype would still apply.  */
8999 char shl_load ();
9000 /* The GNU C library defines this for functions which it implements
9001     to always fail with ENOSYS.  Some functions are actually named
9002     something starting with __ and the normal name is an alias.  */
9003 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9004 choke me
9005 #else
9006 char (*f) () = shl_load;
9007 #endif
9008 #ifdef __cplusplus
9009 }
9010 #endif
9011
9012 int
9013 main ()
9014 {
9015 return f != shl_load;
9016   ;
9017   return 0;
9018 }
9019 _ACEOF
9020 rm -f conftest.$ac_objext conftest$ac_exeext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022   (eval $ac_link) 2>conftest.er1
9023   ac_status=$?
9024   grep -v '^ *+' conftest.er1 >conftest.err
9025   rm -f conftest.er1
9026   cat conftest.err >&5
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -z "$ac_c_werror_flag"
9030                          || test ! -s conftest.err'
9031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); }; } &&
9036          { ac_try='test -s conftest$ac_exeext'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; }; then
9042   ac_cv_func_shl_load=yes
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_cv_func_shl_load=no
9048 fi
9049 rm -f conftest.err conftest.$ac_objext \
9050       conftest$ac_exeext conftest.$ac_ext
9051 fi
9052 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9054 if test $ac_cv_func_shl_load = yes; then
9055   lt_cv_dlopen="shl_load"
9056 else
9057   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9058 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9059 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9060   echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062   ac_check_lib_save_LIBS=$LIBS
9063 LIBS="-ldld  $LIBS"
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h.  */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h.  */
9070
9071 /* Override any gcc2 internal prototype to avoid an error.  */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 /* We use char because int might match the return type of a gcc2
9076    builtin and then its argument prototype would still apply.  */
9077 char shl_load ();
9078 int
9079 main ()
9080 {
9081 shl_load ();
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088   (eval $ac_link) 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } &&
9095          { ac_try='test -z "$ac_c_werror_flag"
9096                          || test ! -s conftest.err'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; } &&
9102          { ac_try='test -s conftest$ac_exeext'
9103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104   (eval $ac_try) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; }; then
9108   ac_cv_lib_dld_shl_load=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113 ac_cv_lib_dld_shl_load=no
9114 fi
9115 rm -f conftest.err conftest.$ac_objext \
9116       conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9120 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9121 if test $ac_cv_lib_dld_shl_load = yes; then
9122   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9123 else
9124   echo "$as_me:$LINENO: checking for dlopen" >&5
9125 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9126 if test "${ac_cv_func_dlopen+set}" = set; then
9127   echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129   cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h.  */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h.  */
9135 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9137 #define dlopen innocuous_dlopen
9138
9139 /* System header to define __stub macros and hopefully few prototypes,
9140     which can conflict with char dlopen (); below.
9141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9142     <limits.h> exists even on freestanding compilers.  */
9143
9144 #ifdef __STDC__
9145 # include <limits.h>
9146 #else
9147 # include <assert.h>
9148 #endif
9149
9150 #undef dlopen
9151
9152 /* Override any gcc2 internal prototype to avoid an error.  */
9153 #ifdef __cplusplus
9154 extern "C"
9155 {
9156 #endif
9157 /* We use char because int might match the return type of a gcc2
9158    builtin and then its argument prototype would still apply.  */
9159 char dlopen ();
9160 /* The GNU C library defines this for functions which it implements
9161     to always fail with ENOSYS.  Some functions are actually named
9162     something starting with __ and the normal name is an alias.  */
9163 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9164 choke me
9165 #else
9166 char (*f) () = dlopen;
9167 #endif
9168 #ifdef __cplusplus
9169 }
9170 #endif
9171
9172 int
9173 main ()
9174 {
9175 return f != dlopen;
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182   (eval $ac_link) 2>conftest.er1
9183   ac_status=$?
9184   grep -v '^ *+' conftest.er1 >conftest.err
9185   rm -f conftest.er1
9186   cat conftest.err >&5
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } &&
9189          { ac_try='test -z "$ac_c_werror_flag"
9190                          || test ! -s conftest.err'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; } &&
9196          { ac_try='test -s conftest$ac_exeext'
9197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; }; then
9202   ac_cv_func_dlopen=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 ac_cv_func_dlopen=no
9208 fi
9209 rm -f conftest.err conftest.$ac_objext \
9210       conftest$ac_exeext conftest.$ac_ext
9211 fi
9212 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9213 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9214 if test $ac_cv_func_dlopen = yes; then
9215   lt_cv_dlopen="dlopen"
9216 else
9217   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9218 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   ac_check_lib_save_LIBS=$LIBS
9223 LIBS="-ldl  $LIBS"
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h.  */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h.  */
9230
9231 /* Override any gcc2 internal prototype to avoid an error.  */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 /* We use char because int might match the return type of a gcc2
9236    builtin and then its argument prototype would still apply.  */
9237 char dlopen ();
9238 int
9239 main ()
9240 {
9241 dlopen ();
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248   (eval $ac_link) 2>conftest.er1
9249   ac_status=$?
9250   grep -v '^ *+' conftest.er1 >conftest.err
9251   rm -f conftest.er1
9252   cat conftest.err >&5
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -z "$ac_c_werror_flag"
9256                          || test ! -s conftest.err'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   ac_cv_lib_dl_dlopen=yes
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 ac_cv_lib_dl_dlopen=no
9274 fi
9275 rm -f conftest.err conftest.$ac_objext \
9276       conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9278 fi
9279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9281 if test $ac_cv_lib_dl_dlopen = yes; then
9282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9283 else
9284   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9285 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9286 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289   ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-lsvld  $LIBS"
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h.  */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h.  */
9297
9298 /* Override any gcc2 internal prototype to avoid an error.  */
9299 #ifdef __cplusplus
9300 extern "C"
9301 #endif
9302 /* We use char because int might match the return type of a gcc2
9303    builtin and then its argument prototype would still apply.  */
9304 char dlopen ();
9305 int
9306 main ()
9307 {
9308 dlopen ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315   (eval $ac_link) 2>conftest.er1
9316   ac_status=$?
9317   grep -v '^ *+' conftest.er1 >conftest.err
9318   rm -f conftest.er1
9319   cat conftest.err >&5
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); } &&
9322          { ac_try='test -z "$ac_c_werror_flag"
9323                          || test ! -s conftest.err'
9324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325   (eval $ac_try) 2>&5
9326   ac_status=$?
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); }; } &&
9329          { ac_try='test -s conftest$ac_exeext'
9330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331   (eval $ac_try) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); }; }; then
9335   ac_cv_lib_svld_dlopen=yes
9336 else
9337   echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9339
9340 ac_cv_lib_svld_dlopen=no
9341 fi
9342 rm -f conftest.err conftest.$ac_objext \
9343       conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9345 fi
9346 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9347 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9348 if test $ac_cv_lib_svld_dlopen = yes; then
9349   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9350 else
9351   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9352 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9354   echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356   ac_check_lib_save_LIBS=$LIBS
9357 LIBS="-ldld  $LIBS"
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h.  */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h.  */
9364
9365 /* Override any gcc2 internal prototype to avoid an error.  */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 /* We use char because int might match the return type of a gcc2
9370    builtin and then its argument prototype would still apply.  */
9371 char dld_link ();
9372 int
9373 main ()
9374 {
9375 dld_link ();
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382   (eval $ac_link) 2>conftest.er1
9383   ac_status=$?
9384   grep -v '^ *+' conftest.er1 >conftest.err
9385   rm -f conftest.er1
9386   cat conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   (exit $ac_status); } &&
9389          { ac_try='test -z "$ac_c_werror_flag"
9390                          || test ! -s conftest.err'
9391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392   (eval $ac_try) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; } &&
9396          { ac_try='test -s conftest$ac_exeext'
9397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398   (eval $ac_try) 2>&5
9399   ac_status=$?
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); }; }; then
9402   ac_cv_lib_dld_dld_link=yes
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ac_cv_lib_dld_dld_link=no
9408 fi
9409 rm -f conftest.err conftest.$ac_objext \
9410       conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9414 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9415 if test $ac_cv_lib_dld_dld_link = yes; then
9416   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9417 fi
9418
9419
9420 fi
9421
9422
9423 fi
9424
9425
9426 fi
9427
9428
9429 fi
9430
9431
9432 fi
9433
9434     ;;
9435   esac
9436
9437   if test "x$lt_cv_dlopen" != xno; then
9438     enable_dlopen=yes
9439   else
9440     enable_dlopen=no
9441   fi
9442
9443   case $lt_cv_dlopen in
9444   dlopen)
9445     save_CPPFLAGS="$CPPFLAGS"
9446     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9447
9448     save_LDFLAGS="$LDFLAGS"
9449     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9450
9451     save_LIBS="$LIBS"
9452     LIBS="$lt_cv_dlopen_libs $LIBS"
9453
9454     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9455 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9456 if test "${lt_cv_dlopen_self+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459           if test "$cross_compiling" = yes; then :
9460   lt_cv_dlopen_self=cross
9461 else
9462   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9463   lt_status=$lt_dlunknown
9464   cat > conftest.$ac_ext <<EOF
9465 #line 9465 "configure"
9466 #include "confdefs.h"
9467
9468 #if HAVE_DLFCN_H
9469 #include <dlfcn.h>
9470 #endif
9471
9472 #include <stdio.h>
9473
9474 #ifdef RTLD_GLOBAL
9475 #  define LT_DLGLOBAL           RTLD_GLOBAL
9476 #else
9477 #  ifdef DL_GLOBAL
9478 #    define LT_DLGLOBAL         DL_GLOBAL
9479 #  else
9480 #    define LT_DLGLOBAL         0
9481 #  endif
9482 #endif
9483
9484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9485    find out it does not work in some platform. */
9486 #ifndef LT_DLLAZY_OR_NOW
9487 #  ifdef RTLD_LAZY
9488 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9489 #  else
9490 #    ifdef DL_LAZY
9491 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9492 #    else
9493 #      ifdef RTLD_NOW
9494 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9495 #      else
9496 #        ifdef DL_NOW
9497 #          define LT_DLLAZY_OR_NOW      DL_NOW
9498 #        else
9499 #          define LT_DLLAZY_OR_NOW      0
9500 #        endif
9501 #      endif
9502 #    endif
9503 #  endif
9504 #endif
9505
9506 #ifdef __cplusplus
9507 extern "C" void exit (int);
9508 #endif
9509
9510 void fnord() { int i=42;}
9511 int main ()
9512 {
9513   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9514   int status = $lt_dlunknown;
9515
9516   if (self)
9517     {
9518       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9519       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9520       /* dlclose (self); */
9521     }
9522   else
9523     puts (dlerror ());
9524
9525     exit (status);
9526 }
9527 EOF
9528   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529   (eval $ac_link) 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9533     (./conftest; exit; ) >&5 2>/dev/null
9534     lt_status=$?
9535     case x$lt_status in
9536       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9537       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9538       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9539     esac
9540   else :
9541     # compilation failed
9542     lt_cv_dlopen_self=no
9543   fi
9544 fi
9545 rm -fr conftest*
9546
9547
9548 fi
9549 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9550 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9551
9552     if test "x$lt_cv_dlopen_self" = xyes; then
9553       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9554       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9555 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9556 if test "${lt_cv_dlopen_self_static+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559           if test "$cross_compiling" = yes; then :
9560   lt_cv_dlopen_self_static=cross
9561 else
9562   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9563   lt_status=$lt_dlunknown
9564   cat > conftest.$ac_ext <<EOF
9565 #line 9565 "configure"
9566 #include "confdefs.h"
9567
9568 #if HAVE_DLFCN_H
9569 #include <dlfcn.h>
9570 #endif
9571
9572 #include <stdio.h>
9573
9574 #ifdef RTLD_GLOBAL
9575 #  define LT_DLGLOBAL           RTLD_GLOBAL
9576 #else
9577 #  ifdef DL_GLOBAL
9578 #    define LT_DLGLOBAL         DL_GLOBAL
9579 #  else
9580 #    define LT_DLGLOBAL         0
9581 #  endif
9582 #endif
9583
9584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9585    find out it does not work in some platform. */
9586 #ifndef LT_DLLAZY_OR_NOW
9587 #  ifdef RTLD_LAZY
9588 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9589 #  else
9590 #    ifdef DL_LAZY
9591 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9592 #    else
9593 #      ifdef RTLD_NOW
9594 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9595 #      else
9596 #        ifdef DL_NOW
9597 #          define LT_DLLAZY_OR_NOW      DL_NOW
9598 #        else
9599 #          define LT_DLLAZY_OR_NOW      0
9600 #        endif
9601 #      endif
9602 #    endif
9603 #  endif
9604 #endif
9605
9606 #ifdef __cplusplus
9607 extern "C" void exit (int);
9608 #endif
9609
9610 void fnord() { int i=42;}
9611 int main ()
9612 {
9613   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9614   int status = $lt_dlunknown;
9615
9616   if (self)
9617     {
9618       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9619       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9620       /* dlclose (self); */
9621     }
9622   else
9623     puts (dlerror ());
9624
9625     exit (status);
9626 }
9627 EOF
9628   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629   (eval $ac_link) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9633     (./conftest; exit; ) >&5 2>/dev/null
9634     lt_status=$?
9635     case x$lt_status in
9636       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9637       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9638       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9639     esac
9640   else :
9641     # compilation failed
9642     lt_cv_dlopen_self_static=no
9643   fi
9644 fi
9645 rm -fr conftest*
9646
9647
9648 fi
9649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9650 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9651     fi
9652
9653     CPPFLAGS="$save_CPPFLAGS"
9654     LDFLAGS="$save_LDFLAGS"
9655     LIBS="$save_LIBS"
9656     ;;
9657   esac
9658
9659   case $lt_cv_dlopen_self in
9660   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9661   *) enable_dlopen_self=unknown ;;
9662   esac
9663
9664   case $lt_cv_dlopen_self_static in
9665   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9666   *) enable_dlopen_self_static=unknown ;;
9667   esac
9668 fi
9669
9670
9671 # Report which library types will actually be built
9672 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9673 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9674 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9675 echo "${ECHO_T}$can_build_shared" >&6
9676
9677 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9678 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9679 test "$can_build_shared" = "no" && enable_shared=no
9680
9681 # On AIX, shared libraries and static libraries use the same namespace, and
9682 # are all built from PIC.
9683 case $host_os in
9684 aix3*)
9685   test "$enable_shared" = yes && enable_static=no
9686   if test -n "$RANLIB"; then
9687     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9688     postinstall_cmds='$RANLIB $lib'
9689   fi
9690   ;;
9691
9692 aix4* | aix5*)
9693   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9694     test "$enable_shared" = yes && enable_static=no
9695   fi
9696     ;;
9697 esac
9698 echo "$as_me:$LINENO: result: $enable_shared" >&5
9699 echo "${ECHO_T}$enable_shared" >&6
9700
9701 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9702 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9703 # Make sure either enable_shared or enable_static is yes.
9704 test "$enable_shared" = yes || enable_static=yes
9705 echo "$as_me:$LINENO: result: $enable_static" >&5
9706 echo "${ECHO_T}$enable_static" >&6
9707
9708 # The else clause should only fire when bootstrapping the
9709 # libtool distribution, otherwise you forgot to ship ltmain.sh
9710 # with your package, and you will get complaints that there are
9711 # no rules to generate ltmain.sh.
9712 if test -f "$ltmain"; then
9713   # See if we are running on zsh, and set the options which allow our commands through
9714   # without removal of \ escapes.
9715   if test -n "${ZSH_VERSION+set}" ; then
9716     setopt NO_GLOB_SUBST
9717   fi
9718   # Now quote all the things that may contain metacharacters while being
9719   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9720   # variables and quote the copies for generation of the libtool script.
9721   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9722     SED SHELL STRIP \
9723     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9724     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9725     deplibs_check_method reload_flag reload_cmds need_locks \
9726     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9727     lt_cv_sys_global_symbol_to_c_name_address \
9728     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9729     old_postinstall_cmds old_postuninstall_cmds \
9730     compiler \
9731     CC \
9732     LD \
9733     lt_prog_compiler_wl \
9734     lt_prog_compiler_pic \
9735     lt_prog_compiler_static \
9736     lt_prog_compiler_no_builtin_flag \
9737     export_dynamic_flag_spec \
9738     thread_safe_flag_spec \
9739     whole_archive_flag_spec \
9740     enable_shared_with_static_runtimes \
9741     old_archive_cmds \
9742     old_archive_from_new_cmds \
9743     predep_objects \
9744     postdep_objects \
9745     predeps \
9746     postdeps \
9747     compiler_lib_search_path \
9748     archive_cmds \
9749     archive_expsym_cmds \
9750     postinstall_cmds \
9751     postuninstall_cmds \
9752     old_archive_from_expsyms_cmds \
9753     allow_undefined_flag \
9754     no_undefined_flag \
9755     export_symbols_cmds \
9756     hardcode_libdir_flag_spec \
9757     hardcode_libdir_flag_spec_ld \
9758     hardcode_libdir_separator \
9759     hardcode_automatic \
9760     module_cmds \
9761     module_expsym_cmds \
9762     lt_cv_prog_compiler_c_o \
9763     exclude_expsyms \
9764     include_expsyms; do
9765
9766     case $var in
9767     old_archive_cmds | \
9768     old_archive_from_new_cmds | \
9769     archive_cmds | \
9770     archive_expsym_cmds | \
9771     module_cmds | \
9772     module_expsym_cmds | \
9773     old_archive_from_expsyms_cmds | \
9774     export_symbols_cmds | \
9775     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9776     postinstall_cmds | postuninstall_cmds | \
9777     old_postinstall_cmds | old_postuninstall_cmds | \
9778     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9779       # Double-quote double-evaled strings.
9780       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9781       ;;
9782     *)
9783       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9784       ;;
9785     esac
9786   done
9787
9788   case $lt_echo in
9789   *'\$0 --fallback-echo"')
9790     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9791     ;;
9792   esac
9793
9794 cfgfile="${ofile}T"
9795   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9796   $rm -f "$cfgfile"
9797   { echo "$as_me:$LINENO: creating $ofile" >&5
9798 echo "$as_me: creating $ofile" >&6;}
9799
9800   cat <<__EOF__ >> "$cfgfile"
9801 #! $SHELL
9802
9803 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9804 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9805 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9806 #
9807 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9808 # Free Software Foundation, Inc.
9809 #
9810 # This file is part of GNU Libtool:
9811 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9812 #
9813 # This program is free software; you can redistribute it and/or modify
9814 # it under the terms of the GNU General Public License as published by
9815 # the Free Software Foundation; either version 2 of the License, or
9816 # (at your option) any later version.
9817 #
9818 # This program is distributed in the hope that it will be useful, but
9819 # WITHOUT ANY WARRANTY; without even the implied warranty of
9820 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9821 # General Public License for more details.
9822 #
9823 # You should have received a copy of the GNU General Public License
9824 # along with this program; if not, write to the Free Software
9825 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9826 #
9827 # As a special exception to the GNU General Public License, if you
9828 # distribute this file as part of a program that contains a
9829 # configuration script generated by Autoconf, you may include it under
9830 # the same distribution terms that you use for the rest of that program.
9831
9832 # A sed program that does not truncate output.
9833 SED=$lt_SED
9834
9835 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9836 Xsed="$SED -e 1s/^X//"
9837
9838 # The HP-UX ksh and POSIX shell print the target directory to stdout
9839 # if CDPATH is set.
9840 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9841
9842 # The names of the tagged configurations supported by this script.
9843 available_tags=
9844
9845 # ### BEGIN LIBTOOL CONFIG
9846
9847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9848
9849 # Shell to use when invoking shell scripts.
9850 SHELL=$lt_SHELL
9851
9852 # Whether or not to build shared libraries.
9853 build_libtool_libs=$enable_shared
9854
9855 # Whether or not to build static libraries.
9856 build_old_libs=$enable_static
9857
9858 # Whether or not to add -lc for building shared libraries.
9859 build_libtool_need_lc=$archive_cmds_need_lc
9860
9861 # Whether or not to disallow shared libs when runtime libs are static
9862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9863
9864 # Whether or not to optimize for fast installation.
9865 fast_install=$enable_fast_install
9866
9867 # The host system.
9868 host_alias=$host_alias
9869 host=$host
9870 host_os=$host_os
9871
9872 # The build system.
9873 build_alias=$build_alias
9874 build=$build
9875 build_os=$build_os
9876
9877 # An echo program that does not interpret backslashes.
9878 echo=$lt_echo
9879
9880 # The archiver.
9881 AR=$lt_AR
9882 AR_FLAGS=$lt_AR_FLAGS
9883
9884 # A C compiler.
9885 LTCC=$lt_LTCC
9886
9887 # LTCC compiler flags.
9888 LTCFLAGS=$lt_LTCFLAGS
9889
9890 # A language-specific compiler.
9891 CC=$lt_compiler
9892
9893 # Is the compiler the GNU C compiler?
9894 with_gcc=$GCC
9895
9896 # An ERE matcher.
9897 EGREP=$lt_EGREP
9898
9899 # The linker used to build libraries.
9900 LD=$lt_LD
9901
9902 # Whether we need hard or soft links.
9903 LN_S=$lt_LN_S
9904
9905 # A BSD-compatible nm program.
9906 NM=$lt_NM
9907
9908 # A symbol stripping program
9909 STRIP=$lt_STRIP
9910
9911 # Used to examine libraries when file_magic_cmd begins "file"
9912 MAGIC_CMD=$MAGIC_CMD
9913
9914 # Used on cygwin: DLL creation program.
9915 DLLTOOL="$DLLTOOL"
9916
9917 # Used on cygwin: object dumper.
9918 OBJDUMP="$OBJDUMP"
9919
9920 # Used on cygwin: assembler.
9921 AS="$AS"
9922
9923 # The name of the directory that contains temporary libtool files.
9924 objdir=$objdir
9925
9926 # How to create reloadable object files.
9927 reload_flag=$lt_reload_flag
9928 reload_cmds=$lt_reload_cmds
9929
9930 # How to pass a linker flag through the compiler.
9931 wl=$lt_lt_prog_compiler_wl
9932
9933 # Object file suffix (normally "o").
9934 objext="$ac_objext"
9935
9936 # Old archive suffix (normally "a").
9937 libext="$libext"
9938
9939 # Shared library suffix (normally ".so").
9940 shrext_cmds='$shrext_cmds'
9941
9942 # Executable file suffix (normally "").
9943 exeext="$exeext"
9944
9945 # Additional compiler flags for building library objects.
9946 pic_flag=$lt_lt_prog_compiler_pic
9947 pic_mode=$pic_mode
9948
9949 # What is the maximum length of a command?
9950 max_cmd_len=$lt_cv_sys_max_cmd_len
9951
9952 # Does compiler simultaneously support -c and -o options?
9953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9954
9955 # Must we lock files when doing compilation?
9956 need_locks=$lt_need_locks
9957
9958 # Do we need the lib prefix for modules?
9959 need_lib_prefix=$need_lib_prefix
9960
9961 # Do we need a version for libraries?
9962 need_version=$need_version
9963
9964 # Whether dlopen is supported.
9965 dlopen_support=$enable_dlopen
9966
9967 # Whether dlopen of programs is supported.
9968 dlopen_self=$enable_dlopen_self
9969
9970 # Whether dlopen of statically linked programs is supported.
9971 dlopen_self_static=$enable_dlopen_self_static
9972
9973 # Compiler flag to prevent dynamic linking.
9974 link_static_flag=$lt_lt_prog_compiler_static
9975
9976 # Compiler flag to turn off builtin functions.
9977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9978
9979 # Compiler flag to allow reflexive dlopens.
9980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9981
9982 # Compiler flag to generate shared objects directly from archives.
9983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9984
9985 # Compiler flag to generate thread-safe objects.
9986 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9987
9988 # Library versioning type.
9989 version_type=$version_type
9990
9991 # Format of library name prefix.
9992 libname_spec=$lt_libname_spec
9993
9994 # List of archive names.  First name is the real one, the rest are links.
9995 # The last name is the one that the linker finds with -lNAME.
9996 library_names_spec=$lt_library_names_spec
9997
9998 # The coded name of the library, if different from the real name.
9999 soname_spec=$lt_soname_spec
10000
10001 # Commands used to build and install an old-style archive.
10002 RANLIB=$lt_RANLIB
10003 old_archive_cmds=$lt_old_archive_cmds
10004 old_postinstall_cmds=$lt_old_postinstall_cmds
10005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10006
10007 # Create an old-style archive from a shared archive.
10008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10009
10010 # Create a temporary old-style archive to link instead of a shared archive.
10011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10012
10013 # Commands used to build and install a shared archive.
10014 archive_cmds=$lt_archive_cmds
10015 archive_expsym_cmds=$lt_archive_expsym_cmds
10016 postinstall_cmds=$lt_postinstall_cmds
10017 postuninstall_cmds=$lt_postuninstall_cmds
10018
10019 # Commands used to build a loadable module (assumed same as above if empty)
10020 module_cmds=$lt_module_cmds
10021 module_expsym_cmds=$lt_module_expsym_cmds
10022
10023 # Commands to strip libraries.
10024 old_striplib=$lt_old_striplib
10025 striplib=$lt_striplib
10026
10027 # Dependencies to place before the objects being linked to create a
10028 # shared library.
10029 predep_objects=$lt_predep_objects
10030
10031 # Dependencies to place after the objects being linked to create a
10032 # shared library.
10033 postdep_objects=$lt_postdep_objects
10034
10035 # Dependencies to place before the objects being linked to create a
10036 # shared library.
10037 predeps=$lt_predeps
10038
10039 # Dependencies to place after the objects being linked to create a
10040 # shared library.
10041 postdeps=$lt_postdeps
10042
10043 # The library search path used internally by the compiler when linking
10044 # a shared library.
10045 compiler_lib_search_path=$lt_compiler_lib_search_path
10046
10047 # Method to check whether dependent libraries are shared objects.
10048 deplibs_check_method=$lt_deplibs_check_method
10049
10050 # Command to use when deplibs_check_method == file_magic.
10051 file_magic_cmd=$lt_file_magic_cmd
10052
10053 # Flag that allows shared libraries with undefined symbols to be built.
10054 allow_undefined_flag=$lt_allow_undefined_flag
10055
10056 # Flag that forces no undefined symbols.
10057 no_undefined_flag=$lt_no_undefined_flag
10058
10059 # Commands used to finish a libtool library installation in a directory.
10060 finish_cmds=$lt_finish_cmds
10061
10062 # Same as above, but a single script fragment to be evaled but not shown.
10063 finish_eval=$lt_finish_eval
10064
10065 # Take the output of nm and produce a listing of raw symbols and C names.
10066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10067
10068 # Transform the output of nm in a proper C declaration
10069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10070
10071 # Transform the output of nm in a C name address pair
10072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10073
10074 # This is the shared library runtime path variable.
10075 runpath_var=$runpath_var
10076
10077 # This is the shared library path variable.
10078 shlibpath_var=$shlibpath_var
10079
10080 # Is shlibpath searched before the hard-coded library search path?
10081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10082
10083 # How to hardcode a shared library path into an executable.
10084 hardcode_action=$hardcode_action
10085
10086 # Whether we should hardcode library paths into libraries.
10087 hardcode_into_libs=$hardcode_into_libs
10088
10089 # Flag to hardcode \$libdir into a binary during linking.
10090 # This must work even if \$libdir does not exist.
10091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10092
10093 # If ld is used when linking, flag to hardcode \$libdir into
10094 # a binary during linking. This must work even if \$libdir does
10095 # not exist.
10096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10097
10098 # Whether we need a single -rpath flag with a separated argument.
10099 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10100
10101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10102 # resulting binary.
10103 hardcode_direct=$hardcode_direct
10104
10105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10106 # resulting binary.
10107 hardcode_minus_L=$hardcode_minus_L
10108
10109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10110 # the resulting binary.
10111 hardcode_shlibpath_var=$hardcode_shlibpath_var
10112
10113 # Set to yes if building a shared library automatically hardcodes DIR into the library
10114 # and all subsequent libraries and executables linked against it.
10115 hardcode_automatic=$hardcode_automatic
10116
10117 # Variables whose values should be saved in libtool wrapper scripts and
10118 # restored at relink time.
10119 variables_saved_for_relink="$variables_saved_for_relink"
10120
10121 # Whether libtool must link a program against all its dependency libraries.
10122 link_all_deplibs=$link_all_deplibs
10123
10124 # Compile-time system search path for libraries
10125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10126
10127 # Run-time system search path for libraries
10128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10129
10130 # Fix the shell variable \$srcfile for the compiler.
10131 fix_srcfile_path="$fix_srcfile_path"
10132
10133 # Set to yes if exported symbols are required.
10134 always_export_symbols=$always_export_symbols
10135
10136 # The commands to list exported symbols.
10137 export_symbols_cmds=$lt_export_symbols_cmds
10138
10139 # The commands to extract the exported symbol list from a shared archive.
10140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10141
10142 # Symbols that should not be listed in the preloaded symbols.
10143 exclude_expsyms=$lt_exclude_expsyms
10144
10145 # Symbols that must always be exported.
10146 include_expsyms=$lt_include_expsyms
10147
10148 # ### END LIBTOOL CONFIG
10149
10150 __EOF__
10151
10152
10153   case $host_os in
10154   aix3*)
10155     cat <<\EOF >> "$cfgfile"
10156
10157 # AIX sometimes has problems with the GCC collect2 program.  For some
10158 # reason, if we set the COLLECT_NAMES environment variable, the problems
10159 # vanish in a puff of smoke.
10160 if test "X${COLLECT_NAMES+set}" != Xset; then
10161   COLLECT_NAMES=
10162   export COLLECT_NAMES
10163 fi
10164 EOF
10165     ;;
10166   esac
10167
10168   # We use sed instead of cat because bash on DJGPP gets confused if
10169   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10170   # text mode, it properly converts lines to CR/LF.  This bash problem
10171   # is reportedly fixed, but why not run on old versions too?
10172   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10173
10174   mv -f "$cfgfile" "$ofile" || \
10175     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10176   chmod +x "$ofile"
10177
10178 else
10179   # If there is no Makefile yet, we rely on a make rule to execute
10180   # `config.status --recheck' to rerun these tests and create the
10181   # libtool script then.
10182   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10183   if test -f "$ltmain_in"; then
10184     test -f Makefile && make "$ltmain"
10185   fi
10186 fi
10187
10188
10189 ac_ext=c
10190 ac_cpp='$CPP $CPPFLAGS'
10191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10194
10195 CC="$lt_save_CC"
10196
10197
10198 # Check whether --with-tags or --without-tags was given.
10199 if test "${with_tags+set}" = set; then
10200   withval="$with_tags"
10201   tagnames="$withval"
10202 fi;
10203
10204 if test -f "$ltmain" && test -n "$tagnames"; then
10205   if test ! -f "${ofile}"; then
10206     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10207 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10208   fi
10209
10210   if test -z "$LTCC"; then
10211     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10212     if test -z "$LTCC"; then
10213       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10214 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10215     else
10216       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10217 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10218     fi
10219   fi
10220   if test -z "$LTCFLAGS"; then
10221     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10222   fi
10223
10224   # Extract list of available tagged configurations in $ofile.
10225   # Note that this assumes the entire list is on one line.
10226   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10227
10228   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10229   for tagname in $tagnames; do
10230     IFS="$lt_save_ifs"
10231     # Check whether tagname contains only valid characters
10232     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10233     "") ;;
10234     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10235 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10236    { (exit 1); exit 1; }; }
10237         ;;
10238     esac
10239
10240     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10241     then
10242       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10243 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10244    { (exit 1); exit 1; }; }
10245     fi
10246
10247     # Update the list of available tags.
10248     if test -n "$tagname"; then
10249       echo appending configuration tag \"$tagname\" to $ofile
10250
10251       case $tagname in
10252       CXX)
10253         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10254             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10255             (test "X$CXX" != "Xg++"))) ; then
10256           ac_ext=cc
10257 ac_cpp='$CXXCPP $CPPFLAGS'
10258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10261
10262
10263
10264
10265 archive_cmds_need_lc_CXX=no
10266 allow_undefined_flag_CXX=
10267 always_export_symbols_CXX=no
10268 archive_expsym_cmds_CXX=
10269 export_dynamic_flag_spec_CXX=
10270 hardcode_direct_CXX=no
10271 hardcode_libdir_flag_spec_CXX=
10272 hardcode_libdir_flag_spec_ld_CXX=
10273 hardcode_libdir_separator_CXX=
10274 hardcode_minus_L_CXX=no
10275 hardcode_shlibpath_var_CXX=unsupported
10276 hardcode_automatic_CXX=no
10277 module_cmds_CXX=
10278 module_expsym_cmds_CXX=
10279 link_all_deplibs_CXX=unknown
10280 old_archive_cmds_CXX=$old_archive_cmds
10281 no_undefined_flag_CXX=
10282 whole_archive_flag_spec_CXX=
10283 enable_shared_with_static_runtimes_CXX=no
10284
10285 # Dependencies to place before and after the object being linked:
10286 predep_objects_CXX=
10287 postdep_objects_CXX=
10288 predeps_CXX=
10289 postdeps_CXX=
10290 compiler_lib_search_path_CXX=
10291
10292 # Source file extension for C++ test sources.
10293 ac_ext=cpp
10294
10295 # Object file extension for compiled C++ test sources.
10296 objext=o
10297 objext_CXX=$objext
10298
10299 # Code to be used in simple compile tests
10300 lt_simple_compile_test_code="int some_variable = 0;\n"
10301
10302 # Code to be used in simple link tests
10303 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10304
10305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10306
10307 # If no C compiler was specified, use CC.
10308 LTCC=${LTCC-"$CC"}
10309
10310 # If no C compiler flags were specified, use CFLAGS.
10311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10312
10313 # Allow CC to be a program name with arguments.
10314 compiler=$CC
10315
10316
10317 # save warnings/boilerplate of simple test code
10318 ac_outfile=conftest.$ac_objext
10319 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10320 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10321 _lt_compiler_boilerplate=`cat conftest.err`
10322 $rm conftest*
10323
10324 ac_outfile=conftest.$ac_objext
10325 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10327 _lt_linker_boilerplate=`cat conftest.err`
10328 $rm conftest*
10329
10330
10331 # Allow CC to be a program name with arguments.
10332 lt_save_CC=$CC
10333 lt_save_LD=$LD
10334 lt_save_GCC=$GCC
10335 GCC=$GXX
10336 lt_save_with_gnu_ld=$with_gnu_ld
10337 lt_save_path_LD=$lt_cv_path_LD
10338 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10339   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10340 else
10341   $as_unset lt_cv_prog_gnu_ld
10342 fi
10343 if test -n "${lt_cv_path_LDCXX+set}"; then
10344   lt_cv_path_LD=$lt_cv_path_LDCXX
10345 else
10346   $as_unset lt_cv_path_LD
10347 fi
10348 test -z "${LDCXX+set}" || LD=$LDCXX
10349 CC=${CXX-"c++"}
10350 compiler=$CC
10351 compiler_CXX=$CC
10352 for cc_temp in $compiler""; do
10353   case $cc_temp in
10354     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10355     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10356     \-*) ;;
10357     *) break;;
10358   esac
10359 done
10360 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10361
10362
10363 # We don't want -fno-exception wen compiling C++ code, so set the
10364 # no_builtin_flag separately
10365 if test "$GXX" = yes; then
10366   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10367 else
10368   lt_prog_compiler_no_builtin_flag_CXX=
10369 fi
10370
10371 if test "$GXX" = yes; then
10372   # Set up default GNU C++ configuration
10373
10374
10375 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10376 if test "${with_gnu_ld+set}" = set; then
10377   withval="$with_gnu_ld"
10378   test "$withval" = no || with_gnu_ld=yes
10379 else
10380   with_gnu_ld=no
10381 fi;
10382 ac_prog=ld
10383 if test "$GCC" = yes; then
10384   # Check if gcc -print-prog-name=ld gives a path.
10385   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10386 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10387   case $host in
10388   *-*-mingw*)
10389     # gcc leaves a trailing carriage return which upsets mingw
10390     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10391   *)
10392     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10393   esac
10394   case $ac_prog in
10395     # Accept absolute paths.
10396     [\\/]* | ?:[\\/]*)
10397       re_direlt='/[^/][^/]*/\.\./'
10398       # Canonicalize the pathname of ld
10399       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10400       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10401         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10402       done
10403       test -z "$LD" && LD="$ac_prog"
10404       ;;
10405   "")
10406     # If it fails, then pretend we aren't using GCC.
10407     ac_prog=ld
10408     ;;
10409   *)
10410     # If it is relative, then search for the first ld in PATH.
10411     with_gnu_ld=unknown
10412     ;;
10413   esac
10414 elif test "$with_gnu_ld" = yes; then
10415   echo "$as_me:$LINENO: checking for GNU ld" >&5
10416 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10417 else
10418   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10419 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10420 fi
10421 if test "${lt_cv_path_LD+set}" = set; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424   if test -z "$LD"; then
10425   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10426   for ac_dir in $PATH; do
10427     IFS="$lt_save_ifs"
10428     test -z "$ac_dir" && ac_dir=.
10429     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10430       lt_cv_path_LD="$ac_dir/$ac_prog"
10431       # Check to see if the program is GNU ld.  I'd rather use --version,
10432       # but apparently some variants of GNU ld only accept -v.
10433       # Break only if it was the GNU/non-GNU ld that we prefer.
10434       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10435       *GNU* | *'with BFD'*)
10436         test "$with_gnu_ld" != no && break
10437         ;;
10438       *)
10439         test "$with_gnu_ld" != yes && break
10440         ;;
10441       esac
10442     fi
10443   done
10444   IFS="$lt_save_ifs"
10445 else
10446   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10447 fi
10448 fi
10449
10450 LD="$lt_cv_path_LD"
10451 if test -n "$LD"; then
10452   echo "$as_me:$LINENO: result: $LD" >&5
10453 echo "${ECHO_T}$LD" >&6
10454 else
10455   echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10457 fi
10458 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10459 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10460    { (exit 1); exit 1; }; }
10461 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10462 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10463 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10467 case `$LD -v 2>&1 </dev/null` in
10468 *GNU* | *'with BFD'*)
10469   lt_cv_prog_gnu_ld=yes
10470   ;;
10471 *)
10472   lt_cv_prog_gnu_ld=no
10473   ;;
10474 esac
10475 fi
10476 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10477 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10478 with_gnu_ld=$lt_cv_prog_gnu_ld
10479
10480
10481
10482   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10483   # archiving commands below assume that GNU ld is being used.
10484   if test "$with_gnu_ld" = yes; then
10485     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486     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'
10487
10488     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10489     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10490
10491     # If archive_cmds runs LD, not CC, wlarc should be empty
10492     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10493     #     investigate it a little bit more. (MM)
10494     wlarc='${wl}'
10495
10496     # ancient GNU ld didn't support --whole-archive et. al.
10497     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10498         grep 'no-whole-archive' > /dev/null; then
10499       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10500     else
10501       whole_archive_flag_spec_CXX=
10502     fi
10503   else
10504     with_gnu_ld=no
10505     wlarc=
10506
10507     # A generic and very simple default shared library creation
10508     # command for GNU C++ for the case where it uses the native
10509     # linker, instead of GNU ld.  If possible, this setting should
10510     # overridden to take advantage of the native linker features on
10511     # the platform it is being used on.
10512     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10513   fi
10514
10515   # Commands to make compiler produce verbose output that lists
10516   # what "hidden" libraries, object files and flags are used when
10517   # linking a shared library.
10518   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10519
10520 else
10521   GXX=no
10522   with_gnu_ld=no
10523   wlarc=
10524 fi
10525
10526 # PORTME: fill in a description of your system's C++ link characteristics
10527 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10528 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10529 ld_shlibs_CXX=yes
10530 case $host_os in
10531   aix3*)
10532     # FIXME: insert proper C++ library support
10533     ld_shlibs_CXX=no
10534     ;;
10535   aix4* | aix5*)
10536     if test "$host_cpu" = ia64; then
10537       # On IA64, the linker does run time linking by default, so we don't
10538       # have to do anything special.
10539       aix_use_runtimelinking=no
10540       exp_sym_flag='-Bexport'
10541       no_entry_flag=""
10542     else
10543       aix_use_runtimelinking=no
10544
10545       # Test if we are trying to use run time linking or normal
10546       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10547       # need to do runtime linking.
10548       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10549         for ld_flag in $LDFLAGS; do
10550           case $ld_flag in
10551           *-brtl*)
10552             aix_use_runtimelinking=yes
10553             break
10554             ;;
10555           esac
10556         done
10557         ;;
10558       esac
10559
10560       exp_sym_flag='-bexport'
10561       no_entry_flag='-bnoentry'
10562     fi
10563
10564     # When large executables or shared objects are built, AIX ld can
10565     # have problems creating the table of contents.  If linking a library
10566     # or program results in "error TOC overflow" add -mminimal-toc to
10567     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10568     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10569
10570     archive_cmds_CXX=''
10571     hardcode_direct_CXX=yes
10572     hardcode_libdir_separator_CXX=':'
10573     link_all_deplibs_CXX=yes
10574
10575     if test "$GXX" = yes; then
10576       case $host_os in aix4.[012]|aix4.[012].*)
10577       # We only want to do this on AIX 4.2 and lower, the check
10578       # below for broken collect2 doesn't work under 4.3+
10579         collect2name=`${CC} -print-prog-name=collect2`
10580         if test -f "$collect2name" && \
10581            strings "$collect2name" | grep resolve_lib_name >/dev/null
10582         then
10583           # We have reworked collect2
10584           hardcode_direct_CXX=yes
10585         else
10586           # We have old collect2
10587           hardcode_direct_CXX=unsupported
10588           # It fails to find uninstalled libraries when the uninstalled
10589           # path is not listed in the libpath.  Setting hardcode_minus_L
10590           # to unsupported forces relinking
10591           hardcode_minus_L_CXX=yes
10592           hardcode_libdir_flag_spec_CXX='-L$libdir'
10593           hardcode_libdir_separator_CXX=
10594         fi
10595         ;;
10596       esac
10597       shared_flag='-shared'
10598       if test "$aix_use_runtimelinking" = yes; then
10599         shared_flag="$shared_flag "'${wl}-G'
10600       fi
10601     else
10602       # not using gcc
10603       if test "$host_cpu" = ia64; then
10604         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10605         # chokes on -Wl,-G. The following line is correct:
10606         shared_flag='-G'
10607       else
10608         if test "$aix_use_runtimelinking" = yes; then
10609           shared_flag='${wl}-G'
10610         else
10611           shared_flag='${wl}-bM:SRE'
10612         fi
10613       fi
10614     fi
10615
10616     # It seems that -bexpall does not export symbols beginning with
10617     # underscore (_), so it is better to generate a list of symbols to export.
10618     always_export_symbols_CXX=yes
10619     if test "$aix_use_runtimelinking" = yes; then
10620       # Warning - without using the other runtime loading flags (-brtl),
10621       # -berok will link without error, but may produce a broken library.
10622       allow_undefined_flag_CXX='-berok'
10623       # Determine the default libpath from the value encoded in an empty executable.
10624       cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630
10631 int
10632 main ()
10633 {
10634
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641   (eval $ac_link) 2>conftest.er1
10642   ac_status=$?
10643   grep -v '^ *+' conftest.er1 >conftest.err
10644   rm -f conftest.er1
10645   cat conftest.err >&5
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } &&
10648          { ac_try='test -z "$ac_cxx_werror_flag"
10649                          || test ! -s conftest.err'
10650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651   (eval $ac_try) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; } &&
10655          { ac_try='test -s conftest$ac_exeext'
10656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657   (eval $ac_try) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; }; then
10661
10662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10663 }'`
10664 # Check for a 64-bit object if we didn't find anything.
10665 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; }
10666 }'`; fi
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 fi
10672 rm -f conftest.err conftest.$ac_objext \
10673       conftest$ac_exeext conftest.$ac_ext
10674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10675
10676       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10677
10678       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"
10679      else
10680       if test "$host_cpu" = ia64; then
10681         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10682         allow_undefined_flag_CXX="-z nodefs"
10683         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"
10684       else
10685         # Determine the default libpath from the value encoded in an empty executable.
10686         cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692
10693 int
10694 main ()
10695 {
10696
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703   (eval $ac_link) 2>conftest.er1
10704   ac_status=$?
10705   grep -v '^ *+' conftest.er1 >conftest.err
10706   rm -f conftest.er1
10707   cat conftest.err >&5
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -z "$ac_cxx_werror_flag"
10711                          || test ! -s conftest.err'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; } &&
10717          { ac_try='test -s conftest$ac_exeext'
10718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719   (eval $ac_try) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; }; then
10723
10724 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10725 }'`
10726 # Check for a 64-bit object if we didn't find anything.
10727 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; }
10728 }'`; fi
10729 else
10730   echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 fi
10734 rm -f conftest.err conftest.$ac_objext \
10735       conftest$ac_exeext conftest.$ac_ext
10736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10737
10738         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10739         # Warning - without using the other run time loading flags,
10740         # -berok will link without error, but may produce a broken library.
10741         no_undefined_flag_CXX=' ${wl}-bernotok'
10742         allow_undefined_flag_CXX=' ${wl}-berok'
10743         # Exported symbols can be pulled into shared objects from archives
10744         whole_archive_flag_spec_CXX='$convenience'
10745         archive_cmds_need_lc_CXX=yes
10746         # This is similar to how AIX traditionally builds its shared libraries.
10747         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'
10748       fi
10749     fi
10750     ;;
10751
10752   beos*)
10753     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10754       allow_undefined_flag_CXX=unsupported
10755       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10756       # support --undefined.  This deserves some investigation.  FIXME
10757       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10758     else
10759       ld_shlibs_CXX=no
10760     fi
10761     ;;
10762
10763   chorus*)
10764     case $cc_basename in
10765       *)
10766         # FIXME: insert proper C++ library support
10767         ld_shlibs_CXX=no
10768         ;;
10769     esac
10770     ;;
10771
10772   cygwin* | mingw* | pw32*)
10773     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10774     # as there is no search path for DLLs.
10775     hardcode_libdir_flag_spec_CXX='-L$libdir'
10776     allow_undefined_flag_CXX=unsupported
10777     always_export_symbols_CXX=no
10778     enable_shared_with_static_runtimes_CXX=yes
10779
10780     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10781       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'
10782       # If the export-symbols file already is a .def file (1st line
10783       # is EXPORTS), use it as is; otherwise, prepend...
10784       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10785         cp $export_symbols $output_objdir/$soname.def;
10786       else
10787         echo EXPORTS > $output_objdir/$soname.def;
10788         cat $export_symbols >> $output_objdir/$soname.def;
10789       fi~
10790       $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'
10791     else
10792       ld_shlibs_CXX=no
10793     fi
10794   ;;
10795       darwin* | rhapsody*)
10796         case $host_os in
10797         rhapsody* | darwin1.[012])
10798          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10799          ;;
10800        *) # Darwin 1.3 on
10801          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10802            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10803          else
10804            case ${MACOSX_DEPLOYMENT_TARGET} in
10805              10.[012])
10806                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10807                ;;
10808              10.*)
10809                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10810                ;;
10811            esac
10812          fi
10813          ;;
10814         esac
10815       archive_cmds_need_lc_CXX=no
10816       hardcode_direct_CXX=no
10817       hardcode_automatic_CXX=yes
10818       hardcode_shlibpath_var_CXX=unsupported
10819       whole_archive_flag_spec_CXX=''
10820       link_all_deplibs_CXX=yes
10821
10822     if test "$GXX" = yes ; then
10823       lt_int_apple_cc_single_mod=no
10824       output_verbose_link_cmd='echo'
10825       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10826        lt_int_apple_cc_single_mod=yes
10827       fi
10828       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10829        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10830       else
10831           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'
10832         fi
10833         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10834         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10835           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10836             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}'
10837           else
10838             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}'
10839           fi
10840             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}'
10841       else
10842       case $cc_basename in
10843         xlc*)
10844          output_verbose_link_cmd='echo'
10845           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'
10846           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10847           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10848           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}'
10849           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}'
10850           ;;
10851        *)
10852          ld_shlibs_CXX=no
10853           ;;
10854       esac
10855       fi
10856         ;;
10857
10858   dgux*)
10859     case $cc_basename in
10860       ec++*)
10861         # FIXME: insert proper C++ library support
10862         ld_shlibs_CXX=no
10863         ;;
10864       ghcx*)
10865         # Green Hills C++ Compiler
10866         # FIXME: insert proper C++ library support
10867         ld_shlibs_CXX=no
10868         ;;
10869       *)
10870         # FIXME: insert proper C++ library support
10871         ld_shlibs_CXX=no
10872         ;;
10873     esac
10874     ;;
10875   freebsd[12]*)
10876     # C++ shared libraries reported to be fairly broken before switch to ELF
10877     ld_shlibs_CXX=no
10878     ;;
10879   freebsd-elf*)
10880     archive_cmds_need_lc_CXX=no
10881     ;;
10882   freebsd* | kfreebsd*-gnu | dragonfly*)
10883     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10884     # conventions
10885     ld_shlibs_CXX=yes
10886     ;;
10887   gnu*)
10888     ;;
10889   hpux9*)
10890     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10891     hardcode_libdir_separator_CXX=:
10892     export_dynamic_flag_spec_CXX='${wl}-E'
10893     hardcode_direct_CXX=yes
10894     hardcode_minus_L_CXX=yes # Not in the search PATH,
10895                                 # but as the default
10896                                 # location of the library.
10897
10898     case $cc_basename in
10899     CC*)
10900       # FIXME: insert proper C++ library support
10901       ld_shlibs_CXX=no
10902       ;;
10903     aCC*)
10904       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'
10905       # Commands to make compiler produce verbose output that lists
10906       # what "hidden" libraries, object files and flags are used when
10907       # linking a shared library.
10908       #
10909       # There doesn't appear to be a way to prevent this compiler from
10910       # explicitly linking system object files so we need to strip them
10911       # from the output so that they don't get included in the library
10912       # dependencies.
10913       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'
10914       ;;
10915     *)
10916       if test "$GXX" = yes; then
10917         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'
10918       else
10919         # FIXME: insert proper C++ library support
10920         ld_shlibs_CXX=no
10921       fi
10922       ;;
10923     esac
10924     ;;
10925   hpux10*|hpux11*)
10926     if test $with_gnu_ld = no; then
10927       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10928       hardcode_libdir_separator_CXX=:
10929
10930       case $host_cpu in
10931       hppa*64*|ia64*)
10932         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10933         ;;
10934       *)
10935         export_dynamic_flag_spec_CXX='${wl}-E'
10936         ;;
10937       esac
10938     fi
10939     case $host_cpu in
10940     hppa*64*|ia64*)
10941       hardcode_direct_CXX=no
10942       hardcode_shlibpath_var_CXX=no
10943       ;;
10944     *)
10945       hardcode_direct_CXX=yes
10946       hardcode_minus_L_CXX=yes # Not in the search PATH,
10947                                               # but as the default
10948                                               # location of the library.
10949       ;;
10950     esac
10951
10952     case $cc_basename in
10953       CC*)
10954         # FIXME: insert proper C++ library support
10955         ld_shlibs_CXX=no
10956         ;;
10957       aCC*)
10958         case $host_cpu in
10959         hppa*64*)
10960           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10961           ;;
10962         ia64*)
10963           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10964           ;;
10965         *)
10966           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10967           ;;
10968         esac
10969         # Commands to make compiler produce verbose output that lists
10970         # what "hidden" libraries, object files and flags are used when
10971         # linking a shared library.
10972         #
10973         # There doesn't appear to be a way to prevent this compiler from
10974         # explicitly linking system object files so we need to strip them
10975         # from the output so that they don't get included in the library
10976         # dependencies.
10977         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'
10978         ;;
10979       *)
10980         if test "$GXX" = yes; then
10981           if test $with_gnu_ld = no; then
10982             case $host_cpu in
10983             hppa*64*)
10984               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10985               ;;
10986             ia64*)
10987               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10988               ;;
10989             *)
10990               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'
10991               ;;
10992             esac
10993           fi
10994         else
10995           # FIXME: insert proper C++ library support
10996           ld_shlibs_CXX=no
10997         fi
10998         ;;
10999     esac
11000     ;;
11001   interix3*)
11002     hardcode_direct_CXX=no
11003     hardcode_shlibpath_var_CXX=no
11004     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11005     export_dynamic_flag_spec_CXX='${wl}-E'
11006     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11007     # Instead, shared libraries are loaded at an image base (0x10000000 by
11008     # default) and relocated if they conflict, which is a slow very memory
11009     # consuming and fragmenting process.  To avoid this, we pick a random,
11010     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11011     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11012     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'
11013     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'
11014     ;;
11015   irix5* | irix6*)
11016     case $cc_basename in
11017       CC*)
11018         # SGI C++
11019         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'
11020
11021         # Archives containing C++ object files must be created using
11022         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11023         # necessary to make sure instantiated templates are included
11024         # in the archive.
11025         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11026         ;;
11027       *)
11028         if test "$GXX" = yes; then
11029           if test "$with_gnu_ld" = no; then
11030             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'
11031           else
11032             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'
11033           fi
11034         fi
11035         link_all_deplibs_CXX=yes
11036         ;;
11037     esac
11038     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11039     hardcode_libdir_separator_CXX=:
11040     ;;
11041   linux*)
11042     case $cc_basename in
11043       KCC*)
11044         # Kuck and Associates, Inc. (KAI) C++ Compiler
11045
11046         # KCC will only create a shared library if the output file
11047         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11048         # to its proper name (with version) after linking.
11049         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'
11050         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'
11051         # Commands to make compiler produce verbose output that lists
11052         # what "hidden" libraries, object files and flags are used when
11053         # linking a shared library.
11054         #
11055         # There doesn't appear to be a way to prevent this compiler from
11056         # explicitly linking system object files so we need to strip them
11057         # from the output so that they don't get included in the library
11058         # dependencies.
11059         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'
11060
11061         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11062         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11063
11064         # Archives containing C++ object files must be created using
11065         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11066         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11067         ;;
11068       icpc*)
11069         # Intel C++
11070         with_gnu_ld=yes
11071         # version 8.0 and above of icpc choke on multiply defined symbols
11072         # if we add $predep_objects and $postdep_objects, however 7.1 and
11073         # earlier do not add the objects themselves.
11074         case `$CC -V 2>&1` in
11075         *"Version 7."*)
11076           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11077           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'
11078           ;;
11079         *)  # Version 8.0 or newer
11080           tmp_idyn=
11081           case $host_cpu in
11082             ia64*) tmp_idyn=' -i_dynamic';;
11083           esac
11084           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11085           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'
11086           ;;
11087         esac
11088         archive_cmds_need_lc_CXX=no
11089         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11090         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11091         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11092         ;;
11093       pgCC*)
11094         # Portland Group C++ compiler
11095         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11096         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'
11097
11098         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11099         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11100         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'
11101         ;;
11102       cxx*)
11103         # Compaq C++
11104         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11105         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'
11106
11107         runpath_var=LD_RUN_PATH
11108         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11109         hardcode_libdir_separator_CXX=:
11110
11111         # Commands to make compiler produce verbose output that lists
11112         # what "hidden" libraries, object files and flags are used when
11113         # linking a shared library.
11114         #
11115         # There doesn't appear to be a way to prevent this compiler from
11116         # explicitly linking system object files so we need to strip them
11117         # from the output so that they don't get included in the library
11118         # dependencies.
11119         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'
11120         ;;
11121     esac
11122     ;;
11123   lynxos*)
11124     # FIXME: insert proper C++ library support
11125     ld_shlibs_CXX=no
11126     ;;
11127   m88k*)
11128     # FIXME: insert proper C++ library support
11129     ld_shlibs_CXX=no
11130     ;;
11131   mvs*)
11132     case $cc_basename in
11133       cxx*)
11134         # FIXME: insert proper C++ library support
11135         ld_shlibs_CXX=no
11136         ;;
11137       *)
11138         # FIXME: insert proper C++ library support
11139         ld_shlibs_CXX=no
11140         ;;
11141     esac
11142     ;;
11143   netbsd*)
11144     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11145       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11146       wlarc=
11147       hardcode_libdir_flag_spec_CXX='-R$libdir'
11148       hardcode_direct_CXX=yes
11149       hardcode_shlibpath_var_CXX=no
11150     fi
11151     # Workaround some broken pre-1.5 toolchains
11152     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11153     ;;
11154   openbsd2*)
11155     # C++ shared libraries are fairly broken
11156     ld_shlibs_CXX=no
11157     ;;
11158   openbsd*)
11159     hardcode_direct_CXX=yes
11160     hardcode_shlibpath_var_CXX=no
11161     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11162     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11163     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11164       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11165       export_dynamic_flag_spec_CXX='${wl}-E'
11166       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11167     fi
11168     output_verbose_link_cmd='echo'
11169     ;;
11170   osf3*)
11171     case $cc_basename in
11172       KCC*)
11173         # Kuck and Associates, Inc. (KAI) C++ Compiler
11174
11175         # KCC will only create a shared library if the output file
11176         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11177         # to its proper name (with version) after linking.
11178         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'
11179
11180         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11181         hardcode_libdir_separator_CXX=:
11182
11183         # Archives containing C++ object files must be created using
11184         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11185         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11186
11187         ;;
11188       RCC*)
11189         # Rational C++ 2.4.1
11190         # FIXME: insert proper C++ library support
11191         ld_shlibs_CXX=no
11192         ;;
11193       cxx*)
11194         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11195         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'
11196
11197         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11198         hardcode_libdir_separator_CXX=:
11199
11200         # Commands to make compiler produce verbose output that lists
11201         # what "hidden" libraries, object files and flags are used when
11202         # linking a shared library.
11203         #
11204         # There doesn't appear to be a way to prevent this compiler from
11205         # explicitly linking system object files so we need to strip them
11206         # from the output so that they don't get included in the library
11207         # dependencies.
11208         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'
11209         ;;
11210       *)
11211         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11212           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11213           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'
11214
11215           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11216           hardcode_libdir_separator_CXX=:
11217
11218           # Commands to make compiler produce verbose output that lists
11219           # what "hidden" libraries, object files and flags are used when
11220           # linking a shared library.
11221           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11222
11223         else
11224           # FIXME: insert proper C++ library support
11225           ld_shlibs_CXX=no
11226         fi
11227         ;;
11228     esac
11229     ;;
11230   osf4* | osf5*)
11231     case $cc_basename in
11232       KCC*)
11233         # Kuck and Associates, Inc. (KAI) C++ Compiler
11234
11235         # KCC will only create a shared library if the output file
11236         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11237         # to its proper name (with version) after linking.
11238         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'
11239
11240         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11241         hardcode_libdir_separator_CXX=:
11242
11243         # Archives containing C++ object files must be created using
11244         # the KAI C++ compiler.
11245         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11246         ;;
11247       RCC*)
11248         # Rational C++ 2.4.1
11249         # FIXME: insert proper C++ library support
11250         ld_shlibs_CXX=no
11251         ;;
11252       cxx*)
11253         allow_undefined_flag_CXX=' -expect_unresolved \*'
11254         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'
11255         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11256           echo "-hidden">> $lib.exp~
11257           $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~
11258           $rm $lib.exp'
11259
11260         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11261         hardcode_libdir_separator_CXX=:
11262
11263         # Commands to make compiler produce verbose output that lists
11264         # what "hidden" libraries, object files and flags are used when
11265         # linking a shared library.
11266         #
11267         # There doesn't appear to be a way to prevent this compiler from
11268         # explicitly linking system object files so we need to strip them
11269         # from the output so that they don't get included in the library
11270         # dependencies.
11271         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'
11272         ;;
11273       *)
11274         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11275           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11276          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'
11277
11278           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11279           hardcode_libdir_separator_CXX=:
11280
11281           # Commands to make compiler produce verbose output that lists
11282           # what "hidden" libraries, object files and flags are used when
11283           # linking a shared library.
11284           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11285
11286         else
11287           # FIXME: insert proper C++ library support
11288           ld_shlibs_CXX=no
11289         fi
11290         ;;
11291     esac
11292     ;;
11293   psos*)
11294     # FIXME: insert proper C++ library support
11295     ld_shlibs_CXX=no
11296     ;;
11297   sunos4*)
11298     case $cc_basename in
11299       CC*)
11300         # Sun C++ 4.x
11301         # FIXME: insert proper C++ library support
11302         ld_shlibs_CXX=no
11303         ;;
11304       lcc*)
11305         # Lucid
11306         # FIXME: insert proper C++ library support
11307         ld_shlibs_CXX=no
11308         ;;
11309       *)
11310         # FIXME: insert proper C++ library support
11311         ld_shlibs_CXX=no
11312         ;;
11313     esac
11314     ;;
11315   solaris*)
11316     case $cc_basename in
11317       CC*)
11318         # Sun C++ 4.2, 5.x and Centerline C++
11319         archive_cmds_need_lc_CXX=yes
11320         no_undefined_flag_CXX=' -zdefs'
11321         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11322         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11323         $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'
11324
11325         hardcode_libdir_flag_spec_CXX='-R$libdir'
11326         hardcode_shlibpath_var_CXX=no
11327         case $host_os in
11328           solaris2.[0-5] | solaris2.[0-5].*) ;;
11329           *)
11330             # The C++ compiler is used as linker so we must use $wl
11331             # flag to pass the commands to the underlying system
11332             # linker. We must also pass each convience library through
11333             # to the system linker between allextract/defaultextract.
11334             # The C++ compiler will combine linker options so we
11335             # cannot just pass the convience library names through
11336             # without $wl.
11337             # Supported since Solaris 2.6 (maybe 2.5.1?)
11338             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'
11339             ;;
11340         esac
11341         link_all_deplibs_CXX=yes
11342
11343         output_verbose_link_cmd='echo'
11344
11345         # Archives containing C++ object files must be created using
11346         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11347         # necessary to make sure instantiated templates are included
11348         # in the archive.
11349         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11350         ;;
11351       gcx*)
11352         # Green Hills C++ Compiler
11353         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11354
11355         # The C++ compiler must be used to create the archive.
11356         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11357         ;;
11358       *)
11359         # GNU C++ compiler with Solaris linker
11360         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11361           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11362           if $CC --version | grep -v '^2\.7' > /dev/null; then
11363             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11364             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11365                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11366
11367             # Commands to make compiler produce verbose output that lists
11368             # what "hidden" libraries, object files and flags are used when
11369             # linking a shared library.
11370             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11371           else
11372             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11373             # platform.
11374             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11375             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11376                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11377
11378             # Commands to make compiler produce verbose output that lists
11379             # what "hidden" libraries, object files and flags are used when
11380             # linking a shared library.
11381             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11382           fi
11383
11384           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11385         fi
11386         ;;
11387     esac
11388     ;;
11389   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11390     no_undefined_flag_CXX='${wl}-z,text'
11391     archive_cmds_need_lc_CXX=no
11392     hardcode_shlibpath_var_CXX=no
11393     runpath_var='LD_RUN_PATH'
11394
11395     case $cc_basename in
11396       CC*)
11397         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399         ;;
11400       *)
11401         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403         ;;
11404     esac
11405     ;;
11406   sysv5* | sco3.2v5* | sco5v6*)
11407     # Note: We can NOT use -z defs as we might desire, because we do not
11408     # link with -lc, and that would cause any symbols used from libc to
11409     # always be unresolved, which means just about no library would
11410     # ever link correctly.  If we're not using GNU ld we use -z text
11411     # though, which does catch some bad symbols but isn't as heavy-handed
11412     # as -z defs.
11413     # For security reasons, it is highly recommended that you always
11414     # use absolute paths for naming shared libraries, and exclude the
11415     # DT_RUNPATH tag from executables and libraries.  But doing so
11416     # requires that you compile everything twice, which is a pain.
11417     # So that behaviour is only enabled if SCOABSPATH is set to a
11418     # non-empty value in the environment.  Most likely only useful for
11419     # creating official distributions of packages.
11420     # This is a hack until libtool officially supports absolute path
11421     # names for shared libraries.
11422     no_undefined_flag_CXX='${wl}-z,text'
11423     allow_undefined_flag_CXX='${wl}-z,nodefs'
11424     archive_cmds_need_lc_CXX=no
11425     hardcode_shlibpath_var_CXX=no
11426     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11427     hardcode_libdir_separator_CXX=':'
11428     link_all_deplibs_CXX=yes
11429     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11430     runpath_var='LD_RUN_PATH'
11431
11432     case $cc_basename in
11433       CC*)
11434         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11435         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11436         ;;
11437       *)
11438         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11439         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11440         ;;
11441     esac
11442     ;;
11443   tandem*)
11444     case $cc_basename in
11445       NCC*)
11446         # NonStop-UX NCC 3.20
11447         # FIXME: insert proper C++ library support
11448         ld_shlibs_CXX=no
11449         ;;
11450       *)
11451         # FIXME: insert proper C++ library support
11452         ld_shlibs_CXX=no
11453         ;;
11454     esac
11455     ;;
11456   vxworks*)
11457     # FIXME: insert proper C++ library support
11458     ld_shlibs_CXX=no
11459     ;;
11460   *)
11461     # FIXME: insert proper C++ library support
11462     ld_shlibs_CXX=no
11463     ;;
11464 esac
11465 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11466 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11467 test "$ld_shlibs_CXX" = no && can_build_shared=no
11468
11469 GCC_CXX="$GXX"
11470 LD_CXX="$LD"
11471
11472
11473 cat > conftest.$ac_ext <<EOF
11474 class Foo
11475 {
11476 public:
11477   Foo (void) { a = 0; }
11478 private:
11479   int a;
11480 };
11481 EOF
11482
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484   (eval $ac_compile) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; then
11488   # Parse the compiler output and extract the necessary
11489   # objects, libraries and library flags.
11490
11491   # Sentinel used to keep track of whether or not we are before
11492   # the conftest object file.
11493   pre_test_object_deps_done=no
11494
11495   # The `*' in the case matches for architectures that use `case' in
11496   # $output_verbose_cmd can trigger glob expansion during the loop
11497   # eval without this substitution.
11498   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11499
11500   for p in `eval $output_verbose_link_cmd`; do
11501     case $p in
11502
11503     -L* | -R* | -l*)
11504        # Some compilers place space between "-{L,R}" and the path.
11505        # Remove the space.
11506        if test $p = "-L" \
11507           || test $p = "-R"; then
11508          prev=$p
11509          continue
11510        else
11511          prev=
11512        fi
11513
11514        if test "$pre_test_object_deps_done" = no; then
11515          case $p in
11516          -L* | -R*)
11517            # Internal compiler library paths should come after those
11518            # provided the user.  The postdeps already come after the
11519            # user supplied libs so there is no need to process them.
11520            if test -z "$compiler_lib_search_path_CXX"; then
11521              compiler_lib_search_path_CXX="${prev}${p}"
11522            else
11523              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11524            fi
11525            ;;
11526          # The "-l" case would never come before the object being
11527          # linked, so don't bother handling this case.
11528          esac
11529        else
11530          if test -z "$postdeps_CXX"; then
11531            postdeps_CXX="${prev}${p}"
11532          else
11533            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11534          fi
11535        fi
11536        ;;
11537
11538     *.$objext)
11539        # This assumes that the test object file only shows up
11540        # once in the compiler output.
11541        if test "$p" = "conftest.$objext"; then
11542          pre_test_object_deps_done=yes
11543          continue
11544        fi
11545
11546        if test "$pre_test_object_deps_done" = no; then
11547          if test -z "$predep_objects_CXX"; then
11548            predep_objects_CXX="$p"
11549          else
11550            predep_objects_CXX="$predep_objects_CXX $p"
11551          fi
11552        else
11553          if test -z "$postdep_objects_CXX"; then
11554            postdep_objects_CXX="$p"
11555          else
11556            postdep_objects_CXX="$postdep_objects_CXX $p"
11557          fi
11558        fi
11559        ;;
11560
11561     *) ;; # Ignore the rest.
11562
11563     esac
11564   done
11565
11566   # Clean up.
11567   rm -f a.out a.exe
11568 else
11569   echo "libtool.m4: error: problem compiling CXX test program"
11570 fi
11571
11572 $rm -f confest.$objext
11573
11574 # PORTME: override above test on systems where it is broken
11575 case $host_os in
11576 interix3*)
11577   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11578   # hack all around it, let's just trust "g++" to DTRT.
11579   predep_objects_CXX=
11580   postdep_objects_CXX=
11581   postdeps_CXX=
11582   ;;
11583
11584 solaris*)
11585   case $cc_basename in
11586   CC*)
11587     # Adding this requires a known-good setup of shared libraries for
11588     # Sun compiler versions before 5.6, else PIC objects from an old
11589     # archive will be linked into the output, leading to subtle bugs.
11590     postdeps_CXX='-lCstd -lCrun'
11591     ;;
11592   esac
11593   ;;
11594 esac
11595
11596
11597 case " $postdeps_CXX " in
11598 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11599 esac
11600
11601 lt_prog_compiler_wl_CXX=
11602 lt_prog_compiler_pic_CXX=
11603 lt_prog_compiler_static_CXX=
11604
11605 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11607
11608   # C++ specific cases for pic, static, wl, etc.
11609   if test "$GXX" = yes; then
11610     lt_prog_compiler_wl_CXX='-Wl,'
11611     lt_prog_compiler_static_CXX='-static'
11612
11613     case $host_os in
11614     aix*)
11615       # All AIX code is PIC.
11616       if test "$host_cpu" = ia64; then
11617         # AIX 5 now supports IA64 processor
11618         lt_prog_compiler_static_CXX='-Bstatic'
11619       fi
11620       ;;
11621     amigaos*)
11622       # FIXME: we need at least 68020 code to build shared libraries, but
11623       # adding the `-m68020' flag to GCC prevents building anything better,
11624       # like `-m68040'.
11625       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11626       ;;
11627     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11628       # PIC is the default for these OSes.
11629       ;;
11630     mingw* | os2* | pw32*)
11631       # This hack is so that the source file can tell whether it is being
11632       # built for inclusion in a dll (and should export symbols for example).
11633       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11634       ;;
11635     darwin* | rhapsody*)
11636       # PIC is the default on this platform
11637       # Common symbols not allowed in MH_DYLIB files
11638       lt_prog_compiler_pic_CXX='-fno-common'
11639       ;;
11640     *djgpp*)
11641       # DJGPP does not support shared libraries at all
11642       lt_prog_compiler_pic_CXX=
11643       ;;
11644     interix3*)
11645       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11646       # Instead, we relocate shared libraries at runtime.
11647       ;;
11648     sysv4*MP*)
11649       if test -d /usr/nec; then
11650         lt_prog_compiler_pic_CXX=-Kconform_pic
11651       fi
11652       ;;
11653     hpux*)
11654       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11655       # not for PA HP-UX.
11656       case $host_cpu in
11657       hppa*64*|ia64*)
11658         ;;
11659       *)
11660         lt_prog_compiler_pic_CXX='-fPIC'
11661         ;;
11662       esac
11663       ;;
11664     *)
11665       lt_prog_compiler_pic_CXX='-fPIC'
11666       ;;
11667     esac
11668   else
11669     case $host_os in
11670       aix4* | aix5*)
11671         # All AIX code is PIC.
11672         if test "$host_cpu" = ia64; then
11673           # AIX 5 now supports IA64 processor
11674           lt_prog_compiler_static_CXX='-Bstatic'
11675         else
11676           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11677         fi
11678         ;;
11679       chorus*)
11680         case $cc_basename in
11681         cxch68*)
11682           # Green Hills C++ Compiler
11683           # _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"
11684           ;;
11685         esac
11686         ;;
11687        darwin*)
11688          # PIC is the default on this platform
11689          # Common symbols not allowed in MH_DYLIB files
11690          case $cc_basename in
11691            xlc*)
11692            lt_prog_compiler_pic_CXX='-qnocommon'
11693            lt_prog_compiler_wl_CXX='-Wl,'
11694            ;;
11695          esac
11696        ;;
11697       dgux*)
11698         case $cc_basename in
11699           ec++*)
11700             lt_prog_compiler_pic_CXX='-KPIC'
11701             ;;
11702           ghcx*)
11703             # Green Hills C++ Compiler
11704             lt_prog_compiler_pic_CXX='-pic'
11705             ;;
11706           *)
11707             ;;
11708         esac
11709         ;;
11710       freebsd* | kfreebsd*-gnu | dragonfly*)
11711         # FreeBSD uses GNU C++
11712         ;;
11713       hpux9* | hpux10* | hpux11*)
11714         case $cc_basename in
11715           CC*)
11716             lt_prog_compiler_wl_CXX='-Wl,'
11717             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11718             if test "$host_cpu" != ia64; then
11719               lt_prog_compiler_pic_CXX='+Z'
11720             fi
11721             ;;
11722           aCC*)
11723             lt_prog_compiler_wl_CXX='-Wl,'
11724             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11725             case $host_cpu in
11726             hppa*64*|ia64*)
11727               # +Z the default
11728               ;;
11729             *)
11730               lt_prog_compiler_pic_CXX='+Z'
11731               ;;
11732             esac
11733             ;;
11734           *)
11735             ;;
11736         esac
11737         ;;
11738       interix*)
11739         # This is c89, which is MS Visual C++ (no shared libs)
11740         # Anyone wants to do a port?
11741         ;;
11742       irix5* | irix6* | nonstopux*)
11743         case $cc_basename in
11744           CC*)
11745             lt_prog_compiler_wl_CXX='-Wl,'
11746             lt_prog_compiler_static_CXX='-non_shared'
11747             # CC pic flag -KPIC is the default.
11748             ;;
11749           *)
11750             ;;
11751         esac
11752         ;;
11753       linux*)
11754         case $cc_basename in
11755           KCC*)
11756             # KAI C++ Compiler
11757             lt_prog_compiler_wl_CXX='--backend -Wl,'
11758             lt_prog_compiler_pic_CXX='-fPIC'
11759             ;;
11760           icpc* | ecpc*)
11761             # Intel C++
11762             lt_prog_compiler_wl_CXX='-Wl,'
11763             lt_prog_compiler_pic_CXX='-KPIC'
11764             lt_prog_compiler_static_CXX='-static'
11765             ;;
11766           pgCC*)
11767             # Portland Group C++ compiler.
11768             lt_prog_compiler_wl_CXX='-Wl,'
11769             lt_prog_compiler_pic_CXX='-fpic'
11770             lt_prog_compiler_static_CXX='-Bstatic'
11771             ;;
11772           cxx*)
11773             # Compaq C++
11774             # Make sure the PIC flag is empty.  It appears that all Alpha
11775             # Linux and Compaq Tru64 Unix objects are PIC.
11776             lt_prog_compiler_pic_CXX=
11777             lt_prog_compiler_static_CXX='-non_shared'
11778             ;;
11779           *)
11780             ;;
11781         esac
11782         ;;
11783       lynxos*)
11784         ;;
11785       m88k*)
11786         ;;
11787       mvs*)
11788         case $cc_basename in
11789           cxx*)
11790             lt_prog_compiler_pic_CXX='-W c,exportall'
11791             ;;
11792           *)
11793             ;;
11794         esac
11795         ;;
11796       netbsd*)
11797         ;;
11798       osf3* | osf4* | osf5*)
11799         case $cc_basename in
11800           KCC*)
11801             lt_prog_compiler_wl_CXX='--backend -Wl,'
11802             ;;
11803           RCC*)
11804             # Rational C++ 2.4.1
11805             lt_prog_compiler_pic_CXX='-pic'
11806             ;;
11807           cxx*)
11808             # Digital/Compaq C++
11809             lt_prog_compiler_wl_CXX='-Wl,'
11810             # Make sure the PIC flag is empty.  It appears that all Alpha
11811             # Linux and Compaq Tru64 Unix objects are PIC.
11812             lt_prog_compiler_pic_CXX=
11813             lt_prog_compiler_static_CXX='-non_shared'
11814             ;;
11815           *)
11816             ;;
11817         esac
11818         ;;
11819       psos*)
11820         ;;
11821       solaris*)
11822         case $cc_basename in
11823           CC*)
11824             # Sun C++ 4.2, 5.x and Centerline C++
11825             lt_prog_compiler_pic_CXX='-KPIC'
11826             lt_prog_compiler_static_CXX='-Bstatic'
11827             lt_prog_compiler_wl_CXX='-Qoption ld '
11828             ;;
11829           gcx*)
11830             # Green Hills C++ Compiler
11831             lt_prog_compiler_pic_CXX='-PIC'
11832             ;;
11833           *)
11834             ;;
11835         esac
11836         ;;
11837       sunos4*)
11838         case $cc_basename in
11839           CC*)
11840             # Sun C++ 4.x
11841             lt_prog_compiler_pic_CXX='-pic'
11842             lt_prog_compiler_static_CXX='-Bstatic'
11843             ;;
11844           lcc*)
11845             # Lucid
11846             lt_prog_compiler_pic_CXX='-pic'
11847             ;;
11848           *)
11849             ;;
11850         esac
11851         ;;
11852       tandem*)
11853         case $cc_basename in
11854           NCC*)
11855             # NonStop-UX NCC 3.20
11856             lt_prog_compiler_pic_CXX='-KPIC'
11857             ;;
11858           *)
11859             ;;
11860         esac
11861         ;;
11862       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11863         case $cc_basename in
11864           CC*)
11865             lt_prog_compiler_wl_CXX='-Wl,'
11866             lt_prog_compiler_pic_CXX='-KPIC'
11867             lt_prog_compiler_static_CXX='-Bstatic'
11868             ;;
11869         esac
11870         ;;
11871       vxworks*)
11872         ;;
11873       *)
11874         lt_prog_compiler_can_build_shared_CXX=no
11875         ;;
11876     esac
11877   fi
11878
11879 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11880 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11881
11882 #
11883 # Check to make sure the PIC flag actually works.
11884 #
11885 if test -n "$lt_prog_compiler_pic_CXX"; then
11886
11887 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11888 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11889 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   lt_prog_compiler_pic_works_CXX=no
11893   ac_outfile=conftest.$ac_objext
11894    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11895    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11896    # Insert the option either (1) after the last *FLAGS variable, or
11897    # (2) before a word containing "conftest.", or (3) at the end.
11898    # Note that $ac_compile itself does not contain backslashes and begins
11899    # with a dollar sign (not a hyphen), so the echo should work correctly.
11900    # The option is referenced via a variable to avoid confusing sed.
11901    lt_compile=`echo "$ac_compile" | $SED \
11902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11904    -e 's:$: $lt_compiler_flag:'`
11905    (eval echo "\"\$as_me:11905: $lt_compile\"" >&5)
11906    (eval "$lt_compile" 2>conftest.err)
11907    ac_status=$?
11908    cat conftest.err >&5
11909    echo "$as_me:11909: \$? = $ac_status" >&5
11910    if (exit $ac_status) && test -s "$ac_outfile"; then
11911      # The compiler can only warn and ignore the option if not recognized
11912      # So say no if there are warnings other than the usual output.
11913      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11914      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11915      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11916        lt_prog_compiler_pic_works_CXX=yes
11917      fi
11918    fi
11919    $rm conftest*
11920
11921 fi
11922 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11923 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11924
11925 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11926     case $lt_prog_compiler_pic_CXX in
11927      "" | " "*) ;;
11928      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11929      esac
11930 else
11931     lt_prog_compiler_pic_CXX=
11932      lt_prog_compiler_can_build_shared_CXX=no
11933 fi
11934
11935 fi
11936 case $host_os in
11937   # For platforms which do not support PIC, -DPIC is meaningless:
11938   *djgpp*)
11939     lt_prog_compiler_pic_CXX=
11940     ;;
11941   *)
11942     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11943     ;;
11944 esac
11945
11946 #
11947 # Check to make sure the static flag actually works.
11948 #
11949 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11950 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11951 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11952 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11953   echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955   lt_prog_compiler_static_works_CXX=no
11956    save_LDFLAGS="$LDFLAGS"
11957    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11958    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11959    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11960      # The linker can only warn and ignore the option if not recognized
11961      # So say no if there are warnings
11962      if test -s conftest.err; then
11963        # Append any errors to the config.log.
11964        cat conftest.err 1>&5
11965        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11966        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11967        if diff conftest.exp conftest.er2 >/dev/null; then
11968          lt_prog_compiler_static_works_CXX=yes
11969        fi
11970      else
11971        lt_prog_compiler_static_works_CXX=yes
11972      fi
11973    fi
11974    $rm conftest*
11975    LDFLAGS="$save_LDFLAGS"
11976
11977 fi
11978 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11979 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11980
11981 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11982     :
11983 else
11984     lt_prog_compiler_static_CXX=
11985 fi
11986
11987
11988 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11989 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11990 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   lt_cv_prog_compiler_c_o_CXX=no
11994    $rm -r conftest 2>/dev/null
11995    mkdir conftest
11996    cd conftest
11997    mkdir out
11998    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11999
12000    lt_compiler_flag="-o out/conftest2.$ac_objext"
12001    # Insert the option either (1) after the last *FLAGS variable, or
12002    # (2) before a word containing "conftest.", or (3) at the end.
12003    # Note that $ac_compile itself does not contain backslashes and begins
12004    # with a dollar sign (not a hyphen), so the echo should work correctly.
12005    lt_compile=`echo "$ac_compile" | $SED \
12006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12008    -e 's:$: $lt_compiler_flag:'`
12009    (eval echo "\"\$as_me:12009: $lt_compile\"" >&5)
12010    (eval "$lt_compile" 2>out/conftest.err)
12011    ac_status=$?
12012    cat out/conftest.err >&5
12013    echo "$as_me:12013: \$? = $ac_status" >&5
12014    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12015    then
12016      # The compiler can only warn and ignore the option if not recognized
12017      # So say no if there are warnings
12018      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12019      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12020      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12021        lt_cv_prog_compiler_c_o_CXX=yes
12022      fi
12023    fi
12024    chmod u+w . 2>&5
12025    $rm conftest*
12026    # SGI C++ compiler will create directory out/ii_files/ for
12027    # template instantiation
12028    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12029    $rm out/* && rmdir out
12030    cd ..
12031    rmdir conftest
12032    $rm conftest*
12033
12034 fi
12035 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12036 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12037
12038
12039 hard_links="nottested"
12040 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12041   # do not overwrite the value of need_locks provided by the user
12042   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12043 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12044   hard_links=yes
12045   $rm conftest*
12046   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12047   touch conftest.a
12048   ln conftest.a conftest.b 2>&5 || hard_links=no
12049   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12050   echo "$as_me:$LINENO: result: $hard_links" >&5
12051 echo "${ECHO_T}$hard_links" >&6
12052   if test "$hard_links" = no; then
12053     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12054 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12055     need_locks=warn
12056   fi
12057 else
12058   need_locks=no
12059 fi
12060
12061 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12062 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12063
12064   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12065   case $host_os in
12066   aix4* | aix5*)
12067     # If we're using GNU nm, then we don't want the "-C" option.
12068     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12069     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12070       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'
12071     else
12072       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'
12073     fi
12074     ;;
12075   pw32*)
12076     export_symbols_cmds_CXX="$ltdll_cmds"
12077   ;;
12078   cygwin* | mingw*)
12079     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'
12080   ;;
12081   *)
12082     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12083   ;;
12084   esac
12085
12086 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12087 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12088 test "$ld_shlibs_CXX" = no && can_build_shared=no
12089
12090 #
12091 # Do we need to explicitly link libc?
12092 #
12093 case "x$archive_cmds_need_lc_CXX" in
12094 x|xyes)
12095   # Assume -lc should be added
12096   archive_cmds_need_lc_CXX=yes
12097
12098   if test "$enable_shared" = yes && test "$GCC" = yes; then
12099     case $archive_cmds_CXX in
12100     *'~'*)
12101       # FIXME: we may have to deal with multi-command sequences.
12102       ;;
12103     '$CC '*)
12104       # Test whether the compiler implicitly links with -lc since on some
12105       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12106       # to ld, don't add -lc before -lgcc.
12107       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12109       $rm conftest*
12110       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12111
12112       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113   (eval $ac_compile) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } 2>conftest.err; then
12117         soname=conftest
12118         lib=conftest
12119         libobjs=conftest.$ac_objext
12120         deplibs=
12121         wl=$lt_prog_compiler_wl_CXX
12122         pic_flag=$lt_prog_compiler_pic_CXX
12123         compiler_flags=-v
12124         linker_flags=-v
12125         verstring=
12126         output_objdir=.
12127         libname=conftest
12128         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12129         allow_undefined_flag_CXX=
12130         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12131   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }
12135         then
12136           archive_cmds_need_lc_CXX=no
12137         else
12138           archive_cmds_need_lc_CXX=yes
12139         fi
12140         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12141       else
12142         cat conftest.err 1>&5
12143       fi
12144       $rm conftest*
12145       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12146 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12147       ;;
12148     esac
12149   fi
12150   ;;
12151 esac
12152
12153 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12154 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12155 library_names_spec=
12156 libname_spec='lib$name'
12157 soname_spec=
12158 shrext_cmds=".so"
12159 postinstall_cmds=
12160 postuninstall_cmds=
12161 finish_cmds=
12162 finish_eval=
12163 shlibpath_var=
12164 shlibpath_overrides_runpath=unknown
12165 version_type=none
12166 dynamic_linker="$host_os ld.so"
12167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12168 if test "$GCC" = yes; then
12169   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12170   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12171     # if the path contains ";" then we assume it to be the separator
12172     # otherwise default to the standard path separator (i.e. ":") - it is
12173     # assumed that no part of a normal pathname contains ";" but that should
12174     # okay in the real world where ";" in dirpaths is itself problematic.
12175     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12176   else
12177     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12178   fi
12179 else
12180   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12181 fi
12182 need_lib_prefix=unknown
12183 hardcode_into_libs=no
12184
12185 # when you set need_version to no, make sure it does not cause -set_version
12186 # flags to be left without arguments
12187 need_version=unknown
12188
12189 case $host_os in
12190 aix3*)
12191   version_type=linux
12192   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12193   shlibpath_var=LIBPATH
12194
12195   # AIX 3 has no versioning support, so we append a major version to the name.
12196   soname_spec='${libname}${release}${shared_ext}$major'
12197   ;;
12198
12199 aix4* | aix5*)
12200   version_type=linux
12201   need_lib_prefix=no
12202   need_version=no
12203   hardcode_into_libs=yes
12204   if test "$host_cpu" = ia64; then
12205     # AIX 5 supports IA64
12206     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12207     shlibpath_var=LD_LIBRARY_PATH
12208   else
12209     # With GCC up to 2.95.x, collect2 would create an import file
12210     # for dependence libraries.  The import file would start with
12211     # the line `#! .'.  This would cause the generated library to
12212     # depend on `.', always an invalid library.  This was fixed in
12213     # development snapshots of GCC prior to 3.0.
12214     case $host_os in
12215       aix4 | aix4.[01] | aix4.[01].*)
12216       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12217            echo ' yes '
12218            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12219         :
12220       else
12221         can_build_shared=no
12222       fi
12223       ;;
12224     esac
12225     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12226     # soname into executable. Probably we can add versioning support to
12227     # collect2, so additional links can be useful in future.
12228     if test "$aix_use_runtimelinking" = yes; then
12229       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12230       # instead of lib<name>.a to let people know that these are not
12231       # typical AIX shared libraries.
12232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233     else
12234       # We preserve .a as extension for shared libraries through AIX4.2
12235       # and later when we are not doing run time linking.
12236       library_names_spec='${libname}${release}.a $libname.a'
12237       soname_spec='${libname}${release}${shared_ext}$major'
12238     fi
12239     shlibpath_var=LIBPATH
12240   fi
12241   ;;
12242
12243 amigaos*)
12244   library_names_spec='$libname.ixlibrary $libname.a'
12245   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12246   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'
12247   ;;
12248
12249 beos*)
12250   library_names_spec='${libname}${shared_ext}'
12251   dynamic_linker="$host_os ld.so"
12252   shlibpath_var=LIBRARY_PATH
12253   ;;
12254
12255 bsdi[45]*)
12256   version_type=linux
12257   need_version=no
12258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259   soname_spec='${libname}${release}${shared_ext}$major'
12260   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12261   shlibpath_var=LD_LIBRARY_PATH
12262   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12263   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12264   # the default ld.so.conf also contains /usr/contrib/lib and
12265   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12266   # libtool to hard-code these into programs
12267   ;;
12268
12269 cygwin* | mingw* | pw32*)
12270   version_type=windows
12271   shrext_cmds=".dll"
12272   need_version=no
12273   need_lib_prefix=no
12274
12275   case $GCC,$host_os in
12276   yes,cygwin* | yes,mingw* | yes,pw32*)
12277     library_names_spec='$libname.dll.a'
12278     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12279     postinstall_cmds='base_file=`basename \${file}`~
12280       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12281       dldir=$destdir/`dirname \$dlpath`~
12282       test -d \$dldir || mkdir -p \$dldir~
12283       $install_prog $dir/$dlname \$dldir/$dlname~
12284       chmod a+x \$dldir/$dlname'
12285     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12286       dlpath=$dir/\$dldll~
12287        $rm \$dlpath'
12288     shlibpath_overrides_runpath=yes
12289
12290     case $host_os in
12291     cygwin*)
12292       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12293       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12294       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12295       ;;
12296     mingw*)
12297       # MinGW DLLs use traditional 'lib' prefix
12298       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12299       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12300       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12301         # It is most probably a Windows format PATH printed by
12302         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12303         # path with ; separators, and with drive letters. We can handle the
12304         # drive letters (cygwin fileutils understands them), so leave them,
12305         # especially as we might pass files found there to a mingw objdump,
12306         # which wouldn't understand a cygwinified path. Ahh.
12307         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12308       else
12309         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12310       fi
12311       ;;
12312     pw32*)
12313       # pw32 DLLs use 'pw' prefix rather than 'lib'
12314       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12315       ;;
12316     esac
12317     ;;
12318
12319   *)
12320     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12321     ;;
12322   esac
12323   dynamic_linker='Win32 ld.exe'
12324   # FIXME: first we should search . and the directory the executable is in
12325   shlibpath_var=PATH
12326   ;;
12327
12328 darwin* | rhapsody*)
12329   dynamic_linker="$host_os dyld"
12330   version_type=darwin
12331   need_lib_prefix=no
12332   need_version=no
12333   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12334   soname_spec='${libname}${release}${major}$shared_ext'
12335   shlibpath_overrides_runpath=yes
12336   shlibpath_var=DYLD_LIBRARY_PATH
12337   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12338   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12339   if test "$GCC" = yes; then
12340     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"`
12341   else
12342     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12343   fi
12344   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12345   ;;
12346
12347 dgux*)
12348   version_type=linux
12349   need_lib_prefix=no
12350   need_version=no
12351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12352   soname_spec='${libname}${release}${shared_ext}$major'
12353   shlibpath_var=LD_LIBRARY_PATH
12354   ;;
12355
12356 freebsd1*)
12357   dynamic_linker=no
12358   ;;
12359
12360 kfreebsd*-gnu)
12361   version_type=linux
12362   need_lib_prefix=no
12363   need_version=no
12364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12365   soname_spec='${libname}${release}${shared_ext}$major'
12366   shlibpath_var=LD_LIBRARY_PATH
12367   shlibpath_overrides_runpath=no
12368   hardcode_into_libs=yes
12369   dynamic_linker='GNU ld.so'
12370   ;;
12371
12372 freebsd* | dragonfly*)
12373   # DragonFly does not have aout.  When/if they implement a new
12374   # versioning mechanism, adjust this.
12375   if test -x /usr/bin/objformat; then
12376     objformat=`/usr/bin/objformat`
12377   else
12378     case $host_os in
12379     freebsd[123]*) objformat=aout ;;
12380     *) objformat=elf ;;
12381     esac
12382   fi
12383   version_type=freebsd-$objformat
12384   case $version_type in
12385     freebsd-elf*)
12386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12387       need_version=no
12388       need_lib_prefix=no
12389       ;;
12390     freebsd-*)
12391       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12392       need_version=yes
12393       ;;
12394   esac
12395   shlibpath_var=LD_LIBRARY_PATH
12396   case $host_os in
12397   freebsd2*)
12398     shlibpath_overrides_runpath=yes
12399     ;;
12400   freebsd3.[01]* | freebsdelf3.[01]*)
12401     shlibpath_overrides_runpath=yes
12402     hardcode_into_libs=yes
12403     ;;
12404   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12405   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12406     shlibpath_overrides_runpath=no
12407     hardcode_into_libs=yes
12408     ;;
12409   freebsd*) # from 4.6 on
12410     shlibpath_overrides_runpath=yes
12411     hardcode_into_libs=yes
12412     ;;
12413   esac
12414   ;;
12415
12416 gnu*)
12417   version_type=linux
12418   need_lib_prefix=no
12419   need_version=no
12420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12421   soname_spec='${libname}${release}${shared_ext}$major'
12422   shlibpath_var=LD_LIBRARY_PATH
12423   hardcode_into_libs=yes
12424   ;;
12425
12426 hpux9* | hpux10* | hpux11*)
12427   # Give a soname corresponding to the major version so that dld.sl refuses to
12428   # link against other versions.
12429   version_type=sunos
12430   need_lib_prefix=no
12431   need_version=no
12432   case $host_cpu in
12433   ia64*)
12434     shrext_cmds='.so'
12435     hardcode_into_libs=yes
12436     dynamic_linker="$host_os dld.so"
12437     shlibpath_var=LD_LIBRARY_PATH
12438     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440     soname_spec='${libname}${release}${shared_ext}$major'
12441     if test "X$HPUX_IA64_MODE" = X32; then
12442       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12443     else
12444       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12445     fi
12446     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12447     ;;
12448    hppa*64*)
12449      shrext_cmds='.sl'
12450      hardcode_into_libs=yes
12451      dynamic_linker="$host_os dld.sl"
12452      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12453      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12454      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455      soname_spec='${libname}${release}${shared_ext}$major'
12456      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12457      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12458      ;;
12459    *)
12460     shrext_cmds='.sl'
12461     dynamic_linker="$host_os dld.sl"
12462     shlibpath_var=SHLIB_PATH
12463     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12465     soname_spec='${libname}${release}${shared_ext}$major'
12466     ;;
12467   esac
12468   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12469   postinstall_cmds='chmod 555 $lib'
12470   ;;
12471
12472 interix3*)
12473   version_type=linux
12474   need_lib_prefix=no
12475   need_version=no
12476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12477   soname_spec='${libname}${release}${shared_ext}$major'
12478   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12479   shlibpath_var=LD_LIBRARY_PATH
12480   shlibpath_overrides_runpath=no
12481   hardcode_into_libs=yes
12482   ;;
12483
12484 irix5* | irix6* | nonstopux*)
12485   case $host_os in
12486     nonstopux*) version_type=nonstopux ;;
12487     *)
12488         if test "$lt_cv_prog_gnu_ld" = yes; then
12489                 version_type=linux
12490         else
12491                 version_type=irix
12492         fi ;;
12493   esac
12494   need_lib_prefix=no
12495   need_version=no
12496   soname_spec='${libname}${release}${shared_ext}$major'
12497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12498   case $host_os in
12499   irix5* | nonstopux*)
12500     libsuff= shlibsuff=
12501     ;;
12502   *)
12503     case $LD in # libtool.m4 will add one of these switches to LD
12504     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12505       libsuff= shlibsuff= libmagic=32-bit;;
12506     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12507       libsuff=32 shlibsuff=N32 libmagic=N32;;
12508     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12509       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12510     *) libsuff= shlibsuff= libmagic=never-match;;
12511     esac
12512     ;;
12513   esac
12514   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12515   shlibpath_overrides_runpath=no
12516   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12517   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12518   hardcode_into_libs=yes
12519   ;;
12520
12521 # No shared lib support for Linux oldld, aout, or coff.
12522 linux*oldld* | linux*aout* | linux*coff*)
12523   dynamic_linker=no
12524   ;;
12525
12526 # This must be Linux ELF.
12527 linux*)
12528   version_type=linux
12529   need_lib_prefix=no
12530   need_version=no
12531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12532   soname_spec='${libname}${release}${shared_ext}$major'
12533   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12534   shlibpath_var=LD_LIBRARY_PATH
12535   shlibpath_overrides_runpath=no
12536   # This implies no fast_install, which is unacceptable.
12537   # Some rework will be needed to allow for fast_install
12538   # before this can be enabled.
12539   hardcode_into_libs=yes
12540
12541   # find out which ABI we are using
12542   libsuff=
12543   case "$host_cpu" in
12544   x86_64*|s390x*|powerpc64*)
12545     echo '#line 12545 "configure"' > conftest.$ac_ext
12546     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547   (eval $ac_compile) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; then
12551       case `/usr/bin/file conftest.$ac_objext` in
12552       *64-bit*)
12553         libsuff=64
12554         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12555         ;;
12556       esac
12557     fi
12558     rm -rf conftest*
12559     ;;
12560   esac
12561
12562   # Append ld.so.conf contents to the search path
12563   if test -f /etc/ld.so.conf; then
12564     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' ' '`
12565     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12566   fi
12567
12568   # We used to test for /lib/ld.so.1 and disable shared libraries on
12569   # powerpc, because MkLinux only supported shared libraries with the
12570   # GNU dynamic linker.  Since this was broken with cross compilers,
12571   # most powerpc-linux boxes support dynamic linking these days and
12572   # people can always --disable-shared, the test was removed, and we
12573   # assume the GNU/Linux dynamic linker is in use.
12574   dynamic_linker='GNU/Linux ld.so'
12575   ;;
12576
12577 knetbsd*-gnu)
12578   version_type=linux
12579   need_lib_prefix=no
12580   need_version=no
12581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12582   soname_spec='${libname}${release}${shared_ext}$major'
12583   shlibpath_var=LD_LIBRARY_PATH
12584   shlibpath_overrides_runpath=no
12585   hardcode_into_libs=yes
12586   dynamic_linker='GNU ld.so'
12587   ;;
12588
12589 netbsd*)
12590   version_type=sunos
12591   need_lib_prefix=no
12592   need_version=no
12593   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12595     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12596     dynamic_linker='NetBSD (a.out) ld.so'
12597   else
12598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12599     soname_spec='${libname}${release}${shared_ext}$major'
12600     dynamic_linker='NetBSD ld.elf_so'
12601   fi
12602   shlibpath_var=LD_LIBRARY_PATH
12603   shlibpath_overrides_runpath=yes
12604   hardcode_into_libs=yes
12605   ;;
12606
12607 newsos6)
12608   version_type=linux
12609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610   shlibpath_var=LD_LIBRARY_PATH
12611   shlibpath_overrides_runpath=yes
12612   ;;
12613
12614 nto-qnx*)
12615   version_type=linux
12616   need_lib_prefix=no
12617   need_version=no
12618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12619   soname_spec='${libname}${release}${shared_ext}$major'
12620   shlibpath_var=LD_LIBRARY_PATH
12621   shlibpath_overrides_runpath=yes
12622   ;;
12623
12624 openbsd*)
12625   version_type=sunos
12626   sys_lib_dlsearch_path_spec="/usr/lib"
12627   need_lib_prefix=no
12628   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12629   case $host_os in
12630     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12631     *)                         need_version=no  ;;
12632   esac
12633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12635   shlibpath_var=LD_LIBRARY_PATH
12636   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12637     case $host_os in
12638       openbsd2.[89] | openbsd2.[89].*)
12639         shlibpath_overrides_runpath=no
12640         ;;
12641       *)
12642         shlibpath_overrides_runpath=yes
12643         ;;
12644       esac
12645   else
12646     shlibpath_overrides_runpath=yes
12647   fi
12648   ;;
12649
12650 os2*)
12651   libname_spec='$name'
12652   shrext_cmds=".dll"
12653   need_lib_prefix=no
12654   library_names_spec='$libname${shared_ext} $libname.a'
12655   dynamic_linker='OS/2 ld.exe'
12656   shlibpath_var=LIBPATH
12657   ;;
12658
12659 osf3* | osf4* | osf5*)
12660   version_type=osf
12661   need_lib_prefix=no
12662   need_version=no
12663   soname_spec='${libname}${release}${shared_ext}$major'
12664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665   shlibpath_var=LD_LIBRARY_PATH
12666   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12667   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12668   ;;
12669
12670 solaris*)
12671   version_type=linux
12672   need_lib_prefix=no
12673   need_version=no
12674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675   soname_spec='${libname}${release}${shared_ext}$major'
12676   shlibpath_var=LD_LIBRARY_PATH
12677   shlibpath_overrides_runpath=yes
12678   hardcode_into_libs=yes
12679   # ldd complains unless libraries are executable
12680   postinstall_cmds='chmod +x $lib'
12681   ;;
12682
12683 sunos4*)
12684   version_type=sunos
12685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12686   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12687   shlibpath_var=LD_LIBRARY_PATH
12688   shlibpath_overrides_runpath=yes
12689   if test "$with_gnu_ld" = yes; then
12690     need_lib_prefix=no
12691   fi
12692   need_version=yes
12693   ;;
12694
12695 sysv4 | sysv4.3*)
12696   version_type=linux
12697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12698   soname_spec='${libname}${release}${shared_ext}$major'
12699   shlibpath_var=LD_LIBRARY_PATH
12700   case $host_vendor in
12701     sni)
12702       shlibpath_overrides_runpath=no
12703       need_lib_prefix=no
12704       export_dynamic_flag_spec='${wl}-Blargedynsym'
12705       runpath_var=LD_RUN_PATH
12706       ;;
12707     siemens)
12708       need_lib_prefix=no
12709       ;;
12710     motorola)
12711       need_lib_prefix=no
12712       need_version=no
12713       shlibpath_overrides_runpath=no
12714       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12715       ;;
12716   esac
12717   ;;
12718
12719 sysv4*MP*)
12720   if test -d /usr/nec ;then
12721     version_type=linux
12722     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12723     soname_spec='$libname${shared_ext}.$major'
12724     shlibpath_var=LD_LIBRARY_PATH
12725   fi
12726   ;;
12727
12728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12729   version_type=freebsd-elf
12730   need_lib_prefix=no
12731   need_version=no
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12733   soname_spec='${libname}${release}${shared_ext}$major'
12734   shlibpath_var=LD_LIBRARY_PATH
12735   hardcode_into_libs=yes
12736   if test "$with_gnu_ld" = yes; then
12737     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12738     shlibpath_overrides_runpath=no
12739   else
12740     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12741     shlibpath_overrides_runpath=yes
12742     case $host_os in
12743       sco3.2v5*)
12744         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12745         ;;
12746     esac
12747   fi
12748   sys_lib_dlsearch_path_spec='/usr/lib'
12749   ;;
12750
12751 uts4*)
12752   version_type=linux
12753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754   soname_spec='${libname}${release}${shared_ext}$major'
12755   shlibpath_var=LD_LIBRARY_PATH
12756   ;;
12757
12758 *)
12759   dynamic_linker=no
12760   ;;
12761 esac
12762 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12763 echo "${ECHO_T}$dynamic_linker" >&6
12764 test "$dynamic_linker" = no && can_build_shared=no
12765
12766 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12767 if test "$GCC" = yes; then
12768   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12769 fi
12770
12771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12773 hardcode_action_CXX=
12774 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12775    test -n "$runpath_var_CXX" || \
12776    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12777
12778   # We can hardcode non-existant directories.
12779   if test "$hardcode_direct_CXX" != no &&
12780      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12781      # have to relink, otherwise we might link with an installed library
12782      # when we should be linking with a yet-to-be-installed one
12783      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12784      test "$hardcode_minus_L_CXX" != no; then
12785     # Linking always hardcodes the temporary library directory.
12786     hardcode_action_CXX=relink
12787   else
12788     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12789     hardcode_action_CXX=immediate
12790   fi
12791 else
12792   # We cannot hardcode anything, or else we can only hardcode existing
12793   # directories.
12794   hardcode_action_CXX=unsupported
12795 fi
12796 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12797 echo "${ECHO_T}$hardcode_action_CXX" >&6
12798
12799 if test "$hardcode_action_CXX" = relink; then
12800   # Fast installation is not supported
12801   enable_fast_install=no
12802 elif test "$shlibpath_overrides_runpath" = yes ||
12803      test "$enable_shared" = no; then
12804   # Fast installation is not necessary
12805   enable_fast_install=needless
12806 fi
12807
12808
12809 # The else clause should only fire when bootstrapping the
12810 # libtool distribution, otherwise you forgot to ship ltmain.sh
12811 # with your package, and you will get complaints that there are
12812 # no rules to generate ltmain.sh.
12813 if test -f "$ltmain"; then
12814   # See if we are running on zsh, and set the options which allow our commands through
12815   # without removal of \ escapes.
12816   if test -n "${ZSH_VERSION+set}" ; then
12817     setopt NO_GLOB_SUBST
12818   fi
12819   # Now quote all the things that may contain metacharacters while being
12820   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12821   # variables and quote the copies for generation of the libtool script.
12822   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12823     SED SHELL STRIP \
12824     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12825     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12826     deplibs_check_method reload_flag reload_cmds need_locks \
12827     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12828     lt_cv_sys_global_symbol_to_c_name_address \
12829     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12830     old_postinstall_cmds old_postuninstall_cmds \
12831     compiler_CXX \
12832     CC_CXX \
12833     LD_CXX \
12834     lt_prog_compiler_wl_CXX \
12835     lt_prog_compiler_pic_CXX \
12836     lt_prog_compiler_static_CXX \
12837     lt_prog_compiler_no_builtin_flag_CXX \
12838     export_dynamic_flag_spec_CXX \
12839     thread_safe_flag_spec_CXX \
12840     whole_archive_flag_spec_CXX \
12841     enable_shared_with_static_runtimes_CXX \
12842     old_archive_cmds_CXX \
12843     old_archive_from_new_cmds_CXX \
12844     predep_objects_CXX \
12845     postdep_objects_CXX \
12846     predeps_CXX \
12847     postdeps_CXX \
12848     compiler_lib_search_path_CXX \
12849     archive_cmds_CXX \
12850     archive_expsym_cmds_CXX \
12851     postinstall_cmds_CXX \
12852     postuninstall_cmds_CXX \
12853     old_archive_from_expsyms_cmds_CXX \
12854     allow_undefined_flag_CXX \
12855     no_undefined_flag_CXX \
12856     export_symbols_cmds_CXX \
12857     hardcode_libdir_flag_spec_CXX \
12858     hardcode_libdir_flag_spec_ld_CXX \
12859     hardcode_libdir_separator_CXX \
12860     hardcode_automatic_CXX \
12861     module_cmds_CXX \
12862     module_expsym_cmds_CXX \
12863     lt_cv_prog_compiler_c_o_CXX \
12864     exclude_expsyms_CXX \
12865     include_expsyms_CXX; do
12866
12867     case $var in
12868     old_archive_cmds_CXX | \
12869     old_archive_from_new_cmds_CXX | \
12870     archive_cmds_CXX | \
12871     archive_expsym_cmds_CXX | \
12872     module_cmds_CXX | \
12873     module_expsym_cmds_CXX | \
12874     old_archive_from_expsyms_cmds_CXX | \
12875     export_symbols_cmds_CXX | \
12876     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12877     postinstall_cmds | postuninstall_cmds | \
12878     old_postinstall_cmds | old_postuninstall_cmds | \
12879     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12880       # Double-quote double-evaled strings.
12881       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12882       ;;
12883     *)
12884       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12885       ;;
12886     esac
12887   done
12888
12889   case $lt_echo in
12890   *'\$0 --fallback-echo"')
12891     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12892     ;;
12893   esac
12894
12895 cfgfile="$ofile"
12896
12897   cat <<__EOF__ >> "$cfgfile"
12898 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12899
12900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12901
12902 # Shell to use when invoking shell scripts.
12903 SHELL=$lt_SHELL
12904
12905 # Whether or not to build shared libraries.
12906 build_libtool_libs=$enable_shared
12907
12908 # Whether or not to build static libraries.
12909 build_old_libs=$enable_static
12910
12911 # Whether or not to add -lc for building shared libraries.
12912 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12913
12914 # Whether or not to disallow shared libs when runtime libs are static
12915 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12916
12917 # Whether or not to optimize for fast installation.
12918 fast_install=$enable_fast_install
12919
12920 # The host system.
12921 host_alias=$host_alias
12922 host=$host
12923 host_os=$host_os
12924
12925 # The build system.
12926 build_alias=$build_alias
12927 build=$build
12928 build_os=$build_os
12929
12930 # An echo program that does not interpret backslashes.
12931 echo=$lt_echo
12932
12933 # The archiver.
12934 AR=$lt_AR
12935 AR_FLAGS=$lt_AR_FLAGS
12936
12937 # A C compiler.
12938 LTCC=$lt_LTCC
12939
12940 # LTCC compiler flags.
12941 LTCFLAGS=$lt_LTCFLAGS
12942
12943 # A language-specific compiler.
12944 CC=$lt_compiler_CXX
12945
12946 # Is the compiler the GNU C compiler?
12947 with_gcc=$GCC_CXX
12948
12949 # An ERE matcher.
12950 EGREP=$lt_EGREP
12951
12952 # The linker used to build libraries.
12953 LD=$lt_LD_CXX
12954
12955 # Whether we need hard or soft links.
12956 LN_S=$lt_LN_S
12957
12958 # A BSD-compatible nm program.
12959 NM=$lt_NM
12960
12961 # A symbol stripping program
12962 STRIP=$lt_STRIP
12963
12964 # Used to examine libraries when file_magic_cmd begins "file"
12965 MAGIC_CMD=$MAGIC_CMD
12966
12967 # Used on cygwin: DLL creation program.
12968 DLLTOOL="$DLLTOOL"
12969
12970 # Used on cygwin: object dumper.
12971 OBJDUMP="$OBJDUMP"
12972
12973 # Used on cygwin: assembler.
12974 AS="$AS"
12975
12976 # The name of the directory that contains temporary libtool files.
12977 objdir=$objdir
12978
12979 # How to create reloadable object files.
12980 reload_flag=$lt_reload_flag
12981 reload_cmds=$lt_reload_cmds
12982
12983 # How to pass a linker flag through the compiler.
12984 wl=$lt_lt_prog_compiler_wl_CXX
12985
12986 # Object file suffix (normally "o").
12987 objext="$ac_objext"
12988
12989 # Old archive suffix (normally "a").
12990 libext="$libext"
12991
12992 # Shared library suffix (normally ".so").
12993 shrext_cmds='$shrext_cmds'
12994
12995 # Executable file suffix (normally "").
12996 exeext="$exeext"
12997
12998 # Additional compiler flags for building library objects.
12999 pic_flag=$lt_lt_prog_compiler_pic_CXX
13000 pic_mode=$pic_mode
13001
13002 # What is the maximum length of a command?
13003 max_cmd_len=$lt_cv_sys_max_cmd_len
13004
13005 # Does compiler simultaneously support -c and -o options?
13006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13007
13008 # Must we lock files when doing compilation?
13009 need_locks=$lt_need_locks
13010
13011 # Do we need the lib prefix for modules?
13012 need_lib_prefix=$need_lib_prefix
13013
13014 # Do we need a version for libraries?
13015 need_version=$need_version
13016
13017 # Whether dlopen is supported.
13018 dlopen_support=$enable_dlopen
13019
13020 # Whether dlopen of programs is supported.
13021 dlopen_self=$enable_dlopen_self
13022
13023 # Whether dlopen of statically linked programs is supported.
13024 dlopen_self_static=$enable_dlopen_self_static
13025
13026 # Compiler flag to prevent dynamic linking.
13027 link_static_flag=$lt_lt_prog_compiler_static_CXX
13028
13029 # Compiler flag to turn off builtin functions.
13030 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13031
13032 # Compiler flag to allow reflexive dlopens.
13033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13034
13035 # Compiler flag to generate shared objects directly from archives.
13036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13037
13038 # Compiler flag to generate thread-safe objects.
13039 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13040
13041 # Library versioning type.
13042 version_type=$version_type
13043
13044 # Format of library name prefix.
13045 libname_spec=$lt_libname_spec
13046
13047 # List of archive names.  First name is the real one, the rest are links.
13048 # The last name is the one that the linker finds with -lNAME.
13049 library_names_spec=$lt_library_names_spec
13050
13051 # The coded name of the library, if different from the real name.
13052 soname_spec=$lt_soname_spec
13053
13054 # Commands used to build and install an old-style archive.
13055 RANLIB=$lt_RANLIB
13056 old_archive_cmds=$lt_old_archive_cmds_CXX
13057 old_postinstall_cmds=$lt_old_postinstall_cmds
13058 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13059
13060 # Create an old-style archive from a shared archive.
13061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13062
13063 # Create a temporary old-style archive to link instead of a shared archive.
13064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13065
13066 # Commands used to build and install a shared archive.
13067 archive_cmds=$lt_archive_cmds_CXX
13068 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13069 postinstall_cmds=$lt_postinstall_cmds
13070 postuninstall_cmds=$lt_postuninstall_cmds
13071
13072 # Commands used to build a loadable module (assumed same as above if empty)
13073 module_cmds=$lt_module_cmds_CXX
13074 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13075
13076 # Commands to strip libraries.
13077 old_striplib=$lt_old_striplib
13078 striplib=$lt_striplib
13079
13080 # Dependencies to place before the objects being linked to create a
13081 # shared library.
13082 predep_objects=$lt_predep_objects_CXX
13083
13084 # Dependencies to place after the objects being linked to create a
13085 # shared library.
13086 postdep_objects=$lt_postdep_objects_CXX
13087
13088 # Dependencies to place before the objects being linked to create a
13089 # shared library.
13090 predeps=$lt_predeps_CXX
13091
13092 # Dependencies to place after the objects being linked to create a
13093 # shared library.
13094 postdeps=$lt_postdeps_CXX
13095
13096 # The library search path used internally by the compiler when linking
13097 # a shared library.
13098 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13099
13100 # Method to check whether dependent libraries are shared objects.
13101 deplibs_check_method=$lt_deplibs_check_method
13102
13103 # Command to use when deplibs_check_method == file_magic.
13104 file_magic_cmd=$lt_file_magic_cmd
13105
13106 # Flag that allows shared libraries with undefined symbols to be built.
13107 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13108
13109 # Flag that forces no undefined symbols.
13110 no_undefined_flag=$lt_no_undefined_flag_CXX
13111
13112 # Commands used to finish a libtool library installation in a directory.
13113 finish_cmds=$lt_finish_cmds
13114
13115 # Same as above, but a single script fragment to be evaled but not shown.
13116 finish_eval=$lt_finish_eval
13117
13118 # Take the output of nm and produce a listing of raw symbols and C names.
13119 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13120
13121 # Transform the output of nm in a proper C declaration
13122 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13123
13124 # Transform the output of nm in a C name address pair
13125 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13126
13127 # This is the shared library runtime path variable.
13128 runpath_var=$runpath_var
13129
13130 # This is the shared library path variable.
13131 shlibpath_var=$shlibpath_var
13132
13133 # Is shlibpath searched before the hard-coded library search path?
13134 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13135
13136 # How to hardcode a shared library path into an executable.
13137 hardcode_action=$hardcode_action_CXX
13138
13139 # Whether we should hardcode library paths into libraries.
13140 hardcode_into_libs=$hardcode_into_libs
13141
13142 # Flag to hardcode \$libdir into a binary during linking.
13143 # This must work even if \$libdir does not exist.
13144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13145
13146 # If ld is used when linking, flag to hardcode \$libdir into
13147 # a binary during linking. This must work even if \$libdir does
13148 # not exist.
13149 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13150
13151 # Whether we need a single -rpath flag with a separated argument.
13152 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13153
13154 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13155 # resulting binary.
13156 hardcode_direct=$hardcode_direct_CXX
13157
13158 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13159 # resulting binary.
13160 hardcode_minus_L=$hardcode_minus_L_CXX
13161
13162 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13163 # the resulting binary.
13164 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13165
13166 # Set to yes if building a shared library automatically hardcodes DIR into the library
13167 # and all subsequent libraries and executables linked against it.
13168 hardcode_automatic=$hardcode_automatic_CXX
13169
13170 # Variables whose values should be saved in libtool wrapper scripts and
13171 # restored at relink time.
13172 variables_saved_for_relink="$variables_saved_for_relink"
13173
13174 # Whether libtool must link a program against all its dependency libraries.
13175 link_all_deplibs=$link_all_deplibs_CXX
13176
13177 # Compile-time system search path for libraries
13178 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13179
13180 # Run-time system search path for libraries
13181 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13182
13183 # Fix the shell variable \$srcfile for the compiler.
13184 fix_srcfile_path="$fix_srcfile_path_CXX"
13185
13186 # Set to yes if exported symbols are required.
13187 always_export_symbols=$always_export_symbols_CXX
13188
13189 # The commands to list exported symbols.
13190 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13191
13192 # The commands to extract the exported symbol list from a shared archive.
13193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13194
13195 # Symbols that should not be listed in the preloaded symbols.
13196 exclude_expsyms=$lt_exclude_expsyms_CXX
13197
13198 # Symbols that must always be exported.
13199 include_expsyms=$lt_include_expsyms_CXX
13200
13201 # ### END LIBTOOL TAG CONFIG: $tagname
13202
13203 __EOF__
13204
13205
13206 else
13207   # If there is no Makefile yet, we rely on a make rule to execute
13208   # `config.status --recheck' to rerun these tests and create the
13209   # libtool script then.
13210   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13211   if test -f "$ltmain_in"; then
13212     test -f Makefile && make "$ltmain"
13213   fi
13214 fi
13215
13216
13217 ac_ext=c
13218 ac_cpp='$CPP $CPPFLAGS'
13219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13222
13223 CC=$lt_save_CC
13224 LDCXX=$LD
13225 LD=$lt_save_LD
13226 GCC=$lt_save_GCC
13227 with_gnu_ldcxx=$with_gnu_ld
13228 with_gnu_ld=$lt_save_with_gnu_ld
13229 lt_cv_path_LDCXX=$lt_cv_path_LD
13230 lt_cv_path_LD=$lt_save_path_LD
13231 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13232 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13233
13234         else
13235           tagname=""
13236         fi
13237         ;;
13238
13239       F77)
13240         if test -n "$F77" && test "X$F77" != "Xno"; then
13241
13242 ac_ext=f
13243 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13244 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13246
13247
13248 archive_cmds_need_lc_F77=no
13249 allow_undefined_flag_F77=
13250 always_export_symbols_F77=no
13251 archive_expsym_cmds_F77=
13252 export_dynamic_flag_spec_F77=
13253 hardcode_direct_F77=no
13254 hardcode_libdir_flag_spec_F77=
13255 hardcode_libdir_flag_spec_ld_F77=
13256 hardcode_libdir_separator_F77=
13257 hardcode_minus_L_F77=no
13258 hardcode_automatic_F77=no
13259 module_cmds_F77=
13260 module_expsym_cmds_F77=
13261 link_all_deplibs_F77=unknown
13262 old_archive_cmds_F77=$old_archive_cmds
13263 no_undefined_flag_F77=
13264 whole_archive_flag_spec_F77=
13265 enable_shared_with_static_runtimes_F77=no
13266
13267 # Source file extension for f77 test sources.
13268 ac_ext=f
13269
13270 # Object file extension for compiled f77 test sources.
13271 objext=o
13272 objext_F77=$objext
13273
13274 # Code to be used in simple compile tests
13275 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13276
13277 # Code to be used in simple link tests
13278 lt_simple_link_test_code="      program t\n      end\n"
13279
13280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13281
13282 # If no C compiler was specified, use CC.
13283 LTCC=${LTCC-"$CC"}
13284
13285 # If no C compiler flags were specified, use CFLAGS.
13286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13287
13288 # Allow CC to be a program name with arguments.
13289 compiler=$CC
13290
13291
13292 # save warnings/boilerplate of simple test code
13293 ac_outfile=conftest.$ac_objext
13294 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13296 _lt_compiler_boilerplate=`cat conftest.err`
13297 $rm conftest*
13298
13299 ac_outfile=conftest.$ac_objext
13300 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13302 _lt_linker_boilerplate=`cat conftest.err`
13303 $rm conftest*
13304
13305
13306 # Allow CC to be a program name with arguments.
13307 lt_save_CC="$CC"
13308 CC=${F77-"f77"}
13309 compiler=$CC
13310 compiler_F77=$CC
13311 for cc_temp in $compiler""; do
13312   case $cc_temp in
13313     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13314     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13315     \-*) ;;
13316     *) break;;
13317   esac
13318 done
13319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13320
13321
13322 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13323 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13324 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13325 echo "${ECHO_T}$can_build_shared" >&6
13326
13327 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13328 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13329 test "$can_build_shared" = "no" && enable_shared=no
13330
13331 # On AIX, shared libraries and static libraries use the same namespace, and
13332 # are all built from PIC.
13333 case $host_os in
13334 aix3*)
13335   test "$enable_shared" = yes && enable_static=no
13336   if test -n "$RANLIB"; then
13337     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13338     postinstall_cmds='$RANLIB $lib'
13339   fi
13340   ;;
13341 aix4* | aix5*)
13342   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13343     test "$enable_shared" = yes && enable_static=no
13344   fi
13345   ;;
13346 esac
13347 echo "$as_me:$LINENO: result: $enable_shared" >&5
13348 echo "${ECHO_T}$enable_shared" >&6
13349
13350 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13351 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13352 # Make sure either enable_shared or enable_static is yes.
13353 test "$enable_shared" = yes || enable_static=yes
13354 echo "$as_me:$LINENO: result: $enable_static" >&5
13355 echo "${ECHO_T}$enable_static" >&6
13356
13357 GCC_F77="$G77"
13358 LD_F77="$LD"
13359
13360 lt_prog_compiler_wl_F77=
13361 lt_prog_compiler_pic_F77=
13362 lt_prog_compiler_static_F77=
13363
13364 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13365 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13366
13367   if test "$GCC" = yes; then
13368     lt_prog_compiler_wl_F77='-Wl,'
13369     lt_prog_compiler_static_F77='-static'
13370
13371     case $host_os in
13372       aix*)
13373       # All AIX code is PIC.
13374       if test "$host_cpu" = ia64; then
13375         # AIX 5 now supports IA64 processor
13376         lt_prog_compiler_static_F77='-Bstatic'
13377       fi
13378       ;;
13379
13380     amigaos*)
13381       # FIXME: we need at least 68020 code to build shared libraries, but
13382       # adding the `-m68020' flag to GCC prevents building anything better,
13383       # like `-m68040'.
13384       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13385       ;;
13386
13387     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13388       # PIC is the default for these OSes.
13389       ;;
13390
13391     mingw* | pw32* | os2*)
13392       # This hack is so that the source file can tell whether it is being
13393       # built for inclusion in a dll (and should export symbols for example).
13394       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13395       ;;
13396
13397     darwin* | rhapsody*)
13398       # PIC is the default on this platform
13399       # Common symbols not allowed in MH_DYLIB files
13400       lt_prog_compiler_pic_F77='-fno-common'
13401       ;;
13402
13403     interix3*)
13404       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13405       # Instead, we relocate shared libraries at runtime.
13406       ;;
13407
13408     msdosdjgpp*)
13409       # Just because we use GCC doesn't mean we suddenly get shared libraries
13410       # on systems that don't support them.
13411       lt_prog_compiler_can_build_shared_F77=no
13412       enable_shared=no
13413       ;;
13414
13415     sysv4*MP*)
13416       if test -d /usr/nec; then
13417         lt_prog_compiler_pic_F77=-Kconform_pic
13418       fi
13419       ;;
13420
13421     hpux*)
13422       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13423       # not for PA HP-UX.
13424       case $host_cpu in
13425       hppa*64*|ia64*)
13426         # +Z the default
13427         ;;
13428       *)
13429         lt_prog_compiler_pic_F77='-fPIC'
13430         ;;
13431       esac
13432       ;;
13433
13434     *)
13435       lt_prog_compiler_pic_F77='-fPIC'
13436       ;;
13437     esac
13438   else
13439     # PORTME Check for flag to pass linker flags through the system compiler.
13440     case $host_os in
13441     aix*)
13442       lt_prog_compiler_wl_F77='-Wl,'
13443       if test "$host_cpu" = ia64; then
13444         # AIX 5 now supports IA64 processor
13445         lt_prog_compiler_static_F77='-Bstatic'
13446       else
13447         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13448       fi
13449       ;;
13450       darwin*)
13451         # PIC is the default on this platform
13452         # Common symbols not allowed in MH_DYLIB files
13453        case $cc_basename in
13454          xlc*)
13455          lt_prog_compiler_pic_F77='-qnocommon'
13456          lt_prog_compiler_wl_F77='-Wl,'
13457          ;;
13458        esac
13459        ;;
13460
13461     mingw* | pw32* | os2*)
13462       # This hack is so that the source file can tell whether it is being
13463       # built for inclusion in a dll (and should export symbols for example).
13464       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13465       ;;
13466
13467     hpux9* | hpux10* | hpux11*)
13468       lt_prog_compiler_wl_F77='-Wl,'
13469       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13470       # not for PA HP-UX.
13471       case $host_cpu in
13472       hppa*64*|ia64*)
13473         # +Z the default
13474         ;;
13475       *)
13476         lt_prog_compiler_pic_F77='+Z'
13477         ;;
13478       esac
13479       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13480       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13481       ;;
13482
13483     irix5* | irix6* | nonstopux*)
13484       lt_prog_compiler_wl_F77='-Wl,'
13485       # PIC (with -KPIC) is the default.
13486       lt_prog_compiler_static_F77='-non_shared'
13487       ;;
13488
13489     newsos6)
13490       lt_prog_compiler_pic_F77='-KPIC'
13491       lt_prog_compiler_static_F77='-Bstatic'
13492       ;;
13493
13494     linux*)
13495       case $cc_basename in
13496       icc* | ecc*)
13497         lt_prog_compiler_wl_F77='-Wl,'
13498         lt_prog_compiler_pic_F77='-KPIC'
13499         lt_prog_compiler_static_F77='-static'
13500         ;;
13501       pgcc* | pgf77* | pgf90* | pgf95*)
13502         # Portland Group compilers (*not* the Pentium gcc compiler,
13503         # which looks to be a dead project)
13504         lt_prog_compiler_wl_F77='-Wl,'
13505         lt_prog_compiler_pic_F77='-fpic'
13506         lt_prog_compiler_static_F77='-Bstatic'
13507         ;;
13508       ccc*)
13509         lt_prog_compiler_wl_F77='-Wl,'
13510         # All Alpha code is PIC.
13511         lt_prog_compiler_static_F77='-non_shared'
13512         ;;
13513       esac
13514       ;;
13515
13516     osf3* | osf4* | osf5*)
13517       lt_prog_compiler_wl_F77='-Wl,'
13518       # All OSF/1 code is PIC.
13519       lt_prog_compiler_static_F77='-non_shared'
13520       ;;
13521
13522     solaris*)
13523       lt_prog_compiler_pic_F77='-KPIC'
13524       lt_prog_compiler_static_F77='-Bstatic'
13525       case $cc_basename in
13526       f77* | f90* | f95*)
13527         lt_prog_compiler_wl_F77='-Qoption ld ';;
13528       *)
13529         lt_prog_compiler_wl_F77='-Wl,';;
13530       esac
13531       ;;
13532
13533     sunos4*)
13534       lt_prog_compiler_wl_F77='-Qoption ld '
13535       lt_prog_compiler_pic_F77='-PIC'
13536       lt_prog_compiler_static_F77='-Bstatic'
13537       ;;
13538
13539     sysv4 | sysv4.2uw2* | sysv4.3*)
13540       lt_prog_compiler_wl_F77='-Wl,'
13541       lt_prog_compiler_pic_F77='-KPIC'
13542       lt_prog_compiler_static_F77='-Bstatic'
13543       ;;
13544
13545     sysv4*MP*)
13546       if test -d /usr/nec ;then
13547         lt_prog_compiler_pic_F77='-Kconform_pic'
13548         lt_prog_compiler_static_F77='-Bstatic'
13549       fi
13550       ;;
13551
13552     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13553       lt_prog_compiler_wl_F77='-Wl,'
13554       lt_prog_compiler_pic_F77='-KPIC'
13555       lt_prog_compiler_static_F77='-Bstatic'
13556       ;;
13557
13558     unicos*)
13559       lt_prog_compiler_wl_F77='-Wl,'
13560       lt_prog_compiler_can_build_shared_F77=no
13561       ;;
13562
13563     uts4*)
13564       lt_prog_compiler_pic_F77='-pic'
13565       lt_prog_compiler_static_F77='-Bstatic'
13566       ;;
13567
13568     *)
13569       lt_prog_compiler_can_build_shared_F77=no
13570       ;;
13571     esac
13572   fi
13573
13574 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13575 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13576
13577 #
13578 # Check to make sure the PIC flag actually works.
13579 #
13580 if test -n "$lt_prog_compiler_pic_F77"; then
13581
13582 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13583 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13584 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587   lt_prog_compiler_pic_works_F77=no
13588   ac_outfile=conftest.$ac_objext
13589    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13590    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13591    # Insert the option either (1) after the last *FLAGS variable, or
13592    # (2) before a word containing "conftest.", or (3) at the end.
13593    # Note that $ac_compile itself does not contain backslashes and begins
13594    # with a dollar sign (not a hyphen), so the echo should work correctly.
13595    # The option is referenced via a variable to avoid confusing sed.
13596    lt_compile=`echo "$ac_compile" | $SED \
13597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13599    -e 's:$: $lt_compiler_flag:'`
13600    (eval echo "\"\$as_me:13600: $lt_compile\"" >&5)
13601    (eval "$lt_compile" 2>conftest.err)
13602    ac_status=$?
13603    cat conftest.err >&5
13604    echo "$as_me:13604: \$? = $ac_status" >&5
13605    if (exit $ac_status) && test -s "$ac_outfile"; then
13606      # The compiler can only warn and ignore the option if not recognized
13607      # So say no if there are warnings other than the usual output.
13608      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13609      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13610      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13611        lt_prog_compiler_pic_works_F77=yes
13612      fi
13613    fi
13614    $rm conftest*
13615
13616 fi
13617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13618 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13619
13620 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13621     case $lt_prog_compiler_pic_F77 in
13622      "" | " "*) ;;
13623      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13624      esac
13625 else
13626     lt_prog_compiler_pic_F77=
13627      lt_prog_compiler_can_build_shared_F77=no
13628 fi
13629
13630 fi
13631 case $host_os in
13632   # For platforms which do not support PIC, -DPIC is meaningless:
13633   *djgpp*)
13634     lt_prog_compiler_pic_F77=
13635     ;;
13636   *)
13637     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13638     ;;
13639 esac
13640
13641 #
13642 # Check to make sure the static flag actually works.
13643 #
13644 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13645 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13646 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13647 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13648   echo $ECHO_N "(cached) $ECHO_C" >&6
13649 else
13650   lt_prog_compiler_static_works_F77=no
13651    save_LDFLAGS="$LDFLAGS"
13652    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13653    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13654    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13655      # The linker can only warn and ignore the option if not recognized
13656      # So say no if there are warnings
13657      if test -s conftest.err; then
13658        # Append any errors to the config.log.
13659        cat conftest.err 1>&5
13660        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13661        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13662        if diff conftest.exp conftest.er2 >/dev/null; then
13663          lt_prog_compiler_static_works_F77=yes
13664        fi
13665      else
13666        lt_prog_compiler_static_works_F77=yes
13667      fi
13668    fi
13669    $rm conftest*
13670    LDFLAGS="$save_LDFLAGS"
13671
13672 fi
13673 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13674 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13675
13676 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13677     :
13678 else
13679     lt_prog_compiler_static_F77=
13680 fi
13681
13682
13683 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13684 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13685 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13686   echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688   lt_cv_prog_compiler_c_o_F77=no
13689    $rm -r conftest 2>/dev/null
13690    mkdir conftest
13691    cd conftest
13692    mkdir out
13693    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13694
13695    lt_compiler_flag="-o out/conftest2.$ac_objext"
13696    # Insert the option either (1) after the last *FLAGS variable, or
13697    # (2) before a word containing "conftest.", or (3) at the end.
13698    # Note that $ac_compile itself does not contain backslashes and begins
13699    # with a dollar sign (not a hyphen), so the echo should work correctly.
13700    lt_compile=`echo "$ac_compile" | $SED \
13701    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13702    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13703    -e 's:$: $lt_compiler_flag:'`
13704    (eval echo "\"\$as_me:13704: $lt_compile\"" >&5)
13705    (eval "$lt_compile" 2>out/conftest.err)
13706    ac_status=$?
13707    cat out/conftest.err >&5
13708    echo "$as_me:13708: \$? = $ac_status" >&5
13709    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13710    then
13711      # The compiler can only warn and ignore the option if not recognized
13712      # So say no if there are warnings
13713      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13714      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13715      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13716        lt_cv_prog_compiler_c_o_F77=yes
13717      fi
13718    fi
13719    chmod u+w . 2>&5
13720    $rm conftest*
13721    # SGI C++ compiler will create directory out/ii_files/ for
13722    # template instantiation
13723    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13724    $rm out/* && rmdir out
13725    cd ..
13726    rmdir conftest
13727    $rm conftest*
13728
13729 fi
13730 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13731 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13732
13733
13734 hard_links="nottested"
13735 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13736   # do not overwrite the value of need_locks provided by the user
13737   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13738 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13739   hard_links=yes
13740   $rm conftest*
13741   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13742   touch conftest.a
13743   ln conftest.a conftest.b 2>&5 || hard_links=no
13744   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13745   echo "$as_me:$LINENO: result: $hard_links" >&5
13746 echo "${ECHO_T}$hard_links" >&6
13747   if test "$hard_links" = no; then
13748     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13749 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13750     need_locks=warn
13751   fi
13752 else
13753   need_locks=no
13754 fi
13755
13756 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13757 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13758
13759   runpath_var=
13760   allow_undefined_flag_F77=
13761   enable_shared_with_static_runtimes_F77=no
13762   archive_cmds_F77=
13763   archive_expsym_cmds_F77=
13764   old_archive_From_new_cmds_F77=
13765   old_archive_from_expsyms_cmds_F77=
13766   export_dynamic_flag_spec_F77=
13767   whole_archive_flag_spec_F77=
13768   thread_safe_flag_spec_F77=
13769   hardcode_libdir_flag_spec_F77=
13770   hardcode_libdir_flag_spec_ld_F77=
13771   hardcode_libdir_separator_F77=
13772   hardcode_direct_F77=no
13773   hardcode_minus_L_F77=no
13774   hardcode_shlibpath_var_F77=unsupported
13775   link_all_deplibs_F77=unknown
13776   hardcode_automatic_F77=no
13777   module_cmds_F77=
13778   module_expsym_cmds_F77=
13779   always_export_symbols_F77=no
13780   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13781   # include_expsyms should be a list of space-separated symbols to be *always*
13782   # included in the symbol list
13783   include_expsyms_F77=
13784   # exclude_expsyms can be an extended regexp of symbols to exclude
13785   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13786   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13787   # as well as any symbol that contains `d'.
13788   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13789   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13790   # platforms (ab)use it in PIC code, but their linkers get confused if
13791   # the symbol is explicitly referenced.  Since portable code cannot
13792   # rely on this symbol name, it's probably fine to never include it in
13793   # preloaded symbol tables.
13794   extract_expsyms_cmds=
13795   # Just being paranoid about ensuring that cc_basename is set.
13796   for cc_temp in $compiler""; do
13797   case $cc_temp in
13798     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13799     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13800     \-*) ;;
13801     *) break;;
13802   esac
13803 done
13804 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13805
13806   case $host_os in
13807   cygwin* | mingw* | pw32*)
13808     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13809     # When not using gcc, we currently assume that we are using
13810     # Microsoft Visual C++.
13811     if test "$GCC" != yes; then
13812       with_gnu_ld=no
13813     fi
13814     ;;
13815   interix*)
13816     # we just hope/assume this is gcc and not c89 (= MSVC++)
13817     with_gnu_ld=yes
13818     ;;
13819   openbsd*)
13820     with_gnu_ld=no
13821     ;;
13822   esac
13823
13824   ld_shlibs_F77=yes
13825   if test "$with_gnu_ld" = yes; then
13826     # If archive_cmds runs LD, not CC, wlarc should be empty
13827     wlarc='${wl}'
13828
13829     # Set some defaults for GNU ld with shared library support. These
13830     # are reset later if shared libraries are not supported. Putting them
13831     # here allows them to be overridden if necessary.
13832     runpath_var=LD_RUN_PATH
13833     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13834     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13835     # ancient GNU ld didn't support --whole-archive et. al.
13836     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13837         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13838       else
13839         whole_archive_flag_spec_F77=
13840     fi
13841     supports_anon_versioning=no
13842     case `$LD -v 2>/dev/null` in
13843       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13844       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13845       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13846       *\ 2.11.*) ;; # other 2.11 versions
13847       *) supports_anon_versioning=yes ;;
13848     esac
13849
13850     # See if GNU ld supports shared libraries.
13851     case $host_os in
13852     aix3* | aix4* | aix5*)
13853       # On AIX/PPC, the GNU linker is very broken
13854       if test "$host_cpu" != ia64; then
13855         ld_shlibs_F77=no
13856         cat <<EOF 1>&2
13857
13858 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13859 *** to be unable to reliably create shared libraries on AIX.
13860 *** Therefore, libtool is disabling shared libraries support.  If you
13861 *** really care for shared libraries, you may want to modify your PATH
13862 *** so that a non-GNU linker is found, and then restart.
13863
13864 EOF
13865       fi
13866       ;;
13867
13868     amigaos*)
13869       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)'
13870       hardcode_libdir_flag_spec_F77='-L$libdir'
13871       hardcode_minus_L_F77=yes
13872
13873       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13874       # that the semantics of dynamic libraries on AmigaOS, at least up
13875       # to version 4, is to share data among multiple programs linked
13876       # with the same dynamic library.  Since this doesn't match the
13877       # behavior of shared libraries on other platforms, we can't use
13878       # them.
13879       ld_shlibs_F77=no
13880       ;;
13881
13882     beos*)
13883       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13884         allow_undefined_flag_F77=unsupported
13885         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13886         # support --undefined.  This deserves some investigation.  FIXME
13887         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888       else
13889         ld_shlibs_F77=no
13890       fi
13891       ;;
13892
13893     cygwin* | mingw* | pw32*)
13894       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13895       # as there is no search path for DLLs.
13896       hardcode_libdir_flag_spec_F77='-L$libdir'
13897       allow_undefined_flag_F77=unsupported
13898       always_export_symbols_F77=no
13899       enable_shared_with_static_runtimes_F77=yes
13900       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13901
13902       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13903         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13904         # If the export-symbols file already is a .def file (1st line
13905         # is EXPORTS), use it as is; otherwise, prepend...
13906         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13907           cp $export_symbols $output_objdir/$soname.def;
13908         else
13909           echo EXPORTS > $output_objdir/$soname.def;
13910           cat $export_symbols >> $output_objdir/$soname.def;
13911         fi~
13912         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13913       else
13914         ld_shlibs_F77=no
13915       fi
13916       ;;
13917
13918     interix3*)
13919       hardcode_direct_F77=no
13920       hardcode_shlibpath_var_F77=no
13921       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13922       export_dynamic_flag_spec_F77='${wl}-E'
13923       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13924       # Instead, shared libraries are loaded at an image base (0x10000000 by
13925       # default) and relocated if they conflict, which is a slow very memory
13926       # consuming and fragmenting process.  To avoid this, we pick a random,
13927       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13928       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13929       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'
13930       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'
13931       ;;
13932
13933     linux*)
13934       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13935         tmp_addflag=
13936         case $cc_basename,$host_cpu in
13937         pgcc*)                          # Portland Group C compiler
13938           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'
13939           tmp_addflag=' $pic_flag'
13940           ;;
13941         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13942           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'
13943           tmp_addflag=' $pic_flag -Mnomain' ;;
13944         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13945           tmp_addflag=' -i_dynamic' ;;
13946         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13947           tmp_addflag=' -i_dynamic -nofor_main' ;;
13948         ifc* | ifort*)                  # Intel Fortran compiler
13949           tmp_addflag=' -nofor_main' ;;
13950         esac
13951         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13952
13953         if test $supports_anon_versioning = yes; then
13954           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13955   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13956   $echo "local: *; };" >> $output_objdir/$libname.ver~
13957           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13958         fi
13959       else
13960         ld_shlibs_F77=no
13961       fi
13962       ;;
13963
13964     netbsd*)
13965       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13966         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13967         wlarc=
13968       else
13969         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13970         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13971       fi
13972       ;;
13973
13974     solaris*)
13975       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13976         ld_shlibs_F77=no
13977         cat <<EOF 1>&2
13978
13979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13980 *** create shared libraries on Solaris systems.  Therefore, libtool
13981 *** is disabling shared libraries support.  We urge you to upgrade GNU
13982 *** binutils to release 2.9.1 or newer.  Another option is to modify
13983 *** your PATH or compiler configuration so that the native linker is
13984 *** used, and then restart.
13985
13986 EOF
13987       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13988         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13989         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13990       else
13991         ld_shlibs_F77=no
13992       fi
13993       ;;
13994
13995     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13996       case `$LD -v 2>&1` in
13997         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13998         ld_shlibs_F77=no
13999         cat <<_LT_EOF 1>&2
14000
14001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14002 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14003 *** is disabling shared libraries support.  We urge you to upgrade GNU
14004 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14005 *** your PATH or compiler configuration so that the native linker is
14006 *** used, and then restart.
14007
14008 _LT_EOF
14009         ;;
14010         *)
14011           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14012             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14013             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14014             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14015           else
14016             ld_shlibs_F77=no
14017           fi
14018         ;;
14019       esac
14020       ;;
14021
14022     sunos4*)
14023       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14024       wlarc=
14025       hardcode_direct_F77=yes
14026       hardcode_shlibpath_var_F77=no
14027       ;;
14028
14029     *)
14030       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14031         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14032         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14033       else
14034         ld_shlibs_F77=no
14035       fi
14036       ;;
14037     esac
14038
14039     if test "$ld_shlibs_F77" = no; then
14040       runpath_var=
14041       hardcode_libdir_flag_spec_F77=
14042       export_dynamic_flag_spec_F77=
14043       whole_archive_flag_spec_F77=
14044     fi
14045   else
14046     # PORTME fill in a description of your system's linker (not GNU ld)
14047     case $host_os in
14048     aix3*)
14049       allow_undefined_flag_F77=unsupported
14050       always_export_symbols_F77=yes
14051       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'
14052       # Note: this linker hardcodes the directories in LIBPATH if there
14053       # are no directories specified by -L.
14054       hardcode_minus_L_F77=yes
14055       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14056         # Neither direct hardcoding nor static linking is supported with a
14057         # broken collect2.
14058         hardcode_direct_F77=unsupported
14059       fi
14060       ;;
14061
14062     aix4* | aix5*)
14063       if test "$host_cpu" = ia64; then
14064         # On IA64, the linker does run time linking by default, so we don't
14065         # have to do anything special.
14066         aix_use_runtimelinking=no
14067         exp_sym_flag='-Bexport'
14068         no_entry_flag=""
14069       else
14070         # If we're using GNU nm, then we don't want the "-C" option.
14071         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14072         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14073           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'
14074         else
14075           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'
14076         fi
14077         aix_use_runtimelinking=no
14078
14079         # Test if we are trying to use run time linking or normal
14080         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14081         # need to do runtime linking.
14082         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14083           for ld_flag in $LDFLAGS; do
14084           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14085             aix_use_runtimelinking=yes
14086             break
14087           fi
14088           done
14089           ;;
14090         esac
14091
14092         exp_sym_flag='-bexport'
14093         no_entry_flag='-bnoentry'
14094       fi
14095
14096       # When large executables or shared objects are built, AIX ld can
14097       # have problems creating the table of contents.  If linking a library
14098       # or program results in "error TOC overflow" add -mminimal-toc to
14099       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14100       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14101
14102       archive_cmds_F77=''
14103       hardcode_direct_F77=yes
14104       hardcode_libdir_separator_F77=':'
14105       link_all_deplibs_F77=yes
14106
14107       if test "$GCC" = yes; then
14108         case $host_os in aix4.[012]|aix4.[012].*)
14109         # We only want to do this on AIX 4.2 and lower, the check
14110         # below for broken collect2 doesn't work under 4.3+
14111           collect2name=`${CC} -print-prog-name=collect2`
14112           if test -f "$collect2name" && \
14113            strings "$collect2name" | grep resolve_lib_name >/dev/null
14114           then
14115           # We have reworked collect2
14116           hardcode_direct_F77=yes
14117           else
14118           # We have old collect2
14119           hardcode_direct_F77=unsupported
14120           # It fails to find uninstalled libraries when the uninstalled
14121           # path is not listed in the libpath.  Setting hardcode_minus_L
14122           # to unsupported forces relinking
14123           hardcode_minus_L_F77=yes
14124           hardcode_libdir_flag_spec_F77='-L$libdir'
14125           hardcode_libdir_separator_F77=
14126           fi
14127           ;;
14128         esac
14129         shared_flag='-shared'
14130         if test "$aix_use_runtimelinking" = yes; then
14131           shared_flag="$shared_flag "'${wl}-G'
14132         fi
14133       else
14134         # not using gcc
14135         if test "$host_cpu" = ia64; then
14136         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14137         # chokes on -Wl,-G. The following line is correct:
14138           shared_flag='-G'
14139         else
14140           if test "$aix_use_runtimelinking" = yes; then
14141             shared_flag='${wl}-G'
14142           else
14143             shared_flag='${wl}-bM:SRE'
14144           fi
14145         fi
14146       fi
14147
14148       # It seems that -bexpall does not export symbols beginning with
14149       # underscore (_), so it is better to generate a list of symbols to export.
14150       always_export_symbols_F77=yes
14151       if test "$aix_use_runtimelinking" = yes; then
14152         # Warning - without using the other runtime loading flags (-brtl),
14153         # -berok will link without error, but may produce a broken library.
14154         allow_undefined_flag_F77='-berok'
14155        # Determine the default libpath from the value encoded in an empty executable.
14156        cat >conftest.$ac_ext <<_ACEOF
14157       program main
14158
14159       end
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14163   (eval $ac_link) 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_f77_werror_flag"
14171                          || test ! -s conftest.err'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest$ac_exeext'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183
14184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14185 }'`
14186 # Check for a 64-bit object if we didn't find anything.
14187 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; }
14188 }'`; fi
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 fi
14194 rm -f conftest.err conftest.$ac_objext \
14195       conftest$ac_exeext conftest.$ac_ext
14196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14197
14198        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14199         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"
14200        else
14201         if test "$host_cpu" = ia64; then
14202           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14203           allow_undefined_flag_F77="-z nodefs"
14204           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"
14205         else
14206          # Determine the default libpath from the value encoded in an empty executable.
14207          cat >conftest.$ac_ext <<_ACEOF
14208       program main
14209
14210       end
14211 _ACEOF
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214   (eval $ac_link) 2>conftest.er1
14215   ac_status=$?
14216   grep -v '^ *+' conftest.er1 >conftest.err
14217   rm -f conftest.er1
14218   cat conftest.err >&5
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); } &&
14221          { ac_try='test -z "$ac_f77_werror_flag"
14222                          || test ! -s conftest.err'
14223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224   (eval $ac_try) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; } &&
14228          { ac_try='test -s conftest$ac_exeext'
14229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230   (eval $ac_try) 2>&5
14231   ac_status=$?
14232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233   (exit $ac_status); }; }; then
14234
14235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14236 }'`
14237 # Check for a 64-bit object if we didn't find anything.
14238 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; }
14239 }'`; fi
14240 else
14241   echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 fi
14245 rm -f conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext conftest.$ac_ext
14247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14248
14249          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14250           # Warning - without using the other run time loading flags,
14251           # -berok will link without error, but may produce a broken library.
14252           no_undefined_flag_F77=' ${wl}-bernotok'
14253           allow_undefined_flag_F77=' ${wl}-berok'
14254           # Exported symbols can be pulled into shared objects from archives
14255           whole_archive_flag_spec_F77='$convenience'
14256           archive_cmds_need_lc_F77=yes
14257           # This is similar to how AIX traditionally builds its shared libraries.
14258           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'
14259         fi
14260       fi
14261       ;;
14262
14263     amigaos*)
14264       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)'
14265       hardcode_libdir_flag_spec_F77='-L$libdir'
14266       hardcode_minus_L_F77=yes
14267       # see comment about different semantics on the GNU ld section
14268       ld_shlibs_F77=no
14269       ;;
14270
14271     bsdi[45]*)
14272       export_dynamic_flag_spec_F77=-rdynamic
14273       ;;
14274
14275     cygwin* | mingw* | pw32*)
14276       # When not using gcc, we currently assume that we are using
14277       # Microsoft Visual C++.
14278       # hardcode_libdir_flag_spec is actually meaningless, as there is
14279       # no search path for DLLs.
14280       hardcode_libdir_flag_spec_F77=' '
14281       allow_undefined_flag_F77=unsupported
14282       # Tell ltmain to make .lib files, not .a files.
14283       libext=lib
14284       # Tell ltmain to make .dll files, not .so files.
14285       shrext_cmds=".dll"
14286       # FIXME: Setting linknames here is a bad hack.
14287       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14288       # The linker will automatically build a .lib file if we build a DLL.
14289       old_archive_From_new_cmds_F77='true'
14290       # FIXME: Should let the user specify the lib program.
14291       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14292       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14293       enable_shared_with_static_runtimes_F77=yes
14294       ;;
14295
14296     darwin* | rhapsody*)
14297       case $host_os in
14298         rhapsody* | darwin1.[012])
14299          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14300          ;;
14301        *) # Darwin 1.3 on
14302          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14303            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14304          else
14305            case ${MACOSX_DEPLOYMENT_TARGET} in
14306              10.[012])
14307                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14308                ;;
14309              10.*)
14310                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14311                ;;
14312            esac
14313          fi
14314          ;;
14315       esac
14316       archive_cmds_need_lc_F77=no
14317       hardcode_direct_F77=no
14318       hardcode_automatic_F77=yes
14319       hardcode_shlibpath_var_F77=unsupported
14320       whole_archive_flag_spec_F77=''
14321       link_all_deplibs_F77=yes
14322     if test "$GCC" = yes ; then
14323         output_verbose_link_cmd='echo'
14324         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14325       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14326       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14327       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}'
14328       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}'
14329     else
14330       case $cc_basename in
14331         xlc*)
14332          output_verbose_link_cmd='echo'
14333          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14334          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14335           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14336          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}'
14337           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}'
14338           ;;
14339        *)
14340          ld_shlibs_F77=no
14341           ;;
14342       esac
14343     fi
14344       ;;
14345
14346     dgux*)
14347       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348       hardcode_libdir_flag_spec_F77='-L$libdir'
14349       hardcode_shlibpath_var_F77=no
14350       ;;
14351
14352     freebsd1*)
14353       ld_shlibs_F77=no
14354       ;;
14355
14356     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14357     # support.  Future versions do this automatically, but an explicit c++rt0.o
14358     # does not break anything, and helps significantly (at the cost of a little
14359     # extra space).
14360     freebsd2.2*)
14361       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14362       hardcode_libdir_flag_spec_F77='-R$libdir'
14363       hardcode_direct_F77=yes
14364       hardcode_shlibpath_var_F77=no
14365       ;;
14366
14367     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14368     freebsd2*)
14369       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14370       hardcode_direct_F77=yes
14371       hardcode_minus_L_F77=yes
14372       hardcode_shlibpath_var_F77=no
14373       ;;
14374
14375     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14376     freebsd* | kfreebsd*-gnu | dragonfly*)
14377       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14378       hardcode_libdir_flag_spec_F77='-R$libdir'
14379       hardcode_direct_F77=yes
14380       hardcode_shlibpath_var_F77=no
14381       ;;
14382
14383     hpux9*)
14384       if test "$GCC" = yes; then
14385         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'
14386       else
14387         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'
14388       fi
14389       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14390       hardcode_libdir_separator_F77=:
14391       hardcode_direct_F77=yes
14392
14393       # hardcode_minus_L: Not really in the search PATH,
14394       # but as the default location of the library.
14395       hardcode_minus_L_F77=yes
14396       export_dynamic_flag_spec_F77='${wl}-E'
14397       ;;
14398
14399     hpux10*)
14400       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14401         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14402       else
14403         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14404       fi
14405       if test "$with_gnu_ld" = no; then
14406         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14407         hardcode_libdir_separator_F77=:
14408
14409         hardcode_direct_F77=yes
14410         export_dynamic_flag_spec_F77='${wl}-E'
14411
14412         # hardcode_minus_L: Not really in the search PATH,
14413         # but as the default location of the library.
14414         hardcode_minus_L_F77=yes
14415       fi
14416       ;;
14417
14418     hpux11*)
14419       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14420         case $host_cpu in
14421         hppa*64*)
14422           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14423           ;;
14424         ia64*)
14425           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14426           ;;
14427         *)
14428           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14429           ;;
14430         esac
14431       else
14432         case $host_cpu in
14433         hppa*64*)
14434           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14435           ;;
14436         ia64*)
14437           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14438           ;;
14439         *)
14440           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14441           ;;
14442         esac
14443       fi
14444       if test "$with_gnu_ld" = no; then
14445         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14446         hardcode_libdir_separator_F77=:
14447
14448         case $host_cpu in
14449         hppa*64*|ia64*)
14450           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14451           hardcode_direct_F77=no
14452           hardcode_shlibpath_var_F77=no
14453           ;;
14454         *)
14455           hardcode_direct_F77=yes
14456           export_dynamic_flag_spec_F77='${wl}-E'
14457
14458           # hardcode_minus_L: Not really in the search PATH,
14459           # but as the default location of the library.
14460           hardcode_minus_L_F77=yes
14461           ;;
14462         esac
14463       fi
14464       ;;
14465
14466     irix5* | irix6* | nonstopux*)
14467       if test "$GCC" = yes; then
14468         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'
14469       else
14470         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'
14471         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14472       fi
14473       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14474       hardcode_libdir_separator_F77=:
14475       link_all_deplibs_F77=yes
14476       ;;
14477
14478     netbsd*)
14479       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14480         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14481       else
14482         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14483       fi
14484       hardcode_libdir_flag_spec_F77='-R$libdir'
14485       hardcode_direct_F77=yes
14486       hardcode_shlibpath_var_F77=no
14487       ;;
14488
14489     newsos6)
14490       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14491       hardcode_direct_F77=yes
14492       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14493       hardcode_libdir_separator_F77=:
14494       hardcode_shlibpath_var_F77=no
14495       ;;
14496
14497     openbsd*)
14498       hardcode_direct_F77=yes
14499       hardcode_shlibpath_var_F77=no
14500       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14501         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14502         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14503         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14504         export_dynamic_flag_spec_F77='${wl}-E'
14505       else
14506        case $host_os in
14507          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14508            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14509            hardcode_libdir_flag_spec_F77='-R$libdir'
14510            ;;
14511          *)
14512            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14513            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14514            ;;
14515        esac
14516       fi
14517       ;;
14518
14519     os2*)
14520       hardcode_libdir_flag_spec_F77='-L$libdir'
14521       hardcode_minus_L_F77=yes
14522       allow_undefined_flag_F77=unsupported
14523       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'
14524       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14525       ;;
14526
14527     osf3*)
14528       if test "$GCC" = yes; then
14529         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14530         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'
14531       else
14532         allow_undefined_flag_F77=' -expect_unresolved \*'
14533         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'
14534       fi
14535       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14536       hardcode_libdir_separator_F77=:
14537       ;;
14538
14539     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14540       if test "$GCC" = yes; then
14541         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14542         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'
14543         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14544       else
14545         allow_undefined_flag_F77=' -expect_unresolved \*'
14546         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'
14547         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~
14548         $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'
14549
14550         # Both c and cxx compiler support -rpath directly
14551         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14552       fi
14553       hardcode_libdir_separator_F77=:
14554       ;;
14555
14556     solaris*)
14557       no_undefined_flag_F77=' -z text'
14558       if test "$GCC" = yes; then
14559         wlarc='${wl}'
14560         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14561         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14562           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14563       else
14564         wlarc=''
14565         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14566         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14567         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14568       fi
14569       hardcode_libdir_flag_spec_F77='-R$libdir'
14570       hardcode_shlibpath_var_F77=no
14571       case $host_os in
14572       solaris2.[0-5] | solaris2.[0-5].*) ;;
14573       *)
14574         # The compiler driver will combine linker options so we
14575         # cannot just pass the convience library names through
14576         # without $wl, iff we do not link with $LD.
14577         # Luckily, gcc supports the same syntax we need for Sun Studio.
14578         # Supported since Solaris 2.6 (maybe 2.5.1?)
14579         case $wlarc in
14580         '')
14581           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14582         *)
14583           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' ;;
14584         esac ;;
14585       esac
14586       link_all_deplibs_F77=yes
14587       ;;
14588
14589     sunos4*)
14590       if test "x$host_vendor" = xsequent; then
14591         # Use $CC to link under sequent, because it throws in some extra .o
14592         # files that make .init and .fini sections work.
14593         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14594       else
14595         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14596       fi
14597       hardcode_libdir_flag_spec_F77='-L$libdir'
14598       hardcode_direct_F77=yes
14599       hardcode_minus_L_F77=yes
14600       hardcode_shlibpath_var_F77=no
14601       ;;
14602
14603     sysv4)
14604       case $host_vendor in
14605         sni)
14606           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14607           hardcode_direct_F77=yes # is this really true???
14608         ;;
14609         siemens)
14610           ## LD is ld it makes a PLAMLIB
14611           ## CC just makes a GrossModule.
14612           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14613           reload_cmds_F77='$CC -r -o $output$reload_objs'
14614           hardcode_direct_F77=no
14615         ;;
14616         motorola)
14617           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14619         ;;
14620       esac
14621       runpath_var='LD_RUN_PATH'
14622       hardcode_shlibpath_var_F77=no
14623       ;;
14624
14625     sysv4.3*)
14626       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14627       hardcode_shlibpath_var_F77=no
14628       export_dynamic_flag_spec_F77='-Bexport'
14629       ;;
14630
14631     sysv4*MP*)
14632       if test -d /usr/nec; then
14633         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634         hardcode_shlibpath_var_F77=no
14635         runpath_var=LD_RUN_PATH
14636         hardcode_runpath_var=yes
14637         ld_shlibs_F77=yes
14638       fi
14639       ;;
14640
14641     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14642       no_undefined_flag_F77='${wl}-z,text'
14643       archive_cmds_need_lc_F77=no
14644       hardcode_shlibpath_var_F77=no
14645       runpath_var='LD_RUN_PATH'
14646
14647       if test "$GCC" = yes; then
14648         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14649         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14650       else
14651         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14652         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653       fi
14654       ;;
14655
14656     sysv5* | sco3.2v5* | sco5v6*)
14657       # Note: We can NOT use -z defs as we might desire, because we do not
14658       # link with -lc, and that would cause any symbols used from libc to
14659       # always be unresolved, which means just about no library would
14660       # ever link correctly.  If we're not using GNU ld we use -z text
14661       # though, which does catch some bad symbols but isn't as heavy-handed
14662       # as -z defs.
14663       no_undefined_flag_F77='${wl}-z,text'
14664       allow_undefined_flag_F77='${wl}-z,nodefs'
14665       archive_cmds_need_lc_F77=no
14666       hardcode_shlibpath_var_F77=no
14667       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14668       hardcode_libdir_separator_F77=':'
14669       link_all_deplibs_F77=yes
14670       export_dynamic_flag_spec_F77='${wl}-Bexport'
14671       runpath_var='LD_RUN_PATH'
14672
14673       if test "$GCC" = yes; then
14674         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14675         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14676       else
14677         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14678         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14679       fi
14680       ;;
14681
14682     uts4*)
14683       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14684       hardcode_libdir_flag_spec_F77='-L$libdir'
14685       hardcode_shlibpath_var_F77=no
14686       ;;
14687
14688     *)
14689       ld_shlibs_F77=no
14690       ;;
14691     esac
14692   fi
14693
14694 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14695 echo "${ECHO_T}$ld_shlibs_F77" >&6
14696 test "$ld_shlibs_F77" = no && can_build_shared=no
14697
14698 #
14699 # Do we need to explicitly link libc?
14700 #
14701 case "x$archive_cmds_need_lc_F77" in
14702 x|xyes)
14703   # Assume -lc should be added
14704   archive_cmds_need_lc_F77=yes
14705
14706   if test "$enable_shared" = yes && test "$GCC" = yes; then
14707     case $archive_cmds_F77 in
14708     *'~'*)
14709       # FIXME: we may have to deal with multi-command sequences.
14710       ;;
14711     '$CC '*)
14712       # Test whether the compiler implicitly links with -lc since on some
14713       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14714       # to ld, don't add -lc before -lgcc.
14715       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14716 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14717       $rm conftest*
14718       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14719
14720       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721   (eval $ac_compile) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } 2>conftest.err; then
14725         soname=conftest
14726         lib=conftest
14727         libobjs=conftest.$ac_objext
14728         deplibs=
14729         wl=$lt_prog_compiler_wl_F77
14730         pic_flag=$lt_prog_compiler_pic_F77
14731         compiler_flags=-v
14732         linker_flags=-v
14733         verstring=
14734         output_objdir=.
14735         libname=conftest
14736         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14737         allow_undefined_flag_F77=
14738         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14739   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }
14743         then
14744           archive_cmds_need_lc_F77=no
14745         else
14746           archive_cmds_need_lc_F77=yes
14747         fi
14748         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14749       else
14750         cat conftest.err 1>&5
14751       fi
14752       $rm conftest*
14753       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14754 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14755       ;;
14756     esac
14757   fi
14758   ;;
14759 esac
14760
14761 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14762 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14763 library_names_spec=
14764 libname_spec='lib$name'
14765 soname_spec=
14766 shrext_cmds=".so"
14767 postinstall_cmds=
14768 postuninstall_cmds=
14769 finish_cmds=
14770 finish_eval=
14771 shlibpath_var=
14772 shlibpath_overrides_runpath=unknown
14773 version_type=none
14774 dynamic_linker="$host_os ld.so"
14775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14776 if test "$GCC" = yes; then
14777   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14778   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14779     # if the path contains ";" then we assume it to be the separator
14780     # otherwise default to the standard path separator (i.e. ":") - it is
14781     # assumed that no part of a normal pathname contains ";" but that should
14782     # okay in the real world where ";" in dirpaths is itself problematic.
14783     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14784   else
14785     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14786   fi
14787 else
14788   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14789 fi
14790 need_lib_prefix=unknown
14791 hardcode_into_libs=no
14792
14793 # when you set need_version to no, make sure it does not cause -set_version
14794 # flags to be left without arguments
14795 need_version=unknown
14796
14797 case $host_os in
14798 aix3*)
14799   version_type=linux
14800   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14801   shlibpath_var=LIBPATH
14802
14803   # AIX 3 has no versioning support, so we append a major version to the name.
14804   soname_spec='${libname}${release}${shared_ext}$major'
14805   ;;
14806
14807 aix4* | aix5*)
14808   version_type=linux
14809   need_lib_prefix=no
14810   need_version=no
14811   hardcode_into_libs=yes
14812   if test "$host_cpu" = ia64; then
14813     # AIX 5 supports IA64
14814     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14815     shlibpath_var=LD_LIBRARY_PATH
14816   else
14817     # With GCC up to 2.95.x, collect2 would create an import file
14818     # for dependence libraries.  The import file would start with
14819     # the line `#! .'.  This would cause the generated library to
14820     # depend on `.', always an invalid library.  This was fixed in
14821     # development snapshots of GCC prior to 3.0.
14822     case $host_os in
14823       aix4 | aix4.[01] | aix4.[01].*)
14824       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14825            echo ' yes '
14826            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14827         :
14828       else
14829         can_build_shared=no
14830       fi
14831       ;;
14832     esac
14833     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14834     # soname into executable. Probably we can add versioning support to
14835     # collect2, so additional links can be useful in future.
14836     if test "$aix_use_runtimelinking" = yes; then
14837       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14838       # instead of lib<name>.a to let people know that these are not
14839       # typical AIX shared libraries.
14840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841     else
14842       # We preserve .a as extension for shared libraries through AIX4.2
14843       # and later when we are not doing run time linking.
14844       library_names_spec='${libname}${release}.a $libname.a'
14845       soname_spec='${libname}${release}${shared_ext}$major'
14846     fi
14847     shlibpath_var=LIBPATH
14848   fi
14849   ;;
14850
14851 amigaos*)
14852   library_names_spec='$libname.ixlibrary $libname.a'
14853   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14854   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'
14855   ;;
14856
14857 beos*)
14858   library_names_spec='${libname}${shared_ext}'
14859   dynamic_linker="$host_os ld.so"
14860   shlibpath_var=LIBRARY_PATH
14861   ;;
14862
14863 bsdi[45]*)
14864   version_type=linux
14865   need_version=no
14866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867   soname_spec='${libname}${release}${shared_ext}$major'
14868   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14871   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14872   # the default ld.so.conf also contains /usr/contrib/lib and
14873   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14874   # libtool to hard-code these into programs
14875   ;;
14876
14877 cygwin* | mingw* | pw32*)
14878   version_type=windows
14879   shrext_cmds=".dll"
14880   need_version=no
14881   need_lib_prefix=no
14882
14883   case $GCC,$host_os in
14884   yes,cygwin* | yes,mingw* | yes,pw32*)
14885     library_names_spec='$libname.dll.a'
14886     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14887     postinstall_cmds='base_file=`basename \${file}`~
14888       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14889       dldir=$destdir/`dirname \$dlpath`~
14890       test -d \$dldir || mkdir -p \$dldir~
14891       $install_prog $dir/$dlname \$dldir/$dlname~
14892       chmod a+x \$dldir/$dlname'
14893     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14894       dlpath=$dir/\$dldll~
14895        $rm \$dlpath'
14896     shlibpath_overrides_runpath=yes
14897
14898     case $host_os in
14899     cygwin*)
14900       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14901       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14902       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14903       ;;
14904     mingw*)
14905       # MinGW DLLs use traditional 'lib' prefix
14906       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14907       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14908       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14909         # It is most probably a Windows format PATH printed by
14910         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14911         # path with ; separators, and with drive letters. We can handle the
14912         # drive letters (cygwin fileutils understands them), so leave them,
14913         # especially as we might pass files found there to a mingw objdump,
14914         # which wouldn't understand a cygwinified path. Ahh.
14915         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14916       else
14917         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14918       fi
14919       ;;
14920     pw32*)
14921       # pw32 DLLs use 'pw' prefix rather than 'lib'
14922       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14923       ;;
14924     esac
14925     ;;
14926
14927   *)
14928     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14929     ;;
14930   esac
14931   dynamic_linker='Win32 ld.exe'
14932   # FIXME: first we should search . and the directory the executable is in
14933   shlibpath_var=PATH
14934   ;;
14935
14936 darwin* | rhapsody*)
14937   dynamic_linker="$host_os dyld"
14938   version_type=darwin
14939   need_lib_prefix=no
14940   need_version=no
14941   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14942   soname_spec='${libname}${release}${major}$shared_ext'
14943   shlibpath_overrides_runpath=yes
14944   shlibpath_var=DYLD_LIBRARY_PATH
14945   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14946   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14947   if test "$GCC" = yes; then
14948     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"`
14949   else
14950     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14951   fi
14952   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14953   ;;
14954
14955 dgux*)
14956   version_type=linux
14957   need_lib_prefix=no
14958   need_version=no
14959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14960   soname_spec='${libname}${release}${shared_ext}$major'
14961   shlibpath_var=LD_LIBRARY_PATH
14962   ;;
14963
14964 freebsd1*)
14965   dynamic_linker=no
14966   ;;
14967
14968 kfreebsd*-gnu)
14969   version_type=linux
14970   need_lib_prefix=no
14971   need_version=no
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14973   soname_spec='${libname}${release}${shared_ext}$major'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   shlibpath_overrides_runpath=no
14976   hardcode_into_libs=yes
14977   dynamic_linker='GNU ld.so'
14978   ;;
14979
14980 freebsd* | dragonfly*)
14981   # DragonFly does not have aout.  When/if they implement a new
14982   # versioning mechanism, adjust this.
14983   if test -x /usr/bin/objformat; then
14984     objformat=`/usr/bin/objformat`
14985   else
14986     case $host_os in
14987     freebsd[123]*) objformat=aout ;;
14988     *) objformat=elf ;;
14989     esac
14990   fi
14991   version_type=freebsd-$objformat
14992   case $version_type in
14993     freebsd-elf*)
14994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14995       need_version=no
14996       need_lib_prefix=no
14997       ;;
14998     freebsd-*)
14999       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15000       need_version=yes
15001       ;;
15002   esac
15003   shlibpath_var=LD_LIBRARY_PATH
15004   case $host_os in
15005   freebsd2*)
15006     shlibpath_overrides_runpath=yes
15007     ;;
15008   freebsd3.[01]* | freebsdelf3.[01]*)
15009     shlibpath_overrides_runpath=yes
15010     hardcode_into_libs=yes
15011     ;;
15012   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15013   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15014     shlibpath_overrides_runpath=no
15015     hardcode_into_libs=yes
15016     ;;
15017   freebsd*) # from 4.6 on
15018     shlibpath_overrides_runpath=yes
15019     hardcode_into_libs=yes
15020     ;;
15021   esac
15022   ;;
15023
15024 gnu*)
15025   version_type=linux
15026   need_lib_prefix=no
15027   need_version=no
15028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15029   soname_spec='${libname}${release}${shared_ext}$major'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   hardcode_into_libs=yes
15032   ;;
15033
15034 hpux9* | hpux10* | hpux11*)
15035   # Give a soname corresponding to the major version so that dld.sl refuses to
15036   # link against other versions.
15037   version_type=sunos
15038   need_lib_prefix=no
15039   need_version=no
15040   case $host_cpu in
15041   ia64*)
15042     shrext_cmds='.so'
15043     hardcode_into_libs=yes
15044     dynamic_linker="$host_os dld.so"
15045     shlibpath_var=LD_LIBRARY_PATH
15046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15048     soname_spec='${libname}${release}${shared_ext}$major'
15049     if test "X$HPUX_IA64_MODE" = X32; then
15050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15051     else
15052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15053     fi
15054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15055     ;;
15056    hppa*64*)
15057      shrext_cmds='.sl'
15058      hardcode_into_libs=yes
15059      dynamic_linker="$host_os dld.sl"
15060      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15061      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15062      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063      soname_spec='${libname}${release}${shared_ext}$major'
15064      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15065      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15066      ;;
15067    *)
15068     shrext_cmds='.sl'
15069     dynamic_linker="$host_os dld.sl"
15070     shlibpath_var=SHLIB_PATH
15071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073     soname_spec='${libname}${release}${shared_ext}$major'
15074     ;;
15075   esac
15076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15077   postinstall_cmds='chmod 555 $lib'
15078   ;;
15079
15080 interix3*)
15081   version_type=linux
15082   need_lib_prefix=no
15083   need_version=no
15084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15085   soname_spec='${libname}${release}${shared_ext}$major'
15086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15087   shlibpath_var=LD_LIBRARY_PATH
15088   shlibpath_overrides_runpath=no
15089   hardcode_into_libs=yes
15090   ;;
15091
15092 irix5* | irix6* | nonstopux*)
15093   case $host_os in
15094     nonstopux*) version_type=nonstopux ;;
15095     *)
15096         if test "$lt_cv_prog_gnu_ld" = yes; then
15097                 version_type=linux
15098         else
15099                 version_type=irix
15100         fi ;;
15101   esac
15102   need_lib_prefix=no
15103   need_version=no
15104   soname_spec='${libname}${release}${shared_ext}$major'
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15106   case $host_os in
15107   irix5* | nonstopux*)
15108     libsuff= shlibsuff=
15109     ;;
15110   *)
15111     case $LD in # libtool.m4 will add one of these switches to LD
15112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15113       libsuff= shlibsuff= libmagic=32-bit;;
15114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15115       libsuff=32 shlibsuff=N32 libmagic=N32;;
15116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15118     *) libsuff= shlibsuff= libmagic=never-match;;
15119     esac
15120     ;;
15121   esac
15122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15123   shlibpath_overrides_runpath=no
15124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15126   hardcode_into_libs=yes
15127   ;;
15128
15129 # No shared lib support for Linux oldld, aout, or coff.
15130 linux*oldld* | linux*aout* | linux*coff*)
15131   dynamic_linker=no
15132   ;;
15133
15134 # This must be Linux ELF.
15135 linux*)
15136   version_type=linux
15137   need_lib_prefix=no
15138   need_version=no
15139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140   soname_spec='${libname}${release}${shared_ext}$major'
15141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   shlibpath_overrides_runpath=no
15144   # This implies no fast_install, which is unacceptable.
15145   # Some rework will be needed to allow for fast_install
15146   # before this can be enabled.
15147   hardcode_into_libs=yes
15148
15149   # find out which ABI we are using
15150   libsuff=
15151   case "$host_cpu" in
15152   x86_64*|s390x*|powerpc64*)
15153     echo '#line 15153 "configure"' > conftest.$ac_ext
15154     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15155   (eval $ac_compile) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); }; then
15159       case `/usr/bin/file conftest.$ac_objext` in
15160       *64-bit*)
15161         libsuff=64
15162         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15163         ;;
15164       esac
15165     fi
15166     rm -rf conftest*
15167     ;;
15168   esac
15169
15170   # Append ld.so.conf contents to the search path
15171   if test -f /etc/ld.so.conf; then
15172     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' ' '`
15173     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15174   fi
15175
15176   # We used to test for /lib/ld.so.1 and disable shared libraries on
15177   # powerpc, because MkLinux only supported shared libraries with the
15178   # GNU dynamic linker.  Since this was broken with cross compilers,
15179   # most powerpc-linux boxes support dynamic linking these days and
15180   # people can always --disable-shared, the test was removed, and we
15181   # assume the GNU/Linux dynamic linker is in use.
15182   dynamic_linker='GNU/Linux ld.so'
15183   ;;
15184
15185 knetbsd*-gnu)
15186   version_type=linux
15187   need_lib_prefix=no
15188   need_version=no
15189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15190   soname_spec='${libname}${release}${shared_ext}$major'
15191   shlibpath_var=LD_LIBRARY_PATH
15192   shlibpath_overrides_runpath=no
15193   hardcode_into_libs=yes
15194   dynamic_linker='GNU ld.so'
15195   ;;
15196
15197 netbsd*)
15198   version_type=sunos
15199   need_lib_prefix=no
15200   need_version=no
15201   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204     dynamic_linker='NetBSD (a.out) ld.so'
15205   else
15206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15207     soname_spec='${libname}${release}${shared_ext}$major'
15208     dynamic_linker='NetBSD ld.elf_so'
15209   fi
15210   shlibpath_var=LD_LIBRARY_PATH
15211   shlibpath_overrides_runpath=yes
15212   hardcode_into_libs=yes
15213   ;;
15214
15215 newsos6)
15216   version_type=linux
15217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218   shlibpath_var=LD_LIBRARY_PATH
15219   shlibpath_overrides_runpath=yes
15220   ;;
15221
15222 nto-qnx*)
15223   version_type=linux
15224   need_lib_prefix=no
15225   need_version=no
15226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   shlibpath_overrides_runpath=yes
15230   ;;
15231
15232 openbsd*)
15233   version_type=sunos
15234   sys_lib_dlsearch_path_spec="/usr/lib"
15235   need_lib_prefix=no
15236   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15237   case $host_os in
15238     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15239     *)                         need_version=no  ;;
15240   esac
15241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15242   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15243   shlibpath_var=LD_LIBRARY_PATH
15244   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15245     case $host_os in
15246       openbsd2.[89] | openbsd2.[89].*)
15247         shlibpath_overrides_runpath=no
15248         ;;
15249       *)
15250         shlibpath_overrides_runpath=yes
15251         ;;
15252       esac
15253   else
15254     shlibpath_overrides_runpath=yes
15255   fi
15256   ;;
15257
15258 os2*)
15259   libname_spec='$name'
15260   shrext_cmds=".dll"
15261   need_lib_prefix=no
15262   library_names_spec='$libname${shared_ext} $libname.a'
15263   dynamic_linker='OS/2 ld.exe'
15264   shlibpath_var=LIBPATH
15265   ;;
15266
15267 osf3* | osf4* | osf5*)
15268   version_type=osf
15269   need_lib_prefix=no
15270   need_version=no
15271   soname_spec='${libname}${release}${shared_ext}$major'
15272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273   shlibpath_var=LD_LIBRARY_PATH
15274   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15275   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15276   ;;
15277
15278 solaris*)
15279   version_type=linux
15280   need_lib_prefix=no
15281   need_version=no
15282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283   soname_spec='${libname}${release}${shared_ext}$major'
15284   shlibpath_var=LD_LIBRARY_PATH
15285   shlibpath_overrides_runpath=yes
15286   hardcode_into_libs=yes
15287   # ldd complains unless libraries are executable
15288   postinstall_cmds='chmod +x $lib'
15289   ;;
15290
15291 sunos4*)
15292   version_type=sunos
15293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15294   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15295   shlibpath_var=LD_LIBRARY_PATH
15296   shlibpath_overrides_runpath=yes
15297   if test "$with_gnu_ld" = yes; then
15298     need_lib_prefix=no
15299   fi
15300   need_version=yes
15301   ;;
15302
15303 sysv4 | sysv4.3*)
15304   version_type=linux
15305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15306   soname_spec='${libname}${release}${shared_ext}$major'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   case $host_vendor in
15309     sni)
15310       shlibpath_overrides_runpath=no
15311       need_lib_prefix=no
15312       export_dynamic_flag_spec='${wl}-Blargedynsym'
15313       runpath_var=LD_RUN_PATH
15314       ;;
15315     siemens)
15316       need_lib_prefix=no
15317       ;;
15318     motorola)
15319       need_lib_prefix=no
15320       need_version=no
15321       shlibpath_overrides_runpath=no
15322       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15323       ;;
15324   esac
15325   ;;
15326
15327 sysv4*MP*)
15328   if test -d /usr/nec ;then
15329     version_type=linux
15330     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15331     soname_spec='$libname${shared_ext}.$major'
15332     shlibpath_var=LD_LIBRARY_PATH
15333   fi
15334   ;;
15335
15336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15337   version_type=freebsd-elf
15338   need_lib_prefix=no
15339   need_version=no
15340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341   soname_spec='${libname}${release}${shared_ext}$major'
15342   shlibpath_var=LD_LIBRARY_PATH
15343   hardcode_into_libs=yes
15344   if test "$with_gnu_ld" = yes; then
15345     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15346     shlibpath_overrides_runpath=no
15347   else
15348     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15349     shlibpath_overrides_runpath=yes
15350     case $host_os in
15351       sco3.2v5*)
15352         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15353         ;;
15354     esac
15355   fi
15356   sys_lib_dlsearch_path_spec='/usr/lib'
15357   ;;
15358
15359 uts4*)
15360   version_type=linux
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362   soname_spec='${libname}${release}${shared_ext}$major'
15363   shlibpath_var=LD_LIBRARY_PATH
15364   ;;
15365
15366 *)
15367   dynamic_linker=no
15368   ;;
15369 esac
15370 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15371 echo "${ECHO_T}$dynamic_linker" >&6
15372 test "$dynamic_linker" = no && can_build_shared=no
15373
15374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15375 if test "$GCC" = yes; then
15376   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15377 fi
15378
15379 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15380 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15381 hardcode_action_F77=
15382 if test -n "$hardcode_libdir_flag_spec_F77" || \
15383    test -n "$runpath_var_F77" || \
15384    test "X$hardcode_automatic_F77" = "Xyes" ; then
15385
15386   # We can hardcode non-existant directories.
15387   if test "$hardcode_direct_F77" != no &&
15388      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389      # have to relink, otherwise we might link with an installed library
15390      # when we should be linking with a yet-to-be-installed one
15391      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15392      test "$hardcode_minus_L_F77" != no; then
15393     # Linking always hardcodes the temporary library directory.
15394     hardcode_action_F77=relink
15395   else
15396     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397     hardcode_action_F77=immediate
15398   fi
15399 else
15400   # We cannot hardcode anything, or else we can only hardcode existing
15401   # directories.
15402   hardcode_action_F77=unsupported
15403 fi
15404 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15405 echo "${ECHO_T}$hardcode_action_F77" >&6
15406
15407 if test "$hardcode_action_F77" = relink; then
15408   # Fast installation is not supported
15409   enable_fast_install=no
15410 elif test "$shlibpath_overrides_runpath" = yes ||
15411      test "$enable_shared" = no; then
15412   # Fast installation is not necessary
15413   enable_fast_install=needless
15414 fi
15415
15416
15417 # The else clause should only fire when bootstrapping the
15418 # libtool distribution, otherwise you forgot to ship ltmain.sh
15419 # with your package, and you will get complaints that there are
15420 # no rules to generate ltmain.sh.
15421 if test -f "$ltmain"; then
15422   # See if we are running on zsh, and set the options which allow our commands through
15423   # without removal of \ escapes.
15424   if test -n "${ZSH_VERSION+set}" ; then
15425     setopt NO_GLOB_SUBST
15426   fi
15427   # Now quote all the things that may contain metacharacters while being
15428   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15429   # variables and quote the copies for generation of the libtool script.
15430   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15431     SED SHELL STRIP \
15432     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15433     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15434     deplibs_check_method reload_flag reload_cmds need_locks \
15435     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15436     lt_cv_sys_global_symbol_to_c_name_address \
15437     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15438     old_postinstall_cmds old_postuninstall_cmds \
15439     compiler_F77 \
15440     CC_F77 \
15441     LD_F77 \
15442     lt_prog_compiler_wl_F77 \
15443     lt_prog_compiler_pic_F77 \
15444     lt_prog_compiler_static_F77 \
15445     lt_prog_compiler_no_builtin_flag_F77 \
15446     export_dynamic_flag_spec_F77 \
15447     thread_safe_flag_spec_F77 \
15448     whole_archive_flag_spec_F77 \
15449     enable_shared_with_static_runtimes_F77 \
15450     old_archive_cmds_F77 \
15451     old_archive_from_new_cmds_F77 \
15452     predep_objects_F77 \
15453     postdep_objects_F77 \
15454     predeps_F77 \
15455     postdeps_F77 \
15456     compiler_lib_search_path_F77 \
15457     archive_cmds_F77 \
15458     archive_expsym_cmds_F77 \
15459     postinstall_cmds_F77 \
15460     postuninstall_cmds_F77 \
15461     old_archive_from_expsyms_cmds_F77 \
15462     allow_undefined_flag_F77 \
15463     no_undefined_flag_F77 \
15464     export_symbols_cmds_F77 \
15465     hardcode_libdir_flag_spec_F77 \
15466     hardcode_libdir_flag_spec_ld_F77 \
15467     hardcode_libdir_separator_F77 \
15468     hardcode_automatic_F77 \
15469     module_cmds_F77 \
15470     module_expsym_cmds_F77 \
15471     lt_cv_prog_compiler_c_o_F77 \
15472     exclude_expsyms_F77 \
15473     include_expsyms_F77; do
15474
15475     case $var in
15476     old_archive_cmds_F77 | \
15477     old_archive_from_new_cmds_F77 | \
15478     archive_cmds_F77 | \
15479     archive_expsym_cmds_F77 | \
15480     module_cmds_F77 | \
15481     module_expsym_cmds_F77 | \
15482     old_archive_from_expsyms_cmds_F77 | \
15483     export_symbols_cmds_F77 | \
15484     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15485     postinstall_cmds | postuninstall_cmds | \
15486     old_postinstall_cmds | old_postuninstall_cmds | \
15487     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15488       # Double-quote double-evaled strings.
15489       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15490       ;;
15491     *)
15492       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15493       ;;
15494     esac
15495   done
15496
15497   case $lt_echo in
15498   *'\$0 --fallback-echo"')
15499     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15500     ;;
15501   esac
15502
15503 cfgfile="$ofile"
15504
15505   cat <<__EOF__ >> "$cfgfile"
15506 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15507
15508 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15509
15510 # Shell to use when invoking shell scripts.
15511 SHELL=$lt_SHELL
15512
15513 # Whether or not to build shared libraries.
15514 build_libtool_libs=$enable_shared
15515
15516 # Whether or not to build static libraries.
15517 build_old_libs=$enable_static
15518
15519 # Whether or not to add -lc for building shared libraries.
15520 build_libtool_need_lc=$archive_cmds_need_lc_F77
15521
15522 # Whether or not to disallow shared libs when runtime libs are static
15523 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15524
15525 # Whether or not to optimize for fast installation.
15526 fast_install=$enable_fast_install
15527
15528 # The host system.
15529 host_alias=$host_alias
15530 host=$host
15531 host_os=$host_os
15532
15533 # The build system.
15534 build_alias=$build_alias
15535 build=$build
15536 build_os=$build_os
15537
15538 # An echo program that does not interpret backslashes.
15539 echo=$lt_echo
15540
15541 # The archiver.
15542 AR=$lt_AR
15543 AR_FLAGS=$lt_AR_FLAGS
15544
15545 # A C compiler.
15546 LTCC=$lt_LTCC
15547
15548 # LTCC compiler flags.
15549 LTCFLAGS=$lt_LTCFLAGS
15550
15551 # A language-specific compiler.
15552 CC=$lt_compiler_F77
15553
15554 # Is the compiler the GNU C compiler?
15555 with_gcc=$GCC_F77
15556
15557 # An ERE matcher.
15558 EGREP=$lt_EGREP
15559
15560 # The linker used to build libraries.
15561 LD=$lt_LD_F77
15562
15563 # Whether we need hard or soft links.
15564 LN_S=$lt_LN_S
15565
15566 # A BSD-compatible nm program.
15567 NM=$lt_NM
15568
15569 # A symbol stripping program
15570 STRIP=$lt_STRIP
15571
15572 # Used to examine libraries when file_magic_cmd begins "file"
15573 MAGIC_CMD=$MAGIC_CMD
15574
15575 # Used on cygwin: DLL creation program.
15576 DLLTOOL="$DLLTOOL"
15577
15578 # Used on cygwin: object dumper.
15579 OBJDUMP="$OBJDUMP"
15580
15581 # Used on cygwin: assembler.
15582 AS="$AS"
15583
15584 # The name of the directory that contains temporary libtool files.
15585 objdir=$objdir
15586
15587 # How to create reloadable object files.
15588 reload_flag=$lt_reload_flag
15589 reload_cmds=$lt_reload_cmds
15590
15591 # How to pass a linker flag through the compiler.
15592 wl=$lt_lt_prog_compiler_wl_F77
15593
15594 # Object file suffix (normally "o").
15595 objext="$ac_objext"
15596
15597 # Old archive suffix (normally "a").
15598 libext="$libext"
15599
15600 # Shared library suffix (normally ".so").
15601 shrext_cmds='$shrext_cmds'
15602
15603 # Executable file suffix (normally "").
15604 exeext="$exeext"
15605
15606 # Additional compiler flags for building library objects.
15607 pic_flag=$lt_lt_prog_compiler_pic_F77
15608 pic_mode=$pic_mode
15609
15610 # What is the maximum length of a command?
15611 max_cmd_len=$lt_cv_sys_max_cmd_len
15612
15613 # Does compiler simultaneously support -c and -o options?
15614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15615
15616 # Must we lock files when doing compilation?
15617 need_locks=$lt_need_locks
15618
15619 # Do we need the lib prefix for modules?
15620 need_lib_prefix=$need_lib_prefix
15621
15622 # Do we need a version for libraries?
15623 need_version=$need_version
15624
15625 # Whether dlopen is supported.
15626 dlopen_support=$enable_dlopen
15627
15628 # Whether dlopen of programs is supported.
15629 dlopen_self=$enable_dlopen_self
15630
15631 # Whether dlopen of statically linked programs is supported.
15632 dlopen_self_static=$enable_dlopen_self_static
15633
15634 # Compiler flag to prevent dynamic linking.
15635 link_static_flag=$lt_lt_prog_compiler_static_F77
15636
15637 # Compiler flag to turn off builtin functions.
15638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15639
15640 # Compiler flag to allow reflexive dlopens.
15641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15642
15643 # Compiler flag to generate shared objects directly from archives.
15644 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15645
15646 # Compiler flag to generate thread-safe objects.
15647 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15648
15649 # Library versioning type.
15650 version_type=$version_type
15651
15652 # Format of library name prefix.
15653 libname_spec=$lt_libname_spec
15654
15655 # List of archive names.  First name is the real one, the rest are links.
15656 # The last name is the one that the linker finds with -lNAME.
15657 library_names_spec=$lt_library_names_spec
15658
15659 # The coded name of the library, if different from the real name.
15660 soname_spec=$lt_soname_spec
15661
15662 # Commands used to build and install an old-style archive.
15663 RANLIB=$lt_RANLIB
15664 old_archive_cmds=$lt_old_archive_cmds_F77
15665 old_postinstall_cmds=$lt_old_postinstall_cmds
15666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15667
15668 # Create an old-style archive from a shared archive.
15669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15670
15671 # Create a temporary old-style archive to link instead of a shared archive.
15672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15673
15674 # Commands used to build and install a shared archive.
15675 archive_cmds=$lt_archive_cmds_F77
15676 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15677 postinstall_cmds=$lt_postinstall_cmds
15678 postuninstall_cmds=$lt_postuninstall_cmds
15679
15680 # Commands used to build a loadable module (assumed same as above if empty)
15681 module_cmds=$lt_module_cmds_F77
15682 module_expsym_cmds=$lt_module_expsym_cmds_F77
15683
15684 # Commands to strip libraries.
15685 old_striplib=$lt_old_striplib
15686 striplib=$lt_striplib
15687
15688 # Dependencies to place before the objects being linked to create a
15689 # shared library.
15690 predep_objects=$lt_predep_objects_F77
15691
15692 # Dependencies to place after the objects being linked to create a
15693 # shared library.
15694 postdep_objects=$lt_postdep_objects_F77
15695
15696 # Dependencies to place before the objects being linked to create a
15697 # shared library.
15698 predeps=$lt_predeps_F77
15699
15700 # Dependencies to place after the objects being linked to create a
15701 # shared library.
15702 postdeps=$lt_postdeps_F77
15703
15704 # The library search path used internally by the compiler when linking
15705 # a shared library.
15706 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15707
15708 # Method to check whether dependent libraries are shared objects.
15709 deplibs_check_method=$lt_deplibs_check_method
15710
15711 # Command to use when deplibs_check_method == file_magic.
15712 file_magic_cmd=$lt_file_magic_cmd
15713
15714 # Flag that allows shared libraries with undefined symbols to be built.
15715 allow_undefined_flag=$lt_allow_undefined_flag_F77
15716
15717 # Flag that forces no undefined symbols.
15718 no_undefined_flag=$lt_no_undefined_flag_F77
15719
15720 # Commands used to finish a libtool library installation in a directory.
15721 finish_cmds=$lt_finish_cmds
15722
15723 # Same as above, but a single script fragment to be evaled but not shown.
15724 finish_eval=$lt_finish_eval
15725
15726 # Take the output of nm and produce a listing of raw symbols and C names.
15727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15728
15729 # Transform the output of nm in a proper C declaration
15730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15731
15732 # Transform the output of nm in a C name address pair
15733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15734
15735 # This is the shared library runtime path variable.
15736 runpath_var=$runpath_var
15737
15738 # This is the shared library path variable.
15739 shlibpath_var=$shlibpath_var
15740
15741 # Is shlibpath searched before the hard-coded library search path?
15742 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15743
15744 # How to hardcode a shared library path into an executable.
15745 hardcode_action=$hardcode_action_F77
15746
15747 # Whether we should hardcode library paths into libraries.
15748 hardcode_into_libs=$hardcode_into_libs
15749
15750 # Flag to hardcode \$libdir into a binary during linking.
15751 # This must work even if \$libdir does not exist.
15752 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15753
15754 # If ld is used when linking, flag to hardcode \$libdir into
15755 # a binary during linking. This must work even if \$libdir does
15756 # not exist.
15757 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15758
15759 # Whether we need a single -rpath flag with a separated argument.
15760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15761
15762 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15763 # resulting binary.
15764 hardcode_direct=$hardcode_direct_F77
15765
15766 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15767 # resulting binary.
15768 hardcode_minus_L=$hardcode_minus_L_F77
15769
15770 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15771 # the resulting binary.
15772 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15773
15774 # Set to yes if building a shared library automatically hardcodes DIR into the library
15775 # and all subsequent libraries and executables linked against it.
15776 hardcode_automatic=$hardcode_automatic_F77
15777
15778 # Variables whose values should be saved in libtool wrapper scripts and
15779 # restored at relink time.
15780 variables_saved_for_relink="$variables_saved_for_relink"
15781
15782 # Whether libtool must link a program against all its dependency libraries.
15783 link_all_deplibs=$link_all_deplibs_F77
15784
15785 # Compile-time system search path for libraries
15786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15787
15788 # Run-time system search path for libraries
15789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15790
15791 # Fix the shell variable \$srcfile for the compiler.
15792 fix_srcfile_path="$fix_srcfile_path_F77"
15793
15794 # Set to yes if exported symbols are required.
15795 always_export_symbols=$always_export_symbols_F77
15796
15797 # The commands to list exported symbols.
15798 export_symbols_cmds=$lt_export_symbols_cmds_F77
15799
15800 # The commands to extract the exported symbol list from a shared archive.
15801 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15802
15803 # Symbols that should not be listed in the preloaded symbols.
15804 exclude_expsyms=$lt_exclude_expsyms_F77
15805
15806 # Symbols that must always be exported.
15807 include_expsyms=$lt_include_expsyms_F77
15808
15809 # ### END LIBTOOL TAG CONFIG: $tagname
15810
15811 __EOF__
15812
15813
15814 else
15815   # If there is no Makefile yet, we rely on a make rule to execute
15816   # `config.status --recheck' to rerun these tests and create the
15817   # libtool script then.
15818   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15819   if test -f "$ltmain_in"; then
15820     test -f Makefile && make "$ltmain"
15821   fi
15822 fi
15823
15824
15825 ac_ext=c
15826 ac_cpp='$CPP $CPPFLAGS'
15827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15830
15831 CC="$lt_save_CC"
15832
15833         else
15834           tagname=""
15835         fi
15836         ;;
15837
15838       GCJ)
15839         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15840
15841
15842
15843 # Source file extension for Java test sources.
15844 ac_ext=java
15845
15846 # Object file extension for compiled Java test sources.
15847 objext=o
15848 objext_GCJ=$objext
15849
15850 # Code to be used in simple compile tests
15851 lt_simple_compile_test_code="class foo {}\n"
15852
15853 # Code to be used in simple link tests
15854 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15855
15856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15857
15858 # If no C compiler was specified, use CC.
15859 LTCC=${LTCC-"$CC"}
15860
15861 # If no C compiler flags were specified, use CFLAGS.
15862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15863
15864 # Allow CC to be a program name with arguments.
15865 compiler=$CC
15866
15867
15868 # save warnings/boilerplate of simple test code
15869 ac_outfile=conftest.$ac_objext
15870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15872 _lt_compiler_boilerplate=`cat conftest.err`
15873 $rm conftest*
15874
15875 ac_outfile=conftest.$ac_objext
15876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15878 _lt_linker_boilerplate=`cat conftest.err`
15879 $rm conftest*
15880
15881
15882 # Allow CC to be a program name with arguments.
15883 lt_save_CC="$CC"
15884 CC=${GCJ-"gcj"}
15885 compiler=$CC
15886 compiler_GCJ=$CC
15887 for cc_temp in $compiler""; do
15888   case $cc_temp in
15889     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15890     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15891     \-*) ;;
15892     *) break;;
15893   esac
15894 done
15895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15896
15897
15898 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15899 archive_cmds_need_lc_GCJ=no
15900
15901 old_archive_cmds_GCJ=$old_archive_cmds
15902
15903
15904 lt_prog_compiler_no_builtin_flag_GCJ=
15905
15906 if test "$GCC" = yes; then
15907   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15908
15909
15910 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15911 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15912 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15913   echo $ECHO_N "(cached) $ECHO_C" >&6
15914 else
15915   lt_cv_prog_compiler_rtti_exceptions=no
15916   ac_outfile=conftest.$ac_objext
15917    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15918    lt_compiler_flag="-fno-rtti -fno-exceptions"
15919    # Insert the option either (1) after the last *FLAGS variable, or
15920    # (2) before a word containing "conftest.", or (3) at the end.
15921    # Note that $ac_compile itself does not contain backslashes and begins
15922    # with a dollar sign (not a hyphen), so the echo should work correctly.
15923    # The option is referenced via a variable to avoid confusing sed.
15924    lt_compile=`echo "$ac_compile" | $SED \
15925    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15926    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15927    -e 's:$: $lt_compiler_flag:'`
15928    (eval echo "\"\$as_me:15928: $lt_compile\"" >&5)
15929    (eval "$lt_compile" 2>conftest.err)
15930    ac_status=$?
15931    cat conftest.err >&5
15932    echo "$as_me:15932: \$? = $ac_status" >&5
15933    if (exit $ac_status) && test -s "$ac_outfile"; then
15934      # The compiler can only warn and ignore the option if not recognized
15935      # So say no if there are warnings other than the usual output.
15936      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15937      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15938      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15939        lt_cv_prog_compiler_rtti_exceptions=yes
15940      fi
15941    fi
15942    $rm conftest*
15943
15944 fi
15945 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15946 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15947
15948 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15949     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15950 else
15951     :
15952 fi
15953
15954 fi
15955
15956 lt_prog_compiler_wl_GCJ=
15957 lt_prog_compiler_pic_GCJ=
15958 lt_prog_compiler_static_GCJ=
15959
15960 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15961 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15962
15963   if test "$GCC" = yes; then
15964     lt_prog_compiler_wl_GCJ='-Wl,'
15965     lt_prog_compiler_static_GCJ='-static'
15966
15967     case $host_os in
15968       aix*)
15969       # All AIX code is PIC.
15970       if test "$host_cpu" = ia64; then
15971         # AIX 5 now supports IA64 processor
15972         lt_prog_compiler_static_GCJ='-Bstatic'
15973       fi
15974       ;;
15975
15976     amigaos*)
15977       # FIXME: we need at least 68020 code to build shared libraries, but
15978       # adding the `-m68020' flag to GCC prevents building anything better,
15979       # like `-m68040'.
15980       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15981       ;;
15982
15983     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15984       # PIC is the default for these OSes.
15985       ;;
15986
15987     mingw* | pw32* | os2*)
15988       # This hack is so that the source file can tell whether it is being
15989       # built for inclusion in a dll (and should export symbols for example).
15990       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15991       ;;
15992
15993     darwin* | rhapsody*)
15994       # PIC is the default on this platform
15995       # Common symbols not allowed in MH_DYLIB files
15996       lt_prog_compiler_pic_GCJ='-fno-common'
15997       ;;
15998
15999     interix3*)
16000       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16001       # Instead, we relocate shared libraries at runtime.
16002       ;;
16003
16004     msdosdjgpp*)
16005       # Just because we use GCC doesn't mean we suddenly get shared libraries
16006       # on systems that don't support them.
16007       lt_prog_compiler_can_build_shared_GCJ=no
16008       enable_shared=no
16009       ;;
16010
16011     sysv4*MP*)
16012       if test -d /usr/nec; then
16013         lt_prog_compiler_pic_GCJ=-Kconform_pic
16014       fi
16015       ;;
16016
16017     hpux*)
16018       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16019       # not for PA HP-UX.
16020       case $host_cpu in
16021       hppa*64*|ia64*)
16022         # +Z the default
16023         ;;
16024       *)
16025         lt_prog_compiler_pic_GCJ='-fPIC'
16026         ;;
16027       esac
16028       ;;
16029
16030     *)
16031       lt_prog_compiler_pic_GCJ='-fPIC'
16032       ;;
16033     esac
16034   else
16035     # PORTME Check for flag to pass linker flags through the system compiler.
16036     case $host_os in
16037     aix*)
16038       lt_prog_compiler_wl_GCJ='-Wl,'
16039       if test "$host_cpu" = ia64; then
16040         # AIX 5 now supports IA64 processor
16041         lt_prog_compiler_static_GCJ='-Bstatic'
16042       else
16043         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16044       fi
16045       ;;
16046       darwin*)
16047         # PIC is the default on this platform
16048         # Common symbols not allowed in MH_DYLIB files
16049        case $cc_basename in
16050          xlc*)
16051          lt_prog_compiler_pic_GCJ='-qnocommon'
16052          lt_prog_compiler_wl_GCJ='-Wl,'
16053          ;;
16054        esac
16055        ;;
16056
16057     mingw* | pw32* | os2*)
16058       # This hack is so that the source file can tell whether it is being
16059       # built for inclusion in a dll (and should export symbols for example).
16060       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16061       ;;
16062
16063     hpux9* | hpux10* | hpux11*)
16064       lt_prog_compiler_wl_GCJ='-Wl,'
16065       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16066       # not for PA HP-UX.
16067       case $host_cpu in
16068       hppa*64*|ia64*)
16069         # +Z the default
16070         ;;
16071       *)
16072         lt_prog_compiler_pic_GCJ='+Z'
16073         ;;
16074       esac
16075       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16076       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16077       ;;
16078
16079     irix5* | irix6* | nonstopux*)
16080       lt_prog_compiler_wl_GCJ='-Wl,'
16081       # PIC (with -KPIC) is the default.
16082       lt_prog_compiler_static_GCJ='-non_shared'
16083       ;;
16084
16085     newsos6)
16086       lt_prog_compiler_pic_GCJ='-KPIC'
16087       lt_prog_compiler_static_GCJ='-Bstatic'
16088       ;;
16089
16090     linux*)
16091       case $cc_basename in
16092       icc* | ecc*)
16093         lt_prog_compiler_wl_GCJ='-Wl,'
16094         lt_prog_compiler_pic_GCJ='-KPIC'
16095         lt_prog_compiler_static_GCJ='-static'
16096         ;;
16097       pgcc* | pgf77* | pgf90* | pgf95*)
16098         # Portland Group compilers (*not* the Pentium gcc compiler,
16099         # which looks to be a dead project)
16100         lt_prog_compiler_wl_GCJ='-Wl,'
16101         lt_prog_compiler_pic_GCJ='-fpic'
16102         lt_prog_compiler_static_GCJ='-Bstatic'
16103         ;;
16104       ccc*)
16105         lt_prog_compiler_wl_GCJ='-Wl,'
16106         # All Alpha code is PIC.
16107         lt_prog_compiler_static_GCJ='-non_shared'
16108         ;;
16109       esac
16110       ;;
16111
16112     osf3* | osf4* | osf5*)
16113       lt_prog_compiler_wl_GCJ='-Wl,'
16114       # All OSF/1 code is PIC.
16115       lt_prog_compiler_static_GCJ='-non_shared'
16116       ;;
16117
16118     solaris*)
16119       lt_prog_compiler_pic_GCJ='-KPIC'
16120       lt_prog_compiler_static_GCJ='-Bstatic'
16121       case $cc_basename in
16122       f77* | f90* | f95*)
16123         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16124       *)
16125         lt_prog_compiler_wl_GCJ='-Wl,';;
16126       esac
16127       ;;
16128
16129     sunos4*)
16130       lt_prog_compiler_wl_GCJ='-Qoption ld '
16131       lt_prog_compiler_pic_GCJ='-PIC'
16132       lt_prog_compiler_static_GCJ='-Bstatic'
16133       ;;
16134
16135     sysv4 | sysv4.2uw2* | sysv4.3*)
16136       lt_prog_compiler_wl_GCJ='-Wl,'
16137       lt_prog_compiler_pic_GCJ='-KPIC'
16138       lt_prog_compiler_static_GCJ='-Bstatic'
16139       ;;
16140
16141     sysv4*MP*)
16142       if test -d /usr/nec ;then
16143         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16144         lt_prog_compiler_static_GCJ='-Bstatic'
16145       fi
16146       ;;
16147
16148     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16149       lt_prog_compiler_wl_GCJ='-Wl,'
16150       lt_prog_compiler_pic_GCJ='-KPIC'
16151       lt_prog_compiler_static_GCJ='-Bstatic'
16152       ;;
16153
16154     unicos*)
16155       lt_prog_compiler_wl_GCJ='-Wl,'
16156       lt_prog_compiler_can_build_shared_GCJ=no
16157       ;;
16158
16159     uts4*)
16160       lt_prog_compiler_pic_GCJ='-pic'
16161       lt_prog_compiler_static_GCJ='-Bstatic'
16162       ;;
16163
16164     *)
16165       lt_prog_compiler_can_build_shared_GCJ=no
16166       ;;
16167     esac
16168   fi
16169
16170 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16171 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16172
16173 #
16174 # Check to make sure the PIC flag actually works.
16175 #
16176 if test -n "$lt_prog_compiler_pic_GCJ"; then
16177
16178 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16179 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16180 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16181   echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183   lt_prog_compiler_pic_works_GCJ=no
16184   ac_outfile=conftest.$ac_objext
16185    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16187    # Insert the option either (1) after the last *FLAGS variable, or
16188    # (2) before a word containing "conftest.", or (3) at the end.
16189    # Note that $ac_compile itself does not contain backslashes and begins
16190    # with a dollar sign (not a hyphen), so the echo should work correctly.
16191    # The option is referenced via a variable to avoid confusing sed.
16192    lt_compile=`echo "$ac_compile" | $SED \
16193    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16195    -e 's:$: $lt_compiler_flag:'`
16196    (eval echo "\"\$as_me:16196: $lt_compile\"" >&5)
16197    (eval "$lt_compile" 2>conftest.err)
16198    ac_status=$?
16199    cat conftest.err >&5
16200    echo "$as_me:16200: \$? = $ac_status" >&5
16201    if (exit $ac_status) && test -s "$ac_outfile"; then
16202      # The compiler can only warn and ignore the option if not recognized
16203      # So say no if there are warnings other than the usual output.
16204      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16205      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16206      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16207        lt_prog_compiler_pic_works_GCJ=yes
16208      fi
16209    fi
16210    $rm conftest*
16211
16212 fi
16213 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16214 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16215
16216 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16217     case $lt_prog_compiler_pic_GCJ in
16218      "" | " "*) ;;
16219      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16220      esac
16221 else
16222     lt_prog_compiler_pic_GCJ=
16223      lt_prog_compiler_can_build_shared_GCJ=no
16224 fi
16225
16226 fi
16227 case $host_os in
16228   # For platforms which do not support PIC, -DPIC is meaningless:
16229   *djgpp*)
16230     lt_prog_compiler_pic_GCJ=
16231     ;;
16232   *)
16233     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16234     ;;
16235 esac
16236
16237 #
16238 # Check to make sure the static flag actually works.
16239 #
16240 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16241 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16242 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16243 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   lt_prog_compiler_static_works_GCJ=no
16247    save_LDFLAGS="$LDFLAGS"
16248    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16249    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16250    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16251      # The linker can only warn and ignore the option if not recognized
16252      # So say no if there are warnings
16253      if test -s conftest.err; then
16254        # Append any errors to the config.log.
16255        cat conftest.err 1>&5
16256        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16257        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258        if diff conftest.exp conftest.er2 >/dev/null; then
16259          lt_prog_compiler_static_works_GCJ=yes
16260        fi
16261      else
16262        lt_prog_compiler_static_works_GCJ=yes
16263      fi
16264    fi
16265    $rm conftest*
16266    LDFLAGS="$save_LDFLAGS"
16267
16268 fi
16269 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16270 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16271
16272 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16273     :
16274 else
16275     lt_prog_compiler_static_GCJ=
16276 fi
16277
16278
16279 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16280 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16281 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16282   echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284   lt_cv_prog_compiler_c_o_GCJ=no
16285    $rm -r conftest 2>/dev/null
16286    mkdir conftest
16287    cd conftest
16288    mkdir out
16289    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16290
16291    lt_compiler_flag="-o out/conftest2.$ac_objext"
16292    # Insert the option either (1) after the last *FLAGS variable, or
16293    # (2) before a word containing "conftest.", or (3) at the end.
16294    # Note that $ac_compile itself does not contain backslashes and begins
16295    # with a dollar sign (not a hyphen), so the echo should work correctly.
16296    lt_compile=`echo "$ac_compile" | $SED \
16297    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16298    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16299    -e 's:$: $lt_compiler_flag:'`
16300    (eval echo "\"\$as_me:16300: $lt_compile\"" >&5)
16301    (eval "$lt_compile" 2>out/conftest.err)
16302    ac_status=$?
16303    cat out/conftest.err >&5
16304    echo "$as_me:16304: \$? = $ac_status" >&5
16305    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16306    then
16307      # The compiler can only warn and ignore the option if not recognized
16308      # So say no if there are warnings
16309      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16310      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16311      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16312        lt_cv_prog_compiler_c_o_GCJ=yes
16313      fi
16314    fi
16315    chmod u+w . 2>&5
16316    $rm conftest*
16317    # SGI C++ compiler will create directory out/ii_files/ for
16318    # template instantiation
16319    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16320    $rm out/* && rmdir out
16321    cd ..
16322    rmdir conftest
16323    $rm conftest*
16324
16325 fi
16326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16328
16329
16330 hard_links="nottested"
16331 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16332   # do not overwrite the value of need_locks provided by the user
16333   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16335   hard_links=yes
16336   $rm conftest*
16337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16338   touch conftest.a
16339   ln conftest.a conftest.b 2>&5 || hard_links=no
16340   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16341   echo "$as_me:$LINENO: result: $hard_links" >&5
16342 echo "${ECHO_T}$hard_links" >&6
16343   if test "$hard_links" = no; then
16344     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16346     need_locks=warn
16347   fi
16348 else
16349   need_locks=no
16350 fi
16351
16352 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16354
16355   runpath_var=
16356   allow_undefined_flag_GCJ=
16357   enable_shared_with_static_runtimes_GCJ=no
16358   archive_cmds_GCJ=
16359   archive_expsym_cmds_GCJ=
16360   old_archive_From_new_cmds_GCJ=
16361   old_archive_from_expsyms_cmds_GCJ=
16362   export_dynamic_flag_spec_GCJ=
16363   whole_archive_flag_spec_GCJ=
16364   thread_safe_flag_spec_GCJ=
16365   hardcode_libdir_flag_spec_GCJ=
16366   hardcode_libdir_flag_spec_ld_GCJ=
16367   hardcode_libdir_separator_GCJ=
16368   hardcode_direct_GCJ=no
16369   hardcode_minus_L_GCJ=no
16370   hardcode_shlibpath_var_GCJ=unsupported
16371   link_all_deplibs_GCJ=unknown
16372   hardcode_automatic_GCJ=no
16373   module_cmds_GCJ=
16374   module_expsym_cmds_GCJ=
16375   always_export_symbols_GCJ=no
16376   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16377   # include_expsyms should be a list of space-separated symbols to be *always*
16378   # included in the symbol list
16379   include_expsyms_GCJ=
16380   # exclude_expsyms can be an extended regexp of symbols to exclude
16381   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16382   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16383   # as well as any symbol that contains `d'.
16384   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16385   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16386   # platforms (ab)use it in PIC code, but their linkers get confused if
16387   # the symbol is explicitly referenced.  Since portable code cannot
16388   # rely on this symbol name, it's probably fine to never include it in
16389   # preloaded symbol tables.
16390   extract_expsyms_cmds=
16391   # Just being paranoid about ensuring that cc_basename is set.
16392   for cc_temp in $compiler""; do
16393   case $cc_temp in
16394     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16395     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16396     \-*) ;;
16397     *) break;;
16398   esac
16399 done
16400 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16401
16402   case $host_os in
16403   cygwin* | mingw* | pw32*)
16404     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16405     # When not using gcc, we currently assume that we are using
16406     # Microsoft Visual C++.
16407     if test "$GCC" != yes; then
16408       with_gnu_ld=no
16409     fi
16410     ;;
16411   interix*)
16412     # we just hope/assume this is gcc and not c89 (= MSVC++)
16413     with_gnu_ld=yes
16414     ;;
16415   openbsd*)
16416     with_gnu_ld=no
16417     ;;
16418   esac
16419
16420   ld_shlibs_GCJ=yes
16421   if test "$with_gnu_ld" = yes; then
16422     # If archive_cmds runs LD, not CC, wlarc should be empty
16423     wlarc='${wl}'
16424
16425     # Set some defaults for GNU ld with shared library support. These
16426     # are reset later if shared libraries are not supported. Putting them
16427     # here allows them to be overridden if necessary.
16428     runpath_var=LD_RUN_PATH
16429     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16430     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16431     # ancient GNU ld didn't support --whole-archive et. al.
16432     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16433         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16434       else
16435         whole_archive_flag_spec_GCJ=
16436     fi
16437     supports_anon_versioning=no
16438     case `$LD -v 2>/dev/null` in
16439       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16440       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16441       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16442       *\ 2.11.*) ;; # other 2.11 versions
16443       *) supports_anon_versioning=yes ;;
16444     esac
16445
16446     # See if GNU ld supports shared libraries.
16447     case $host_os in
16448     aix3* | aix4* | aix5*)
16449       # On AIX/PPC, the GNU linker is very broken
16450       if test "$host_cpu" != ia64; then
16451         ld_shlibs_GCJ=no
16452         cat <<EOF 1>&2
16453
16454 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16455 *** to be unable to reliably create shared libraries on AIX.
16456 *** Therefore, libtool is disabling shared libraries support.  If you
16457 *** really care for shared libraries, you may want to modify your PATH
16458 *** so that a non-GNU linker is found, and then restart.
16459
16460 EOF
16461       fi
16462       ;;
16463
16464     amigaos*)
16465       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)'
16466       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16467       hardcode_minus_L_GCJ=yes
16468
16469       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16470       # that the semantics of dynamic libraries on AmigaOS, at least up
16471       # to version 4, is to share data among multiple programs linked
16472       # with the same dynamic library.  Since this doesn't match the
16473       # behavior of shared libraries on other platforms, we can't use
16474       # them.
16475       ld_shlibs_GCJ=no
16476       ;;
16477
16478     beos*)
16479       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16480         allow_undefined_flag_GCJ=unsupported
16481         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16482         # support --undefined.  This deserves some investigation.  FIXME
16483         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16484       else
16485         ld_shlibs_GCJ=no
16486       fi
16487       ;;
16488
16489     cygwin* | mingw* | pw32*)
16490       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16491       # as there is no search path for DLLs.
16492       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16493       allow_undefined_flag_GCJ=unsupported
16494       always_export_symbols_GCJ=no
16495       enable_shared_with_static_runtimes_GCJ=yes
16496       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16497
16498       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16499         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16500         # If the export-symbols file already is a .def file (1st line
16501         # is EXPORTS), use it as is; otherwise, prepend...
16502         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16503           cp $export_symbols $output_objdir/$soname.def;
16504         else
16505           echo EXPORTS > $output_objdir/$soname.def;
16506           cat $export_symbols >> $output_objdir/$soname.def;
16507         fi~
16508         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16509       else
16510         ld_shlibs_GCJ=no
16511       fi
16512       ;;
16513
16514     interix3*)
16515       hardcode_direct_GCJ=no
16516       hardcode_shlibpath_var_GCJ=no
16517       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16518       export_dynamic_flag_spec_GCJ='${wl}-E'
16519       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16520       # Instead, shared libraries are loaded at an image base (0x10000000 by
16521       # default) and relocated if they conflict, which is a slow very memory
16522       # consuming and fragmenting process.  To avoid this, we pick a random,
16523       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16524       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16525       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'
16526       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'
16527       ;;
16528
16529     linux*)
16530       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16531         tmp_addflag=
16532         case $cc_basename,$host_cpu in
16533         pgcc*)                          # Portland Group C compiler
16534           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'
16535           tmp_addflag=' $pic_flag'
16536           ;;
16537         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16538           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'
16539           tmp_addflag=' $pic_flag -Mnomain' ;;
16540         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16541           tmp_addflag=' -i_dynamic' ;;
16542         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16543           tmp_addflag=' -i_dynamic -nofor_main' ;;
16544         ifc* | ifort*)                  # Intel Fortran compiler
16545           tmp_addflag=' -nofor_main' ;;
16546         esac
16547         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16548
16549         if test $supports_anon_versioning = yes; then
16550           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16551   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16552   $echo "local: *; };" >> $output_objdir/$libname.ver~
16553           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16554         fi
16555       else
16556         ld_shlibs_GCJ=no
16557       fi
16558       ;;
16559
16560     netbsd*)
16561       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16562         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16563         wlarc=
16564       else
16565         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16566         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16567       fi
16568       ;;
16569
16570     solaris*)
16571       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16572         ld_shlibs_GCJ=no
16573         cat <<EOF 1>&2
16574
16575 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16576 *** create shared libraries on Solaris systems.  Therefore, libtool
16577 *** is disabling shared libraries support.  We urge you to upgrade GNU
16578 *** binutils to release 2.9.1 or newer.  Another option is to modify
16579 *** your PATH or compiler configuration so that the native linker is
16580 *** used, and then restart.
16581
16582 EOF
16583       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16584         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16586       else
16587         ld_shlibs_GCJ=no
16588       fi
16589       ;;
16590
16591     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16592       case `$LD -v 2>&1` in
16593         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16594         ld_shlibs_GCJ=no
16595         cat <<_LT_EOF 1>&2
16596
16597 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16598 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16599 *** is disabling shared libraries support.  We urge you to upgrade GNU
16600 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16601 *** your PATH or compiler configuration so that the native linker is
16602 *** used, and then restart.
16603
16604 _LT_EOF
16605         ;;
16606         *)
16607           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16608             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16609             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16610             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16611           else
16612             ld_shlibs_GCJ=no
16613           fi
16614         ;;
16615       esac
16616       ;;
16617
16618     sunos4*)
16619       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16620       wlarc=
16621       hardcode_direct_GCJ=yes
16622       hardcode_shlibpath_var_GCJ=no
16623       ;;
16624
16625     *)
16626       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16627         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16628         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16629       else
16630         ld_shlibs_GCJ=no
16631       fi
16632       ;;
16633     esac
16634
16635     if test "$ld_shlibs_GCJ" = no; then
16636       runpath_var=
16637       hardcode_libdir_flag_spec_GCJ=
16638       export_dynamic_flag_spec_GCJ=
16639       whole_archive_flag_spec_GCJ=
16640     fi
16641   else
16642     # PORTME fill in a description of your system's linker (not GNU ld)
16643     case $host_os in
16644     aix3*)
16645       allow_undefined_flag_GCJ=unsupported
16646       always_export_symbols_GCJ=yes
16647       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'
16648       # Note: this linker hardcodes the directories in LIBPATH if there
16649       # are no directories specified by -L.
16650       hardcode_minus_L_GCJ=yes
16651       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16652         # Neither direct hardcoding nor static linking is supported with a
16653         # broken collect2.
16654         hardcode_direct_GCJ=unsupported
16655       fi
16656       ;;
16657
16658     aix4* | aix5*)
16659       if test "$host_cpu" = ia64; then
16660         # On IA64, the linker does run time linking by default, so we don't
16661         # have to do anything special.
16662         aix_use_runtimelinking=no
16663         exp_sym_flag='-Bexport'
16664         no_entry_flag=""
16665       else
16666         # If we're using GNU nm, then we don't want the "-C" option.
16667         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16668         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16669           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'
16670         else
16671           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'
16672         fi
16673         aix_use_runtimelinking=no
16674
16675         # Test if we are trying to use run time linking or normal
16676         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16677         # need to do runtime linking.
16678         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16679           for ld_flag in $LDFLAGS; do
16680           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16681             aix_use_runtimelinking=yes
16682             break
16683           fi
16684           done
16685           ;;
16686         esac
16687
16688         exp_sym_flag='-bexport'
16689         no_entry_flag='-bnoentry'
16690       fi
16691
16692       # When large executables or shared objects are built, AIX ld can
16693       # have problems creating the table of contents.  If linking a library
16694       # or program results in "error TOC overflow" add -mminimal-toc to
16695       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16696       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16697
16698       archive_cmds_GCJ=''
16699       hardcode_direct_GCJ=yes
16700       hardcode_libdir_separator_GCJ=':'
16701       link_all_deplibs_GCJ=yes
16702
16703       if test "$GCC" = yes; then
16704         case $host_os in aix4.[012]|aix4.[012].*)
16705         # We only want to do this on AIX 4.2 and lower, the check
16706         # below for broken collect2 doesn't work under 4.3+
16707           collect2name=`${CC} -print-prog-name=collect2`
16708           if test -f "$collect2name" && \
16709            strings "$collect2name" | grep resolve_lib_name >/dev/null
16710           then
16711           # We have reworked collect2
16712           hardcode_direct_GCJ=yes
16713           else
16714           # We have old collect2
16715           hardcode_direct_GCJ=unsupported
16716           # It fails to find uninstalled libraries when the uninstalled
16717           # path is not listed in the libpath.  Setting hardcode_minus_L
16718           # to unsupported forces relinking
16719           hardcode_minus_L_GCJ=yes
16720           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16721           hardcode_libdir_separator_GCJ=
16722           fi
16723           ;;
16724         esac
16725         shared_flag='-shared'
16726         if test "$aix_use_runtimelinking" = yes; then
16727           shared_flag="$shared_flag "'${wl}-G'
16728         fi
16729       else
16730         # not using gcc
16731         if test "$host_cpu" = ia64; then
16732         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16733         # chokes on -Wl,-G. The following line is correct:
16734           shared_flag='-G'
16735         else
16736           if test "$aix_use_runtimelinking" = yes; then
16737             shared_flag='${wl}-G'
16738           else
16739             shared_flag='${wl}-bM:SRE'
16740           fi
16741         fi
16742       fi
16743
16744       # It seems that -bexpall does not export symbols beginning with
16745       # underscore (_), so it is better to generate a list of symbols to export.
16746       always_export_symbols_GCJ=yes
16747       if test "$aix_use_runtimelinking" = yes; then
16748         # Warning - without using the other runtime loading flags (-brtl),
16749         # -berok will link without error, but may produce a broken library.
16750         allow_undefined_flag_GCJ='-berok'
16751        # Determine the default libpath from the value encoded in an empty executable.
16752        cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758
16759 int
16760 main ()
16761 {
16762
16763   ;
16764   return 0;
16765 }
16766 _ACEOF
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16769   (eval $ac_link) 2>conftest.er1
16770   ac_status=$?
16771   grep -v '^ *+' conftest.er1 >conftest.err
16772   rm -f conftest.er1
16773   cat conftest.err >&5
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } &&
16776          { ac_try='test -z "$ac_c_werror_flag"
16777                          || test ! -s conftest.err'
16778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779   (eval $ac_try) 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; } &&
16783          { ac_try='test -s conftest$ac_exeext'
16784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785   (eval $ac_try) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; }; then
16789
16790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16791 }'`
16792 # Check for a 64-bit object if we didn't find anything.
16793 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; }
16794 }'`; fi
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799 fi
16800 rm -f conftest.err conftest.$ac_objext \
16801       conftest$ac_exeext conftest.$ac_ext
16802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16803
16804        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16805         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"
16806        else
16807         if test "$host_cpu" = ia64; then
16808           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16809           allow_undefined_flag_GCJ="-z nodefs"
16810           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"
16811         else
16812          # Determine the default libpath from the value encoded in an empty executable.
16813          cat >conftest.$ac_ext <<_ACEOF
16814 /* confdefs.h.  */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h.  */
16819
16820 int
16821 main ()
16822 {
16823
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16830   (eval $ac_link) 2>conftest.er1
16831   ac_status=$?
16832   grep -v '^ *+' conftest.er1 >conftest.err
16833   rm -f conftest.er1
16834   cat conftest.err >&5
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -z "$ac_c_werror_flag"
16838                          || test ! -s conftest.err'
16839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840   (eval $ac_try) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); }; } &&
16844          { ac_try='test -s conftest$ac_exeext'
16845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846   (eval $ac_try) 2>&5
16847   ac_status=$?
16848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); }; }; then
16850
16851 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16852 }'`
16853 # Check for a 64-bit object if we didn't find anything.
16854 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; }
16855 }'`; fi
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 fi
16861 rm -f conftest.err conftest.$ac_objext \
16862       conftest$ac_exeext conftest.$ac_ext
16863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16864
16865          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16866           # Warning - without using the other run time loading flags,
16867           # -berok will link without error, but may produce a broken library.
16868           no_undefined_flag_GCJ=' ${wl}-bernotok'
16869           allow_undefined_flag_GCJ=' ${wl}-berok'
16870           # Exported symbols can be pulled into shared objects from archives
16871           whole_archive_flag_spec_GCJ='$convenience'
16872           archive_cmds_need_lc_GCJ=yes
16873           # This is similar to how AIX traditionally builds its shared libraries.
16874           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'
16875         fi
16876       fi
16877       ;;
16878
16879     amigaos*)
16880       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)'
16881       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882       hardcode_minus_L_GCJ=yes
16883       # see comment about different semantics on the GNU ld section
16884       ld_shlibs_GCJ=no
16885       ;;
16886
16887     bsdi[45]*)
16888       export_dynamic_flag_spec_GCJ=-rdynamic
16889       ;;
16890
16891     cygwin* | mingw* | pw32*)
16892       # When not using gcc, we currently assume that we are using
16893       # Microsoft Visual C++.
16894       # hardcode_libdir_flag_spec is actually meaningless, as there is
16895       # no search path for DLLs.
16896       hardcode_libdir_flag_spec_GCJ=' '
16897       allow_undefined_flag_GCJ=unsupported
16898       # Tell ltmain to make .lib files, not .a files.
16899       libext=lib
16900       # Tell ltmain to make .dll files, not .so files.
16901       shrext_cmds=".dll"
16902       # FIXME: Setting linknames here is a bad hack.
16903       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16904       # The linker will automatically build a .lib file if we build a DLL.
16905       old_archive_From_new_cmds_GCJ='true'
16906       # FIXME: Should let the user specify the lib program.
16907       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16908       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16909       enable_shared_with_static_runtimes_GCJ=yes
16910       ;;
16911
16912     darwin* | rhapsody*)
16913       case $host_os in
16914         rhapsody* | darwin1.[012])
16915          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16916          ;;
16917        *) # Darwin 1.3 on
16918          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16919            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16920          else
16921            case ${MACOSX_DEPLOYMENT_TARGET} in
16922              10.[012])
16923                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16924                ;;
16925              10.*)
16926                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16927                ;;
16928            esac
16929          fi
16930          ;;
16931       esac
16932       archive_cmds_need_lc_GCJ=no
16933       hardcode_direct_GCJ=no
16934       hardcode_automatic_GCJ=yes
16935       hardcode_shlibpath_var_GCJ=unsupported
16936       whole_archive_flag_spec_GCJ=''
16937       link_all_deplibs_GCJ=yes
16938     if test "$GCC" = yes ; then
16939         output_verbose_link_cmd='echo'
16940         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16941       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16942       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16943       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}'
16944       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}'
16945     else
16946       case $cc_basename in
16947         xlc*)
16948          output_verbose_link_cmd='echo'
16949          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16950          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16951           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16952          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}'
16953           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}'
16954           ;;
16955        *)
16956          ld_shlibs_GCJ=no
16957           ;;
16958       esac
16959     fi
16960       ;;
16961
16962     dgux*)
16963       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16965       hardcode_shlibpath_var_GCJ=no
16966       ;;
16967
16968     freebsd1*)
16969       ld_shlibs_GCJ=no
16970       ;;
16971
16972     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16973     # support.  Future versions do this automatically, but an explicit c++rt0.o
16974     # does not break anything, and helps significantly (at the cost of a little
16975     # extra space).
16976     freebsd2.2*)
16977       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16978       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16979       hardcode_direct_GCJ=yes
16980       hardcode_shlibpath_var_GCJ=no
16981       ;;
16982
16983     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16984     freebsd2*)
16985       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16986       hardcode_direct_GCJ=yes
16987       hardcode_minus_L_GCJ=yes
16988       hardcode_shlibpath_var_GCJ=no
16989       ;;
16990
16991     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16992     freebsd* | kfreebsd*-gnu | dragonfly*)
16993       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16994       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16995       hardcode_direct_GCJ=yes
16996       hardcode_shlibpath_var_GCJ=no
16997       ;;
16998
16999     hpux9*)
17000       if test "$GCC" = yes; then
17001         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'
17002       else
17003         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'
17004       fi
17005       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17006       hardcode_libdir_separator_GCJ=:
17007       hardcode_direct_GCJ=yes
17008
17009       # hardcode_minus_L: Not really in the search PATH,
17010       # but as the default location of the library.
17011       hardcode_minus_L_GCJ=yes
17012       export_dynamic_flag_spec_GCJ='${wl}-E'
17013       ;;
17014
17015     hpux10*)
17016       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17017         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17018       else
17019         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17020       fi
17021       if test "$with_gnu_ld" = no; then
17022         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17023         hardcode_libdir_separator_GCJ=:
17024
17025         hardcode_direct_GCJ=yes
17026         export_dynamic_flag_spec_GCJ='${wl}-E'
17027
17028         # hardcode_minus_L: Not really in the search PATH,
17029         # but as the default location of the library.
17030         hardcode_minus_L_GCJ=yes
17031       fi
17032       ;;
17033
17034     hpux11*)
17035       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17036         case $host_cpu in
17037         hppa*64*)
17038           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17039           ;;
17040         ia64*)
17041           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17042           ;;
17043         *)
17044           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17045           ;;
17046         esac
17047       else
17048         case $host_cpu in
17049         hppa*64*)
17050           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17051           ;;
17052         ia64*)
17053           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17054           ;;
17055         *)
17056           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17057           ;;
17058         esac
17059       fi
17060       if test "$with_gnu_ld" = no; then
17061         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17062         hardcode_libdir_separator_GCJ=:
17063
17064         case $host_cpu in
17065         hppa*64*|ia64*)
17066           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17067           hardcode_direct_GCJ=no
17068           hardcode_shlibpath_var_GCJ=no
17069           ;;
17070         *)
17071           hardcode_direct_GCJ=yes
17072           export_dynamic_flag_spec_GCJ='${wl}-E'
17073
17074           # hardcode_minus_L: Not really in the search PATH,
17075           # but as the default location of the library.
17076           hardcode_minus_L_GCJ=yes
17077           ;;
17078         esac
17079       fi
17080       ;;
17081
17082     irix5* | irix6* | nonstopux*)
17083       if test "$GCC" = yes; then
17084         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'
17085       else
17086         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'
17087         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17088       fi
17089       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17090       hardcode_libdir_separator_GCJ=:
17091       link_all_deplibs_GCJ=yes
17092       ;;
17093
17094     netbsd*)
17095       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17096         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17097       else
17098         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17099       fi
17100       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17101       hardcode_direct_GCJ=yes
17102       hardcode_shlibpath_var_GCJ=no
17103       ;;
17104
17105     newsos6)
17106       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17107       hardcode_direct_GCJ=yes
17108       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17109       hardcode_libdir_separator_GCJ=:
17110       hardcode_shlibpath_var_GCJ=no
17111       ;;
17112
17113     openbsd*)
17114       hardcode_direct_GCJ=yes
17115       hardcode_shlibpath_var_GCJ=no
17116       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17117         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17118         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17119         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17120         export_dynamic_flag_spec_GCJ='${wl}-E'
17121       else
17122        case $host_os in
17123          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17124            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17125            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17126            ;;
17127          *)
17128            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17129            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17130            ;;
17131        esac
17132       fi
17133       ;;
17134
17135     os2*)
17136       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17137       hardcode_minus_L_GCJ=yes
17138       allow_undefined_flag_GCJ=unsupported
17139       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'
17140       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17141       ;;
17142
17143     osf3*)
17144       if test "$GCC" = yes; then
17145         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17146         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'
17147       else
17148         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17149         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'
17150       fi
17151       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17152       hardcode_libdir_separator_GCJ=:
17153       ;;
17154
17155     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17156       if test "$GCC" = yes; then
17157         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17158         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'
17159         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17160       else
17161         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17162         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'
17163         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~
17164         $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'
17165
17166         # Both c and cxx compiler support -rpath directly
17167         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17168       fi
17169       hardcode_libdir_separator_GCJ=:
17170       ;;
17171
17172     solaris*)
17173       no_undefined_flag_GCJ=' -z text'
17174       if test "$GCC" = yes; then
17175         wlarc='${wl}'
17176         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17177         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17178           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17179       else
17180         wlarc=''
17181         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17182         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17183         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17184       fi
17185       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17186       hardcode_shlibpath_var_GCJ=no
17187       case $host_os in
17188       solaris2.[0-5] | solaris2.[0-5].*) ;;
17189       *)
17190         # The compiler driver will combine linker options so we
17191         # cannot just pass the convience library names through
17192         # without $wl, iff we do not link with $LD.
17193         # Luckily, gcc supports the same syntax we need for Sun Studio.
17194         # Supported since Solaris 2.6 (maybe 2.5.1?)
17195         case $wlarc in
17196         '')
17197           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17198         *)
17199           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' ;;
17200         esac ;;
17201       esac
17202       link_all_deplibs_GCJ=yes
17203       ;;
17204
17205     sunos4*)
17206       if test "x$host_vendor" = xsequent; then
17207         # Use $CC to link under sequent, because it throws in some extra .o
17208         # files that make .init and .fini sections work.
17209         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17210       else
17211         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17212       fi
17213       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214       hardcode_direct_GCJ=yes
17215       hardcode_minus_L_GCJ=yes
17216       hardcode_shlibpath_var_GCJ=no
17217       ;;
17218
17219     sysv4)
17220       case $host_vendor in
17221         sni)
17222           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223           hardcode_direct_GCJ=yes # is this really true???
17224         ;;
17225         siemens)
17226           ## LD is ld it makes a PLAMLIB
17227           ## CC just makes a GrossModule.
17228           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17229           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17230           hardcode_direct_GCJ=no
17231         ;;
17232         motorola)
17233           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17234           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17235         ;;
17236       esac
17237       runpath_var='LD_RUN_PATH'
17238       hardcode_shlibpath_var_GCJ=no
17239       ;;
17240
17241     sysv4.3*)
17242       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243       hardcode_shlibpath_var_GCJ=no
17244       export_dynamic_flag_spec_GCJ='-Bexport'
17245       ;;
17246
17247     sysv4*MP*)
17248       if test -d /usr/nec; then
17249         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250         hardcode_shlibpath_var_GCJ=no
17251         runpath_var=LD_RUN_PATH
17252         hardcode_runpath_var=yes
17253         ld_shlibs_GCJ=yes
17254       fi
17255       ;;
17256
17257     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17258       no_undefined_flag_GCJ='${wl}-z,text'
17259       archive_cmds_need_lc_GCJ=no
17260       hardcode_shlibpath_var_GCJ=no
17261       runpath_var='LD_RUN_PATH'
17262
17263       if test "$GCC" = yes; then
17264         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17265         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17266       else
17267         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17268         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17269       fi
17270       ;;
17271
17272     sysv5* | sco3.2v5* | sco5v6*)
17273       # Note: We can NOT use -z defs as we might desire, because we do not
17274       # link with -lc, and that would cause any symbols used from libc to
17275       # always be unresolved, which means just about no library would
17276       # ever link correctly.  If we're not using GNU ld we use -z text
17277       # though, which does catch some bad symbols but isn't as heavy-handed
17278       # as -z defs.
17279       no_undefined_flag_GCJ='${wl}-z,text'
17280       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17281       archive_cmds_need_lc_GCJ=no
17282       hardcode_shlibpath_var_GCJ=no
17283       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17284       hardcode_libdir_separator_GCJ=':'
17285       link_all_deplibs_GCJ=yes
17286       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17287       runpath_var='LD_RUN_PATH'
17288
17289       if test "$GCC" = yes; then
17290         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17291         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17292       else
17293         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17294         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17295       fi
17296       ;;
17297
17298     uts4*)
17299       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17300       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301       hardcode_shlibpath_var_GCJ=no
17302       ;;
17303
17304     *)
17305       ld_shlibs_GCJ=no
17306       ;;
17307     esac
17308   fi
17309
17310 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17311 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17312 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17313
17314 #
17315 # Do we need to explicitly link libc?
17316 #
17317 case "x$archive_cmds_need_lc_GCJ" in
17318 x|xyes)
17319   # Assume -lc should be added
17320   archive_cmds_need_lc_GCJ=yes
17321
17322   if test "$enable_shared" = yes && test "$GCC" = yes; then
17323     case $archive_cmds_GCJ in
17324     *'~'*)
17325       # FIXME: we may have to deal with multi-command sequences.
17326       ;;
17327     '$CC '*)
17328       # Test whether the compiler implicitly links with -lc since on some
17329       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17330       # to ld, don't add -lc before -lgcc.
17331       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17333       $rm conftest*
17334       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17335
17336       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337   (eval $ac_compile) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } 2>conftest.err; then
17341         soname=conftest
17342         lib=conftest
17343         libobjs=conftest.$ac_objext
17344         deplibs=
17345         wl=$lt_prog_compiler_wl_GCJ
17346         pic_flag=$lt_prog_compiler_pic_GCJ
17347         compiler_flags=-v
17348         linker_flags=-v
17349         verstring=
17350         output_objdir=.
17351         libname=conftest
17352         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17353         allow_undefined_flag_GCJ=
17354         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17355   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }
17359         then
17360           archive_cmds_need_lc_GCJ=no
17361         else
17362           archive_cmds_need_lc_GCJ=yes
17363         fi
17364         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17365       else
17366         cat conftest.err 1>&5
17367       fi
17368       $rm conftest*
17369       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17370 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17371       ;;
17372     esac
17373   fi
17374   ;;
17375 esac
17376
17377 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17379 library_names_spec=
17380 libname_spec='lib$name'
17381 soname_spec=
17382 shrext_cmds=".so"
17383 postinstall_cmds=
17384 postuninstall_cmds=
17385 finish_cmds=
17386 finish_eval=
17387 shlibpath_var=
17388 shlibpath_overrides_runpath=unknown
17389 version_type=none
17390 dynamic_linker="$host_os ld.so"
17391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17392 if test "$GCC" = yes; then
17393   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17394   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17395     # if the path contains ";" then we assume it to be the separator
17396     # otherwise default to the standard path separator (i.e. ":") - it is
17397     # assumed that no part of a normal pathname contains ";" but that should
17398     # okay in the real world where ";" in dirpaths is itself problematic.
17399     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17400   else
17401     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17402   fi
17403 else
17404   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17405 fi
17406 need_lib_prefix=unknown
17407 hardcode_into_libs=no
17408
17409 # when you set need_version to no, make sure it does not cause -set_version
17410 # flags to be left without arguments
17411 need_version=unknown
17412
17413 case $host_os in
17414 aix3*)
17415   version_type=linux
17416   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17417   shlibpath_var=LIBPATH
17418
17419   # AIX 3 has no versioning support, so we append a major version to the name.
17420   soname_spec='${libname}${release}${shared_ext}$major'
17421   ;;
17422
17423 aix4* | aix5*)
17424   version_type=linux
17425   need_lib_prefix=no
17426   need_version=no
17427   hardcode_into_libs=yes
17428   if test "$host_cpu" = ia64; then
17429     # AIX 5 supports IA64
17430     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17431     shlibpath_var=LD_LIBRARY_PATH
17432   else
17433     # With GCC up to 2.95.x, collect2 would create an import file
17434     # for dependence libraries.  The import file would start with
17435     # the line `#! .'.  This would cause the generated library to
17436     # depend on `.', always an invalid library.  This was fixed in
17437     # development snapshots of GCC prior to 3.0.
17438     case $host_os in
17439       aix4 | aix4.[01] | aix4.[01].*)
17440       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17441            echo ' yes '
17442            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17443         :
17444       else
17445         can_build_shared=no
17446       fi
17447       ;;
17448     esac
17449     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17450     # soname into executable. Probably we can add versioning support to
17451     # collect2, so additional links can be useful in future.
17452     if test "$aix_use_runtimelinking" = yes; then
17453       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17454       # instead of lib<name>.a to let people know that these are not
17455       # typical AIX shared libraries.
17456       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457     else
17458       # We preserve .a as extension for shared libraries through AIX4.2
17459       # and later when we are not doing run time linking.
17460       library_names_spec='${libname}${release}.a $libname.a'
17461       soname_spec='${libname}${release}${shared_ext}$major'
17462     fi
17463     shlibpath_var=LIBPATH
17464   fi
17465   ;;
17466
17467 amigaos*)
17468   library_names_spec='$libname.ixlibrary $libname.a'
17469   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17470   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'
17471   ;;
17472
17473 beos*)
17474   library_names_spec='${libname}${shared_ext}'
17475   dynamic_linker="$host_os ld.so"
17476   shlibpath_var=LIBRARY_PATH
17477   ;;
17478
17479 bsdi[45]*)
17480   version_type=linux
17481   need_version=no
17482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483   soname_spec='${libname}${release}${shared_ext}$major'
17484   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17485   shlibpath_var=LD_LIBRARY_PATH
17486   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17487   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17488   # the default ld.so.conf also contains /usr/contrib/lib and
17489   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17490   # libtool to hard-code these into programs
17491   ;;
17492
17493 cygwin* | mingw* | pw32*)
17494   version_type=windows
17495   shrext_cmds=".dll"
17496   need_version=no
17497   need_lib_prefix=no
17498
17499   case $GCC,$host_os in
17500   yes,cygwin* | yes,mingw* | yes,pw32*)
17501     library_names_spec='$libname.dll.a'
17502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17503     postinstall_cmds='base_file=`basename \${file}`~
17504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17505       dldir=$destdir/`dirname \$dlpath`~
17506       test -d \$dldir || mkdir -p \$dldir~
17507       $install_prog $dir/$dlname \$dldir/$dlname~
17508       chmod a+x \$dldir/$dlname'
17509     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17510       dlpath=$dir/\$dldll~
17511        $rm \$dlpath'
17512     shlibpath_overrides_runpath=yes
17513
17514     case $host_os in
17515     cygwin*)
17516       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17517       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17518       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17519       ;;
17520     mingw*)
17521       # MinGW DLLs use traditional 'lib' prefix
17522       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17523       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17524       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17525         # It is most probably a Windows format PATH printed by
17526         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17527         # path with ; separators, and with drive letters. We can handle the
17528         # drive letters (cygwin fileutils understands them), so leave them,
17529         # especially as we might pass files found there to a mingw objdump,
17530         # which wouldn't understand a cygwinified path. Ahh.
17531         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17532       else
17533         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17534       fi
17535       ;;
17536     pw32*)
17537       # pw32 DLLs use 'pw' prefix rather than 'lib'
17538       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17539       ;;
17540     esac
17541     ;;
17542
17543   *)
17544     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17545     ;;
17546   esac
17547   dynamic_linker='Win32 ld.exe'
17548   # FIXME: first we should search . and the directory the executable is in
17549   shlibpath_var=PATH
17550   ;;
17551
17552 darwin* | rhapsody*)
17553   dynamic_linker="$host_os dyld"
17554   version_type=darwin
17555   need_lib_prefix=no
17556   need_version=no
17557   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17558   soname_spec='${libname}${release}${major}$shared_ext'
17559   shlibpath_overrides_runpath=yes
17560   shlibpath_var=DYLD_LIBRARY_PATH
17561   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17562   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17563   if test "$GCC" = yes; then
17564     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"`
17565   else
17566     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17567   fi
17568   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17569   ;;
17570
17571 dgux*)
17572   version_type=linux
17573   need_lib_prefix=no
17574   need_version=no
17575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17576   soname_spec='${libname}${release}${shared_ext}$major'
17577   shlibpath_var=LD_LIBRARY_PATH
17578   ;;
17579
17580 freebsd1*)
17581   dynamic_linker=no
17582   ;;
17583
17584 kfreebsd*-gnu)
17585   version_type=linux
17586   need_lib_prefix=no
17587   need_version=no
17588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17589   soname_spec='${libname}${release}${shared_ext}$major'
17590   shlibpath_var=LD_LIBRARY_PATH
17591   shlibpath_overrides_runpath=no
17592   hardcode_into_libs=yes
17593   dynamic_linker='GNU ld.so'
17594   ;;
17595
17596 freebsd* | dragonfly*)
17597   # DragonFly does not have aout.  When/if they implement a new
17598   # versioning mechanism, adjust this.
17599   if test -x /usr/bin/objformat; then
17600     objformat=`/usr/bin/objformat`
17601   else
17602     case $host_os in
17603     freebsd[123]*) objformat=aout ;;
17604     *) objformat=elf ;;
17605     esac
17606   fi
17607   version_type=freebsd-$objformat
17608   case $version_type in
17609     freebsd-elf*)
17610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17611       need_version=no
17612       need_lib_prefix=no
17613       ;;
17614     freebsd-*)
17615       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17616       need_version=yes
17617       ;;
17618   esac
17619   shlibpath_var=LD_LIBRARY_PATH
17620   case $host_os in
17621   freebsd2*)
17622     shlibpath_overrides_runpath=yes
17623     ;;
17624   freebsd3.[01]* | freebsdelf3.[01]*)
17625     shlibpath_overrides_runpath=yes
17626     hardcode_into_libs=yes
17627     ;;
17628   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17629   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17630     shlibpath_overrides_runpath=no
17631     hardcode_into_libs=yes
17632     ;;
17633   freebsd*) # from 4.6 on
17634     shlibpath_overrides_runpath=yes
17635     hardcode_into_libs=yes
17636     ;;
17637   esac
17638   ;;
17639
17640 gnu*)
17641   version_type=linux
17642   need_lib_prefix=no
17643   need_version=no
17644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17645   soname_spec='${libname}${release}${shared_ext}$major'
17646   shlibpath_var=LD_LIBRARY_PATH
17647   hardcode_into_libs=yes
17648   ;;
17649
17650 hpux9* | hpux10* | hpux11*)
17651   # Give a soname corresponding to the major version so that dld.sl refuses to
17652   # link against other versions.
17653   version_type=sunos
17654   need_lib_prefix=no
17655   need_version=no
17656   case $host_cpu in
17657   ia64*)
17658     shrext_cmds='.so'
17659     hardcode_into_libs=yes
17660     dynamic_linker="$host_os dld.so"
17661     shlibpath_var=LD_LIBRARY_PATH
17662     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664     soname_spec='${libname}${release}${shared_ext}$major'
17665     if test "X$HPUX_IA64_MODE" = X32; then
17666       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17667     else
17668       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17669     fi
17670     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17671     ;;
17672    hppa*64*)
17673      shrext_cmds='.sl'
17674      hardcode_into_libs=yes
17675      dynamic_linker="$host_os dld.sl"
17676      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17677      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17678      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679      soname_spec='${libname}${release}${shared_ext}$major'
17680      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17681      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17682      ;;
17683    *)
17684     shrext_cmds='.sl'
17685     dynamic_linker="$host_os dld.sl"
17686     shlibpath_var=SHLIB_PATH
17687     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689     soname_spec='${libname}${release}${shared_ext}$major'
17690     ;;
17691   esac
17692   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17693   postinstall_cmds='chmod 555 $lib'
17694   ;;
17695
17696 interix3*)
17697   version_type=linux
17698   need_lib_prefix=no
17699   need_version=no
17700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17701   soname_spec='${libname}${release}${shared_ext}$major'
17702   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17703   shlibpath_var=LD_LIBRARY_PATH
17704   shlibpath_overrides_runpath=no
17705   hardcode_into_libs=yes
17706   ;;
17707
17708 irix5* | irix6* | nonstopux*)
17709   case $host_os in
17710     nonstopux*) version_type=nonstopux ;;
17711     *)
17712         if test "$lt_cv_prog_gnu_ld" = yes; then
17713                 version_type=linux
17714         else
17715                 version_type=irix
17716         fi ;;
17717   esac
17718   need_lib_prefix=no
17719   need_version=no
17720   soname_spec='${libname}${release}${shared_ext}$major'
17721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17722   case $host_os in
17723   irix5* | nonstopux*)
17724     libsuff= shlibsuff=
17725     ;;
17726   *)
17727     case $LD in # libtool.m4 will add one of these switches to LD
17728     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17729       libsuff= shlibsuff= libmagic=32-bit;;
17730     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17731       libsuff=32 shlibsuff=N32 libmagic=N32;;
17732     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17733       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17734     *) libsuff= shlibsuff= libmagic=never-match;;
17735     esac
17736     ;;
17737   esac
17738   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17739   shlibpath_overrides_runpath=no
17740   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17741   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17742   hardcode_into_libs=yes
17743   ;;
17744
17745 # No shared lib support for Linux oldld, aout, or coff.
17746 linux*oldld* | linux*aout* | linux*coff*)
17747   dynamic_linker=no
17748   ;;
17749
17750 # This must be Linux ELF.
17751 linux*)
17752   version_type=linux
17753   need_lib_prefix=no
17754   need_version=no
17755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756   soname_spec='${libname}${release}${shared_ext}$major'
17757   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17758   shlibpath_var=LD_LIBRARY_PATH
17759   shlibpath_overrides_runpath=no
17760   # This implies no fast_install, which is unacceptable.
17761   # Some rework will be needed to allow for fast_install
17762   # before this can be enabled.
17763   hardcode_into_libs=yes
17764
17765   # find out which ABI we are using
17766   libsuff=
17767   case "$host_cpu" in
17768   x86_64*|s390x*|powerpc64*)
17769     echo '#line 17769 "configure"' > conftest.$ac_ext
17770     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17771   (eval $ac_compile) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; then
17775       case `/usr/bin/file conftest.$ac_objext` in
17776       *64-bit*)
17777         libsuff=64
17778         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17779         ;;
17780       esac
17781     fi
17782     rm -rf conftest*
17783     ;;
17784   esac
17785
17786   # Append ld.so.conf contents to the search path
17787   if test -f /etc/ld.so.conf; then
17788     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' ' '`
17789     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17790   fi
17791
17792   # We used to test for /lib/ld.so.1 and disable shared libraries on
17793   # powerpc, because MkLinux only supported shared libraries with the
17794   # GNU dynamic linker.  Since this was broken with cross compilers,
17795   # most powerpc-linux boxes support dynamic linking these days and
17796   # people can always --disable-shared, the test was removed, and we
17797   # assume the GNU/Linux dynamic linker is in use.
17798   dynamic_linker='GNU/Linux ld.so'
17799   ;;
17800
17801 knetbsd*-gnu)
17802   version_type=linux
17803   need_lib_prefix=no
17804   need_version=no
17805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17806   soname_spec='${libname}${release}${shared_ext}$major'
17807   shlibpath_var=LD_LIBRARY_PATH
17808   shlibpath_overrides_runpath=no
17809   hardcode_into_libs=yes
17810   dynamic_linker='GNU ld.so'
17811   ;;
17812
17813 netbsd*)
17814   version_type=sunos
17815   need_lib_prefix=no
17816   need_version=no
17817   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17819     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17820     dynamic_linker='NetBSD (a.out) ld.so'
17821   else
17822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17823     soname_spec='${libname}${release}${shared_ext}$major'
17824     dynamic_linker='NetBSD ld.elf_so'
17825   fi
17826   shlibpath_var=LD_LIBRARY_PATH
17827   shlibpath_overrides_runpath=yes
17828   hardcode_into_libs=yes
17829   ;;
17830
17831 newsos6)
17832   version_type=linux
17833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834   shlibpath_var=LD_LIBRARY_PATH
17835   shlibpath_overrides_runpath=yes
17836   ;;
17837
17838 nto-qnx*)
17839   version_type=linux
17840   need_lib_prefix=no
17841   need_version=no
17842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843   soname_spec='${libname}${release}${shared_ext}$major'
17844   shlibpath_var=LD_LIBRARY_PATH
17845   shlibpath_overrides_runpath=yes
17846   ;;
17847
17848 openbsd*)
17849   version_type=sunos
17850   sys_lib_dlsearch_path_spec="/usr/lib"
17851   need_lib_prefix=no
17852   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17853   case $host_os in
17854     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17855     *)                         need_version=no  ;;
17856   esac
17857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17859   shlibpath_var=LD_LIBRARY_PATH
17860   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17861     case $host_os in
17862       openbsd2.[89] | openbsd2.[89].*)
17863         shlibpath_overrides_runpath=no
17864         ;;
17865       *)
17866         shlibpath_overrides_runpath=yes
17867         ;;
17868       esac
17869   else
17870     shlibpath_overrides_runpath=yes
17871   fi
17872   ;;
17873
17874 os2*)
17875   libname_spec='$name'
17876   shrext_cmds=".dll"
17877   need_lib_prefix=no
17878   library_names_spec='$libname${shared_ext} $libname.a'
17879   dynamic_linker='OS/2 ld.exe'
17880   shlibpath_var=LIBPATH
17881   ;;
17882
17883 osf3* | osf4* | osf5*)
17884   version_type=osf
17885   need_lib_prefix=no
17886   need_version=no
17887   soname_spec='${libname}${release}${shared_ext}$major'
17888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889   shlibpath_var=LD_LIBRARY_PATH
17890   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17891   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17892   ;;
17893
17894 solaris*)
17895   version_type=linux
17896   need_lib_prefix=no
17897   need_version=no
17898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899   soname_spec='${libname}${release}${shared_ext}$major'
17900   shlibpath_var=LD_LIBRARY_PATH
17901   shlibpath_overrides_runpath=yes
17902   hardcode_into_libs=yes
17903   # ldd complains unless libraries are executable
17904   postinstall_cmds='chmod +x $lib'
17905   ;;
17906
17907 sunos4*)
17908   version_type=sunos
17909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17910   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17911   shlibpath_var=LD_LIBRARY_PATH
17912   shlibpath_overrides_runpath=yes
17913   if test "$with_gnu_ld" = yes; then
17914     need_lib_prefix=no
17915   fi
17916   need_version=yes
17917   ;;
17918
17919 sysv4 | sysv4.3*)
17920   version_type=linux
17921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17922   soname_spec='${libname}${release}${shared_ext}$major'
17923   shlibpath_var=LD_LIBRARY_PATH
17924   case $host_vendor in
17925     sni)
17926       shlibpath_overrides_runpath=no
17927       need_lib_prefix=no
17928       export_dynamic_flag_spec='${wl}-Blargedynsym'
17929       runpath_var=LD_RUN_PATH
17930       ;;
17931     siemens)
17932       need_lib_prefix=no
17933       ;;
17934     motorola)
17935       need_lib_prefix=no
17936       need_version=no
17937       shlibpath_overrides_runpath=no
17938       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17939       ;;
17940   esac
17941   ;;
17942
17943 sysv4*MP*)
17944   if test -d /usr/nec ;then
17945     version_type=linux
17946     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17947     soname_spec='$libname${shared_ext}.$major'
17948     shlibpath_var=LD_LIBRARY_PATH
17949   fi
17950   ;;
17951
17952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17953   version_type=freebsd-elf
17954   need_lib_prefix=no
17955   need_version=no
17956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17957   soname_spec='${libname}${release}${shared_ext}$major'
17958   shlibpath_var=LD_LIBRARY_PATH
17959   hardcode_into_libs=yes
17960   if test "$with_gnu_ld" = yes; then
17961     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17962     shlibpath_overrides_runpath=no
17963   else
17964     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17965     shlibpath_overrides_runpath=yes
17966     case $host_os in
17967       sco3.2v5*)
17968         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17969         ;;
17970     esac
17971   fi
17972   sys_lib_dlsearch_path_spec='/usr/lib'
17973   ;;
17974
17975 uts4*)
17976   version_type=linux
17977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978   soname_spec='${libname}${release}${shared_ext}$major'
17979   shlibpath_var=LD_LIBRARY_PATH
17980   ;;
17981
17982 *)
17983   dynamic_linker=no
17984   ;;
17985 esac
17986 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17987 echo "${ECHO_T}$dynamic_linker" >&6
17988 test "$dynamic_linker" = no && can_build_shared=no
17989
17990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17991 if test "$GCC" = yes; then
17992   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17993 fi
17994
17995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17997 hardcode_action_GCJ=
17998 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17999    test -n "$runpath_var_GCJ" || \
18000    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18001
18002   # We can hardcode non-existant directories.
18003   if test "$hardcode_direct_GCJ" != no &&
18004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18005      # have to relink, otherwise we might link with an installed library
18006      # when we should be linking with a yet-to-be-installed one
18007      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18008      test "$hardcode_minus_L_GCJ" != no; then
18009     # Linking always hardcodes the temporary library directory.
18010     hardcode_action_GCJ=relink
18011   else
18012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18013     hardcode_action_GCJ=immediate
18014   fi
18015 else
18016   # We cannot hardcode anything, or else we can only hardcode existing
18017   # directories.
18018   hardcode_action_GCJ=unsupported
18019 fi
18020 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18021 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18022
18023 if test "$hardcode_action_GCJ" = relink; then
18024   # Fast installation is not supported
18025   enable_fast_install=no
18026 elif test "$shlibpath_overrides_runpath" = yes ||
18027      test "$enable_shared" = no; then
18028   # Fast installation is not necessary
18029   enable_fast_install=needless
18030 fi
18031
18032
18033 # The else clause should only fire when bootstrapping the
18034 # libtool distribution, otherwise you forgot to ship ltmain.sh
18035 # with your package, and you will get complaints that there are
18036 # no rules to generate ltmain.sh.
18037 if test -f "$ltmain"; then
18038   # See if we are running on zsh, and set the options which allow our commands through
18039   # without removal of \ escapes.
18040   if test -n "${ZSH_VERSION+set}" ; then
18041     setopt NO_GLOB_SUBST
18042   fi
18043   # Now quote all the things that may contain metacharacters while being
18044   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18045   # variables and quote the copies for generation of the libtool script.
18046   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18047     SED SHELL STRIP \
18048     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18049     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18050     deplibs_check_method reload_flag reload_cmds need_locks \
18051     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18052     lt_cv_sys_global_symbol_to_c_name_address \
18053     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18054     old_postinstall_cmds old_postuninstall_cmds \
18055     compiler_GCJ \
18056     CC_GCJ \
18057     LD_GCJ \
18058     lt_prog_compiler_wl_GCJ \
18059     lt_prog_compiler_pic_GCJ \
18060     lt_prog_compiler_static_GCJ \
18061     lt_prog_compiler_no_builtin_flag_GCJ \
18062     export_dynamic_flag_spec_GCJ \
18063     thread_safe_flag_spec_GCJ \
18064     whole_archive_flag_spec_GCJ \
18065     enable_shared_with_static_runtimes_GCJ \
18066     old_archive_cmds_GCJ \
18067     old_archive_from_new_cmds_GCJ \
18068     predep_objects_GCJ \
18069     postdep_objects_GCJ \
18070     predeps_GCJ \
18071     postdeps_GCJ \
18072     compiler_lib_search_path_GCJ \
18073     archive_cmds_GCJ \
18074     archive_expsym_cmds_GCJ \
18075     postinstall_cmds_GCJ \
18076     postuninstall_cmds_GCJ \
18077     old_archive_from_expsyms_cmds_GCJ \
18078     allow_undefined_flag_GCJ \
18079     no_undefined_flag_GCJ \
18080     export_symbols_cmds_GCJ \
18081     hardcode_libdir_flag_spec_GCJ \
18082     hardcode_libdir_flag_spec_ld_GCJ \
18083     hardcode_libdir_separator_GCJ \
18084     hardcode_automatic_GCJ \
18085     module_cmds_GCJ \
18086     module_expsym_cmds_GCJ \
18087     lt_cv_prog_compiler_c_o_GCJ \
18088     exclude_expsyms_GCJ \
18089     include_expsyms_GCJ; do
18090
18091     case $var in
18092     old_archive_cmds_GCJ | \
18093     old_archive_from_new_cmds_GCJ | \
18094     archive_cmds_GCJ | \
18095     archive_expsym_cmds_GCJ | \
18096     module_cmds_GCJ | \
18097     module_expsym_cmds_GCJ | \
18098     old_archive_from_expsyms_cmds_GCJ | \
18099     export_symbols_cmds_GCJ | \
18100     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18101     postinstall_cmds | postuninstall_cmds | \
18102     old_postinstall_cmds | old_postuninstall_cmds | \
18103     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18104       # Double-quote double-evaled strings.
18105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18106       ;;
18107     *)
18108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18109       ;;
18110     esac
18111   done
18112
18113   case $lt_echo in
18114   *'\$0 --fallback-echo"')
18115     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18116     ;;
18117   esac
18118
18119 cfgfile="$ofile"
18120
18121   cat <<__EOF__ >> "$cfgfile"
18122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18123
18124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18125
18126 # Shell to use when invoking shell scripts.
18127 SHELL=$lt_SHELL
18128
18129 # Whether or not to build shared libraries.
18130 build_libtool_libs=$enable_shared
18131
18132 # Whether or not to build static libraries.
18133 build_old_libs=$enable_static
18134
18135 # Whether or not to add -lc for building shared libraries.
18136 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18137
18138 # Whether or not to disallow shared libs when runtime libs are static
18139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18140
18141 # Whether or not to optimize for fast installation.
18142 fast_install=$enable_fast_install
18143
18144 # The host system.
18145 host_alias=$host_alias
18146 host=$host
18147 host_os=$host_os
18148
18149 # The build system.
18150 build_alias=$build_alias
18151 build=$build
18152 build_os=$build_os
18153
18154 # An echo program that does not interpret backslashes.
18155 echo=$lt_echo
18156
18157 # The archiver.
18158 AR=$lt_AR
18159 AR_FLAGS=$lt_AR_FLAGS
18160
18161 # A C compiler.
18162 LTCC=$lt_LTCC
18163
18164 # LTCC compiler flags.
18165 LTCFLAGS=$lt_LTCFLAGS
18166
18167 # A language-specific compiler.
18168 CC=$lt_compiler_GCJ
18169
18170 # Is the compiler the GNU C compiler?
18171 with_gcc=$GCC_GCJ
18172
18173 # An ERE matcher.
18174 EGREP=$lt_EGREP
18175
18176 # The linker used to build libraries.
18177 LD=$lt_LD_GCJ
18178
18179 # Whether we need hard or soft links.
18180 LN_S=$lt_LN_S
18181
18182 # A BSD-compatible nm program.
18183 NM=$lt_NM
18184
18185 # A symbol stripping program
18186 STRIP=$lt_STRIP
18187
18188 # Used to examine libraries when file_magic_cmd begins "file"
18189 MAGIC_CMD=$MAGIC_CMD
18190
18191 # Used on cygwin: DLL creation program.
18192 DLLTOOL="$DLLTOOL"
18193
18194 # Used on cygwin: object dumper.
18195 OBJDUMP="$OBJDUMP"
18196
18197 # Used on cygwin: assembler.
18198 AS="$AS"
18199
18200 # The name of the directory that contains temporary libtool files.
18201 objdir=$objdir
18202
18203 # How to create reloadable object files.
18204 reload_flag=$lt_reload_flag
18205 reload_cmds=$lt_reload_cmds
18206
18207 # How to pass a linker flag through the compiler.
18208 wl=$lt_lt_prog_compiler_wl_GCJ
18209
18210 # Object file suffix (normally "o").
18211 objext="$ac_objext"
18212
18213 # Old archive suffix (normally "a").
18214 libext="$libext"
18215
18216 # Shared library suffix (normally ".so").
18217 shrext_cmds='$shrext_cmds'
18218
18219 # Executable file suffix (normally "").
18220 exeext="$exeext"
18221
18222 # Additional compiler flags for building library objects.
18223 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18224 pic_mode=$pic_mode
18225
18226 # What is the maximum length of a command?
18227 max_cmd_len=$lt_cv_sys_max_cmd_len
18228
18229 # Does compiler simultaneously support -c and -o options?
18230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18231
18232 # Must we lock files when doing compilation?
18233 need_locks=$lt_need_locks
18234
18235 # Do we need the lib prefix for modules?
18236 need_lib_prefix=$need_lib_prefix
18237
18238 # Do we need a version for libraries?
18239 need_version=$need_version
18240
18241 # Whether dlopen is supported.
18242 dlopen_support=$enable_dlopen
18243
18244 # Whether dlopen of programs is supported.
18245 dlopen_self=$enable_dlopen_self
18246
18247 # Whether dlopen of statically linked programs is supported.
18248 dlopen_self_static=$enable_dlopen_self_static
18249
18250 # Compiler flag to prevent dynamic linking.
18251 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18252
18253 # Compiler flag to turn off builtin functions.
18254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18255
18256 # Compiler flag to allow reflexive dlopens.
18257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18258
18259 # Compiler flag to generate shared objects directly from archives.
18260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18261
18262 # Compiler flag to generate thread-safe objects.
18263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18264
18265 # Library versioning type.
18266 version_type=$version_type
18267
18268 # Format of library name prefix.
18269 libname_spec=$lt_libname_spec
18270
18271 # List of archive names.  First name is the real one, the rest are links.
18272 # The last name is the one that the linker finds with -lNAME.
18273 library_names_spec=$lt_library_names_spec
18274
18275 # The coded name of the library, if different from the real name.
18276 soname_spec=$lt_soname_spec
18277
18278 # Commands used to build and install an old-style archive.
18279 RANLIB=$lt_RANLIB
18280 old_archive_cmds=$lt_old_archive_cmds_GCJ
18281 old_postinstall_cmds=$lt_old_postinstall_cmds
18282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18283
18284 # Create an old-style archive from a shared archive.
18285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18286
18287 # Create a temporary old-style archive to link instead of a shared archive.
18288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18289
18290 # Commands used to build and install a shared archive.
18291 archive_cmds=$lt_archive_cmds_GCJ
18292 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18293 postinstall_cmds=$lt_postinstall_cmds
18294 postuninstall_cmds=$lt_postuninstall_cmds
18295
18296 # Commands used to build a loadable module (assumed same as above if empty)
18297 module_cmds=$lt_module_cmds_GCJ
18298 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18299
18300 # Commands to strip libraries.
18301 old_striplib=$lt_old_striplib
18302 striplib=$lt_striplib
18303
18304 # Dependencies to place before the objects being linked to create a
18305 # shared library.
18306 predep_objects=$lt_predep_objects_GCJ
18307
18308 # Dependencies to place after the objects being linked to create a
18309 # shared library.
18310 postdep_objects=$lt_postdep_objects_GCJ
18311
18312 # Dependencies to place before the objects being linked to create a
18313 # shared library.
18314 predeps=$lt_predeps_GCJ
18315
18316 # Dependencies to place after the objects being linked to create a
18317 # shared library.
18318 postdeps=$lt_postdeps_GCJ
18319
18320 # The library search path used internally by the compiler when linking
18321 # a shared library.
18322 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18323
18324 # Method to check whether dependent libraries are shared objects.
18325 deplibs_check_method=$lt_deplibs_check_method
18326
18327 # Command to use when deplibs_check_method == file_magic.
18328 file_magic_cmd=$lt_file_magic_cmd
18329
18330 # Flag that allows shared libraries with undefined symbols to be built.
18331 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18332
18333 # Flag that forces no undefined symbols.
18334 no_undefined_flag=$lt_no_undefined_flag_GCJ
18335
18336 # Commands used to finish a libtool library installation in a directory.
18337 finish_cmds=$lt_finish_cmds
18338
18339 # Same as above, but a single script fragment to be evaled but not shown.
18340 finish_eval=$lt_finish_eval
18341
18342 # Take the output of nm and produce a listing of raw symbols and C names.
18343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18344
18345 # Transform the output of nm in a proper C declaration
18346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18347
18348 # Transform the output of nm in a C name address pair
18349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18350
18351 # This is the shared library runtime path variable.
18352 runpath_var=$runpath_var
18353
18354 # This is the shared library path variable.
18355 shlibpath_var=$shlibpath_var
18356
18357 # Is shlibpath searched before the hard-coded library search path?
18358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18359
18360 # How to hardcode a shared library path into an executable.
18361 hardcode_action=$hardcode_action_GCJ
18362
18363 # Whether we should hardcode library paths into libraries.
18364 hardcode_into_libs=$hardcode_into_libs
18365
18366 # Flag to hardcode \$libdir into a binary during linking.
18367 # This must work even if \$libdir does not exist.
18368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18369
18370 # If ld is used when linking, flag to hardcode \$libdir into
18371 # a binary during linking. This must work even if \$libdir does
18372 # not exist.
18373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18374
18375 # Whether we need a single -rpath flag with a separated argument.
18376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18377
18378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18379 # resulting binary.
18380 hardcode_direct=$hardcode_direct_GCJ
18381
18382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18383 # resulting binary.
18384 hardcode_minus_L=$hardcode_minus_L_GCJ
18385
18386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18387 # the resulting binary.
18388 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18389
18390 # Set to yes if building a shared library automatically hardcodes DIR into the library
18391 # and all subsequent libraries and executables linked against it.
18392 hardcode_automatic=$hardcode_automatic_GCJ
18393
18394 # Variables whose values should be saved in libtool wrapper scripts and
18395 # restored at relink time.
18396 variables_saved_for_relink="$variables_saved_for_relink"
18397
18398 # Whether libtool must link a program against all its dependency libraries.
18399 link_all_deplibs=$link_all_deplibs_GCJ
18400
18401 # Compile-time system search path for libraries
18402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18403
18404 # Run-time system search path for libraries
18405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18406
18407 # Fix the shell variable \$srcfile for the compiler.
18408 fix_srcfile_path="$fix_srcfile_path_GCJ"
18409
18410 # Set to yes if exported symbols are required.
18411 always_export_symbols=$always_export_symbols_GCJ
18412
18413 # The commands to list exported symbols.
18414 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18415
18416 # The commands to extract the exported symbol list from a shared archive.
18417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18418
18419 # Symbols that should not be listed in the preloaded symbols.
18420 exclude_expsyms=$lt_exclude_expsyms_GCJ
18421
18422 # Symbols that must always be exported.
18423 include_expsyms=$lt_include_expsyms_GCJ
18424
18425 # ### END LIBTOOL TAG CONFIG: $tagname
18426
18427 __EOF__
18428
18429
18430 else
18431   # If there is no Makefile yet, we rely on a make rule to execute
18432   # `config.status --recheck' to rerun these tests and create the
18433   # libtool script then.
18434   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18435   if test -f "$ltmain_in"; then
18436     test -f Makefile && make "$ltmain"
18437   fi
18438 fi
18439
18440
18441 ac_ext=c
18442 ac_cpp='$CPP $CPPFLAGS'
18443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18446
18447 CC="$lt_save_CC"
18448
18449         else
18450           tagname=""
18451         fi
18452         ;;
18453
18454       RC)
18455
18456
18457
18458 # Source file extension for RC test sources.
18459 ac_ext=rc
18460
18461 # Object file extension for compiled RC test sources.
18462 objext=o
18463 objext_RC=$objext
18464
18465 # Code to be used in simple compile tests
18466 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18467
18468 # Code to be used in simple link tests
18469 lt_simple_link_test_code="$lt_simple_compile_test_code"
18470
18471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18472
18473 # If no C compiler was specified, use CC.
18474 LTCC=${LTCC-"$CC"}
18475
18476 # If no C compiler flags were specified, use CFLAGS.
18477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18478
18479 # Allow CC to be a program name with arguments.
18480 compiler=$CC
18481
18482
18483 # save warnings/boilerplate of simple test code
18484 ac_outfile=conftest.$ac_objext
18485 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18486 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18487 _lt_compiler_boilerplate=`cat conftest.err`
18488 $rm conftest*
18489
18490 ac_outfile=conftest.$ac_objext
18491 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18492 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18493 _lt_linker_boilerplate=`cat conftest.err`
18494 $rm conftest*
18495
18496
18497 # Allow CC to be a program name with arguments.
18498 lt_save_CC="$CC"
18499 CC=${RC-"windres"}
18500 compiler=$CC
18501 compiler_RC=$CC
18502 for cc_temp in $compiler""; do
18503   case $cc_temp in
18504     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18505     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18506     \-*) ;;
18507     *) break;;
18508   esac
18509 done
18510 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18511
18512 lt_cv_prog_compiler_c_o_RC=yes
18513
18514 # The else clause should only fire when bootstrapping the
18515 # libtool distribution, otherwise you forgot to ship ltmain.sh
18516 # with your package, and you will get complaints that there are
18517 # no rules to generate ltmain.sh.
18518 if test -f "$ltmain"; then
18519   # See if we are running on zsh, and set the options which allow our commands through
18520   # without removal of \ escapes.
18521   if test -n "${ZSH_VERSION+set}" ; then
18522     setopt NO_GLOB_SUBST
18523   fi
18524   # Now quote all the things that may contain metacharacters while being
18525   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18526   # variables and quote the copies for generation of the libtool script.
18527   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18528     SED SHELL STRIP \
18529     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18530     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18531     deplibs_check_method reload_flag reload_cmds need_locks \
18532     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18533     lt_cv_sys_global_symbol_to_c_name_address \
18534     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18535     old_postinstall_cmds old_postuninstall_cmds \
18536     compiler_RC \
18537     CC_RC \
18538     LD_RC \
18539     lt_prog_compiler_wl_RC \
18540     lt_prog_compiler_pic_RC \
18541     lt_prog_compiler_static_RC \
18542     lt_prog_compiler_no_builtin_flag_RC \
18543     export_dynamic_flag_spec_RC \
18544     thread_safe_flag_spec_RC \
18545     whole_archive_flag_spec_RC \
18546     enable_shared_with_static_runtimes_RC \
18547     old_archive_cmds_RC \
18548     old_archive_from_new_cmds_RC \
18549     predep_objects_RC \
18550     postdep_objects_RC \
18551     predeps_RC \
18552     postdeps_RC \
18553     compiler_lib_search_path_RC \
18554     archive_cmds_RC \
18555     archive_expsym_cmds_RC \
18556     postinstall_cmds_RC \
18557     postuninstall_cmds_RC \
18558     old_archive_from_expsyms_cmds_RC \
18559     allow_undefined_flag_RC \
18560     no_undefined_flag_RC \
18561     export_symbols_cmds_RC \
18562     hardcode_libdir_flag_spec_RC \
18563     hardcode_libdir_flag_spec_ld_RC \
18564     hardcode_libdir_separator_RC \
18565     hardcode_automatic_RC \
18566     module_cmds_RC \
18567     module_expsym_cmds_RC \
18568     lt_cv_prog_compiler_c_o_RC \
18569     exclude_expsyms_RC \
18570     include_expsyms_RC; do
18571
18572     case $var in
18573     old_archive_cmds_RC | \
18574     old_archive_from_new_cmds_RC | \
18575     archive_cmds_RC | \
18576     archive_expsym_cmds_RC | \
18577     module_cmds_RC | \
18578     module_expsym_cmds_RC | \
18579     old_archive_from_expsyms_cmds_RC | \
18580     export_symbols_cmds_RC | \
18581     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18582     postinstall_cmds | postuninstall_cmds | \
18583     old_postinstall_cmds | old_postuninstall_cmds | \
18584     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18585       # Double-quote double-evaled strings.
18586       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18587       ;;
18588     *)
18589       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18590       ;;
18591     esac
18592   done
18593
18594   case $lt_echo in
18595   *'\$0 --fallback-echo"')
18596     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18597     ;;
18598   esac
18599
18600 cfgfile="$ofile"
18601
18602   cat <<__EOF__ >> "$cfgfile"
18603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18604
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18606
18607 # Shell to use when invoking shell scripts.
18608 SHELL=$lt_SHELL
18609
18610 # Whether or not to build shared libraries.
18611 build_libtool_libs=$enable_shared
18612
18613 # Whether or not to build static libraries.
18614 build_old_libs=$enable_static
18615
18616 # Whether or not to add -lc for building shared libraries.
18617 build_libtool_need_lc=$archive_cmds_need_lc_RC
18618
18619 # Whether or not to disallow shared libs when runtime libs are static
18620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18621
18622 # Whether or not to optimize for fast installation.
18623 fast_install=$enable_fast_install
18624
18625 # The host system.
18626 host_alias=$host_alias
18627 host=$host
18628 host_os=$host_os
18629
18630 # The build system.
18631 build_alias=$build_alias
18632 build=$build
18633 build_os=$build_os
18634
18635 # An echo program that does not interpret backslashes.
18636 echo=$lt_echo
18637
18638 # The archiver.
18639 AR=$lt_AR
18640 AR_FLAGS=$lt_AR_FLAGS
18641
18642 # A C compiler.
18643 LTCC=$lt_LTCC
18644
18645 # LTCC compiler flags.
18646 LTCFLAGS=$lt_LTCFLAGS
18647
18648 # A language-specific compiler.
18649 CC=$lt_compiler_RC
18650
18651 # Is the compiler the GNU C compiler?
18652 with_gcc=$GCC_RC
18653
18654 # An ERE matcher.
18655 EGREP=$lt_EGREP
18656
18657 # The linker used to build libraries.
18658 LD=$lt_LD_RC
18659
18660 # Whether we need hard or soft links.
18661 LN_S=$lt_LN_S
18662
18663 # A BSD-compatible nm program.
18664 NM=$lt_NM
18665
18666 # A symbol stripping program
18667 STRIP=$lt_STRIP
18668
18669 # Used to examine libraries when file_magic_cmd begins "file"
18670 MAGIC_CMD=$MAGIC_CMD
18671
18672 # Used on cygwin: DLL creation program.
18673 DLLTOOL="$DLLTOOL"
18674
18675 # Used on cygwin: object dumper.
18676 OBJDUMP="$OBJDUMP"
18677
18678 # Used on cygwin: assembler.
18679 AS="$AS"
18680
18681 # The name of the directory that contains temporary libtool files.
18682 objdir=$objdir
18683
18684 # How to create reloadable object files.
18685 reload_flag=$lt_reload_flag
18686 reload_cmds=$lt_reload_cmds
18687
18688 # How to pass a linker flag through the compiler.
18689 wl=$lt_lt_prog_compiler_wl_RC
18690
18691 # Object file suffix (normally "o").
18692 objext="$ac_objext"
18693
18694 # Old archive suffix (normally "a").
18695 libext="$libext"
18696
18697 # Shared library suffix (normally ".so").
18698 shrext_cmds='$shrext_cmds'
18699
18700 # Executable file suffix (normally "").
18701 exeext="$exeext"
18702
18703 # Additional compiler flags for building library objects.
18704 pic_flag=$lt_lt_prog_compiler_pic_RC
18705 pic_mode=$pic_mode
18706
18707 # What is the maximum length of a command?
18708 max_cmd_len=$lt_cv_sys_max_cmd_len
18709
18710 # Does compiler simultaneously support -c and -o options?
18711 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18712
18713 # Must we lock files when doing compilation?
18714 need_locks=$lt_need_locks
18715
18716 # Do we need the lib prefix for modules?
18717 need_lib_prefix=$need_lib_prefix
18718
18719 # Do we need a version for libraries?
18720 need_version=$need_version
18721
18722 # Whether dlopen is supported.
18723 dlopen_support=$enable_dlopen
18724
18725 # Whether dlopen of programs is supported.
18726 dlopen_self=$enable_dlopen_self
18727
18728 # Whether dlopen of statically linked programs is supported.
18729 dlopen_self_static=$enable_dlopen_self_static
18730
18731 # Compiler flag to prevent dynamic linking.
18732 link_static_flag=$lt_lt_prog_compiler_static_RC
18733
18734 # Compiler flag to turn off builtin functions.
18735 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18736
18737 # Compiler flag to allow reflexive dlopens.
18738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18739
18740 # Compiler flag to generate shared objects directly from archives.
18741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18742
18743 # Compiler flag to generate thread-safe objects.
18744 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18745
18746 # Library versioning type.
18747 version_type=$version_type
18748
18749 # Format of library name prefix.
18750 libname_spec=$lt_libname_spec
18751
18752 # List of archive names.  First name is the real one, the rest are links.
18753 # The last name is the one that the linker finds with -lNAME.
18754 library_names_spec=$lt_library_names_spec
18755
18756 # The coded name of the library, if different from the real name.
18757 soname_spec=$lt_soname_spec
18758
18759 # Commands used to build and install an old-style archive.
18760 RANLIB=$lt_RANLIB
18761 old_archive_cmds=$lt_old_archive_cmds_RC
18762 old_postinstall_cmds=$lt_old_postinstall_cmds
18763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18764
18765 # Create an old-style archive from a shared archive.
18766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18767
18768 # Create a temporary old-style archive to link instead of a shared archive.
18769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18770
18771 # Commands used to build and install a shared archive.
18772 archive_cmds=$lt_archive_cmds_RC
18773 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18774 postinstall_cmds=$lt_postinstall_cmds
18775 postuninstall_cmds=$lt_postuninstall_cmds
18776
18777 # Commands used to build a loadable module (assumed same as above if empty)
18778 module_cmds=$lt_module_cmds_RC
18779 module_expsym_cmds=$lt_module_expsym_cmds_RC
18780
18781 # Commands to strip libraries.
18782 old_striplib=$lt_old_striplib
18783 striplib=$lt_striplib
18784
18785 # Dependencies to place before the objects being linked to create a
18786 # shared library.
18787 predep_objects=$lt_predep_objects_RC
18788
18789 # Dependencies to place after the objects being linked to create a
18790 # shared library.
18791 postdep_objects=$lt_postdep_objects_RC
18792
18793 # Dependencies to place before the objects being linked to create a
18794 # shared library.
18795 predeps=$lt_predeps_RC
18796
18797 # Dependencies to place after the objects being linked to create a
18798 # shared library.
18799 postdeps=$lt_postdeps_RC
18800
18801 # The library search path used internally by the compiler when linking
18802 # a shared library.
18803 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18804
18805 # Method to check whether dependent libraries are shared objects.
18806 deplibs_check_method=$lt_deplibs_check_method
18807
18808 # Command to use when deplibs_check_method == file_magic.
18809 file_magic_cmd=$lt_file_magic_cmd
18810
18811 # Flag that allows shared libraries with undefined symbols to be built.
18812 allow_undefined_flag=$lt_allow_undefined_flag_RC
18813
18814 # Flag that forces no undefined symbols.
18815 no_undefined_flag=$lt_no_undefined_flag_RC
18816
18817 # Commands used to finish a libtool library installation in a directory.
18818 finish_cmds=$lt_finish_cmds
18819
18820 # Same as above, but a single script fragment to be evaled but not shown.
18821 finish_eval=$lt_finish_eval
18822
18823 # Take the output of nm and produce a listing of raw symbols and C names.
18824 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18825
18826 # Transform the output of nm in a proper C declaration
18827 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18828
18829 # Transform the output of nm in a C name address pair
18830 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18831
18832 # This is the shared library runtime path variable.
18833 runpath_var=$runpath_var
18834
18835 # This is the shared library path variable.
18836 shlibpath_var=$shlibpath_var
18837
18838 # Is shlibpath searched before the hard-coded library search path?
18839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18840
18841 # How to hardcode a shared library path into an executable.
18842 hardcode_action=$hardcode_action_RC
18843
18844 # Whether we should hardcode library paths into libraries.
18845 hardcode_into_libs=$hardcode_into_libs
18846
18847 # Flag to hardcode \$libdir into a binary during linking.
18848 # This must work even if \$libdir does not exist.
18849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18850
18851 # If ld is used when linking, flag to hardcode \$libdir into
18852 # a binary during linking. This must work even if \$libdir does
18853 # not exist.
18854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18855
18856 # Whether we need a single -rpath flag with a separated argument.
18857 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18858
18859 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18860 # resulting binary.
18861 hardcode_direct=$hardcode_direct_RC
18862
18863 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18864 # resulting binary.
18865 hardcode_minus_L=$hardcode_minus_L_RC
18866
18867 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18868 # the resulting binary.
18869 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18870
18871 # Set to yes if building a shared library automatically hardcodes DIR into the library
18872 # and all subsequent libraries and executables linked against it.
18873 hardcode_automatic=$hardcode_automatic_RC
18874
18875 # Variables whose values should be saved in libtool wrapper scripts and
18876 # restored at relink time.
18877 variables_saved_for_relink="$variables_saved_for_relink"
18878
18879 # Whether libtool must link a program against all its dependency libraries.
18880 link_all_deplibs=$link_all_deplibs_RC
18881
18882 # Compile-time system search path for libraries
18883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18884
18885 # Run-time system search path for libraries
18886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18887
18888 # Fix the shell variable \$srcfile for the compiler.
18889 fix_srcfile_path="$fix_srcfile_path_RC"
18890
18891 # Set to yes if exported symbols are required.
18892 always_export_symbols=$always_export_symbols_RC
18893
18894 # The commands to list exported symbols.
18895 export_symbols_cmds=$lt_export_symbols_cmds_RC
18896
18897 # The commands to extract the exported symbol list from a shared archive.
18898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18899
18900 # Symbols that should not be listed in the preloaded symbols.
18901 exclude_expsyms=$lt_exclude_expsyms_RC
18902
18903 # Symbols that must always be exported.
18904 include_expsyms=$lt_include_expsyms_RC
18905
18906 # ### END LIBTOOL TAG CONFIG: $tagname
18907
18908 __EOF__
18909
18910
18911 else
18912   # If there is no Makefile yet, we rely on a make rule to execute
18913   # `config.status --recheck' to rerun these tests and create the
18914   # libtool script then.
18915   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18916   if test -f "$ltmain_in"; then
18917     test -f Makefile && make "$ltmain"
18918   fi
18919 fi
18920
18921
18922 ac_ext=c
18923 ac_cpp='$CPP $CPPFLAGS'
18924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18927
18928 CC="$lt_save_CC"
18929
18930         ;;
18931
18932       *)
18933         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18934 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18935    { (exit 1); exit 1; }; }
18936         ;;
18937       esac
18938
18939       # Append the new tag name to the list of available tags.
18940       if test -n "$tagname" ; then
18941       available_tags="$available_tags $tagname"
18942     fi
18943     fi
18944   done
18945   IFS="$lt_save_ifs"
18946
18947   # Now substitute the updated list of available tags.
18948   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18949     mv "${ofile}T" "$ofile"
18950     chmod +x "$ofile"
18951   else
18952     rm -f "${ofile}T"
18953     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18954 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18955    { (exit 1); exit 1; }; }
18956   fi
18957 fi
18958
18959
18960
18961 # This can be used to rebuild libtool when needed
18962 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18963
18964 # Always use our own libtool.
18965 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18966
18967 # Prevent multiple expansion
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995 ac_header_dirent=no
18996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18997   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18998 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
18999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h.  */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h.  */
19009 #include <sys/types.h>
19010 #include <$ac_hdr>
19011
19012 int
19013 main ()
19014 {
19015 if ((DIR *) 0)
19016 return 0;
19017   ;
19018   return 0;
19019 }
19020 _ACEOF
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023   (eval $ac_compile) 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } &&
19030          { ac_try='test -z "$ac_c_werror_flag"
19031                          || test ! -s conftest.err'
19032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033   (eval $ac_try) 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); }; } &&
19037          { ac_try='test -s conftest.$ac_objext'
19038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039   (eval $ac_try) 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; }; then
19043   eval "$as_ac_Header=yes"
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19047
19048 eval "$as_ac_Header=no"
19049 fi
19050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19051 fi
19052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19055   cat >>confdefs.h <<_ACEOF
19056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19057 _ACEOF
19058
19059 ac_header_dirent=$ac_hdr; break
19060 fi
19061
19062 done
19063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19064 if test $ac_header_dirent = dirent.h; then
19065   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19067 if test "${ac_cv_search_opendir+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   ac_func_search_save_LIBS=$LIBS
19071 ac_cv_search_opendir=no
19072 cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078
19079 /* Override any gcc2 internal prototype to avoid an error.  */
19080 #ifdef __cplusplus
19081 extern "C"
19082 #endif
19083 /* We use char because int might match the return type of a gcc2
19084    builtin and then its argument prototype would still apply.  */
19085 char opendir ();
19086 int
19087 main ()
19088 {
19089 opendir ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096   (eval $ac_link) 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -z "$ac_c_werror_flag"
19104                          || test ! -s conftest.err'
19105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106   (eval $ac_try) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); }; } &&
19110          { ac_try='test -s conftest$ac_exeext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_search_opendir="none required"
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 fi
19122 rm -f conftest.err conftest.$ac_objext \
19123       conftest$ac_exeext conftest.$ac_ext
19124 if test "$ac_cv_search_opendir" = no; then
19125   for ac_lib in dir; do
19126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19127     cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133
19134 /* Override any gcc2 internal prototype to avoid an error.  */
19135 #ifdef __cplusplus
19136 extern "C"
19137 #endif
19138 /* We use char because int might match the return type of a gcc2
19139    builtin and then its argument prototype would still apply.  */
19140 char opendir ();
19141 int
19142 main ()
19143 {
19144 opendir ();
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151   (eval $ac_link) 2>conftest.er1
19152   ac_status=$?
19153   grep -v '^ *+' conftest.er1 >conftest.err
19154   rm -f conftest.er1
19155   cat conftest.err >&5
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } &&
19158          { ac_try='test -z "$ac_c_werror_flag"
19159                          || test ! -s conftest.err'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; } &&
19165          { ac_try='test -s conftest$ac_exeext'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; }; then
19171   ac_cv_search_opendir="-l$ac_lib"
19172 break
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 fi
19178 rm -f conftest.err conftest.$ac_objext \
19179       conftest$ac_exeext conftest.$ac_ext
19180   done
19181 fi
19182 LIBS=$ac_func_search_save_LIBS
19183 fi
19184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19186 if test "$ac_cv_search_opendir" != no; then
19187   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19188
19189 fi
19190
19191 else
19192   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19194 if test "${ac_cv_search_opendir+set}" = set; then
19195   echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197   ac_func_search_save_LIBS=$LIBS
19198 ac_cv_search_opendir=no
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h.  */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h.  */
19205
19206 /* Override any gcc2 internal prototype to avoid an error.  */
19207 #ifdef __cplusplus
19208 extern "C"
19209 #endif
19210 /* We use char because int might match the return type of a gcc2
19211    builtin and then its argument prototype would still apply.  */
19212 char opendir ();
19213 int
19214 main ()
19215 {
19216 opendir ();
19217   ;
19218   return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223   (eval $ac_link) 2>conftest.er1
19224   ac_status=$?
19225   grep -v '^ *+' conftest.er1 >conftest.err
19226   rm -f conftest.er1
19227   cat conftest.err >&5
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } &&
19230          { ac_try='test -z "$ac_c_werror_flag"
19231                          || test ! -s conftest.err'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; } &&
19237          { ac_try='test -s conftest$ac_exeext'
19238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239   (eval $ac_try) 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; }; then
19243   ac_cv_search_opendir="none required"
19244 else
19245   echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 fi
19249 rm -f conftest.err conftest.$ac_objext \
19250       conftest$ac_exeext conftest.$ac_ext
19251 if test "$ac_cv_search_opendir" = no; then
19252   for ac_lib in x; do
19253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19254     cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h.  */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h.  */
19260
19261 /* Override any gcc2 internal prototype to avoid an error.  */
19262 #ifdef __cplusplus
19263 extern "C"
19264 #endif
19265 /* We use char because int might match the return type of a gcc2
19266    builtin and then its argument prototype would still apply.  */
19267 char opendir ();
19268 int
19269 main ()
19270 {
19271 opendir ();
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19278   (eval $ac_link) 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -z "$ac_c_werror_flag"
19286                          || test ! -s conftest.err'
19287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288   (eval $ac_try) 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } &&
19292          { ac_try='test -s conftest$ac_exeext'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; }; then
19298   ac_cv_search_opendir="-l$ac_lib"
19299 break
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 fi
19305 rm -f conftest.err conftest.$ac_objext \
19306       conftest$ac_exeext conftest.$ac_ext
19307   done
19308 fi
19309 LIBS=$ac_func_search_save_LIBS
19310 fi
19311 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19312 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19313 if test "$ac_cv_search_opendir" != no; then
19314   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19315
19316 fi
19317
19318 fi
19319
19320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19322 if test "${ac_cv_header_stdc+set}" = set; then
19323   echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325   cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331 #include <stdlib.h>
19332 #include <stdarg.h>
19333 #include <string.h>
19334 #include <float.h>
19335
19336 int
19337 main ()
19338 {
19339
19340   ;
19341   return 0;
19342 }
19343 _ACEOF
19344 rm -f conftest.$ac_objext
19345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346   (eval $ac_compile) 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } &&
19353          { ac_try='test -z "$ac_c_werror_flag"
19354                          || test ! -s conftest.err'
19355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356   (eval $ac_try) 2>&5
19357   ac_status=$?
19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359   (exit $ac_status); }; } &&
19360          { ac_try='test -s conftest.$ac_objext'
19361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362   (eval $ac_try) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; }; then
19366   ac_cv_header_stdc=yes
19367 else
19368   echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 ac_cv_header_stdc=no
19372 fi
19373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374
19375 if test $ac_cv_header_stdc = yes; then
19376   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19377   cat >conftest.$ac_ext <<_ACEOF
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 #include <string.h>
19384
19385 _ACEOF
19386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19387   $EGREP "memchr" >/dev/null 2>&1; then
19388   :
19389 else
19390   ac_cv_header_stdc=no
19391 fi
19392 rm -f conftest*
19393
19394 fi
19395
19396 if test $ac_cv_header_stdc = yes; then
19397   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19398   cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 #include <stdlib.h>
19405
19406 _ACEOF
19407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19408   $EGREP "free" >/dev/null 2>&1; then
19409   :
19410 else
19411   ac_cv_header_stdc=no
19412 fi
19413 rm -f conftest*
19414
19415 fi
19416
19417 if test $ac_cv_header_stdc = yes; then
19418   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19419   if test "$cross_compiling" = yes; then
19420   :
19421 else
19422   cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h.  */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h.  */
19428 #include <ctype.h>
19429 #if ((' ' & 0x0FF) == 0x020)
19430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19432 #else
19433 # define ISLOWER(c) \
19434                    (('a' <= (c) && (c) <= 'i') \
19435                      || ('j' <= (c) && (c) <= 'r') \
19436                      || ('s' <= (c) && (c) <= 'z'))
19437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19438 #endif
19439
19440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19441 int
19442 main ()
19443 {
19444   int i;
19445   for (i = 0; i < 256; i++)
19446     if (XOR (islower (i), ISLOWER (i))
19447         || toupper (i) != TOUPPER (i))
19448       exit(2);
19449   exit (0);
19450 }
19451 _ACEOF
19452 rm -f conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454   (eval $ac_link) 2>&5
19455   ac_status=$?
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; }; then
19463   :
19464 else
19465   echo "$as_me: program exited with status $ac_status" >&5
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 ( exit $ac_status )
19470 ac_cv_header_stdc=no
19471 fi
19472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19473 fi
19474 fi
19475 fi
19476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19478 if test $ac_cv_header_stdc = yes; then
19479
19480 cat >>confdefs.h <<\_ACEOF
19481 #define STDC_HEADERS 1
19482 _ACEOF
19483
19484 fi
19485
19486 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19489   echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491   cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h.  */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h.  */
19497 #include <sys/types.h>
19498 #include <sys/wait.h>
19499 #ifndef WEXITSTATUS
19500 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19501 #endif
19502 #ifndef WIFEXITED
19503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19504 #endif
19505
19506 int
19507 main ()
19508 {
19509   int s;
19510   wait (&s);
19511   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518   (eval $ac_compile) 2>conftest.er1
19519   ac_status=$?
19520   grep -v '^ *+' conftest.er1 >conftest.err
19521   rm -f conftest.er1
19522   cat conftest.err >&5
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); } &&
19525          { ac_try='test -z "$ac_c_werror_flag"
19526                          || test ! -s conftest.err'
19527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528   (eval $ac_try) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; } &&
19532          { ac_try='test -s conftest.$ac_objext'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   ac_cv_header_sys_wait_h=yes
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 ac_cv_header_sys_wait_h=no
19544 fi
19545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19546 fi
19547 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19548 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19549 if test $ac_cv_header_sys_wait_h = yes; then
19550
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE_SYS_WAIT_H 1
19553 _ACEOF
19554
19555 fi
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579 for ac_header in errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
19580         utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \
19581         utime.h ulimit.h sys/resource.h gshadow.h shadow.h lastlog.h \
19582         locale.h rpc/key_prot.h
19583 do
19584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19586   echo "$as_me:$LINENO: checking for $ac_header" >&5
19587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19589   echo $ECHO_N "(cached) $ECHO_C" >&6
19590 fi
19591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19593 else
19594   # Is the header compilable?
19595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h.  */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h.  */
19603 $ac_includes_default
19604 #include <$ac_header>
19605 _ACEOF
19606 rm -f conftest.$ac_objext
19607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608   (eval $ac_compile) 2>conftest.er1
19609   ac_status=$?
19610   grep -v '^ *+' conftest.er1 >conftest.err
19611   rm -f conftest.er1
19612   cat conftest.err >&5
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); } &&
19615          { ac_try='test -z "$ac_c_werror_flag"
19616                          || test ! -s conftest.err'
19617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618   (eval $ac_try) 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); }; } &&
19622          { ac_try='test -s conftest.$ac_objext'
19623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624   (eval $ac_try) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; }; then
19628   ac_header_compiler=yes
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 ac_header_compiler=no
19634 fi
19635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19637 echo "${ECHO_T}$ac_header_compiler" >&6
19638
19639 # Is the header present?
19640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19642 cat >conftest.$ac_ext <<_ACEOF
19643 /* confdefs.h.  */
19644 _ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h.  */
19648 #include <$ac_header>
19649 _ACEOF
19650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } >/dev/null; then
19658   if test -s conftest.err; then
19659     ac_cpp_err=$ac_c_preproc_warn_flag
19660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19661   else
19662     ac_cpp_err=
19663   fi
19664 else
19665   ac_cpp_err=yes
19666 fi
19667 if test -z "$ac_cpp_err"; then
19668   ac_header_preproc=yes
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673   ac_header_preproc=no
19674 fi
19675 rm -f conftest.err conftest.$ac_ext
19676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19677 echo "${ECHO_T}$ac_header_preproc" >&6
19678
19679 # So?  What about this header?
19680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19681   yes:no: )
19682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19686     ac_header_preproc=yes
19687     ;;
19688   no:yes:* )
19689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19701     (
19702       cat <<\_ASBOX
19703 ## ------------------------------------------ ##
19704 ## Report this to the AC_PACKAGE_NAME lists.  ##
19705 ## ------------------------------------------ ##
19706 _ASBOX
19707     ) |
19708       sed "s/^/$as_me: WARNING:     /" >&2
19709     ;;
19710 esac
19711 echo "$as_me:$LINENO: checking for $ac_header" >&5
19712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19714   echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716   eval "$as_ac_Header=\$ac_header_preproc"
19717 fi
19718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19720
19721 fi
19722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19723   cat >>confdefs.h <<_ACEOF
19724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19725 _ACEOF
19726
19727 fi
19728
19729 done
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753 for ac_func in a64l fchmod fchown fsync getgroups gethostname getspnam \
19754         gettimeofday getusershell getutent initgroups lchown lckpwdf lstat \
19755         memcpy memset setgroups sigaction strchr updwtmp updwtmpx
19756 do
19757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758 echo "$as_me:$LINENO: checking for $ac_func" >&5
19759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19760 if eval "test \"\${$as_ac_var+set}\" = set"; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19771 #define $ac_func innocuous_$ac_func
19772
19773 /* System header to define __stub macros and hopefully few prototypes,
19774     which can conflict with char $ac_func (); below.
19775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776     <limits.h> exists even on freestanding compilers.  */
19777
19778 #ifdef __STDC__
19779 # include <limits.h>
19780 #else
19781 # include <assert.h>
19782 #endif
19783
19784 #undef $ac_func
19785
19786 /* Override any gcc2 internal prototype to avoid an error.  */
19787 #ifdef __cplusplus
19788 extern "C"
19789 {
19790 #endif
19791 /* We use char because int might match the return type of a gcc2
19792    builtin and then its argument prototype would still apply.  */
19793 char $ac_func ();
19794 /* The GNU C library defines this for functions which it implements
19795     to always fail with ENOSYS.  Some functions are actually named
19796     something starting with __ and the normal name is an alias.  */
19797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19798 choke me
19799 #else
19800 char (*f) () = $ac_func;
19801 #endif
19802 #ifdef __cplusplus
19803 }
19804 #endif
19805
19806 int
19807 main ()
19808 {
19809 return f != $ac_func;
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19816   (eval $ac_link) 2>conftest.er1
19817   ac_status=$?
19818   grep -v '^ *+' conftest.er1 >conftest.err
19819   rm -f conftest.er1
19820   cat conftest.err >&5
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); } &&
19823          { ac_try='test -z "$ac_c_werror_flag"
19824                          || test ! -s conftest.err'
19825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826   (eval $ac_try) 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; } &&
19830          { ac_try='test -s conftest$ac_exeext'
19831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832   (eval $ac_try) 2>&5
19833   ac_status=$?
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); }; }; then
19836   eval "$as_ac_var=yes"
19837 else
19838   echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841 eval "$as_ac_var=no"
19842 fi
19843 rm -f conftest.err conftest.$ac_objext \
19844       conftest$ac_exeext conftest.$ac_ext
19845 fi
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849   cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19851 _ACEOF
19852
19853 fi
19854 done
19855
19856 # Check whether --enable-largefile or --disable-largefile was given.
19857 if test "${enable_largefile+set}" = set; then
19858   enableval="$enable_largefile"
19859
19860 fi;
19861 if test "$enable_largefile" != no; then
19862
19863   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
19864 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
19865 if test "${ac_cv_sys_largefile_CC+set}" = set; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   ac_cv_sys_largefile_CC=no
19869      if test "$GCC" != yes; then
19870        ac_save_CC=$CC
19871        while :; do
19872          # IRIX 6.2 and later do not support large files by default,
19873          # so use the C compiler's -n32 option if that helps.
19874          cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 #include <sys/types.h>
19881  /* Check that off_t can represent 2**63 - 1 correctly.
19882     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19883     since some C++ compilers masquerading as C compilers
19884     incorrectly reject 9223372036854775807.  */
19885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19886   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19887                        && LARGE_OFF_T % 2147483647 == 1)
19888                       ? 1 : -1];
19889 int
19890 main ()
19891 {
19892
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897          rm -f conftest.$ac_objext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899   (eval $ac_compile) 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } &&
19906          { ac_try='test -z "$ac_c_werror_flag"
19907                          || test ! -s conftest.err'
19908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909   (eval $ac_try) 2>&5
19910   ac_status=$?
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); }; } &&
19913          { ac_try='test -s conftest.$ac_objext'
19914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915   (eval $ac_try) 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; }; then
19919   break
19920 else
19921   echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 fi
19925 rm -f conftest.err conftest.$ac_objext
19926          CC="$CC -n32"
19927          rm -f conftest.$ac_objext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19929   (eval $ac_compile) 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_c_werror_flag"
19937                          || test ! -s conftest.err'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest.$ac_objext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_cv_sys_largefile_CC=' -n32'; break
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 fi
19955 rm -f conftest.err conftest.$ac_objext
19956          break
19957        done
19958        CC=$ac_save_CC
19959        rm -f conftest.$ac_ext
19960     fi
19961 fi
19962 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19963 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
19964   if test "$ac_cv_sys_largefile_CC" != no; then
19965     CC=$CC$ac_cv_sys_largefile_CC
19966   fi
19967
19968   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19969 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19970 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   while :; do
19974   ac_cv_sys_file_offset_bits=no
19975   cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981 #include <sys/types.h>
19982  /* Check that off_t can represent 2**63 - 1 correctly.
19983     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19984     since some C++ compilers masquerading as C compilers
19985     incorrectly reject 9223372036854775807.  */
19986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19987   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19988                        && LARGE_OFF_T % 2147483647 == 1)
19989                       ? 1 : -1];
19990 int
19991 main ()
19992 {
19993
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20000   (eval $ac_compile) 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -z "$ac_c_werror_flag"
20008                          || test ! -s conftest.err'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } &&
20014          { ac_try='test -s conftest.$ac_objext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   break
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 fi
20026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20027   cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 #define _FILE_OFFSET_BITS 64
20034 #include <sys/types.h>
20035  /* Check that off_t can represent 2**63 - 1 correctly.
20036     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20037     since some C++ compilers masquerading as C compilers
20038     incorrectly reject 9223372036854775807.  */
20039 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20040   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20041                        && LARGE_OFF_T % 2147483647 == 1)
20042                       ? 1 : -1];
20043 int
20044 main ()
20045 {
20046
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053   (eval $ac_compile) 2>conftest.er1
20054   ac_status=$?
20055   grep -v '^ *+' conftest.er1 >conftest.err
20056   rm -f conftest.er1
20057   cat conftest.err >&5
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); } &&
20060          { ac_try='test -z "$ac_c_werror_flag"
20061                          || test ! -s conftest.err'
20062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063   (eval $ac_try) 2>&5
20064   ac_status=$?
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); }; } &&
20067          { ac_try='test -s conftest.$ac_objext'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_cv_sys_file_offset_bits=64; break
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 fi
20079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20080   break
20081 done
20082 fi
20083 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20084 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20085 if test "$ac_cv_sys_file_offset_bits" != no; then
20086
20087 cat >>confdefs.h <<_ACEOF
20088 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20089 _ACEOF
20090
20091 fi
20092 rm -f conftest*
20093   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20094 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20095 if test "${ac_cv_sys_large_files+set}" = set; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   while :; do
20099   ac_cv_sys_large_files=no
20100   cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h.  */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h.  */
20106 #include <sys/types.h>
20107  /* Check that off_t can represent 2**63 - 1 correctly.
20108     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20109     since some C++ compilers masquerading as C compilers
20110     incorrectly reject 9223372036854775807.  */
20111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20112   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20113                        && LARGE_OFF_T % 2147483647 == 1)
20114                       ? 1 : -1];
20115 int
20116 main ()
20117 {
20118
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20125   (eval $ac_compile) 2>conftest.er1
20126   ac_status=$?
20127   grep -v '^ *+' conftest.er1 >conftest.err
20128   rm -f conftest.er1
20129   cat conftest.err >&5
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); } &&
20132          { ac_try='test -z "$ac_c_werror_flag"
20133                          || test ! -s conftest.err'
20134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135   (eval $ac_try) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; } &&
20139          { ac_try='test -s conftest.$ac_objext'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   break
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 fi
20151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20152   cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158 #define _LARGE_FILES 1
20159 #include <sys/types.h>
20160  /* Check that off_t can represent 2**63 - 1 correctly.
20161     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20162     since some C++ compilers masquerading as C compilers
20163     incorrectly reject 9223372036854775807.  */
20164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20165   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20166                        && LARGE_OFF_T % 2147483647 == 1)
20167                       ? 1 : -1];
20168 int
20169 main ()
20170 {
20171
20172   ;
20173   return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20178   (eval $ac_compile) 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } &&
20185          { ac_try='test -z "$ac_c_werror_flag"
20186                          || test ! -s conftest.err'
20187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188   (eval $ac_try) 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest.$ac_objext'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; }; then
20198   ac_cv_sys_large_files=1; break
20199 else
20200   echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 fi
20204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20205   break
20206 done
20207 fi
20208 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20209 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20210 if test "$ac_cv_sys_large_files" != no; then
20211
20212 cat >>confdefs.h <<_ACEOF
20213 #define _LARGE_FILES $ac_cv_sys_large_files
20214 _ACEOF
20215
20216 fi
20217 rm -f conftest*
20218 fi
20219
20220
20221 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20222 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20223 if test "${ac_cv_c_const+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226   cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h.  */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h.  */
20232
20233 int
20234 main ()
20235 {
20236 /* FIXME: Include the comments suggested by Paul. */
20237 #ifndef __cplusplus
20238   /* Ultrix mips cc rejects this.  */
20239   typedef int charset[2];
20240   const charset x;
20241   /* SunOS 4.1.1 cc rejects this.  */
20242   char const *const *ccp;
20243   char **p;
20244   /* NEC SVR4.0.2 mips cc rejects this.  */
20245   struct point {int x, y;};
20246   static struct point const zero = {0,0};
20247   /* AIX XL C 1.02.0.0 rejects this.
20248      It does not let you subtract one const X* pointer from another in
20249      an arm of an if-expression whose if-part is not a constant
20250      expression */
20251   const char *g = "string";
20252   ccp = &g + (g ? g-g : 0);
20253   /* HPUX 7.0 cc rejects these. */
20254   ++ccp;
20255   p = (char**) ccp;
20256   ccp = (char const *const *) p;
20257   { /* SCO 3.2v4 cc rejects this.  */
20258     char *t;
20259     char const *s = 0 ? (char *) 0 : (char const *) 0;
20260
20261     *t++ = 0;
20262   }
20263   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20264     int x[] = {25, 17};
20265     const int *foo = &x[0];
20266     ++foo;
20267   }
20268   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20269     typedef const int *iptr;
20270     iptr p = 0;
20271     ++p;
20272   }
20273   { /* AIX XL C 1.02.0.0 rejects this saying
20274        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20275     struct s { int j; const int *ap[3]; };
20276     struct s *b; b->j = 5;
20277   }
20278   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20279     const int foo = 10;
20280   }
20281 #endif
20282
20283   ;
20284   return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289   (eval $ac_compile) 2>conftest.er1
20290   ac_status=$?
20291   grep -v '^ *+' conftest.er1 >conftest.err
20292   rm -f conftest.er1
20293   cat conftest.err >&5
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } &&
20296          { ac_try='test -z "$ac_c_werror_flag"
20297                          || test ! -s conftest.err'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; } &&
20303          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20309   ac_cv_c_const=yes
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_cv_c_const=no
20315 fi
20316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20317 fi
20318 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20319 echo "${ECHO_T}$ac_cv_c_const" >&6
20320 if test $ac_cv_c_const = no; then
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define const
20324 _ACEOF
20325
20326 fi
20327
20328 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20329 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20330 if test "${ac_cv_type_uid_t+set}" = set; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333   cat >conftest.$ac_ext <<_ACEOF
20334 /* confdefs.h.  */
20335 _ACEOF
20336 cat confdefs.h >>conftest.$ac_ext
20337 cat >>conftest.$ac_ext <<_ACEOF
20338 /* end confdefs.h.  */
20339 #include <sys/types.h>
20340
20341 _ACEOF
20342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20343   $EGREP "uid_t" >/dev/null 2>&1; then
20344   ac_cv_type_uid_t=yes
20345 else
20346   ac_cv_type_uid_t=no
20347 fi
20348 rm -f conftest*
20349
20350 fi
20351 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20352 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20353 if test $ac_cv_type_uid_t = no; then
20354
20355 cat >>confdefs.h <<\_ACEOF
20356 #define uid_t int
20357 _ACEOF
20358
20359
20360 cat >>confdefs.h <<\_ACEOF
20361 #define gid_t int
20362 _ACEOF
20363
20364 fi
20365
20366 echo "$as_me:$LINENO: checking for off_t" >&5
20367 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20368 if test "${ac_cv_type_off_t+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371   cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h.  */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h.  */
20377 $ac_includes_default
20378 int
20379 main ()
20380 {
20381 if ((off_t *) 0)
20382   return 0;
20383 if (sizeof (off_t))
20384   return 0;
20385   ;
20386   return 0;
20387 }
20388 _ACEOF
20389 rm -f conftest.$ac_objext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391   (eval $ac_compile) 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } &&
20398          { ac_try='test -z "$ac_c_werror_flag"
20399                          || test ! -s conftest.err'
20400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401   (eval $ac_try) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; } &&
20405          { ac_try='test -s conftest.$ac_objext'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; }; then
20411   ac_cv_type_off_t=yes
20412 else
20413   echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 ac_cv_type_off_t=no
20417 fi
20418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20419 fi
20420 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20421 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20422 if test $ac_cv_type_off_t = yes; then
20423   :
20424 else
20425
20426 cat >>confdefs.h <<_ACEOF
20427 #define off_t long
20428 _ACEOF
20429
20430 fi
20431
20432 echo "$as_me:$LINENO: checking for pid_t" >&5
20433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20434 if test "${ac_cv_type_pid_t+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h.  */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h.  */
20443 $ac_includes_default
20444 int
20445 main ()
20446 {
20447 if ((pid_t *) 0)
20448   return 0;
20449 if (sizeof (pid_t))
20450   return 0;
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457   (eval $ac_compile) 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } &&
20464          { ac_try='test -z "$ac_c_werror_flag"
20465                          || test ! -s conftest.err'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_type_pid_t=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_cv_type_pid_t=no
20483 fi
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20485 fi
20486 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20487 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20488 if test $ac_cv_type_pid_t = yes; then
20489   :
20490 else
20491
20492 cat >>confdefs.h <<_ACEOF
20493 #define pid_t int
20494 _ACEOF
20495
20496 fi
20497
20498 echo "$as_me:$LINENO: checking for mode_t" >&5
20499 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
20500 if test "${ac_cv_type_mode_t+set}" = set; then
20501   echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503   cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 $ac_includes_default
20510 int
20511 main ()
20512 {
20513 if ((mode_t *) 0)
20514   return 0;
20515 if (sizeof (mode_t))
20516   return 0;
20517   ;
20518   return 0;
20519 }
20520 _ACEOF
20521 rm -f conftest.$ac_objext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20523   (eval $ac_compile) 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } &&
20530          { ac_try='test -z "$ac_c_werror_flag"
20531                          || test ! -s conftest.err'
20532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533   (eval $ac_try) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; } &&
20537          { ac_try='test -s conftest.$ac_objext'
20538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539   (eval $ac_try) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; }; then
20543   ac_cv_type_mode_t=yes
20544 else
20545   echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_cv_type_mode_t=no
20549 fi
20550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20551 fi
20552 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
20553 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
20554 if test $ac_cv_type_mode_t = yes; then
20555   :
20556 else
20557
20558 cat >>confdefs.h <<_ACEOF
20559 #define mode_t int
20560 _ACEOF
20561
20562 fi
20563
20564 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20565 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20566 if test "${ac_cv_header_stat_broken+set}" = set; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 #include <sys/types.h>
20576 #include <sys/stat.h>
20577
20578 #if defined(S_ISBLK) && defined(S_IFDIR)
20579 # if S_ISBLK (S_IFDIR)
20580 You lose.
20581 # endif
20582 #endif
20583
20584 #if defined(S_ISBLK) && defined(S_IFCHR)
20585 # if S_ISBLK (S_IFCHR)
20586 You lose.
20587 # endif
20588 #endif
20589
20590 #if defined(S_ISLNK) && defined(S_IFREG)
20591 # if S_ISLNK (S_IFREG)
20592 You lose.
20593 # endif
20594 #endif
20595
20596 #if defined(S_ISSOCK) && defined(S_IFREG)
20597 # if S_ISSOCK (S_IFREG)
20598 You lose.
20599 # endif
20600 #endif
20601
20602 _ACEOF
20603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20604   $EGREP "You lose" >/dev/null 2>&1; then
20605   ac_cv_header_stat_broken=yes
20606 else
20607   ac_cv_header_stat_broken=no
20608 fi
20609 rm -f conftest*
20610
20611 fi
20612 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20613 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20614 if test $ac_cv_header_stat_broken = yes; then
20615
20616 cat >>confdefs.h <<\_ACEOF
20617 #define STAT_MACROS_BROKEN 1
20618 _ACEOF
20619
20620 fi
20621
20622 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20623 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20624 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20625   echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627   cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633 $ac_includes_default
20634 int
20635 main ()
20636 {
20637 static struct stat ac_aggr;
20638 if (ac_aggr.st_rdev)
20639 return 0;
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646   (eval $ac_compile) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag"
20654                          || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest.$ac_objext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_cv_member_struct_stat_st_rdev=yes
20667 else
20668   echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h.  */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h.  */
20677 $ac_includes_default
20678 int
20679 main ()
20680 {
20681 static struct stat ac_aggr;
20682 if (sizeof ac_aggr.st_rdev)
20683 return 0;
20684   ;
20685   return 0;
20686 }
20687 _ACEOF
20688 rm -f conftest.$ac_objext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20690   (eval $ac_compile) 2>conftest.er1
20691   ac_status=$?
20692   grep -v '^ *+' conftest.er1 >conftest.err
20693   rm -f conftest.er1
20694   cat conftest.err >&5
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } &&
20697          { ac_try='test -z "$ac_c_werror_flag"
20698                          || test ! -s conftest.err'
20699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700   (eval $ac_try) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); }; } &&
20704          { ac_try='test -s conftest.$ac_objext'
20705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706   (eval $ac_try) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; }; then
20710   ac_cv_member_struct_stat_st_rdev=yes
20711 else
20712   echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20714
20715 ac_cv_member_struct_stat_st_rdev=no
20716 fi
20717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20718 fi
20719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720 fi
20721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20722 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
20723 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20724
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_STRUCT_STAT_ST_RDEV 1
20727 _ACEOF
20728
20729
20730 fi
20731
20732 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20733 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20734 if test "${ac_cv_header_time+set}" = set; then
20735   echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
20737   cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h.  */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h.  */
20743 #include <sys/types.h>
20744 #include <sys/time.h>
20745 #include <time.h>
20746
20747 int
20748 main ()
20749 {
20750 if ((struct tm *) 0)
20751 return 0;
20752   ;
20753   return 0;
20754 }
20755 _ACEOF
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758   (eval $ac_compile) 2>conftest.er1
20759   ac_status=$?
20760   grep -v '^ *+' conftest.er1 >conftest.err
20761   rm -f conftest.er1
20762   cat conftest.err >&5
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); } &&
20765          { ac_try='test -z "$ac_c_werror_flag"
20766                          || test ! -s conftest.err'
20767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20768   (eval $ac_try) 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); }; } &&
20772          { ac_try='test -s conftest.$ac_objext'
20773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774   (eval $ac_try) 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }; }; then
20778   ac_cv_header_time=yes
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ac_cv_header_time=no
20784 fi
20785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20786 fi
20787 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20788 echo "${ECHO_T}$ac_cv_header_time" >&6
20789 if test $ac_cv_header_time = yes; then
20790
20791 cat >>confdefs.h <<\_ACEOF
20792 #define TIME_WITH_SYS_TIME 1
20793 _ACEOF
20794
20795 fi
20796
20797 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20798 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20799 if test "${ac_cv_struct_tm+set}" = set; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808 #include <sys/types.h>
20809 #include <time.h>
20810
20811 int
20812 main ()
20813 {
20814 struct tm *tp; tp->tm_sec;
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821   (eval $ac_compile) 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"
20829                          || test ! -s conftest.err'
20830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831   (eval $ac_try) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; } &&
20835          { ac_try='test -s conftest.$ac_objext'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; }; then
20841   ac_cv_struct_tm=time.h
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_cv_struct_tm=sys/time.h
20847 fi
20848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20849 fi
20850 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20851 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20852 if test $ac_cv_struct_tm = sys/time.h; then
20853
20854 cat >>confdefs.h <<\_ACEOF
20855 #define TM_IN_SYS_TIME 1
20856 _ACEOF
20857
20858 fi
20859
20860
20861 if test "$ac_cv_header_utmp_h" = "yes"; then
20862         echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
20863 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
20864 if test "${ac_cv_struct_utmp_ut_host+set}" = set; then
20865   echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <utmp.h>
20874 int
20875 main ()
20876 {
20877 struct utmp ut; char *cp = ut.ut_host;
20878
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20885   (eval $ac_compile) 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } &&
20892          { ac_try='test -z "$ac_c_werror_flag"
20893                          || test ! -s conftest.err'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; } &&
20899          { ac_try='test -s conftest.$ac_objext'
20900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901   (eval $ac_try) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); }; }; then
20905   ac_cv_struct_utmp_ut_host=yes
20906 else
20907   echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 ac_cv_struct_utmp_ut_host=no
20911
20912 fi
20913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20914
20915 fi
20916 echo "$as_me:$LINENO: result: $ac_cv_struct_utmp_ut_host" >&5
20917 echo "${ECHO_T}$ac_cv_struct_utmp_ut_host" >&6
20918
20919         if test "$ac_cv_struct_utmp_ut_host" = "yes"; then
20920
20921 cat >>confdefs.h <<\_ACEOF
20922 #define UT_HOST 1
20923 _ACEOF
20924
20925         fi
20926
20927         echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
20928 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
20929 if test "${ac_cv_struct_utmp_ut_user+set}" = set; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   cat >conftest.$ac_ext <<_ACEOF
20933 /* confdefs.h.  */
20934 _ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h.  */
20938 #include <utmp.h>
20939 int
20940 main ()
20941 {
20942 struct utmp ut; char *cp = ut.ut_user;
20943
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20950   (eval $ac_compile) 2>conftest.er1
20951   ac_status=$?
20952   grep -v '^ *+' conftest.er1 >conftest.err
20953   rm -f conftest.er1
20954   cat conftest.err >&5
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } &&
20957          { ac_try='test -z "$ac_c_werror_flag"
20958                          || test ! -s conftest.err'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; } &&
20964          { ac_try='test -s conftest.$ac_objext'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   ac_cv_struct_utmp_ut_user=yes
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_cv_struct_utmp_ut_user=no
20976
20977 fi
20978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20979
20980 fi
20981 echo "$as_me:$LINENO: result: $ac_cv_struct_utmp_ut_user" >&5
20982 echo "${ECHO_T}$ac_cv_struct_utmp_ut_user" >&6
20983
20984         if test "$ac_cv_struct_utmp_ut_user" = "no"; then
20985
20986 cat >>confdefs.h <<\_ACEOF
20987 #define ut_user ut_name
20988 _ACEOF
20989
20990         fi
20991 fi
20992
20993 if test "$ac_cv_header_lastlog_h" = "yes"; then
20994         echo "$as_me:$LINENO: checking for ll_host in struct lastlog" >&5
20995 echo $ECHO_N "checking for ll_host in struct lastlog... $ECHO_C" >&6
20996 if test "${ac_cv_struct_lastlog_ll_host+set}" = set; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999   cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h.  */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h.  */
21005 #include <lastlog.h>
21006 int
21007 main ()
21008 {
21009 struct lastlog ll; char *cp = ll.ll_host;
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21017   (eval $ac_compile) 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } &&
21024          { ac_try='test -z "$ac_c_werror_flag"
21025                          || test ! -s conftest.err'
21026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027   (eval $ac_try) 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; } &&
21031          { ac_try='test -s conftest.$ac_objext'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; }; then
21037   ac_cv_struct_lastlog_ll_host=yes
21038 else
21039   echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042 ac_cv_struct_lastlog_ll_host=no
21043
21044 fi
21045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21046
21047 fi
21048 echo "$as_me:$LINENO: result: $ac_cv_struct_lastlog_ll_host" >&5
21049 echo "${ECHO_T}$ac_cv_struct_lastlog_ll_host" >&6
21050
21051         if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
21052
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_LL_HOST 1
21055 _ACEOF
21056
21057         fi
21058 fi
21059
21060 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
21061 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
21062 if test "${ac_cv_type_getgroups+set}" = set; then
21063   echo $ECHO_N "(cached) $ECHO_C" >&6
21064 else
21065   if test "$cross_compiling" = yes; then
21066   ac_cv_type_getgroups=cross
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 /* Thanks to Mike Rendell for this test.  */
21075 #include <sys/types.h>
21076 #define NGID 256
21077 #undef MAX
21078 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21079
21080 int
21081 main ()
21082 {
21083   gid_t gidset[NGID];
21084   int i, n;
21085   union { gid_t gval; long lval; }  val;
21086
21087   val.lval = -1;
21088   for (i = 0; i < NGID; i++)
21089     gidset[i] = val.gval;
21090   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21091                  gidset);
21092   /* Exit non-zero if getgroups seems to require an array of ints.  This
21093      happens when gid_t is short but getgroups modifies an array of ints.  */
21094   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
21095 }
21096 _ACEOF
21097 rm -f conftest$ac_exeext
21098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21099   (eval $ac_link) 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ac_cv_type_getgroups=gid_t
21109 else
21110   echo "$as_me: program exited with status $ac_status" >&5
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114 ( exit $ac_status )
21115 ac_cv_type_getgroups=int
21116 fi
21117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21118 fi
21119 if test $ac_cv_type_getgroups = cross; then
21120         cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126 #include <unistd.h>
21127
21128 _ACEOF
21129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21130   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
21131   ac_cv_type_getgroups=gid_t
21132 else
21133   ac_cv_type_getgroups=int
21134 fi
21135 rm -f conftest*
21136
21137 fi
21138 fi
21139 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
21140 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
21141
21142 cat >>confdefs.h <<_ACEOF
21143 #define GETGROUPS_T $ac_cv_type_getgroups
21144 _ACEOF
21145
21146
21147 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21148 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21149 if test "${ac_cv_type_signal+set}" = set; then
21150   echo $ECHO_N "(cached) $ECHO_C" >&6
21151 else
21152   cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158 #include <sys/types.h>
21159 #include <signal.h>
21160 #ifdef signal
21161 # undef signal
21162 #endif
21163 #ifdef __cplusplus
21164 extern "C" void (*signal (int, void (*)(int)))(int);
21165 #else
21166 void (*signal ()) ();
21167 #endif
21168
21169 int
21170 main ()
21171 {
21172 int i;
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21179   (eval $ac_compile) 2>conftest.er1
21180   ac_status=$?
21181   grep -v '^ *+' conftest.er1 >conftest.err
21182   rm -f conftest.er1
21183   cat conftest.err >&5
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); } &&
21186          { ac_try='test -z "$ac_c_werror_flag"
21187                          || test ! -s conftest.err'
21188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189   (eval $ac_try) 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; } &&
21193          { ac_try='test -s conftest.$ac_objext'
21194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; }; then
21199   ac_cv_type_signal=void
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204 ac_cv_type_signal=int
21205 fi
21206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21207 fi
21208 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21209 echo "${ECHO_T}$ac_cv_type_signal" >&6
21210
21211 cat >>confdefs.h <<_ACEOF
21212 #define RETSIGTYPE $ac_cv_type_signal
21213 _ACEOF
21214
21215
21216 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
21217 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
21218 if test "${ac_cv_func_utime_null+set}" = set; then
21219   echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221   rm -f conftest.data; >conftest.data
21222 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
21223 if test "$cross_compiling" = yes; then
21224   ac_cv_func_utime_null=no
21225 else
21226   cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232 $ac_includes_default
21233 int
21234 main ()
21235 {
21236 struct stat s, t;
21237   exit (!(stat ("conftest.data", &s) == 0
21238           && utime ("conftest.data", (long *)0) == 0
21239           && stat ("conftest.data", &t) == 0
21240           && t.st_mtime >= s.st_mtime
21241           && t.st_mtime - s.st_mtime < 120));
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest$ac_exeext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21248   (eval $ac_link) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253   (eval $ac_try) 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; }; then
21257   ac_cv_func_utime_null=yes
21258 else
21259   echo "$as_me: program exited with status $ac_status" >&5
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 ( exit $ac_status )
21264 ac_cv_func_utime_null=no
21265 fi
21266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21267 fi
21268 rm -f core *.core
21269 fi
21270 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
21271 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
21272 if test $ac_cv_func_utime_null = yes; then
21273
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_UTIME_NULL 1
21276 _ACEOF
21277
21278 fi
21279 rm -f conftest.data
21280
21281
21282 for ac_func in strftime
21283 do
21284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21285 echo "$as_me:$LINENO: checking for $ac_func" >&5
21286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21287 if eval "test \"\${$as_ac_var+set}\" = set"; then
21288   echo $ECHO_N "(cached) $ECHO_C" >&6
21289 else
21290   cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21298 #define $ac_func innocuous_$ac_func
21299
21300 /* System header to define __stub macros and hopefully few prototypes,
21301     which can conflict with char $ac_func (); below.
21302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21303     <limits.h> exists even on freestanding compilers.  */
21304
21305 #ifdef __STDC__
21306 # include <limits.h>
21307 #else
21308 # include <assert.h>
21309 #endif
21310
21311 #undef $ac_func
21312
21313 /* Override any gcc2 internal prototype to avoid an error.  */
21314 #ifdef __cplusplus
21315 extern "C"
21316 {
21317 #endif
21318 /* We use char because int might match the return type of a gcc2
21319    builtin and then its argument prototype would still apply.  */
21320 char $ac_func ();
21321 /* The GNU C library defines this for functions which it implements
21322     to always fail with ENOSYS.  Some functions are actually named
21323     something starting with __ and the normal name is an alias.  */
21324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21325 choke me
21326 #else
21327 char (*f) () = $ac_func;
21328 #endif
21329 #ifdef __cplusplus
21330 }
21331 #endif
21332
21333 int
21334 main ()
21335 {
21336 return f != $ac_func;
21337   ;
21338   return 0;
21339 }
21340 _ACEOF
21341 rm -f conftest.$ac_objext conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343   (eval $ac_link) 2>conftest.er1
21344   ac_status=$?
21345   grep -v '^ *+' conftest.er1 >conftest.err
21346   rm -f conftest.er1
21347   cat conftest.err >&5
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); } &&
21350          { ac_try='test -z "$ac_c_werror_flag"
21351                          || test ! -s conftest.err'
21352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21353   (eval $ac_try) 2>&5
21354   ac_status=$?
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); }; } &&
21357          { ac_try='test -s conftest$ac_exeext'
21358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359   (eval $ac_try) 2>&5
21360   ac_status=$?
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); }; }; then
21363   eval "$as_ac_var=yes"
21364 else
21365   echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21367
21368 eval "$as_ac_var=no"
21369 fi
21370 rm -f conftest.err conftest.$ac_objext \
21371       conftest$ac_exeext conftest.$ac_ext
21372 fi
21373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21375 if test `eval echo '${'$as_ac_var'}'` = yes; then
21376   cat >>confdefs.h <<_ACEOF
21377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21378 _ACEOF
21379
21380 else
21381   # strftime is in -lintl on SCO UNIX.
21382 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21383 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21384 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21385   echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387   ac_check_lib_save_LIBS=$LIBS
21388 LIBS="-lintl  $LIBS"
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h.  */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h.  */
21395
21396 /* Override any gcc2 internal prototype to avoid an error.  */
21397 #ifdef __cplusplus
21398 extern "C"
21399 #endif
21400 /* We use char because int might match the return type of a gcc2
21401    builtin and then its argument prototype would still apply.  */
21402 char strftime ();
21403 int
21404 main ()
21405 {
21406 strftime ();
21407   ;
21408   return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>conftest.er1
21414   ac_status=$?
21415   grep -v '^ *+' conftest.er1 >conftest.err
21416   rm -f conftest.er1
21417   cat conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } &&
21420          { ac_try='test -z "$ac_c_werror_flag"
21421                          || test ! -s conftest.err'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; } &&
21427          { ac_try='test -s conftest$ac_exeext'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; }; then
21433   ac_cv_lib_intl_strftime=yes
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ac_cv_lib_intl_strftime=no
21439 fi
21440 rm -f conftest.err conftest.$ac_objext \
21441       conftest$ac_exeext conftest.$ac_ext
21442 LIBS=$ac_check_lib_save_LIBS
21443 fi
21444 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21445 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21446 if test $ac_cv_lib_intl_strftime = yes; then
21447   cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_STRFTIME 1
21449 _ACEOF
21450
21451 LIBS="-lintl $LIBS"
21452 fi
21453
21454 fi
21455 done
21456
21457
21458
21459
21460
21461
21462
21463 for ac_func in mkdir putgrent putpwent putspent rename rmdir
21464 do
21465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21466 echo "$as_me:$LINENO: checking for $ac_func" >&5
21467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21468 if eval "test \"\${$as_ac_var+set}\" = set"; then
21469   echo $ECHO_N "(cached) $ECHO_C" >&6
21470 else
21471   cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21479 #define $ac_func innocuous_$ac_func
21480
21481 /* System header to define __stub macros and hopefully few prototypes,
21482     which can conflict with char $ac_func (); below.
21483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21484     <limits.h> exists even on freestanding compilers.  */
21485
21486 #ifdef __STDC__
21487 # include <limits.h>
21488 #else
21489 # include <assert.h>
21490 #endif
21491
21492 #undef $ac_func
21493
21494 /* Override any gcc2 internal prototype to avoid an error.  */
21495 #ifdef __cplusplus
21496 extern "C"
21497 {
21498 #endif
21499 /* We use char because int might match the return type of a gcc2
21500    builtin and then its argument prototype would still apply.  */
21501 char $ac_func ();
21502 /* The GNU C library defines this for functions which it implements
21503     to always fail with ENOSYS.  Some functions are actually named
21504     something starting with __ and the normal name is an alias.  */
21505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21506 choke me
21507 #else
21508 char (*f) () = $ac_func;
21509 #endif
21510 #ifdef __cplusplus
21511 }
21512 #endif
21513
21514 int
21515 main ()
21516 {
21517 return f != $ac_func;
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21524   (eval $ac_link) 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } &&
21531          { ac_try='test -z "$ac_c_werror_flag"
21532                          || test ! -s conftest.err'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; } &&
21538          { ac_try='test -s conftest$ac_exeext'
21539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540   (eval $ac_try) 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; }; then
21544   eval "$as_ac_var=yes"
21545 else
21546   echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 eval "$as_ac_var=no"
21550 fi
21551 rm -f conftest.err conftest.$ac_objext \
21552       conftest$ac_exeext conftest.$ac_ext
21553 fi
21554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21556 if test `eval echo '${'$as_ac_var'}'` = yes; then
21557   cat >>confdefs.h <<_ACEOF
21558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21559 _ACEOF
21560
21561 else
21562   case $LIBOBJS in
21563     "$ac_func.$ac_objext"   | \
21564   *" $ac_func.$ac_objext"   | \
21565     "$ac_func.$ac_objext "* | \
21566   *" $ac_func.$ac_objext "* ) ;;
21567   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21568 esac
21569
21570 fi
21571 done
21572
21573
21574
21575
21576
21577 for ac_func in sgetgrent sgetpwent sgetspent
21578 do
21579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21580 echo "$as_me:$LINENO: checking for $ac_func" >&5
21581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21582 if eval "test \"\${$as_ac_var+set}\" = set"; then
21583   echo $ECHO_N "(cached) $ECHO_C" >&6
21584 else
21585   cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21593 #define $ac_func innocuous_$ac_func
21594
21595 /* System header to define __stub macros and hopefully few prototypes,
21596     which can conflict with char $ac_func (); below.
21597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21598     <limits.h> exists even on freestanding compilers.  */
21599
21600 #ifdef __STDC__
21601 # include <limits.h>
21602 #else
21603 # include <assert.h>
21604 #endif
21605
21606 #undef $ac_func
21607
21608 /* Override any gcc2 internal prototype to avoid an error.  */
21609 #ifdef __cplusplus
21610 extern "C"
21611 {
21612 #endif
21613 /* We use char because int might match the return type of a gcc2
21614    builtin and then its argument prototype would still apply.  */
21615 char $ac_func ();
21616 /* The GNU C library defines this for functions which it implements
21617     to always fail with ENOSYS.  Some functions are actually named
21618     something starting with __ and the normal name is an alias.  */
21619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21620 choke me
21621 #else
21622 char (*f) () = $ac_func;
21623 #endif
21624 #ifdef __cplusplus
21625 }
21626 #endif
21627
21628 int
21629 main ()
21630 {
21631 return f != $ac_func;
21632   ;
21633   return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638   (eval $ac_link) 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } &&
21645          { ac_try='test -z "$ac_c_werror_flag"
21646                          || test ! -s conftest.err'
21647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648   (eval $ac_try) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); }; } &&
21652          { ac_try='test -s conftest$ac_exeext'
21653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654   (eval $ac_try) 2>&5
21655   ac_status=$?
21656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657   (exit $ac_status); }; }; then
21658   eval "$as_ac_var=yes"
21659 else
21660   echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 eval "$as_ac_var=no"
21664 fi
21665 rm -f conftest.err conftest.$ac_objext \
21666       conftest$ac_exeext conftest.$ac_ext
21667 fi
21668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21670 if test `eval echo '${'$as_ac_var'}'` = yes; then
21671   cat >>confdefs.h <<_ACEOF
21672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21673 _ACEOF
21674
21675 else
21676   case $LIBOBJS in
21677     "$ac_func.$ac_objext"   | \
21678   *" $ac_func.$ac_objext"   | \
21679     "$ac_func.$ac_objext "* | \
21680   *" $ac_func.$ac_objext "* ) ;;
21681   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21682 esac
21683
21684 fi
21685 done
21686
21687
21688
21689
21690
21691
21692
21693 for ac_func in snprintf strcasecmp strdup strerror strstr
21694 do
21695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21696 echo "$as_me:$LINENO: checking for $ac_func" >&5
21697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21698 if eval "test \"\${$as_ac_var+set}\" = set"; then
21699   echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701   cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h.  */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h.  */
21707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21709 #define $ac_func innocuous_$ac_func
21710
21711 /* System header to define __stub macros and hopefully few prototypes,
21712     which can conflict with char $ac_func (); below.
21713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21714     <limits.h> exists even on freestanding compilers.  */
21715
21716 #ifdef __STDC__
21717 # include <limits.h>
21718 #else
21719 # include <assert.h>
21720 #endif
21721
21722 #undef $ac_func
21723
21724 /* Override any gcc2 internal prototype to avoid an error.  */
21725 #ifdef __cplusplus
21726 extern "C"
21727 {
21728 #endif
21729 /* We use char because int might match the return type of a gcc2
21730    builtin and then its argument prototype would still apply.  */
21731 char $ac_func ();
21732 /* The GNU C library defines this for functions which it implements
21733     to always fail with ENOSYS.  Some functions are actually named
21734     something starting with __ and the normal name is an alias.  */
21735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21736 choke me
21737 #else
21738 char (*f) () = $ac_func;
21739 #endif
21740 #ifdef __cplusplus
21741 }
21742 #endif
21743
21744 int
21745 main ()
21746 {
21747 return f != $ac_func;
21748   ;
21749   return 0;
21750 }
21751 _ACEOF
21752 rm -f conftest.$ac_objext conftest$ac_exeext
21753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21754   (eval $ac_link) 2>conftest.er1
21755   ac_status=$?
21756   grep -v '^ *+' conftest.er1 >conftest.err
21757   rm -f conftest.er1
21758   cat conftest.err >&5
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } &&
21761          { ac_try='test -z "$ac_c_werror_flag"
21762                          || test ! -s conftest.err'
21763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764   (eval $ac_try) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; } &&
21768          { ac_try='test -s conftest$ac_exeext'
21769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770   (eval $ac_try) 2>&5
21771   ac_status=$?
21772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); }; }; then
21774   eval "$as_ac_var=yes"
21775 else
21776   echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 eval "$as_ac_var=no"
21780 fi
21781 rm -f conftest.err conftest.$ac_objext \
21782       conftest$ac_exeext conftest.$ac_ext
21783 fi
21784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21786 if test `eval echo '${'$as_ac_var'}'` = yes; then
21787   cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21789 _ACEOF
21790
21791 else
21792   case $LIBOBJS in
21793     "$ac_func.$ac_objext"   | \
21794   *" $ac_func.$ac_objext"   | \
21795     "$ac_func.$ac_objext "* | \
21796   *" $ac_func.$ac_objext "* ) ;;
21797   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
21798 esac
21799
21800 fi
21801 done
21802
21803
21804
21805 echo "$as_me:$LINENO: checking for setpgrp" >&5
21806 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
21807 if test "${ac_cv_func_setpgrp+set}" = set; then
21808   echo $ECHO_N "(cached) $ECHO_C" >&6
21809 else
21810   cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h.  */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h.  */
21816 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
21817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21818 #define setpgrp innocuous_setpgrp
21819
21820 /* System header to define __stub macros and hopefully few prototypes,
21821     which can conflict with char setpgrp (); below.
21822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21823     <limits.h> exists even on freestanding compilers.  */
21824
21825 #ifdef __STDC__
21826 # include <limits.h>
21827 #else
21828 # include <assert.h>
21829 #endif
21830
21831 #undef setpgrp
21832
21833 /* Override any gcc2 internal prototype to avoid an error.  */
21834 #ifdef __cplusplus
21835 extern "C"
21836 {
21837 #endif
21838 /* We use char because int might match the return type of a gcc2
21839    builtin and then its argument prototype would still apply.  */
21840 char setpgrp ();
21841 /* The GNU C library defines this for functions which it implements
21842     to always fail with ENOSYS.  Some functions are actually named
21843     something starting with __ and the normal name is an alias.  */
21844 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
21845 choke me
21846 #else
21847 char (*f) () = setpgrp;
21848 #endif
21849 #ifdef __cplusplus
21850 }
21851 #endif
21852
21853 int
21854 main ()
21855 {
21856 return f != setpgrp;
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863   (eval $ac_link) 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } &&
21870          { ac_try='test -z "$ac_c_werror_flag"
21871                          || test ! -s conftest.err'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; } &&
21877          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
21883   ac_cv_func_setpgrp=yes
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 ac_cv_func_setpgrp=no
21889 fi
21890 rm -f conftest.err conftest.$ac_objext \
21891       conftest$ac_exeext conftest.$ac_ext
21892 fi
21893 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
21894 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
21895
21896 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
21897 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
21898 if test "${ac_cv_func_setpgrp_void+set}" = set; then
21899   echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901   if test "$cross_compiling" = yes; then
21902     ac_cv_func_setpgrp_void=yes
21903 else
21904   cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 #if HAVE_UNISTD_H
21911 # include <unistd.h>
21912 #endif
21913
21914 int
21915 main ()
21916 {
21917 /* If this system has a BSD-style setpgrp which takes arguments,
21918   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
21919   exit successfully. */
21920   exit (setpgrp (1,1) == -1 ? 0 : 1);
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 rm -f conftest$ac_exeext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21927   (eval $ac_link) 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932   (eval $ac_try) 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); }; }; then
21936   ac_cv_func_setpgrp_void=no
21937 else
21938   echo "$as_me: program exited with status $ac_status" >&5
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 ( exit $ac_status )
21943 ac_cv_func_setpgrp_void=yes
21944 fi
21945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21946 fi
21947 fi
21948 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
21949 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
21950 if test $ac_cv_func_setpgrp_void = yes; then
21951
21952 cat >>confdefs.h <<\_ACEOF
21953 #define SETPGRP_VOID 1
21954 _ACEOF
21955
21956 fi
21957
21958
21959 if test "$ac_cv_header_shadow_h" = "yes"; then
21960         echo "$as_me:$LINENO: checking for working shadow group support" >&5
21961 echo $ECHO_N "checking for working shadow group support... $ECHO_C" >&6
21962 if test "${ac_cv_libc_shadowgrp+set}" = set; then
21963   echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965   if test "$cross_compiling" = yes; then
21966   ac_cv_libc_shadowgrp=no
21967
21968 else
21969   cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h.  */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h.  */
21975
21976                                 #include <shadow.h>
21977                                 main()
21978                                 {
21979                                         struct sgrp *sg = sgetsgent("test:x::");
21980                                         /* NYS libc on Red Hat 3.0.3 has broken shadow group support */
21981                                         return !sg || !sg->sg_adm || !sg->sg_mem;
21982                                 }
21983
21984 _ACEOF
21985 rm -f conftest$ac_exeext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21987   (eval $ac_link) 2>&5
21988   ac_status=$?
21989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; }; then
21996   ac_cv_libc_shadowgrp=yes
21997 else
21998   echo "$as_me: program exited with status $ac_status" >&5
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 ( exit $ac_status )
22003 ac_cv_libc_shadowgrp=no
22004 fi
22005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22006 fi
22007
22008 fi
22009 echo "$as_me:$LINENO: result: $ac_cv_libc_shadowgrp" >&5
22010 echo "${ECHO_T}$ac_cv_libc_shadowgrp" >&6
22011
22012         if test "$ac_cv_libc_shadowgrp" = "yes"; then
22013
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_SHADOWGRP 1
22016 _ACEOF
22017
22018         fi
22019 fi
22020
22021 echo "$as_me:$LINENO: checking location of shared mail directory" >&5
22022 echo $ECHO_N "checking location of shared mail directory... $ECHO_C" >&6
22023 if test "${shadow_cv_maildir+set}" = set; then
22024   echo $ECHO_N "(cached) $ECHO_C" >&6
22025 else
22026   for shadow_cv_maildir in /var/mail /var/spool/mail /usr/spool/mail /usr/mail none; do
22027         if test -d $shadow_cv_maildir; then
22028                 break
22029         fi
22030 done
22031 fi
22032 echo "$as_me:$LINENO: result: $shadow_cv_maildir" >&5
22033 echo "${ECHO_T}$shadow_cv_maildir" >&6
22034 if test $shadow_cv_maildir != none; then
22035
22036 cat >>confdefs.h <<_ACEOF
22037 #define MAIL_SPOOL_DIR "$shadow_cv_maildir"
22038 _ACEOF
22039
22040 fi
22041
22042 echo "$as_me:$LINENO: checking location of user mail file" >&5
22043 echo $ECHO_N "checking location of user mail file... $ECHO_C" >&6
22044 if test "${shadow_cv_mailfile+set}" = set; then
22045   echo $ECHO_N "(cached) $ECHO_C" >&6
22046 else
22047   for shadow_cv_mailfile in Mailbox mailbox Mail mail .mail none; do
22048         if test -f $HOME/$shadow_cv_mailfile; then
22049                 break
22050         fi
22051 done
22052 fi
22053 echo "$as_me:$LINENO: result: $shadow_cv_mailfile" >&5
22054 echo "${ECHO_T}$shadow_cv_mailfile" >&6
22055 if test $shadow_cv_mailfile != none; then
22056
22057 cat >>confdefs.h <<_ACEOF
22058 #define MAIL_SPOOL_FILE "$shadow_cv_mailfile"
22059 _ACEOF
22060
22061 fi
22062
22063 echo "$as_me:$LINENO: checking location of utmp" >&5
22064 echo $ECHO_N "checking location of utmp... $ECHO_C" >&6
22065 if test "${shadow_cv_utmpdir+set}" = set; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068   for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do
22069         if test -f $shadow_cv_utmpdir/utmp; then
22070                 break
22071         fi
22072 done
22073 fi
22074 echo "$as_me:$LINENO: result: $shadow_cv_utmpdir" >&5
22075 echo "${ECHO_T}$shadow_cv_utmpdir" >&6
22076 if test "$shadow_cv_utmpdir" = "none"; then
22077         { echo "$as_me:$LINENO: WARNING: utmp file not found" >&5
22078 echo "$as_me: WARNING: utmp file not found" >&2;}
22079 fi
22080
22081 cat >>confdefs.h <<_ACEOF
22082 #define _UTMP_FILE "$shadow_cv_utmpdir/utmp"
22083 _ACEOF
22084
22085
22086 echo "$as_me:$LINENO: checking location of faillog/lastlog/wtmp" >&5
22087 echo $ECHO_N "checking location of faillog/lastlog/wtmp... $ECHO_C" >&6
22088 if test "${shadow_cv_logdir+set}" = set; then
22089   echo $ECHO_N "(cached) $ECHO_C" >&6
22090 else
22091   for shadow_cv_logdir in /var/log /var/adm /usr/adm /etc; do
22092         if test -d $shadow_cv_logdir; then
22093                 break
22094         fi
22095 done
22096 fi
22097 echo "$as_me:$LINENO: result: $shadow_cv_logdir" >&5
22098 echo "${ECHO_T}$shadow_cv_logdir" >&6
22099
22100 cat >>confdefs.h <<_ACEOF
22101 #define _WTMP_FILE "$shadow_cv_logdir/wtmp"
22102 _ACEOF
22103
22104
22105 cat >>confdefs.h <<_ACEOF
22106 #define LASTLOG_FILE "$shadow_cv_logdir/lastlog"
22107 _ACEOF
22108
22109
22110 cat >>confdefs.h <<_ACEOF
22111 #define FAILLOG_FILE "$shadow_cv_logdir/faillog"
22112 _ACEOF
22113
22114
22115 echo "$as_me:$LINENO: checking location of the passwd program" >&5
22116 echo $ECHO_N "checking location of the passwd program... $ECHO_C" >&6
22117 if test "${shadow_cv_passwd_dir+set}" = set; then
22118   echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22120   if test -f /usr/bin/passwd; then
22121         shadow_cv_passwd_dir=/usr/bin
22122 else
22123         shadow_cv_passwd_dir=/bin
22124 fi
22125 fi
22126 echo "$as_me:$LINENO: result: $shadow_cv_passwd_dir" >&5
22127 echo "${ECHO_T}$shadow_cv_passwd_dir" >&6
22128
22129 cat >>confdefs.h <<_ACEOF
22130 #define PASSWD_PROGRAM "$shadow_cv_passwd_dir/passwd"
22131 _ACEOF
22132
22133
22134
22135 cat >>confdefs.h <<\_ACEOF
22136 #define USE_SYSLOG 1
22137 _ACEOF
22138
22139
22140 cat >>confdefs.h <<\_ACEOF
22141 #define RLOGIN 1
22142 _ACEOF
22143
22144
22145 cat >>confdefs.h <<\_ACEOF
22146 #define RUSEROK 0
22147 _ACEOF
22148
22149
22150
22151 cat >>confdefs.h <<\_ACEOF
22152 #define getpass libshadow_getpass
22153 _ACEOF
22154
22155
22156 # Check whether --enable-shadowgrp or --disable-shadowgrp was given.
22157 if test "${enable_shadowgrp+set}" = set; then
22158   enableval="$enable_shadowgrp"
22159   case "${enableval}" in
22160          yes) enable_shadowgrp="yes" ;;
22161           no) enable_shadowgrp="no" ;;
22162            *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-shadowgrp" >&5
22163 echo "$as_me: error: bad value ${enableval} for --enable-shadowgrp" >&2;}
22164    { (exit 1); exit 1; }; } ;;
22165          esac
22166 else
22167   enable_shadowgrp="yes"
22168
22169 fi;
22170
22171 # Check whether --enable-man or --disable-man was given.
22172 if test "${enable_man+set}" = set; then
22173   enableval="$enable_man"
22174   enable_man=yes
22175 else
22176   enable_man=no
22177
22178 fi;
22179
22180
22181 # Check whether --with-audit or --without-audit was given.
22182 if test "${with_audit+set}" = set; then
22183   withval="$with_audit"
22184   with_audit=$withval
22185 else
22186   with_audit=yes
22187 fi;
22188
22189 # Check whether --with-libpam or --without-libpam was given.
22190 if test "${with_libpam+set}" = set; then
22191   withval="$with_libpam"
22192   with_libpam=$withval
22193 else
22194   with_libpam=yes
22195 fi;
22196
22197 # Check whether --with-selinux or --without-selinux was given.
22198 if test "${with_selinux+set}" = set; then
22199   withval="$with_selinux"
22200   with_selinux=$withval
22201 else
22202   with_selinux=yes
22203 fi;
22204
22205 # Check whether --with-skey or --without-skey was given.
22206 if test "${with_skey+set}" = set; then
22207   withval="$with_skey"
22208   with_skey=$withval
22209 else
22210   with_skey=no
22211 fi;
22212
22213 # Check whether --with-libcrack or --without-libcrack was given.
22214 if test "${with_libcrack+set}" = set; then
22215   withval="$with_libcrack"
22216   with_libcrack=$withval
22217 else
22218   with_libcrack=no
22219 fi;
22220
22221
22222 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
22223 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
22224 if test "${ac_cv_search_inet_ntoa+set}" = set; then
22225   echo $ECHO_N "(cached) $ECHO_C" >&6
22226 else
22227   ac_func_search_save_LIBS=$LIBS
22228 ac_cv_search_inet_ntoa=no
22229 cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h.  */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h.  */
22235
22236 /* Override any gcc2 internal prototype to avoid an error.  */
22237 #ifdef __cplusplus
22238 extern "C"
22239 #endif
22240 /* We use char because int might match the return type of a gcc2
22241    builtin and then its argument prototype would still apply.  */
22242 char inet_ntoa ();
22243 int
22244 main ()
22245 {
22246 inet_ntoa ();
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext conftest$ac_exeext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253   (eval $ac_link) 2>conftest.er1
22254   ac_status=$?
22255   grep -v '^ *+' conftest.er1 >conftest.err
22256   rm -f conftest.er1
22257   cat conftest.err >&5
22258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); } &&
22260          { ac_try='test -z "$ac_c_werror_flag"
22261                          || test ! -s conftest.err'
22262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263   (eval $ac_try) 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; } &&
22267          { ac_try='test -s conftest$ac_exeext'
22268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269   (eval $ac_try) 2>&5
22270   ac_status=$?
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); }; }; then
22273   ac_cv_search_inet_ntoa="none required"
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278 fi
22279 rm -f conftest.err conftest.$ac_objext \
22280       conftest$ac_exeext conftest.$ac_ext
22281 if test "$ac_cv_search_inet_ntoa" = no; then
22282   for ac_lib in inet; do
22283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22284     cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h.  */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h.  */
22290
22291 /* Override any gcc2 internal prototype to avoid an error.  */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 /* We use char because int might match the return type of a gcc2
22296    builtin and then its argument prototype would still apply.  */
22297 char inet_ntoa ();
22298 int
22299 main ()
22300 {
22301 inet_ntoa ();
22302   ;
22303   return 0;
22304 }
22305 _ACEOF
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308   (eval $ac_link) 2>conftest.er1
22309   ac_status=$?
22310   grep -v '^ *+' conftest.er1 >conftest.err
22311   rm -f conftest.er1
22312   cat conftest.err >&5
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } &&
22315          { ac_try='test -z "$ac_c_werror_flag"
22316                          || test ! -s conftest.err'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; } &&
22322          { ac_try='test -s conftest$ac_exeext'
22323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324   (eval $ac_try) 2>&5
22325   ac_status=$?
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); }; }; then
22328   ac_cv_search_inet_ntoa="-l$ac_lib"
22329 break
22330 else
22331   echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22333
22334 fi
22335 rm -f conftest.err conftest.$ac_objext \
22336       conftest$ac_exeext conftest.$ac_ext
22337   done
22338 fi
22339 LIBS=$ac_func_search_save_LIBS
22340 fi
22341 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
22342 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
22343 if test "$ac_cv_search_inet_ntoa" != no; then
22344   test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS"
22345
22346 fi
22347
22348 echo "$as_me:$LINENO: checking for library containing socket" >&5
22349 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
22350 if test "${ac_cv_search_socket+set}" = set; then
22351   echo $ECHO_N "(cached) $ECHO_C" >&6
22352 else
22353   ac_func_search_save_LIBS=$LIBS
22354 ac_cv_search_socket=no
22355 cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h.  */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h.  */
22361
22362 /* Override any gcc2 internal prototype to avoid an error.  */
22363 #ifdef __cplusplus
22364 extern "C"
22365 #endif
22366 /* We use char because int might match the return type of a gcc2
22367    builtin and then its argument prototype would still apply.  */
22368 char socket ();
22369 int
22370 main ()
22371 {
22372 socket ();
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext conftest$ac_exeext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379   (eval $ac_link) 2>conftest.er1
22380   ac_status=$?
22381   grep -v '^ *+' conftest.er1 >conftest.err
22382   rm -f conftest.er1
22383   cat conftest.err >&5
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); } &&
22386          { ac_try='test -z "$ac_c_werror_flag"
22387                          || test ! -s conftest.err'
22388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389   (eval $ac_try) 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; } &&
22393          { ac_try='test -s conftest$ac_exeext'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; }; then
22399   ac_cv_search_socket="none required"
22400 else
22401   echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404 fi
22405 rm -f conftest.err conftest.$ac_objext \
22406       conftest$ac_exeext conftest.$ac_ext
22407 if test "$ac_cv_search_socket" = no; then
22408   for ac_lib in socket; do
22409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22410     cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416
22417 /* Override any gcc2 internal prototype to avoid an error.  */
22418 #ifdef __cplusplus
22419 extern "C"
22420 #endif
22421 /* We use char because int might match the return type of a gcc2
22422    builtin and then its argument prototype would still apply.  */
22423 char socket ();
22424 int
22425 main ()
22426 {
22427 socket ();
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22434   (eval $ac_link) 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } &&
22441          { ac_try='test -z "$ac_c_werror_flag"
22442                          || test ! -s conftest.err'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; } &&
22448          { ac_try='test -s conftest$ac_exeext'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; }; then
22454   ac_cv_search_socket="-l$ac_lib"
22455 break
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 fi
22461 rm -f conftest.err conftest.$ac_objext \
22462       conftest$ac_exeext conftest.$ac_ext
22463   done
22464 fi
22465 LIBS=$ac_func_search_save_LIBS
22466 fi
22467 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22468 echo "${ECHO_T}$ac_cv_search_socket" >&6
22469 if test "$ac_cv_search_socket" != no; then
22470   test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
22471
22472 fi
22473
22474 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22475 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
22476 if test "${ac_cv_search_gethostbyname+set}" = set; then
22477   echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479   ac_func_search_save_LIBS=$LIBS
22480 ac_cv_search_gethostbyname=no
22481 cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487
22488 /* Override any gcc2 internal prototype to avoid an error.  */
22489 #ifdef __cplusplus
22490 extern "C"
22491 #endif
22492 /* We use char because int might match the return type of a gcc2
22493    builtin and then its argument prototype would still apply.  */
22494 char gethostbyname ();
22495 int
22496 main ()
22497 {
22498 gethostbyname ();
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505   (eval $ac_link) 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } &&
22512          { ac_try='test -z "$ac_c_werror_flag"
22513                          || test ! -s conftest.err'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; } &&
22519          { ac_try='test -s conftest$ac_exeext'
22520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521   (eval $ac_try) 2>&5
22522   ac_status=$?
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); }; }; then
22525   ac_cv_search_gethostbyname="none required"
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530 fi
22531 rm -f conftest.err conftest.$ac_objext \
22532       conftest$ac_exeext conftest.$ac_ext
22533 if test "$ac_cv_search_gethostbyname" = no; then
22534   for ac_lib in nsl; do
22535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22536     cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542
22543 /* Override any gcc2 internal prototype to avoid an error.  */
22544 #ifdef __cplusplus
22545 extern "C"
22546 #endif
22547 /* We use char because int might match the return type of a gcc2
22548    builtin and then its argument prototype would still apply.  */
22549 char gethostbyname ();
22550 int
22551 main ()
22552 {
22553 gethostbyname ();
22554   ;
22555   return 0;
22556 }
22557 _ACEOF
22558 rm -f conftest.$ac_objext conftest$ac_exeext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22560   (eval $ac_link) 2>conftest.er1
22561   ac_status=$?
22562   grep -v '^ *+' conftest.er1 >conftest.err
22563   rm -f conftest.er1
22564   cat conftest.err >&5
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); } &&
22567          { ac_try='test -z "$ac_c_werror_flag"
22568                          || test ! -s conftest.err'
22569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570   (eval $ac_try) 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); }; } &&
22574          { ac_try='test -s conftest$ac_exeext'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; }; then
22580   ac_cv_search_gethostbyname="-l$ac_lib"
22581 break
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 fi
22587 rm -f conftest.err conftest.$ac_objext \
22588       conftest$ac_exeext conftest.$ac_ext
22589   done
22590 fi
22591 LIBS=$ac_func_search_save_LIBS
22592 fi
22593 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22594 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
22595 if test "$ac_cv_search_gethostbyname" != no; then
22596   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
22597
22598 fi
22599
22600
22601 if test "$enable_shadowgrp" = "yes"; then
22602
22603 cat >>confdefs.h <<\_ACEOF
22604 #define SHADOWGRP 1
22605 _ACEOF
22606
22607 fi
22608
22609 if test "$enable_man" = "yes"; then
22610                                 # Extract the first word of "xsltproc", so it can be a program name with args.
22611 set dummy xsltproc; ac_word=$2
22612 echo "$as_me:$LINENO: checking for $ac_word" >&5
22613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22614 if test "${ac_cv_path_XSLTPROC+set}" = set; then
22615   echo $ECHO_N "(cached) $ECHO_C" >&6
22616 else
22617   case $XSLTPROC in
22618   [\\/]* | ?:[\\/]*)
22619   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
22620   ;;
22621   *)
22622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22623 for as_dir in $PATH
22624 do
22625   IFS=$as_save_IFS
22626   test -z "$as_dir" && as_dir=.
22627   for ac_exec_ext in '' $ac_executable_extensions; do
22628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22629     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
22630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22631     break 2
22632   fi
22633 done
22634 done
22635
22636   ;;
22637 esac
22638 fi
22639 XSLTPROC=$ac_cv_path_XSLTPROC
22640
22641 if test -n "$XSLTPROC"; then
22642   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
22643 echo "${ECHO_T}$XSLTPROC" >&6
22644 else
22645   echo "$as_me:$LINENO: result: no" >&5
22646 echo "${ECHO_T}no" >&6
22647 fi
22648
22649         if test -z "$XSLTPROC"; then
22650                 enable_man=no
22651         fi
22652
22653
22654   # check for the presence of the XML catalog
22655
22656 # Check whether --with-xml-catalog or --without-xml-catalog was given.
22657 if test "${with_xml_catalog+set}" = set; then
22658   withval="$with_xml_catalog"
22659
22660 else
22661   with_xml_catalog=/etc/xml/catalog
22662 fi;
22663   jh_found_xmlcatalog=true
22664   XML_CATALOG_FILE="$with_xml_catalog"
22665
22666   echo "$as_me:$LINENO: checking for XML catalog ($XML_CATALOG_FILE)" >&5
22667 echo $ECHO_N "checking for XML catalog ($XML_CATALOG_FILE)... $ECHO_C" >&6
22668   if test -f "$XML_CATALOG_FILE"; then
22669     echo "$as_me:$LINENO: result: found" >&5
22670 echo "${ECHO_T}found" >&6
22671   else
22672     jh_found_xmlcatalog=false
22673     echo "$as_me:$LINENO: result: not found" >&5
22674 echo "${ECHO_T}not found" >&6
22675   fi
22676
22677   # check for the xmlcatalog program
22678   # Extract the first word of "xmlcatalog", so it can be a program name with args.
22679 set dummy xmlcatalog; ac_word=$2
22680 echo "$as_me:$LINENO: checking for $ac_word" >&5
22681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22682 if test "${ac_cv_path_XMLCATALOG+set}" = set; then
22683   echo $ECHO_N "(cached) $ECHO_C" >&6
22684 else
22685   case $XMLCATALOG in
22686   [\\/]* | ?:[\\/]*)
22687   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
22688   ;;
22689   *)
22690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22691 for as_dir in $PATH
22692 do
22693   IFS=$as_save_IFS
22694   test -z "$as_dir" && as_dir=.
22695   for ac_exec_ext in '' $ac_executable_extensions; do
22696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22697     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
22698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22699     break 2
22700   fi
22701 done
22702 done
22703
22704   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
22705   ;;
22706 esac
22707 fi
22708 XMLCATALOG=$ac_cv_path_XMLCATALOG
22709
22710 if test -n "$XMLCATALOG"; then
22711   echo "$as_me:$LINENO: result: $XMLCATALOG" >&5
22712 echo "${ECHO_T}$XMLCATALOG" >&6
22713 else
22714   echo "$as_me:$LINENO: result: no" >&5
22715 echo "${ECHO_T}no" >&6
22716 fi
22717
22718   if test "x$XMLCATALOG" = xno; then
22719     jh_found_xmlcatalog=false
22720   fi
22721
22722   if $jh_found_xmlcatalog; then
22723     :
22724   else
22725     :
22726   fi
22727
22728
22729     echo "$as_me:$LINENO: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
22730 echo $ECHO_N "checking for DocBook XML DTD V4.1.2 in XML catalog... $ECHO_C" >&6
22731   if $jh_found_xmlcatalog && \
22732      { (echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2") >&5
22733   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; then
22737     echo "$as_me:$LINENO: result: found" >&5
22738 echo "${ECHO_T}found" >&6
22739       else
22740     echo "$as_me:$LINENO: result: not found" >&5
22741 echo "${ECHO_T}not found" >&6
22742     enable_man=no
22743   fi
22744
22745
22746     echo "$as_me:$LINENO: checking for DocBook XSL Stylesheets in XML catalog" >&5
22747 echo $ECHO_N "checking for DocBook XSL Stylesheets in XML catalog... $ECHO_C" >&6
22748   if $jh_found_xmlcatalog && \
22749      { (echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2") >&5
22750   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
22751   ac_status=$?
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); }; then
22754     echo "$as_me:$LINENO: result: found" >&5
22755 echo "${ECHO_T}found" >&6
22756       else
22757     echo "$as_me:$LINENO: result: not found" >&5
22758 echo "${ECHO_T}not found" >&6
22759     enable_man=no
22760   fi
22761
22762 fi
22763
22764
22765 if test x$enable_man != xno; then
22766   ENABLE_REGENERATE_MAN_TRUE=
22767   ENABLE_REGENERATE_MAN_FALSE='#'
22768 else
22769   ENABLE_REGENERATE_MAN_TRUE='#'
22770   ENABLE_REGENERATE_MAN_FALSE=
22771 fi
22772
22773
22774
22775 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22776 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22777 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22778   echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780   ac_check_lib_save_LIBS=$LIBS
22781 LIBS="-lcrypt  $LIBS"
22782 cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788
22789 /* Override any gcc2 internal prototype to avoid an error.  */
22790 #ifdef __cplusplus
22791 extern "C"
22792 #endif
22793 /* We use char because int might match the return type of a gcc2
22794    builtin and then its argument prototype would still apply.  */
22795 char crypt ();
22796 int
22797 main ()
22798 {
22799 crypt ();
22800   ;
22801   return 0;
22802 }
22803 _ACEOF
22804 rm -f conftest.$ac_objext conftest$ac_exeext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22806   (eval $ac_link) 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } &&
22813          { ac_try='test -z "$ac_c_werror_flag"
22814                          || test ! -s conftest.err'
22815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816   (eval $ac_try) 2>&5
22817   ac_status=$?
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); }; } &&
22820          { ac_try='test -s conftest$ac_exeext'
22821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); }; }; then
22826   ac_cv_lib_crypt_crypt=yes
22827 else
22828   echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_cv_lib_crypt_crypt=no
22832 fi
22833 rm -f conftest.err conftest.$ac_objext \
22834       conftest$ac_exeext conftest.$ac_ext
22835 LIBS=$ac_check_lib_save_LIBS
22836 fi
22837 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22838 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22839 if test $ac_cv_lib_crypt_crypt = yes; then
22840   LIBCRYPT=-lcrypt
22841 else
22842   { { echo "$as_me:$LINENO: error: crypt() not found" >&5
22843 echo "$as_me: error: crypt() not found" >&2;}
22844    { (exit 1); exit 1; }; }
22845 fi
22846
22847
22848
22849 if test "$with_audit" = "yes"; then
22850         if test "${ac_cv_header_libaudit_h+set}" = set; then
22851   echo "$as_me:$LINENO: checking for libaudit.h" >&5
22852 echo $ECHO_N "checking for libaudit.h... $ECHO_C" >&6
22853 if test "${ac_cv_header_libaudit_h+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 fi
22856 echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
22857 echo "${ECHO_T}$ac_cv_header_libaudit_h" >&6
22858 else
22859   # Is the header compilable?
22860 echo "$as_me:$LINENO: checking libaudit.h usability" >&5
22861 echo $ECHO_N "checking libaudit.h usability... $ECHO_C" >&6
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 $ac_includes_default
22869 #include <libaudit.h>
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873   (eval $ac_compile) 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } &&
22880          { ac_try='test -z "$ac_c_werror_flag"
22881                          || test ! -s conftest.err'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; } &&
22887          { ac_try='test -s conftest.$ac_objext'
22888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889   (eval $ac_try) 2>&5
22890   ac_status=$?
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); }; }; then
22893   ac_header_compiler=yes
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 ac_header_compiler=no
22899 fi
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22902 echo "${ECHO_T}$ac_header_compiler" >&6
22903
22904 # Is the header present?
22905 echo "$as_me:$LINENO: checking libaudit.h presence" >&5
22906 echo $ECHO_N "checking libaudit.h presence... $ECHO_C" >&6
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 #include <libaudit.h>
22914 _ACEOF
22915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22917   ac_status=$?
22918   grep -v '^ *+' conftest.er1 >conftest.err
22919   rm -f conftest.er1
22920   cat conftest.err >&5
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); } >/dev/null; then
22923   if test -s conftest.err; then
22924     ac_cpp_err=$ac_c_preproc_warn_flag
22925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22926   else
22927     ac_cpp_err=
22928   fi
22929 else
22930   ac_cpp_err=yes
22931 fi
22932 if test -z "$ac_cpp_err"; then
22933   ac_header_preproc=yes
22934 else
22935   echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938   ac_header_preproc=no
22939 fi
22940 rm -f conftest.err conftest.$ac_ext
22941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22942 echo "${ECHO_T}$ac_header_preproc" >&6
22943
22944 # So?  What about this header?
22945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22946   yes:no: )
22947     { echo "$as_me:$LINENO: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&5
22948 echo "$as_me: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22949     { echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the compiler's result" >&5
22950 echo "$as_me: WARNING: libaudit.h: proceeding with the compiler's result" >&2;}
22951     ac_header_preproc=yes
22952     ;;
22953   no:yes:* )
22954     { echo "$as_me:$LINENO: WARNING: libaudit.h: present but cannot be compiled" >&5
22955 echo "$as_me: WARNING: libaudit.h: present but cannot be compiled" >&2;}
22956     { echo "$as_me:$LINENO: WARNING: libaudit.h:     check for missing prerequisite headers?" >&5
22957 echo "$as_me: WARNING: libaudit.h:     check for missing prerequisite headers?" >&2;}
22958     { echo "$as_me:$LINENO: WARNING: libaudit.h: see the Autoconf documentation" >&5
22959 echo "$as_me: WARNING: libaudit.h: see the Autoconf documentation" >&2;}
22960     { echo "$as_me:$LINENO: WARNING: libaudit.h:     section \"Present But Cannot Be Compiled\"" >&5
22961 echo "$as_me: WARNING: libaudit.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22962     { echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the preprocessor's result" >&5
22963 echo "$as_me: WARNING: libaudit.h: proceeding with the preprocessor's result" >&2;}
22964     { echo "$as_me:$LINENO: WARNING: libaudit.h: in the future, the compiler will take precedence" >&5
22965 echo "$as_me: WARNING: libaudit.h: in the future, the compiler will take precedence" >&2;}
22966     (
22967       cat <<\_ASBOX
22968 ## ------------------------------------------ ##
22969 ## Report this to the AC_PACKAGE_NAME lists.  ##
22970 ## ------------------------------------------ ##
22971 _ASBOX
22972     ) |
22973       sed "s/^/$as_me: WARNING:     /" >&2
22974     ;;
22975 esac
22976 echo "$as_me:$LINENO: checking for libaudit.h" >&5
22977 echo $ECHO_N "checking for libaudit.h... $ECHO_C" >&6
22978 if test "${ac_cv_header_libaudit_h+set}" = set; then
22979   echo $ECHO_N "(cached) $ECHO_C" >&6
22980 else
22981   ac_cv_header_libaudit_h=$ac_header_preproc
22982 fi
22983 echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
22984 echo "${ECHO_T}$ac_cv_header_libaudit_h" >&6
22985
22986 fi
22987 if test $ac_cv_header_libaudit_h = yes; then
22988   audit_header="yes"
22989 else
22990   audit_header="no"
22991 fi
22992
22993
22994         if test "$audit_header" = "yes"; then
22995                 echo "$as_me:$LINENO: checking for audit_log_acct_message in -laudit" >&5
22996 echo $ECHO_N "checking for audit_log_acct_message in -laudit... $ECHO_C" >&6
22997 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then
22998   echo $ECHO_N "(cached) $ECHO_C" >&6
22999 else
23000   ac_check_lib_save_LIBS=$LIBS
23001 LIBS="-laudit  $LIBS"
23002 cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008
23009 /* Override any gcc2 internal prototype to avoid an error.  */
23010 #ifdef __cplusplus
23011 extern "C"
23012 #endif
23013 /* We use char because int might match the return type of a gcc2
23014    builtin and then its argument prototype would still apply.  */
23015 char audit_log_acct_message ();
23016 int
23017 main ()
23018 {
23019 audit_log_acct_message ();
23020   ;
23021   return 0;
23022 }
23023 _ACEOF
23024 rm -f conftest.$ac_objext conftest$ac_exeext
23025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23026   (eval $ac_link) 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } &&
23033          { ac_try='test -z "$ac_c_werror_flag"
23034                          || test ! -s conftest.err'
23035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036   (eval $ac_try) 2>&5
23037   ac_status=$?
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); }; } &&
23040          { ac_try='test -s conftest$ac_exeext'
23041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042   (eval $ac_try) 2>&5
23043   ac_status=$?
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); }; }; then
23046   ac_cv_lib_audit_audit_log_acct_message=yes
23047 else
23048   echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051 ac_cv_lib_audit_audit_log_acct_message=no
23052 fi
23053 rm -f conftest.err conftest.$ac_objext \
23054       conftest$ac_exeext conftest.$ac_ext
23055 LIBS=$ac_check_lib_save_LIBS
23056 fi
23057 echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
23058 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_acct_message" >&6
23059 if test $ac_cv_lib_audit_audit_log_acct_message = yes; then
23060
23061 cat >>confdefs.h <<\_ACEOF
23062 #define WITH_AUDIT 1
23063 _ACEOF
23064
23065                         LIBAUDIT="-laudit"
23066 fi
23067
23068         fi
23069 fi
23070
23071
23072 if test "$with_libcrack" = "yes"; then
23073         echo "checking cracklib flavour, don't be surprised by the results"
23074         echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
23075 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
23076 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
23077   echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079   ac_check_lib_save_LIBS=$LIBS
23080 LIBS="-lcrack  $LIBS"
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h.  */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h.  */
23087
23088 /* Override any gcc2 internal prototype to avoid an error.  */
23089 #ifdef __cplusplus
23090 extern "C"
23091 #endif
23092 /* We use char because int might match the return type of a gcc2
23093    builtin and then its argument prototype would still apply.  */
23094 char FascistCheck ();
23095 int
23096 main ()
23097 {
23098 FascistCheck ();
23099   ;
23100   return 0;
23101 }
23102 _ACEOF
23103 rm -f conftest.$ac_objext conftest$ac_exeext
23104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23105   (eval $ac_link) 2>conftest.er1
23106   ac_status=$?
23107   grep -v '^ *+' conftest.er1 >conftest.err
23108   rm -f conftest.er1
23109   cat conftest.err >&5
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); } &&
23112          { ac_try='test -z "$ac_c_werror_flag"
23113                          || test ! -s conftest.err'
23114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115   (eval $ac_try) 2>&5
23116   ac_status=$?
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); }; } &&
23119          { ac_try='test -s conftest$ac_exeext'
23120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121   (eval $ac_try) 2>&5
23122   ac_status=$?
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); }; }; then
23125   ac_cv_lib_crack_FascistCheck=yes
23126 else
23127   echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130 ac_cv_lib_crack_FascistCheck=no
23131 fi
23132 rm -f conftest.err conftest.$ac_objext \
23133       conftest$ac_exeext conftest.$ac_ext
23134 LIBS=$ac_check_lib_save_LIBS
23135 fi
23136 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
23137 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
23138 if test $ac_cv_lib_crack_FascistCheck = yes; then
23139   LIBCRACK=-lcrack
23140 cat >>confdefs.h <<\_ACEOF
23141 #define HAVE_LIBCRACK 1
23142 _ACEOF
23143
23144 fi
23145
23146         echo "$as_me:$LINENO: checking for FascistHistory in -lcrack" >&5
23147 echo $ECHO_N "checking for FascistHistory in -lcrack... $ECHO_C" >&6
23148 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then
23149   echo $ECHO_N "(cached) $ECHO_C" >&6
23150 else
23151   ac_check_lib_save_LIBS=$LIBS
23152 LIBS="-lcrack  $LIBS"
23153 cat >conftest.$ac_ext <<_ACEOF
23154 /* confdefs.h.  */
23155 _ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h.  */
23159
23160 /* Override any gcc2 internal prototype to avoid an error.  */
23161 #ifdef __cplusplus
23162 extern "C"
23163 #endif
23164 /* We use char because int might match the return type of a gcc2
23165    builtin and then its argument prototype would still apply.  */
23166 char FascistHistory ();
23167 int
23168 main ()
23169 {
23170 FascistHistory ();
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext conftest$ac_exeext
23176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23177   (eval $ac_link) 2>conftest.er1
23178   ac_status=$?
23179   grep -v '^ *+' conftest.er1 >conftest.err
23180   rm -f conftest.er1
23181   cat conftest.err >&5
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); } &&
23184          { ac_try='test -z "$ac_c_werror_flag"
23185                          || test ! -s conftest.err'
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); }; } &&
23191          { ac_try='test -s conftest$ac_exeext'
23192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193   (eval $ac_try) 2>&5
23194   ac_status=$?
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); }; }; then
23197   ac_cv_lib_crack_FascistHistory=yes
23198 else
23199   echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 ac_cv_lib_crack_FascistHistory=no
23203 fi
23204 rm -f conftest.err conftest.$ac_objext \
23205       conftest$ac_exeext conftest.$ac_ext
23206 LIBS=$ac_check_lib_save_LIBS
23207 fi
23208 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistHistory" >&5
23209 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistory" >&6
23210 if test $ac_cv_lib_crack_FascistHistory = yes; then
23211
23212 cat >>confdefs.h <<\_ACEOF
23213 #define HAVE_LIBCRACK_HIST 1
23214 _ACEOF
23215
23216 fi
23217
23218         echo "$as_me:$LINENO: checking for FascistHistoryPw in -lcrack" >&5
23219 echo $ECHO_N "checking for FascistHistoryPw in -lcrack... $ECHO_C" >&6
23220 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then
23221   echo $ECHO_N "(cached) $ECHO_C" >&6
23222 else
23223   ac_check_lib_save_LIBS=$LIBS
23224 LIBS="-lcrack  $LIBS"
23225 cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h.  */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h.  */
23231
23232 /* Override any gcc2 internal prototype to avoid an error.  */
23233 #ifdef __cplusplus
23234 extern "C"
23235 #endif
23236 /* We use char because int might match the return type of a gcc2
23237    builtin and then its argument prototype would still apply.  */
23238 char FascistHistoryPw ();
23239 int
23240 main ()
23241 {
23242 FascistHistoryPw ();
23243   ;
23244   return 0;
23245 }
23246 _ACEOF
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249   (eval $ac_link) 2>conftest.er1
23250   ac_status=$?
23251   grep -v '^ *+' conftest.er1 >conftest.err
23252   rm -f conftest.er1
23253   cat conftest.err >&5
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } &&
23256          { ac_try='test -z "$ac_c_werror_flag"
23257                          || test ! -s conftest.err'
23258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259   (eval $ac_try) 2>&5
23260   ac_status=$?
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); }; } &&
23263          { ac_try='test -s conftest$ac_exeext'
23264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265   (eval $ac_try) 2>&5
23266   ac_status=$?
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); }; }; then
23269   ac_cv_lib_crack_FascistHistoryPw=yes
23270 else
23271   echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23273
23274 ac_cv_lib_crack_FascistHistoryPw=no
23275 fi
23276 rm -f conftest.err conftest.$ac_objext \
23277       conftest$ac_exeext conftest.$ac_ext
23278 LIBS=$ac_check_lib_save_LIBS
23279 fi
23280 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
23281 echo "${ECHO_T}$ac_cv_lib_crack_FascistHistoryPw" >&6
23282 if test $ac_cv_lib_crack_FascistHistoryPw = yes; then
23283
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_LIBCRACK_PW 1
23286 _ACEOF
23287
23288 fi
23289
23290 fi
23291
23292 if test "$with_selinux" = "yes"; then
23293         echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
23294 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
23295 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
23296   echo $ECHO_N "(cached) $ECHO_C" >&6
23297 else
23298   ac_check_lib_save_LIBS=$LIBS
23299 LIBS="-lselinux  $LIBS"
23300 cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h.  */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h.  */
23306
23307 /* Override any gcc2 internal prototype to avoid an error.  */
23308 #ifdef __cplusplus
23309 extern "C"
23310 #endif
23311 /* We use char because int might match the return type of a gcc2
23312    builtin and then its argument prototype would still apply.  */
23313 char is_selinux_enabled ();
23314 int
23315 main ()
23316 {
23317 is_selinux_enabled ();
23318   ;
23319   return 0;
23320 }
23321 _ACEOF
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23324   (eval $ac_link) 2>conftest.er1
23325   ac_status=$?
23326   grep -v '^ *+' conftest.er1 >conftest.err
23327   rm -f conftest.er1
23328   cat conftest.err >&5
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); } &&
23331          { ac_try='test -z "$ac_c_werror_flag"
23332                          || test ! -s conftest.err'
23333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334   (eval $ac_try) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); }; } &&
23338          { ac_try='test -s conftest$ac_exeext'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; }; then
23344   ac_cv_lib_selinux_is_selinux_enabled=yes
23345 else
23346   echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_lib_selinux_is_selinux_enabled=no
23350 fi
23351 rm -f conftest.err conftest.$ac_objext \
23352       conftest$ac_exeext conftest.$ac_ext
23353 LIBS=$ac_check_lib_save_LIBS
23354 fi
23355 echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
23356 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
23357 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
23358   LIBSELINUX="-lselinux"
23359 else
23360   { { echo "$as_me:$LINENO: error: libselinux not found" >&5
23361 echo "$as_me: error: libselinux not found" >&2;}
23362    { (exit 1); exit 1; }; }
23363 fi
23364
23365
23366
23367 for ac_header in selinux/selinux.h
23368 do
23369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23371   echo "$as_me:$LINENO: checking for $ac_header" >&5
23372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23374   echo $ECHO_N "(cached) $ECHO_C" >&6
23375 fi
23376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23378 else
23379   # Is the header compilable?
23380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23382 cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h.  */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h.  */
23388 $ac_includes_default
23389 #include <$ac_header>
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23393   (eval $ac_compile) 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } &&
23400          { ac_try='test -z "$ac_c_werror_flag"
23401                          || test ! -s conftest.err'
23402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; } &&
23407          { ac_try='test -s conftest.$ac_objext'
23408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409   (eval $ac_try) 2>&5
23410   ac_status=$?
23411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412   (exit $ac_status); }; }; then
23413   ac_header_compiler=yes
23414 else
23415   echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23417
23418 ac_header_compiler=no
23419 fi
23420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23422 echo "${ECHO_T}$ac_header_compiler" >&6
23423
23424 # Is the header present?
23425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23427 cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h.  */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h.  */
23433 #include <$ac_header>
23434 _ACEOF
23435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23437   ac_status=$?
23438   grep -v '^ *+' conftest.er1 >conftest.err
23439   rm -f conftest.er1
23440   cat conftest.err >&5
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); } >/dev/null; then
23443   if test -s conftest.err; then
23444     ac_cpp_err=$ac_c_preproc_warn_flag
23445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23446   else
23447     ac_cpp_err=
23448   fi
23449 else
23450   ac_cpp_err=yes
23451 fi
23452 if test -z "$ac_cpp_err"; then
23453   ac_header_preproc=yes
23454 else
23455   echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458   ac_header_preproc=no
23459 fi
23460 rm -f conftest.err conftest.$ac_ext
23461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23462 echo "${ECHO_T}$ac_header_preproc" >&6
23463
23464 # So?  What about this header?
23465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23466   yes:no: )
23467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23471     ac_header_preproc=yes
23472     ;;
23473   no:yes:* )
23474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23486     (
23487       cat <<\_ASBOX
23488 ## ------------------------------------------ ##
23489 ## Report this to the AC_PACKAGE_NAME lists.  ##
23490 ## ------------------------------------------ ##
23491 _ASBOX
23492     ) |
23493       sed "s/^/$as_me: WARNING:     /" >&2
23494     ;;
23495 esac
23496 echo "$as_me:$LINENO: checking for $ac_header" >&5
23497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23499   echo $ECHO_N "(cached) $ECHO_C" >&6
23500 else
23501   eval "$as_ac_Header=\$ac_header_preproc"
23502 fi
23503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23505
23506 fi
23507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23508   cat >>confdefs.h <<_ACEOF
23509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23510 _ACEOF
23511
23512 else
23513   selinux/selinux.h is missing
23514 fi
23515
23516 done
23517
23518
23519 cat >>confdefs.h <<\_ACEOF
23520 #define WITH_SELINUX 1
23521 _ACEOF
23522
23523 fi
23524
23525
23526 if test "$with_libpam" = "yes"; then
23527         echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
23528 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
23529 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
23530   echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532   ac_check_lib_save_LIBS=$LIBS
23533 LIBS="-lpam -ldl  $LIBS"
23534 cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540
23541 /* Override any gcc2 internal prototype to avoid an error.  */
23542 #ifdef __cplusplus
23543 extern "C"
23544 #endif
23545 /* We use char because int might match the return type of a gcc2
23546    builtin and then its argument prototype would still apply.  */
23547 char pam_start ();
23548 int
23549 main ()
23550 {
23551 pam_start ();
23552   ;
23553   return 0;
23554 }
23555 _ACEOF
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558   (eval $ac_link) 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } &&
23565          { ac_try='test -z "$ac_c_werror_flag"
23566                          || test ! -s conftest.err'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; } &&
23572          { ac_try='test -s conftest$ac_exeext'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; }; then
23578   ac_cv_lib_pam_pam_start=yes
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 ac_cv_lib_pam_pam_start=no
23584 fi
23585 rm -f conftest.err conftest.$ac_objext \
23586       conftest$ac_exeext conftest.$ac_ext
23587 LIBS=$ac_check_lib_save_LIBS
23588 fi
23589 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
23590 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
23591 if test $ac_cv_lib_pam_pam_start = yes; then
23592
23593 cat >>confdefs.h <<\_ACEOF
23594 #define USE_PAM 1
23595 _ACEOF
23596
23597                 LIBPAM="-lpam -ldl"
23598                 echo "$as_me:$LINENO: checking for main in -lpam_misc" >&5
23599 echo $ECHO_N "checking for main in -lpam_misc... $ECHO_C" >&6
23600 if test "${ac_cv_lib_pam_misc_main+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lpam_misc  $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611
23612
23613 int
23614 main ()
23615 {
23616 main ();
23617   ;
23618   return 0;
23619 }
23620 _ACEOF
23621 rm -f conftest.$ac_objext conftest$ac_exeext
23622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23623   (eval $ac_link) 2>conftest.er1
23624   ac_status=$?
23625   grep -v '^ *+' conftest.er1 >conftest.err
23626   rm -f conftest.er1
23627   cat conftest.err >&5
23628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629   (exit $ac_status); } &&
23630          { ac_try='test -z "$ac_c_werror_flag"
23631                          || test ! -s conftest.err'
23632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); }; } &&
23637          { ac_try='test -s conftest$ac_exeext'
23638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639   (eval $ac_try) 2>&5
23640   ac_status=$?
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); }; }; then
23643   ac_cv_lib_pam_misc_main=yes
23644 else
23645   echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23647
23648 ac_cv_lib_pam_misc_main=no
23649 fi
23650 rm -f conftest.err conftest.$ac_objext \
23651       conftest$ac_exeext conftest.$ac_ext
23652 LIBS=$ac_check_lib_save_LIBS
23653 fi
23654 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_main" >&5
23655 echo "${ECHO_T}$ac_cv_lib_pam_misc_main" >&6
23656 ac_cv_lib_pam_misc_main=yes
23657 if test $ac_cv_lib_pam_misc_main = yes; then
23658   LIBPAM="$LIBPAM -lpam_misc"
23659 else
23660   { { echo "$as_me:$LINENO: error: libpam_misc is missing for enable PAM support" >&5
23661 echo "$as_me: error: libpam_misc is missing for enable PAM support" >&2;}
23662    { (exit 1); exit 1; }; }
23663
23664 fi
23665
23666 else
23667   echo "$as_me:$LINENO: checking use login access checking if PAM not used" >&5
23668 echo $ECHO_N "checking use login access checking if PAM not used... $ECHO_C" >&6
23669                 echo "$as_me:$LINENO: result: yes" >&5
23670 echo "${ECHO_T}yes" >&6
23671
23672 fi
23673
23674         echo "$as_me:$LINENO: checking use login and su access checking if PAM not used" >&5
23675 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
23676         echo "$as_me:$LINENO: result: no" >&5
23677 echo "${ECHO_T}no" >&6
23678 else
23679         echo "$as_me:$LINENO: checking use login and su access checking if PAM not used" >&5
23680 echo $ECHO_N "checking use login and su access checking if PAM not used... $ECHO_C" >&6
23681
23682 cat >>confdefs.h <<\_ACEOF
23683 #define SU_ACCESS 1
23684 _ACEOF
23685
23686         echo "$as_me:$LINENO: result: yes" >&5
23687 echo "${ECHO_T}yes" >&6
23688 fi
23689
23690
23691
23692 if test "$with_skey" = "yes"; then
23693         echo "$as_me:$LINENO: checking for MD5Init in -lmd" >&5
23694 echo $ECHO_N "checking for MD5Init in -lmd... $ECHO_C" >&6
23695 if test "${ac_cv_lib_md_MD5Init+set}" = set; then
23696   echo $ECHO_N "(cached) $ECHO_C" >&6
23697 else
23698   ac_check_lib_save_LIBS=$LIBS
23699 LIBS="-lmd  $LIBS"
23700 cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706
23707 /* Override any gcc2 internal prototype to avoid an error.  */
23708 #ifdef __cplusplus
23709 extern "C"
23710 #endif
23711 /* We use char because int might match the return type of a gcc2
23712    builtin and then its argument prototype would still apply.  */
23713 char MD5Init ();
23714 int
23715 main ()
23716 {
23717 MD5Init ();
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724   (eval $ac_link) 2>conftest.er1
23725   ac_status=$?
23726   grep -v '^ *+' conftest.er1 >conftest.err
23727   rm -f conftest.er1
23728   cat conftest.err >&5
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } &&
23731          { ac_try='test -z "$ac_c_werror_flag"
23732                          || test ! -s conftest.err'
23733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734   (eval $ac_try) 2>&5
23735   ac_status=$?
23736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737   (exit $ac_status); }; } &&
23738          { ac_try='test -s conftest$ac_exeext'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; }; then
23744   ac_cv_lib_md_MD5Init=yes
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749 ac_cv_lib_md_MD5Init=no
23750 fi
23751 rm -f conftest.err conftest.$ac_objext \
23752       conftest$ac_exeext conftest.$ac_ext
23753 LIBS=$ac_check_lib_save_LIBS
23754 fi
23755 echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Init" >&5
23756 echo "${ECHO_T}$ac_cv_lib_md_MD5Init" >&6
23757 if test $ac_cv_lib_md_MD5Init = yes; then
23758   LIBMD=-lmd
23759 fi
23760
23761         echo "$as_me:$LINENO: checking for skeychallenge in -lskey" >&5
23762 echo $ECHO_N "checking for skeychallenge in -lskey... $ECHO_C" >&6
23763 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then
23764   echo $ECHO_N "(cached) $ECHO_C" >&6
23765 else
23766   ac_check_lib_save_LIBS=$LIBS
23767 LIBS="-lskey  $LIBS"
23768 cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774
23775 /* Override any gcc2 internal prototype to avoid an error.  */
23776 #ifdef __cplusplus
23777 extern "C"
23778 #endif
23779 /* We use char because int might match the return type of a gcc2
23780    builtin and then its argument prototype would still apply.  */
23781 char skeychallenge ();
23782 int
23783 main ()
23784 {
23785 skeychallenge ();
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext conftest$ac_exeext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23792   (eval $ac_link) 2>conftest.er1
23793   ac_status=$?
23794   grep -v '^ *+' conftest.er1 >conftest.err
23795   rm -f conftest.er1
23796   cat conftest.err >&5
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } &&
23799          { ac_try='test -z "$ac_c_werror_flag"
23800                          || test ! -s conftest.err'
23801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802   (eval $ac_try) 2>&5
23803   ac_status=$?
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); }; } &&
23806          { ac_try='test -s conftest$ac_exeext'
23807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808   (eval $ac_try) 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }; then
23812   ac_cv_lib_skey_skeychallenge=yes
23813 else
23814   echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 ac_cv_lib_skey_skeychallenge=no
23818 fi
23819 rm -f conftest.err conftest.$ac_objext \
23820       conftest$ac_exeext conftest.$ac_ext
23821 LIBS=$ac_check_lib_save_LIBS
23822 fi
23823 echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeychallenge" >&5
23824 echo "${ECHO_T}$ac_cv_lib_skey_skeychallenge" >&6
23825 if test $ac_cv_lib_skey_skeychallenge = yes; then
23826   LIBSKEY=-lskey
23827 else
23828   { { echo "$as_me:$LINENO: error: liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2" >&5
23829 echo "$as_me: error: liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2" >&2;}
23830    { (exit 1); exit 1; }; }
23831 fi
23832
23833
23834 cat >>confdefs.h <<\_ACEOF
23835 #define SKEY 1
23836 _ACEOF
23837
23838 fi
23839
23840
23841
23842
23843         MKINSTALLDIRS=
23844   if test -n "$ac_aux_dir"; then
23845     case "$ac_aux_dir" in
23846       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
23847       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
23848     esac
23849   fi
23850   if test -z "$MKINSTALLDIRS"; then
23851     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
23852   fi
23853
23854
23855
23856   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23857 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
23858     # Check whether --enable-nls or --disable-nls was given.
23859 if test "${enable_nls+set}" = set; then
23860   enableval="$enable_nls"
23861   USE_NLS=$enableval
23862 else
23863   USE_NLS=yes
23864 fi;
23865   echo "$as_me:$LINENO: result: $USE_NLS" >&5
23866 echo "${ECHO_T}$USE_NLS" >&6
23867
23868
23869
23870
23871
23872
23873 # Prepare PATH_SEPARATOR.
23874 # The user is always right.
23875 if test "${PATH_SEPARATOR+set}" != set; then
23876   echo "#! /bin/sh" >conf$$.sh
23877   echo  "exit 0"   >>conf$$.sh
23878   chmod +x conf$$.sh
23879   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23880     PATH_SEPARATOR=';'
23881   else
23882     PATH_SEPARATOR=:
23883   fi
23884   rm -f conf$$.sh
23885 fi
23886
23887 # Find out how to test for executable files. Don't use a zero-byte file,
23888 # as systems may use methods other than mode bits to determine executability.
23889 cat >conf$$.file <<_ASEOF
23890 #! /bin/sh
23891 exit 0
23892 _ASEOF
23893 chmod +x conf$$.file
23894 if test -x conf$$.file >/dev/null 2>&1; then
23895   ac_executable_p="test -x"
23896 else
23897   ac_executable_p="test -f"
23898 fi
23899 rm -f conf$$.file
23900
23901 # Extract the first word of "msgfmt", so it can be a program name with args.
23902 set dummy msgfmt; ac_word=$2
23903 echo "$as_me:$LINENO: checking for $ac_word" >&5
23904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23905 if test "${ac_cv_path_MSGFMT+set}" = set; then
23906   echo $ECHO_N "(cached) $ECHO_C" >&6
23907 else
23908   case "$MSGFMT" in
23909   [\\/]* | ?:[\\/]*)
23910     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23911     ;;
23912   *)
23913     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23914     for ac_dir in $PATH; do
23915       IFS="$ac_save_IFS"
23916       test -z "$ac_dir" && ac_dir=.
23917       for ac_exec_ext in '' $ac_executable_extensions; do
23918         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23919           echo "$as_me: trying $ac_dir/$ac_word..." >&5
23920           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23921      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23922             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23923             break 2
23924           fi
23925         fi
23926       done
23927     done
23928     IFS="$ac_save_IFS"
23929   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23930     ;;
23931 esac
23932 fi
23933 MSGFMT="$ac_cv_path_MSGFMT"
23934 if test "$MSGFMT" != ":"; then
23935   echo "$as_me:$LINENO: result: $MSGFMT" >&5
23936 echo "${ECHO_T}$MSGFMT" >&6
23937 else
23938   echo "$as_me:$LINENO: result: no" >&5
23939 echo "${ECHO_T}no" >&6
23940 fi
23941
23942   # Extract the first word of "gmsgfmt", so it can be a program name with args.
23943 set dummy gmsgfmt; ac_word=$2
23944 echo "$as_me:$LINENO: checking for $ac_word" >&5
23945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23946 if test "${ac_cv_path_GMSGFMT+set}" = set; then
23947   echo $ECHO_N "(cached) $ECHO_C" >&6
23948 else
23949   case $GMSGFMT in
23950   [\\/]* | ?:[\\/]*)
23951   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
23952   ;;
23953   *)
23954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23955 for as_dir in $PATH
23956 do
23957   IFS=$as_save_IFS
23958   test -z "$as_dir" && as_dir=.
23959   for ac_exec_ext in '' $ac_executable_extensions; do
23960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23961     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
23962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23963     break 2
23964   fi
23965 done
23966 done
23967
23968   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
23969   ;;
23970 esac
23971 fi
23972 GMSGFMT=$ac_cv_path_GMSGFMT
23973
23974 if test -n "$GMSGFMT"; then
23975   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
23976 echo "${ECHO_T}$GMSGFMT" >&6
23977 else
23978   echo "$as_me:$LINENO: result: no" >&5
23979 echo "${ECHO_T}no" >&6
23980 fi
23981
23982
23983
23984 # Prepare PATH_SEPARATOR.
23985 # The user is always right.
23986 if test "${PATH_SEPARATOR+set}" != set; then
23987   echo "#! /bin/sh" >conf$$.sh
23988   echo  "exit 0"   >>conf$$.sh
23989   chmod +x conf$$.sh
23990   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23991     PATH_SEPARATOR=';'
23992   else
23993     PATH_SEPARATOR=:
23994   fi
23995   rm -f conf$$.sh
23996 fi
23997
23998 # Find out how to test for executable files. Don't use a zero-byte file,
23999 # as systems may use methods other than mode bits to determine executability.
24000 cat >conf$$.file <<_ASEOF
24001 #! /bin/sh
24002 exit 0
24003 _ASEOF
24004 chmod +x conf$$.file
24005 if test -x conf$$.file >/dev/null 2>&1; then
24006   ac_executable_p="test -x"
24007 else
24008   ac_executable_p="test -f"
24009 fi
24010 rm -f conf$$.file
24011
24012 # Extract the first word of "xgettext", so it can be a program name with args.
24013 set dummy xgettext; ac_word=$2
24014 echo "$as_me:$LINENO: checking for $ac_word" >&5
24015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24016 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24017   echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019   case "$XGETTEXT" in
24020   [\\/]* | ?:[\\/]*)
24021     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24022     ;;
24023   *)
24024     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24025     for ac_dir in $PATH; do
24026       IFS="$ac_save_IFS"
24027       test -z "$ac_dir" && ac_dir=.
24028       for ac_exec_ext in '' $ac_executable_extensions; do
24029         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24030           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24031           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24032      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24033             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24034             break 2
24035           fi
24036         fi
24037       done
24038     done
24039     IFS="$ac_save_IFS"
24040   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24041     ;;
24042 esac
24043 fi
24044 XGETTEXT="$ac_cv_path_XGETTEXT"
24045 if test "$XGETTEXT" != ":"; then
24046   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24047 echo "${ECHO_T}$XGETTEXT" >&6
24048 else
24049   echo "$as_me:$LINENO: result: no" >&5
24050 echo "${ECHO_T}no" >&6
24051 fi
24052
24053     rm -f messages.po
24054
24055
24056 # Prepare PATH_SEPARATOR.
24057 # The user is always right.
24058 if test "${PATH_SEPARATOR+set}" != set; then
24059   echo "#! /bin/sh" >conf$$.sh
24060   echo  "exit 0"   >>conf$$.sh
24061   chmod +x conf$$.sh
24062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24063     PATH_SEPARATOR=';'
24064   else
24065     PATH_SEPARATOR=:
24066   fi
24067   rm -f conf$$.sh
24068 fi
24069
24070 # Find out how to test for executable files. Don't use a zero-byte file,
24071 # as systems may use methods other than mode bits to determine executability.
24072 cat >conf$$.file <<_ASEOF
24073 #! /bin/sh
24074 exit 0
24075 _ASEOF
24076 chmod +x conf$$.file
24077 if test -x conf$$.file >/dev/null 2>&1; then
24078   ac_executable_p="test -x"
24079 else
24080   ac_executable_p="test -f"
24081 fi
24082 rm -f conf$$.file
24083
24084 # Extract the first word of "msgmerge", so it can be a program name with args.
24085 set dummy msgmerge; ac_word=$2
24086 echo "$as_me:$LINENO: checking for $ac_word" >&5
24087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24088 if test "${ac_cv_path_MSGMERGE+set}" = set; then
24089   echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091   case "$MSGMERGE" in
24092   [\\/]* | ?:[\\/]*)
24093     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24094     ;;
24095   *)
24096     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24097     for ac_dir in $PATH; do
24098       IFS="$ac_save_IFS"
24099       test -z "$ac_dir" && ac_dir=.
24100       for ac_exec_ext in '' $ac_executable_extensions; do
24101         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24102           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24103           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24104             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24105             break 2
24106           fi
24107         fi
24108       done
24109     done
24110     IFS="$ac_save_IFS"
24111   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24112     ;;
24113 esac
24114 fi
24115 MSGMERGE="$ac_cv_path_MSGMERGE"
24116 if test "$MSGMERGE" != ":"; then
24117   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24118 echo "${ECHO_T}$MSGMERGE" >&6
24119 else
24120   echo "$as_me:$LINENO: result: no" >&5
24121 echo "${ECHO_T}no" >&6
24122 fi
24123
24124
24125       if test "$GMSGFMT" != ":"; then
24126             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
24127        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24128       : ;
24129     else
24130       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
24131       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
24132 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
24133       GMSGFMT=":"
24134     fi
24135   fi
24136
24137       if test "$XGETTEXT" != ":"; then
24138             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
24139        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24140       : ;
24141     else
24142       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24143 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
24144       XGETTEXT=":"
24145     fi
24146         rm -f messages.po
24147   fi
24148
24149             ac_config_commands="$ac_config_commands default-1"
24150
24151
24152
24153       if test "X$prefix" = "XNONE"; then
24154     acl_final_prefix="$ac_default_prefix"
24155   else
24156     acl_final_prefix="$prefix"
24157   fi
24158   if test "X$exec_prefix" = "XNONE"; then
24159     acl_final_exec_prefix='${prefix}'
24160   else
24161     acl_final_exec_prefix="$exec_prefix"
24162   fi
24163   acl_save_prefix="$prefix"
24164   prefix="$acl_final_prefix"
24165   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24166   prefix="$acl_save_prefix"
24167
24168
24169 # Check whether --with-gnu-ld or --without-gnu-ld was given.
24170 if test "${with_gnu_ld+set}" = set; then
24171   withval="$with_gnu_ld"
24172   test "$withval" = no || with_gnu_ld=yes
24173 else
24174   with_gnu_ld=no
24175 fi;
24176 # Prepare PATH_SEPARATOR.
24177 # The user is always right.
24178 if test "${PATH_SEPARATOR+set}" != set; then
24179   echo "#! /bin/sh" >conf$$.sh
24180   echo  "exit 0"   >>conf$$.sh
24181   chmod +x conf$$.sh
24182   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24183     PATH_SEPARATOR=';'
24184   else
24185     PATH_SEPARATOR=:
24186   fi
24187   rm -f conf$$.sh
24188 fi
24189 ac_prog=ld
24190 if test "$GCC" = yes; then
24191   # Check if gcc -print-prog-name=ld gives a path.
24192   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24193 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
24194   case $host in
24195   *-*-mingw*)
24196     # gcc leaves a trailing carriage return which upsets mingw
24197     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24198   *)
24199     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24200   esac
24201   case $ac_prog in
24202     # Accept absolute paths.
24203     [\\/]* | [A-Za-z]:[\\/]*)
24204       re_direlt='/[^/][^/]*/\.\./'
24205       # Canonicalize the path of ld
24206       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24207       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24208         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24209       done
24210       test -z "$LD" && LD="$ac_prog"
24211       ;;
24212   "")
24213     # If it fails, then pretend we aren't using GCC.
24214     ac_prog=ld
24215     ;;
24216   *)
24217     # If it is relative, then search for the first ld in PATH.
24218     with_gnu_ld=unknown
24219     ;;
24220   esac
24221 elif test "$with_gnu_ld" = yes; then
24222   echo "$as_me:$LINENO: checking for GNU ld" >&5
24223 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24224 else
24225   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24226 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24227 fi
24228 if test "${acl_cv_path_LD+set}" = set; then
24229   echo $ECHO_N "(cached) $ECHO_C" >&6
24230 else
24231   if test -z "$LD"; then
24232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24233   for ac_dir in $PATH; do
24234     test -z "$ac_dir" && ac_dir=.
24235     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24236       acl_cv_path_LD="$ac_dir/$ac_prog"
24237       # Check to see if the program is GNU ld.  I'd rather use --version,
24238       # but apparently some GNU ld's only accept -v.
24239       # Break only if it was the GNU/non-GNU ld that we prefer.
24240       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24241       *GNU* | *'with BFD'*)
24242         test "$with_gnu_ld" != no && break ;;
24243       *)
24244         test "$with_gnu_ld" != yes && break ;;
24245       esac
24246     fi
24247   done
24248   IFS="$ac_save_ifs"
24249 else
24250   acl_cv_path_LD="$LD" # Let the user override the test with a path.
24251 fi
24252 fi
24253
24254 LD="$acl_cv_path_LD"
24255 if test -n "$LD"; then
24256   echo "$as_me:$LINENO: result: $LD" >&5
24257 echo "${ECHO_T}$LD" >&6
24258 else
24259   echo "$as_me:$LINENO: result: no" >&5
24260 echo "${ECHO_T}no" >&6
24261 fi
24262 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24263 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24264    { (exit 1); exit 1; }; }
24265 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24266 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24267 if test "${acl_cv_prog_gnu_ld+set}" = set; then
24268   echo $ECHO_N "(cached) $ECHO_C" >&6
24269 else
24270   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24271 case `$LD -v 2>&1 </dev/null` in
24272 *GNU* | *'with BFD'*)
24273   acl_cv_prog_gnu_ld=yes ;;
24274 *)
24275   acl_cv_prog_gnu_ld=no ;;
24276 esac
24277 fi
24278 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24279 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
24280 with_gnu_ld=$acl_cv_prog_gnu_ld
24281
24282
24283
24284
24285                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24286 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
24287 if test "${acl_cv_rpath+set}" = set; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290
24291     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24292     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24293     . ./conftest.sh
24294     rm -f ./conftest.sh
24295     acl_cv_rpath=done
24296
24297 fi
24298 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24299 echo "${ECHO_T}$acl_cv_rpath" >&6
24300   wl="$acl_cv_wl"
24301   libext="$acl_cv_libext"
24302   shlibext="$acl_cv_shlibext"
24303   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24304   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24305   hardcode_direct="$acl_cv_hardcode_direct"
24306   hardcode_minus_L="$acl_cv_hardcode_minus_L"
24307     # Check whether --enable-rpath or --disable-rpath was given.
24308 if test "${enable_rpath+set}" = set; then
24309   enableval="$enable_rpath"
24310   :
24311 else
24312   enable_rpath=yes
24313 fi;
24314
24315
24316
24317
24318
24319
24320
24321     use_additional=yes
24322
24323   acl_save_prefix="$prefix"
24324   prefix="$acl_final_prefix"
24325   acl_save_exec_prefix="$exec_prefix"
24326   exec_prefix="$acl_final_exec_prefix"
24327
24328     eval additional_includedir=\"$includedir\"
24329     eval additional_libdir=\"$libdir\"
24330
24331   exec_prefix="$acl_save_exec_prefix"
24332   prefix="$acl_save_prefix"
24333
24334
24335 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24336 if test "${with_libiconv_prefix+set}" = set; then
24337   withval="$with_libiconv_prefix"
24338
24339     if test "X$withval" = "Xno"; then
24340       use_additional=no
24341     else
24342       if test "X$withval" = "X"; then
24343
24344   acl_save_prefix="$prefix"
24345   prefix="$acl_final_prefix"
24346   acl_save_exec_prefix="$exec_prefix"
24347   exec_prefix="$acl_final_exec_prefix"
24348
24349           eval additional_includedir=\"$includedir\"
24350           eval additional_libdir=\"$libdir\"
24351
24352   exec_prefix="$acl_save_exec_prefix"
24353   prefix="$acl_save_prefix"
24354
24355       else
24356         additional_includedir="$withval/include"
24357         additional_libdir="$withval/lib"
24358       fi
24359     fi
24360
24361 fi;
24362       LIBICONV=
24363   LTLIBICONV=
24364   INCICONV=
24365   rpathdirs=
24366   ltrpathdirs=
24367   names_already_handled=
24368   names_next_round='iconv '
24369   while test -n "$names_next_round"; do
24370     names_this_round="$names_next_round"
24371     names_next_round=
24372     for name in $names_this_round; do
24373       already_handled=
24374       for n in $names_already_handled; do
24375         if test "$n" = "$name"; then
24376           already_handled=yes
24377           break
24378         fi
24379       done
24380       if test -z "$already_handled"; then
24381         names_already_handled="$names_already_handled $name"
24382                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24383         eval value=\"\$HAVE_LIB$uppername\"
24384         if test -n "$value"; then
24385           if test "$value" = yes; then
24386             eval value=\"\$LIB$uppername\"
24387             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24388             eval value=\"\$LTLIB$uppername\"
24389             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24390           else
24391                                     :
24392           fi
24393         else
24394                               found_dir=
24395           found_la=
24396           found_so=
24397           found_a=
24398           if test $use_additional = yes; then
24399             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24400               found_dir="$additional_libdir"
24401               found_so="$additional_libdir/lib$name.$shlibext"
24402               if test -f "$additional_libdir/lib$name.la"; then
24403                 found_la="$additional_libdir/lib$name.la"
24404               fi
24405             else
24406               if test -f "$additional_libdir/lib$name.$libext"; then
24407                 found_dir="$additional_libdir"
24408                 found_a="$additional_libdir/lib$name.$libext"
24409                 if test -f "$additional_libdir/lib$name.la"; then
24410                   found_la="$additional_libdir/lib$name.la"
24411                 fi
24412               fi
24413             fi
24414           fi
24415           if test "X$found_dir" = "X"; then
24416             for x in $LDFLAGS $LTLIBICONV; do
24417
24418   acl_save_prefix="$prefix"
24419   prefix="$acl_final_prefix"
24420   acl_save_exec_prefix="$exec_prefix"
24421   exec_prefix="$acl_final_exec_prefix"
24422   eval x=\"$x\"
24423   exec_prefix="$acl_save_exec_prefix"
24424   prefix="$acl_save_prefix"
24425
24426               case "$x" in
24427                 -L*)
24428                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24429                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24430                     found_dir="$dir"
24431                     found_so="$dir/lib$name.$shlibext"
24432                     if test -f "$dir/lib$name.la"; then
24433                       found_la="$dir/lib$name.la"
24434                     fi
24435                   else
24436                     if test -f "$dir/lib$name.$libext"; then
24437                       found_dir="$dir"
24438                       found_a="$dir/lib$name.$libext"
24439                       if test -f "$dir/lib$name.la"; then
24440                         found_la="$dir/lib$name.la"
24441                       fi
24442                     fi
24443                   fi
24444                   ;;
24445               esac
24446               if test "X$found_dir" != "X"; then
24447                 break
24448               fi
24449             done
24450           fi
24451           if test "X$found_dir" != "X"; then
24452                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24453             if test "X$found_so" != "X"; then
24454                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24455                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24456               else
24457                                                                                 haveit=
24458                 for x in $ltrpathdirs; do
24459                   if test "X$x" = "X$found_dir"; then
24460                     haveit=yes
24461                     break
24462                   fi
24463                 done
24464                 if test -z "$haveit"; then
24465                   ltrpathdirs="$ltrpathdirs $found_dir"
24466                 fi
24467                                 if test "$hardcode_direct" = yes; then
24468                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24469                 else
24470                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24471                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24472                                                             haveit=
24473                     for x in $rpathdirs; do
24474                       if test "X$x" = "X$found_dir"; then
24475                         haveit=yes
24476                         break
24477                       fi
24478                     done
24479                     if test -z "$haveit"; then
24480                       rpathdirs="$rpathdirs $found_dir"
24481                     fi
24482                   else
24483                                                                                 haveit=
24484                     for x in $LDFLAGS $LIBICONV; do
24485
24486   acl_save_prefix="$prefix"
24487   prefix="$acl_final_prefix"
24488   acl_save_exec_prefix="$exec_prefix"
24489   exec_prefix="$acl_final_exec_prefix"
24490   eval x=\"$x\"
24491   exec_prefix="$acl_save_exec_prefix"
24492   prefix="$acl_save_prefix"
24493
24494                       if test "X$x" = "X-L$found_dir"; then
24495                         haveit=yes
24496                         break
24497                       fi
24498                     done
24499                     if test -z "$haveit"; then
24500                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24501                     fi
24502                     if test "$hardcode_minus_L" != no; then
24503                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24504                     else
24505                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24506                     fi
24507                   fi
24508                 fi
24509               fi
24510             else
24511               if test "X$found_a" != "X"; then
24512                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24513               else
24514                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24515               fi
24516             fi
24517                         additional_includedir=
24518             case "$found_dir" in
24519               */lib | */lib/)
24520                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24521                 additional_includedir="$basedir/include"
24522                 ;;
24523             esac
24524             if test "X$additional_includedir" != "X"; then
24525                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24526                 haveit=
24527                 if test "X$additional_includedir" = "X/usr/local/include"; then
24528                   if test -n "$GCC"; then
24529                     case $host_os in
24530                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24531                     esac
24532                   fi
24533                 fi
24534                 if test -z "$haveit"; then
24535                   for x in $CPPFLAGS $INCICONV; do
24536
24537   acl_save_prefix="$prefix"
24538   prefix="$acl_final_prefix"
24539   acl_save_exec_prefix="$exec_prefix"
24540   exec_prefix="$acl_final_exec_prefix"
24541   eval x=\"$x\"
24542   exec_prefix="$acl_save_exec_prefix"
24543   prefix="$acl_save_prefix"
24544
24545                     if test "X$x" = "X-I$additional_includedir"; then
24546                       haveit=yes
24547                       break
24548                     fi
24549                   done
24550                   if test -z "$haveit"; then
24551                     if test -d "$additional_includedir"; then
24552                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24553                     fi
24554                   fi
24555                 fi
24556               fi
24557             fi
24558                         if test -n "$found_la"; then
24559                                                         save_libdir="$libdir"
24560               case "$found_la" in
24561                 */* | *\\*) . "$found_la" ;;
24562                 *) . "./$found_la" ;;
24563               esac
24564               libdir="$save_libdir"
24565                             for dep in $dependency_libs; do
24566                 case "$dep" in
24567                   -L*)
24568                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24569                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
24570                       haveit=
24571                       if test "X$additional_libdir" = "X/usr/local/lib"; then
24572                         if test -n "$GCC"; then
24573                           case $host_os in
24574                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24575                           esac
24576                         fi
24577                       fi
24578                       if test -z "$haveit"; then
24579                         haveit=
24580                         for x in $LDFLAGS $LIBICONV; do
24581
24582   acl_save_prefix="$prefix"
24583   prefix="$acl_final_prefix"
24584   acl_save_exec_prefix="$exec_prefix"
24585   exec_prefix="$acl_final_exec_prefix"
24586   eval x=\"$x\"
24587   exec_prefix="$acl_save_exec_prefix"
24588   prefix="$acl_save_prefix"
24589
24590                           if test "X$x" = "X-L$additional_libdir"; then
24591                             haveit=yes
24592                             break
24593                           fi
24594                         done
24595                         if test -z "$haveit"; then
24596                           if test -d "$additional_libdir"; then
24597                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24598                           fi
24599                         fi
24600                         haveit=
24601                         for x in $LDFLAGS $LTLIBICONV; do
24602
24603   acl_save_prefix="$prefix"
24604   prefix="$acl_final_prefix"
24605   acl_save_exec_prefix="$exec_prefix"
24606   exec_prefix="$acl_final_exec_prefix"
24607   eval x=\"$x\"
24608   exec_prefix="$acl_save_exec_prefix"
24609   prefix="$acl_save_prefix"
24610
24611                           if test "X$x" = "X-L$additional_libdir"; then
24612                             haveit=yes
24613                             break
24614                           fi
24615                         done
24616                         if test -z "$haveit"; then
24617                           if test -d "$additional_libdir"; then
24618                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24619                           fi
24620                         fi
24621                       fi
24622                     fi
24623                     ;;
24624                   -R*)
24625                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24626                     if test "$enable_rpath" != no; then
24627                                                                   haveit=
24628                       for x in $rpathdirs; do
24629                         if test "X$x" = "X$dir"; then
24630                           haveit=yes
24631                           break
24632                         fi
24633                       done
24634                       if test -z "$haveit"; then
24635                         rpathdirs="$rpathdirs $dir"
24636                       fi
24637                                                                   haveit=
24638                       for x in $ltrpathdirs; do
24639                         if test "X$x" = "X$dir"; then
24640                           haveit=yes
24641                           break
24642                         fi
24643                       done
24644                       if test -z "$haveit"; then
24645                         ltrpathdirs="$ltrpathdirs $dir"
24646                       fi
24647                     fi
24648                     ;;
24649                   -l*)
24650                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24651                     ;;
24652                   *.la)
24653                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24654                     ;;
24655                   *)
24656                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24657                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24658                     ;;
24659                 esac
24660               done
24661             fi
24662           else
24663                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24664             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24665           fi
24666         fi
24667       fi
24668     done
24669   done
24670   if test "X$rpathdirs" != "X"; then
24671     if test -n "$hardcode_libdir_separator"; then
24672                         alldirs=
24673       for found_dir in $rpathdirs; do
24674         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24675       done
24676             acl_save_libdir="$libdir"
24677       libdir="$alldirs"
24678       eval flag=\"$hardcode_libdir_flag_spec\"
24679       libdir="$acl_save_libdir"
24680       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24681     else
24682             for found_dir in $rpathdirs; do
24683         acl_save_libdir="$libdir"
24684         libdir="$found_dir"
24685         eval flag=\"$hardcode_libdir_flag_spec\"
24686         libdir="$acl_save_libdir"
24687         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24688       done
24689     fi
24690   fi
24691   if test "X$ltrpathdirs" != "X"; then
24692             for found_dir in $ltrpathdirs; do
24693       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24694     done
24695   fi
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24715 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
24716 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24717   echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719   gt_save_CPPFLAGS="$CPPFLAGS"
24720      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24721      gt_save_LIBS="$LIBS"
24722      LIBS="$LIBS -framework CoreFoundation"
24723      cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h.  */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h.  */
24729 #include <CFPreferences.h>
24730 int
24731 main ()
24732 {
24733 CFPreferencesCopyAppValue(NULL, NULL)
24734   ;
24735   return 0;
24736 }
24737 _ACEOF
24738 rm -f conftest.$ac_objext conftest$ac_exeext
24739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24740   (eval $ac_link) 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } &&
24747          { ac_try='test -z "$ac_c_werror_flag"
24748                          || test ! -s conftest.err'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; } &&
24754          { ac_try='test -s conftest$ac_exeext'
24755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24756   (eval $ac_try) 2>&5
24757   ac_status=$?
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); }; }; then
24760   gt_cv_func_CFPreferencesCopyAppValue=yes
24761 else
24762   echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24764
24765 gt_cv_func_CFPreferencesCopyAppValue=no
24766 fi
24767 rm -f conftest.err conftest.$ac_objext \
24768       conftest$ac_exeext conftest.$ac_ext
24769      CPPFLAGS="$gt_save_CPPFLAGS"
24770      LIBS="$gt_save_LIBS"
24771 fi
24772 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24773 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
24774   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24775
24776 cat >>confdefs.h <<\_ACEOF
24777 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24778 _ACEOF
24779
24780   fi
24781     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24782 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
24783 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24784   echo $ECHO_N "(cached) $ECHO_C" >&6
24785 else
24786   gt_save_CPPFLAGS="$CPPFLAGS"
24787      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24788      gt_save_LIBS="$LIBS"
24789      LIBS="$LIBS -framework CoreFoundation"
24790      cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h.  */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h.  */
24796 #include <CFLocale.h>
24797 int
24798 main ()
24799 {
24800 CFLocaleCopyCurrent();
24801   ;
24802   return 0;
24803 }
24804 _ACEOF
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24807   (eval $ac_link) 2>conftest.er1
24808   ac_status=$?
24809   grep -v '^ *+' conftest.er1 >conftest.err
24810   rm -f conftest.er1
24811   cat conftest.err >&5
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); } &&
24814          { ac_try='test -z "$ac_c_werror_flag"
24815                          || test ! -s conftest.err'
24816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817   (eval $ac_try) 2>&5
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; } &&
24821          { ac_try='test -s conftest$ac_exeext'
24822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24823   (eval $ac_try) 2>&5
24824   ac_status=$?
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); }; }; then
24827   gt_cv_func_CFLocaleCopyCurrent=yes
24828 else
24829   echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24831
24832 gt_cv_func_CFLocaleCopyCurrent=no
24833 fi
24834 rm -f conftest.err conftest.$ac_objext \
24835       conftest$ac_exeext conftest.$ac_ext
24836      CPPFLAGS="$gt_save_CPPFLAGS"
24837      LIBS="$gt_save_LIBS"
24838 fi
24839 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24840 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
24841   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24842
24843 cat >>confdefs.h <<\_ACEOF
24844 #define HAVE_CFLOCALECOPYCURRENT 1
24845 _ACEOF
24846
24847   fi
24848   INTL_MACOSX_LIBS=
24849   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24850     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24851   fi
24852
24853
24854
24855
24856   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
24857 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
24858     # Check whether --enable-nls or --disable-nls was given.
24859 if test "${enable_nls+set}" = set; then
24860   enableval="$enable_nls"
24861   USE_NLS=$enableval
24862 else
24863   USE_NLS=yes
24864 fi;
24865   echo "$as_me:$LINENO: result: $USE_NLS" >&5
24866 echo "${ECHO_T}$USE_NLS" >&6
24867
24868
24869
24870
24871   LIBINTL=
24872   LTLIBINTL=
24873   POSUB=
24874
24875     if test "$USE_NLS" = "yes"; then
24876     gt_use_preinstalled_gnugettext=no
24877
24878
24879
24880
24881
24882
24883         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
24884 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
24885 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
24886   echo $ECHO_N "(cached) $ECHO_C" >&6
24887 else
24888   cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894 #include <libintl.h>
24895 extern int _nl_msg_cat_cntr;
24896 extern int *_nl_domain_bindings;
24897 int
24898 main ()
24899 {
24900 bindtextdomain ("", "");
24901 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
24902   ;
24903   return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext conftest$ac_exeext
24907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24908   (eval $ac_link) 2>conftest.er1
24909   ac_status=$?
24910   grep -v '^ *+' conftest.er1 >conftest.err
24911   rm -f conftest.er1
24912   cat conftest.err >&5
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); } &&
24915          { ac_try='test -z "$ac_c_werror_flag"
24916                          || test ! -s conftest.err'
24917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918   (eval $ac_try) 2>&5
24919   ac_status=$?
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); }; } &&
24922          { ac_try='test -s conftest$ac_exeext'
24923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924   (eval $ac_try) 2>&5
24925   ac_status=$?
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); }; }; then
24928   gt_cv_func_gnugettext2_libc=yes
24929 else
24930   echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24932
24933 gt_cv_func_gnugettext2_libc=no
24934 fi
24935 rm -f conftest.err conftest.$ac_objext \
24936       conftest$ac_exeext conftest.$ac_ext
24937 fi
24938 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
24939 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
24940
24941         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
24942
24943
24944
24945
24946
24947           am_save_CPPFLAGS="$CPPFLAGS"
24948
24949   for element in $INCICONV; do
24950     haveit=
24951     for x in $CPPFLAGS; do
24952
24953   acl_save_prefix="$prefix"
24954   prefix="$acl_final_prefix"
24955   acl_save_exec_prefix="$exec_prefix"
24956   exec_prefix="$acl_final_exec_prefix"
24957   eval x=\"$x\"
24958   exec_prefix="$acl_save_exec_prefix"
24959   prefix="$acl_save_prefix"
24960
24961       if test "X$x" = "X$element"; then
24962         haveit=yes
24963         break
24964       fi
24965     done
24966     if test -z "$haveit"; then
24967       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24968     fi
24969   done
24970
24971
24972   echo "$as_me:$LINENO: checking for iconv" >&5
24973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
24974 if test "${am_cv_func_iconv+set}" = set; then
24975   echo $ECHO_N "(cached) $ECHO_C" >&6
24976 else
24977
24978     am_cv_func_iconv="no, consider installing GNU libiconv"
24979     am_cv_lib_iconv=no
24980     cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986 #include <stdlib.h>
24987 #include <iconv.h>
24988 int
24989 main ()
24990 {
24991 iconv_t cd = iconv_open("","");
24992        iconv(cd,NULL,NULL,NULL,NULL);
24993        iconv_close(cd);
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000   (eval $ac_link) 2>conftest.er1
25001   ac_status=$?
25002   grep -v '^ *+' conftest.er1 >conftest.err
25003   rm -f conftest.er1
25004   cat conftest.err >&5
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); } &&
25007          { ac_try='test -z "$ac_c_werror_flag"
25008                          || test ! -s conftest.err'
25009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010   (eval $ac_try) 2>&5
25011   ac_status=$?
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); }; } &&
25014          { ac_try='test -s conftest$ac_exeext'
25015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016   (eval $ac_try) 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020   am_cv_func_iconv=yes
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025 fi
25026 rm -f conftest.err conftest.$ac_objext \
25027       conftest$ac_exeext conftest.$ac_ext
25028     if test "$am_cv_func_iconv" != yes; then
25029       am_save_LIBS="$LIBS"
25030       LIBS="$LIBS $LIBICONV"
25031       cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037 #include <stdlib.h>
25038 #include <iconv.h>
25039 int
25040 main ()
25041 {
25042 iconv_t cd = iconv_open("","");
25043          iconv(cd,NULL,NULL,NULL,NULL);
25044          iconv_close(cd);
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25051   (eval $ac_link) 2>conftest.er1
25052   ac_status=$?
25053   grep -v '^ *+' conftest.er1 >conftest.err
25054   rm -f conftest.er1
25055   cat conftest.err >&5
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); } &&
25058          { ac_try='test -z "$ac_c_werror_flag"
25059                          || test ! -s conftest.err'
25060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061   (eval $ac_try) 2>&5
25062   ac_status=$?
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); }; } &&
25065          { ac_try='test -s conftest$ac_exeext'
25066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070   (exit $ac_status); }; }; then
25071   am_cv_lib_iconv=yes
25072         am_cv_func_iconv=yes
25073 else
25074   echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 fi
25078 rm -f conftest.err conftest.$ac_objext \
25079       conftest$ac_exeext conftest.$ac_ext
25080       LIBS="$am_save_LIBS"
25081     fi
25082
25083 fi
25084 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25085 echo "${ECHO_T}$am_cv_func_iconv" >&6
25086   if test "$am_cv_func_iconv" = yes; then
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_ICONV 1
25090 _ACEOF
25091
25092   fi
25093   if test "$am_cv_lib_iconv" = yes; then
25094     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25095 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
25096     echo "$as_me:$LINENO: result: $LIBICONV" >&5
25097 echo "${ECHO_T}$LIBICONV" >&6
25098   else
25099             CPPFLAGS="$am_save_CPPFLAGS"
25100     LIBICONV=
25101     LTLIBICONV=
25102   fi
25103
25104
25105
25106
25107
25108
25109     use_additional=yes
25110
25111   acl_save_prefix="$prefix"
25112   prefix="$acl_final_prefix"
25113   acl_save_exec_prefix="$exec_prefix"
25114   exec_prefix="$acl_final_exec_prefix"
25115
25116     eval additional_includedir=\"$includedir\"
25117     eval additional_libdir=\"$libdir\"
25118
25119   exec_prefix="$acl_save_exec_prefix"
25120   prefix="$acl_save_prefix"
25121
25122
25123 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
25124 if test "${with_libintl_prefix+set}" = set; then
25125   withval="$with_libintl_prefix"
25126
25127     if test "X$withval" = "Xno"; then
25128       use_additional=no
25129     else
25130       if test "X$withval" = "X"; then
25131
25132   acl_save_prefix="$prefix"
25133   prefix="$acl_final_prefix"
25134   acl_save_exec_prefix="$exec_prefix"
25135   exec_prefix="$acl_final_exec_prefix"
25136
25137           eval additional_includedir=\"$includedir\"
25138           eval additional_libdir=\"$libdir\"
25139
25140   exec_prefix="$acl_save_exec_prefix"
25141   prefix="$acl_save_prefix"
25142
25143       else
25144         additional_includedir="$withval/include"
25145         additional_libdir="$withval/lib"
25146       fi
25147     fi
25148
25149 fi;
25150       LIBINTL=
25151   LTLIBINTL=
25152   INCINTL=
25153   rpathdirs=
25154   ltrpathdirs=
25155   names_already_handled=
25156   names_next_round='intl '
25157   while test -n "$names_next_round"; do
25158     names_this_round="$names_next_round"
25159     names_next_round=
25160     for name in $names_this_round; do
25161       already_handled=
25162       for n in $names_already_handled; do
25163         if test "$n" = "$name"; then
25164           already_handled=yes
25165           break
25166         fi
25167       done
25168       if test -z "$already_handled"; then
25169         names_already_handled="$names_already_handled $name"
25170                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25171         eval value=\"\$HAVE_LIB$uppername\"
25172         if test -n "$value"; then
25173           if test "$value" = yes; then
25174             eval value=\"\$LIB$uppername\"
25175             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
25176             eval value=\"\$LTLIB$uppername\"
25177             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
25178           else
25179                                     :
25180           fi
25181         else
25182                               found_dir=
25183           found_la=
25184           found_so=
25185           found_a=
25186           if test $use_additional = yes; then
25187             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25188               found_dir="$additional_libdir"
25189               found_so="$additional_libdir/lib$name.$shlibext"
25190               if test -f "$additional_libdir/lib$name.la"; then
25191                 found_la="$additional_libdir/lib$name.la"
25192               fi
25193             else
25194               if test -f "$additional_libdir/lib$name.$libext"; then
25195                 found_dir="$additional_libdir"
25196                 found_a="$additional_libdir/lib$name.$libext"
25197                 if test -f "$additional_libdir/lib$name.la"; then
25198                   found_la="$additional_libdir/lib$name.la"
25199                 fi
25200               fi
25201             fi
25202           fi
25203           if test "X$found_dir" = "X"; then
25204             for x in $LDFLAGS $LTLIBINTL; do
25205
25206   acl_save_prefix="$prefix"
25207   prefix="$acl_final_prefix"
25208   acl_save_exec_prefix="$exec_prefix"
25209   exec_prefix="$acl_final_exec_prefix"
25210   eval x=\"$x\"
25211   exec_prefix="$acl_save_exec_prefix"
25212   prefix="$acl_save_prefix"
25213
25214               case "$x" in
25215                 -L*)
25216                   dir=`echo "X$x" | sed -e 's/^X-L//'`
25217                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25218                     found_dir="$dir"
25219                     found_so="$dir/lib$name.$shlibext"
25220                     if test -f "$dir/lib$name.la"; then
25221                       found_la="$dir/lib$name.la"
25222                     fi
25223                   else
25224                     if test -f "$dir/lib$name.$libext"; then
25225                       found_dir="$dir"
25226                       found_a="$dir/lib$name.$libext"
25227                       if test -f "$dir/lib$name.la"; then
25228                         found_la="$dir/lib$name.la"
25229                       fi
25230                     fi
25231                   fi
25232                   ;;
25233               esac
25234               if test "X$found_dir" != "X"; then
25235                 break
25236               fi
25237             done
25238           fi
25239           if test "X$found_dir" != "X"; then
25240                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
25241             if test "X$found_so" != "X"; then
25242                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25243                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25244               else
25245                                                                                 haveit=
25246                 for x in $ltrpathdirs; do
25247                   if test "X$x" = "X$found_dir"; then
25248                     haveit=yes
25249                     break
25250                   fi
25251                 done
25252                 if test -z "$haveit"; then
25253                   ltrpathdirs="$ltrpathdirs $found_dir"
25254                 fi
25255                                 if test "$hardcode_direct" = yes; then
25256                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25257                 else
25258                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25259                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25260                                                             haveit=
25261                     for x in $rpathdirs; do
25262                       if test "X$x" = "X$found_dir"; then
25263                         haveit=yes
25264                         break
25265                       fi
25266                     done
25267                     if test -z "$haveit"; then
25268                       rpathdirs="$rpathdirs $found_dir"
25269                     fi
25270                   else
25271                                                                                 haveit=
25272                     for x in $LDFLAGS $LIBINTL; do
25273
25274   acl_save_prefix="$prefix"
25275   prefix="$acl_final_prefix"
25276   acl_save_exec_prefix="$exec_prefix"
25277   exec_prefix="$acl_final_exec_prefix"
25278   eval x=\"$x\"
25279   exec_prefix="$acl_save_exec_prefix"
25280   prefix="$acl_save_prefix"
25281
25282                       if test "X$x" = "X-L$found_dir"; then
25283                         haveit=yes
25284                         break
25285                       fi
25286                     done
25287                     if test -z "$haveit"; then
25288                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
25289                     fi
25290                     if test "$hardcode_minus_L" != no; then
25291                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25292                     else
25293                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25294                     fi
25295                   fi
25296                 fi
25297               fi
25298             else
25299               if test "X$found_a" != "X"; then
25300                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
25301               else
25302                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
25303               fi
25304             fi
25305                         additional_includedir=
25306             case "$found_dir" in
25307               */lib | */lib/)
25308                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25309                 additional_includedir="$basedir/include"
25310                 ;;
25311             esac
25312             if test "X$additional_includedir" != "X"; then
25313                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25314                 haveit=
25315                 if test "X$additional_includedir" = "X/usr/local/include"; then
25316                   if test -n "$GCC"; then
25317                     case $host_os in
25318                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25319                     esac
25320                   fi
25321                 fi
25322                 if test -z "$haveit"; then
25323                   for x in $CPPFLAGS $INCINTL; do
25324
25325   acl_save_prefix="$prefix"
25326   prefix="$acl_final_prefix"
25327   acl_save_exec_prefix="$exec_prefix"
25328   exec_prefix="$acl_final_exec_prefix"
25329   eval x=\"$x\"
25330   exec_prefix="$acl_save_exec_prefix"
25331   prefix="$acl_save_prefix"
25332
25333                     if test "X$x" = "X-I$additional_includedir"; then
25334                       haveit=yes
25335                       break
25336                     fi
25337                   done
25338                   if test -z "$haveit"; then
25339                     if test -d "$additional_includedir"; then
25340                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
25341                     fi
25342                   fi
25343                 fi
25344               fi
25345             fi
25346                         if test -n "$found_la"; then
25347                                                         save_libdir="$libdir"
25348               case "$found_la" in
25349                 */* | *\\*) . "$found_la" ;;
25350                 *) . "./$found_la" ;;
25351               esac
25352               libdir="$save_libdir"
25353                             for dep in $dependency_libs; do
25354                 case "$dep" in
25355                   -L*)
25356                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25357                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
25358                       haveit=
25359                       if test "X$additional_libdir" = "X/usr/local/lib"; then
25360                         if test -n "$GCC"; then
25361                           case $host_os in
25362                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25363                           esac
25364                         fi
25365                       fi
25366                       if test -z "$haveit"; then
25367                         haveit=
25368                         for x in $LDFLAGS $LIBINTL; do
25369
25370   acl_save_prefix="$prefix"
25371   prefix="$acl_final_prefix"
25372   acl_save_exec_prefix="$exec_prefix"
25373   exec_prefix="$acl_final_exec_prefix"
25374   eval x=\"$x\"
25375   exec_prefix="$acl_save_exec_prefix"
25376   prefix="$acl_save_prefix"
25377
25378                           if test "X$x" = "X-L$additional_libdir"; then
25379                             haveit=yes
25380                             break
25381                           fi
25382                         done
25383                         if test -z "$haveit"; then
25384                           if test -d "$additional_libdir"; then
25385                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25386                           fi
25387                         fi
25388                         haveit=
25389                         for x in $LDFLAGS $LTLIBINTL; do
25390
25391   acl_save_prefix="$prefix"
25392   prefix="$acl_final_prefix"
25393   acl_save_exec_prefix="$exec_prefix"
25394   exec_prefix="$acl_final_exec_prefix"
25395   eval x=\"$x\"
25396   exec_prefix="$acl_save_exec_prefix"
25397   prefix="$acl_save_prefix"
25398
25399                           if test "X$x" = "X-L$additional_libdir"; then
25400                             haveit=yes
25401                             break
25402                           fi
25403                         done
25404                         if test -z "$haveit"; then
25405                           if test -d "$additional_libdir"; then
25406                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25407                           fi
25408                         fi
25409                       fi
25410                     fi
25411                     ;;
25412                   -R*)
25413                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25414                     if test "$enable_rpath" != no; then
25415                                                                   haveit=
25416                       for x in $rpathdirs; do
25417                         if test "X$x" = "X$dir"; then
25418                           haveit=yes
25419                           break
25420                         fi
25421                       done
25422                       if test -z "$haveit"; then
25423                         rpathdirs="$rpathdirs $dir"
25424                       fi
25425                                                                   haveit=
25426                       for x in $ltrpathdirs; do
25427                         if test "X$x" = "X$dir"; then
25428                           haveit=yes
25429                           break
25430                         fi
25431                       done
25432                       if test -z "$haveit"; then
25433                         ltrpathdirs="$ltrpathdirs $dir"
25434                       fi
25435                     fi
25436                     ;;
25437                   -l*)
25438                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25439                     ;;
25440                   *.la)
25441                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25442                     ;;
25443                   *)
25444                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25445                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25446                     ;;
25447                 esac
25448               done
25449             fi
25450           else
25451                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25452             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25453           fi
25454         fi
25455       fi
25456     done
25457   done
25458   if test "X$rpathdirs" != "X"; then
25459     if test -n "$hardcode_libdir_separator"; then
25460                         alldirs=
25461       for found_dir in $rpathdirs; do
25462         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25463       done
25464             acl_save_libdir="$libdir"
25465       libdir="$alldirs"
25466       eval flag=\"$hardcode_libdir_flag_spec\"
25467       libdir="$acl_save_libdir"
25468       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25469     else
25470             for found_dir in $rpathdirs; do
25471         acl_save_libdir="$libdir"
25472         libdir="$found_dir"
25473         eval flag=\"$hardcode_libdir_flag_spec\"
25474         libdir="$acl_save_libdir"
25475         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25476       done
25477     fi
25478   fi
25479   if test "X$ltrpathdirs" != "X"; then
25480             for found_dir in $ltrpathdirs; do
25481       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25482     done
25483   fi
25484
25485           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
25486 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
25487 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
25488   echo $ECHO_N "(cached) $ECHO_C" >&6
25489 else
25490   gt_save_CPPFLAGS="$CPPFLAGS"
25491             CPPFLAGS="$CPPFLAGS $INCINTL"
25492             gt_save_LIBS="$LIBS"
25493             LIBS="$LIBS $LIBINTL"
25494                         cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h.  */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h.  */
25500 #include <libintl.h>
25501 extern int _nl_msg_cat_cntr;
25502 extern
25503 #ifdef __cplusplus
25504 "C"
25505 #endif
25506 const char *_nl_expand_alias (const char *);
25507 int
25508 main ()
25509 {
25510 bindtextdomain ("", "");
25511 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25512   ;
25513   return 0;
25514 }
25515 _ACEOF
25516 rm -f conftest.$ac_objext conftest$ac_exeext
25517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25518   (eval $ac_link) 2>conftest.er1
25519   ac_status=$?
25520   grep -v '^ *+' conftest.er1 >conftest.err
25521   rm -f conftest.er1
25522   cat conftest.err >&5
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } &&
25525          { ac_try='test -z "$ac_c_werror_flag"
25526                          || test ! -s conftest.err'
25527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528   (eval $ac_try) 2>&5
25529   ac_status=$?
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); }; } &&
25532          { ac_try='test -s conftest$ac_exeext'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; }; then
25538   gt_cv_func_gnugettext2_libintl=yes
25539 else
25540   echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25542
25543 gt_cv_func_gnugettext2_libintl=no
25544 fi
25545 rm -f conftest.err conftest.$ac_objext \
25546       conftest$ac_exeext conftest.$ac_ext
25547                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
25548               LIBS="$LIBS $LIBICONV"
25549               cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 #include <libintl.h>
25556 extern int _nl_msg_cat_cntr;
25557 extern
25558 #ifdef __cplusplus
25559 "C"
25560 #endif
25561 const char *_nl_expand_alias (const char *);
25562 int
25563 main ()
25564 {
25565 bindtextdomain ("", "");
25566 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25567   ;
25568   return 0;
25569 }
25570 _ACEOF
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25573   (eval $ac_link) 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } &&
25580          { ac_try='test -z "$ac_c_werror_flag"
25581                          || test ! -s conftest.err'
25582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583   (eval $ac_try) 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); }; } &&
25587          { ac_try='test -s conftest$ac_exeext'
25588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25589   (eval $ac_try) 2>&5
25590   ac_status=$?
25591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592   (exit $ac_status); }; }; then
25593   LIBINTL="$LIBINTL $LIBICONV"
25594                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25595                 gt_cv_func_gnugettext2_libintl=yes
25596
25597 else
25598   echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25600
25601 fi
25602 rm -f conftest.err conftest.$ac_objext \
25603       conftest$ac_exeext conftest.$ac_ext
25604             fi
25605             CPPFLAGS="$gt_save_CPPFLAGS"
25606             LIBS="$gt_save_LIBS"
25607 fi
25608 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
25609 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
25610         fi
25611
25612                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
25613            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
25614                 && test "$PACKAGE" != gettext-runtime \
25615                 && test "$PACKAGE" != gettext-tools; }; then
25616           gt_use_preinstalled_gnugettext=yes
25617         else
25618                     LIBINTL=
25619           LTLIBINTL=
25620           INCINTL=
25621         fi
25622
25623
25624
25625     if test -n "$INTL_MACOSX_LIBS"; then
25626       if test "$gt_use_preinstalled_gnugettext" = "yes" \
25627          || test "$nls_cv_use_gnu_gettext" = "yes"; then
25628                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25629         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25630       fi
25631     fi
25632
25633     if test "$gt_use_preinstalled_gnugettext" = "yes" \
25634        || test "$nls_cv_use_gnu_gettext" = "yes"; then
25635
25636 cat >>confdefs.h <<\_ACEOF
25637 #define ENABLE_NLS 1
25638 _ACEOF
25639
25640     else
25641       USE_NLS=no
25642     fi
25643   fi
25644
25645   echo "$as_me:$LINENO: checking whether to use NLS" >&5
25646 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
25647   echo "$as_me:$LINENO: result: $USE_NLS" >&5
25648 echo "${ECHO_T}$USE_NLS" >&6
25649   if test "$USE_NLS" = "yes"; then
25650     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
25651 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
25652     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25653       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
25654         gt_source="external libintl"
25655       else
25656         gt_source="libc"
25657       fi
25658     else
25659       gt_source="included intl directory"
25660     fi
25661     echo "$as_me:$LINENO: result: $gt_source" >&5
25662 echo "${ECHO_T}$gt_source" >&6
25663   fi
25664
25665   if test "$USE_NLS" = "yes"; then
25666
25667     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25668       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
25669         echo "$as_me:$LINENO: checking how to link with libintl" >&5
25670 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
25671         echo "$as_me:$LINENO: result: $LIBINTL" >&5
25672 echo "${ECHO_T}$LIBINTL" >&6
25673
25674   for element in $INCINTL; do
25675     haveit=
25676     for x in $CPPFLAGS; do
25677
25678   acl_save_prefix="$prefix"
25679   prefix="$acl_final_prefix"
25680   acl_save_exec_prefix="$exec_prefix"
25681   exec_prefix="$acl_final_exec_prefix"
25682   eval x=\"$x\"
25683   exec_prefix="$acl_save_exec_prefix"
25684   prefix="$acl_save_prefix"
25685
25686       if test "X$x" = "X$element"; then
25687         haveit=yes
25688         break
25689       fi
25690     done
25691     if test -z "$haveit"; then
25692       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25693     fi
25694   done
25695
25696       fi
25697
25698
25699 cat >>confdefs.h <<\_ACEOF
25700 #define HAVE_GETTEXT 1
25701 _ACEOF
25702
25703
25704 cat >>confdefs.h <<\_ACEOF
25705 #define HAVE_DCGETTEXT 1
25706 _ACEOF
25707
25708     fi
25709
25710         POSUB=po
25711   fi
25712
25713
25714
25715     INTLLIBS="$LIBINTL"
25716
25717
25718
25719
25720
25721
25722
25723                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files Makefile po/Makefile.in doc/Makefile man/Makefile man/cs/Makefile man/de/Makefile man/es/Makefile man/fi/Makefile man/fr/Makefile man/hu/Makefile man/id/Makefile man/it/Makefile man/ja/Makefile man/ko/Makefile man/pl/Makefile man/pt_BR/Makefile man/ru/Makefile man/tr/Makefile man/zh_CN/Makefile man/zh_TW/Makefile libmisc/Makefile lib/Makefile src/Makefile contrib/Makefile etc/Makefile etc/pam.d/Makefile shadow.spec"
25724
25725 cat >confcache <<\_ACEOF
25726 # This file is a shell script that caches the results of configure
25727 # tests run on this system so they can be shared between configure
25728 # scripts and configure runs, see configure's option --config-cache.
25729 # It is not useful on other systems.  If it contains results you don't
25730 # want to keep, you may remove or edit it.
25731 #
25732 # config.status only pays attention to the cache file if you give it
25733 # the --recheck option to rerun configure.
25734 #
25735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25737 # following values.
25738
25739 _ACEOF
25740
25741 # The following way of writing the cache mishandles newlines in values,
25742 # but we know of no workaround that is simple, portable, and efficient.
25743 # So, don't put newlines in cache variables' values.
25744 # Ultrix sh set writes to stderr and can't be redirected directly,
25745 # and sets the high bit in the cache file unless we assign to the vars.
25746 {
25747   (set) 2>&1 |
25748     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25749     *ac_space=\ *)
25750       # `set' does not quote correctly, so add quotes (double-quote
25751       # substitution turns \\\\ into \\, and sed turns \\ into \).
25752       sed -n \
25753         "s/'/'\\\\''/g;
25754           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25755       ;;
25756     *)
25757       # `set' quotes correctly as required by POSIX, so do not add quotes.
25758       sed -n \
25759         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25760       ;;
25761     esac;
25762 } |
25763   sed '
25764      t clear
25765      : clear
25766      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25767      t end
25768      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25769      : end' >>confcache
25770 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25771   if test -w $cache_file; then
25772     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25773     cat confcache >$cache_file
25774   else
25775     echo "not updating unwritable cache $cache_file"
25776   fi
25777 fi
25778 rm -f confcache
25779
25780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25781 # Let make expand exec_prefix.
25782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25783
25784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25786 # trailing colons and then remove the whole line if VPATH becomes empty
25787 # (actually we leave an empty line to preserve line numbers).
25788 if test "x$srcdir" = x.; then
25789   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25790 s/:*\$(srcdir):*/:/;
25791 s/:*\${srcdir}:*/:/;
25792 s/:*@srcdir@:*/:/;
25793 s/^\([^=]*=[     ]*\):*/\1/;
25794 s/:*$//;
25795 s/^[^=]*=[       ]*$//;
25796 }'
25797 fi
25798
25799 DEFS=-DHAVE_CONFIG_H
25800
25801 ac_libobjs=
25802 ac_ltlibobjs=
25803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25804   # 1. Remove the extension, and $U if already installed.
25805   ac_i=`echo "$ac_i" |
25806          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25807   # 2. Add them.
25808   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25809   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25810 done
25811 LIBOBJS=$ac_libobjs
25812
25813 LTLIBOBJS=$ac_ltlibobjs
25814
25815
25816 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25817   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25818 Usually this means the macro was only invoked conditionally." >&5
25819 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25820 Usually this means the macro was only invoked conditionally." >&2;}
25821    { (exit 1); exit 1; }; }
25822 fi
25823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25824   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25825 Usually this means the macro was only invoked conditionally." >&5
25826 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25827 Usually this means the macro was only invoked conditionally." >&2;}
25828    { (exit 1); exit 1; }; }
25829 fi
25830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25831   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25832 Usually this means the macro was only invoked conditionally." >&5
25833 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25834 Usually this means the macro was only invoked conditionally." >&2;}
25835    { (exit 1); exit 1; }; }
25836 fi
25837 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25838   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25839 Usually this means the macro was only invoked conditionally." >&5
25840 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25841 Usually this means the macro was only invoked conditionally." >&2;}
25842    { (exit 1); exit 1; }; }
25843 fi
25844 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
25845   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
25846 Usually this means the macro was only invoked conditionally." >&5
25847 echo "$as_me: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
25848 Usually this means the macro was only invoked conditionally." >&2;}
25849    { (exit 1); exit 1; }; }
25850 fi
25851
25852 : ${CONFIG_STATUS=./config.status}
25853 ac_clean_files_save=$ac_clean_files
25854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25855 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25856 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25857 cat >$CONFIG_STATUS <<_ACEOF
25858 #! $SHELL
25859 # Generated by $as_me.
25860 # Run this file to recreate the current configuration.
25861 # Compiler output produced by configure, useful for debugging
25862 # configure, is in config.log if it exists.
25863
25864 debug=false
25865 ac_cs_recheck=false
25866 ac_cs_silent=false
25867 SHELL=\${CONFIG_SHELL-$SHELL}
25868 _ACEOF
25869
25870 cat >>$CONFIG_STATUS <<\_ACEOF
25871 ## --------------------- ##
25872 ## M4sh Initialization.  ##
25873 ## --------------------- ##
25874
25875 # Be Bourne compatible
25876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25877   emulate sh
25878   NULLCMD=:
25879   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25880   # is contrary to our usage.  Disable this feature.
25881   alias -g '${1+"$@"}'='"$@"'
25882 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25883   set -o posix
25884 fi
25885 DUALCASE=1; export DUALCASE # for MKS sh
25886
25887 # Support unset when possible.
25888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25889   as_unset=unset
25890 else
25891   as_unset=false
25892 fi
25893
25894
25895 # Work around bugs in pre-3.0 UWIN ksh.
25896 $as_unset ENV MAIL MAILPATH
25897 PS1='$ '
25898 PS2='> '
25899 PS4='+ '
25900
25901 # NLS nuisances.
25902 for as_var in \
25903   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25904   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25905   LC_TELEPHONE LC_TIME
25906 do
25907   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25908     eval $as_var=C; export $as_var
25909   else
25910     $as_unset $as_var
25911   fi
25912 done
25913
25914 # Required to use basename.
25915 if expr a : '\(a\)' >/dev/null 2>&1; then
25916   as_expr=expr
25917 else
25918   as_expr=false
25919 fi
25920
25921 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25922   as_basename=basename
25923 else
25924   as_basename=false
25925 fi
25926
25927
25928 # Name of the executable.
25929 as_me=`$as_basename "$0" ||
25930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25931          X"$0" : 'X\(//\)$' \| \
25932          X"$0" : 'X\(/\)$' \| \
25933          .     : '\(.\)' 2>/dev/null ||
25934 echo X/"$0" |
25935     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25936           /^X\/\(\/\/\)$/{ s//\1/; q; }
25937           /^X\/\(\/\).*/{ s//\1/; q; }
25938           s/.*/./; q'`
25939
25940
25941 # PATH needs CR, and LINENO needs CR and PATH.
25942 # Avoid depending upon Character Ranges.
25943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25946 as_cr_digits='0123456789'
25947 as_cr_alnum=$as_cr_Letters$as_cr_digits
25948
25949 # The user is always right.
25950 if test "${PATH_SEPARATOR+set}" != set; then
25951   echo "#! /bin/sh" >conf$$.sh
25952   echo  "exit 0"   >>conf$$.sh
25953   chmod +x conf$$.sh
25954   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25955     PATH_SEPARATOR=';'
25956   else
25957     PATH_SEPARATOR=:
25958   fi
25959   rm -f conf$$.sh
25960 fi
25961
25962
25963   as_lineno_1=$LINENO
25964   as_lineno_2=$LINENO
25965   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25966   test "x$as_lineno_1" != "x$as_lineno_2" &&
25967   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25968   # Find who we are.  Look in the path if we contain no path at all
25969   # relative or not.
25970   case $0 in
25971     *[\\/]* ) as_myself=$0 ;;
25972     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25973 for as_dir in $PATH
25974 do
25975   IFS=$as_save_IFS
25976   test -z "$as_dir" && as_dir=.
25977   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25978 done
25979
25980        ;;
25981   esac
25982   # We did not find ourselves, most probably we were run as `sh COMMAND'
25983   # in which case we are not to be found in the path.
25984   if test "x$as_myself" = x; then
25985     as_myself=$0
25986   fi
25987   if test ! -f "$as_myself"; then
25988     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25989 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25990    { (exit 1); exit 1; }; }
25991   fi
25992   case $CONFIG_SHELL in
25993   '')
25994     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25996 do
25997   IFS=$as_save_IFS
25998   test -z "$as_dir" && as_dir=.
25999   for as_base in sh bash ksh sh5; do
26000          case $as_dir in
26001          /*)
26002            if ("$as_dir/$as_base" -c '
26003   as_lineno_1=$LINENO
26004   as_lineno_2=$LINENO
26005   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26006   test "x$as_lineno_1" != "x$as_lineno_2" &&
26007   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26008              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26009              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26010              CONFIG_SHELL=$as_dir/$as_base
26011              export CONFIG_SHELL
26012              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26013            fi;;
26014          esac
26015        done
26016 done
26017 ;;
26018   esac
26019
26020   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26021   # uniformly replaced by the line number.  The first 'sed' inserts a
26022   # line-number line before each line; the second 'sed' does the real
26023   # work.  The second script uses 'N' to pair each line-number line
26024   # with the numbered line, and appends trailing '-' during
26025   # substitution so that $LINENO is not a special case at line end.
26026   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26027   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26028   sed '=' <$as_myself |
26029     sed '
26030       N
26031       s,$,-,
26032       : loop
26033       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26034       t loop
26035       s,-$,,
26036       s,^['$as_cr_digits']*\n,,
26037     ' >$as_me.lineno &&
26038   chmod +x $as_me.lineno ||
26039     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26040 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26041    { (exit 1); exit 1; }; }
26042
26043   # Don't try to exec as it changes $[0], causing all sort of problems
26044   # (the dirname of $[0] is not the place where we might find the
26045   # original and so on.  Autoconf is especially sensible to this).
26046   . ./$as_me.lineno
26047   # Exit status is that of the last command.
26048   exit
26049 }
26050
26051
26052 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26053   *c*,-n*) ECHO_N= ECHO_C='
26054 ' ECHO_T='      ' ;;
26055   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26056   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26057 esac
26058
26059 if expr a : '\(a\)' >/dev/null 2>&1; then
26060   as_expr=expr
26061 else
26062   as_expr=false
26063 fi
26064
26065 rm -f conf$$ conf$$.exe conf$$.file
26066 echo >conf$$.file
26067 if ln -s conf$$.file conf$$ 2>/dev/null; then
26068   # We could just check for DJGPP; but this test a) works b) is more generic
26069   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26070   if test -f conf$$.exe; then
26071     # Don't use ln at all; we don't have any links
26072     as_ln_s='cp -p'
26073   else
26074     as_ln_s='ln -s'
26075   fi
26076 elif ln conf$$.file conf$$ 2>/dev/null; then
26077   as_ln_s=ln
26078 else
26079   as_ln_s='cp -p'
26080 fi
26081 rm -f conf$$ conf$$.exe conf$$.file
26082
26083 if mkdir -p . 2>/dev/null; then
26084   as_mkdir_p=:
26085 else
26086   test -d ./-p && rmdir ./-p
26087   as_mkdir_p=false
26088 fi
26089
26090 as_executable_p="test -f"
26091
26092 # Sed expression to map a string onto a valid CPP name.
26093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26094
26095 # Sed expression to map a string onto a valid variable name.
26096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26097
26098
26099 # IFS
26100 # We need space, tab and new line, in precisely that order.
26101 as_nl='
26102 '
26103 IFS="   $as_nl"
26104
26105 # CDPATH.
26106 $as_unset CDPATH
26107
26108 exec 6>&1
26109
26110 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26111 # report actual input values of CONFIG_FILES etc. instead of their
26112 # values after options handling.  Logging --version etc. is OK.
26113 exec 5>>config.log
26114 {
26115   echo
26116   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26117 ## Running $as_me. ##
26118 _ASBOX
26119 } >&5
26120 cat >&5 <<_CSEOF
26121
26122 This file was extended by $as_me, which was
26123 generated by GNU Autoconf 2.59.  Invocation command line was
26124
26125   CONFIG_FILES    = $CONFIG_FILES
26126   CONFIG_HEADERS  = $CONFIG_HEADERS
26127   CONFIG_LINKS    = $CONFIG_LINKS
26128   CONFIG_COMMANDS = $CONFIG_COMMANDS
26129   $ $0 $@
26130
26131 _CSEOF
26132 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26133 echo >&5
26134 _ACEOF
26135
26136 # Files that config.status was made for.
26137 if test -n "$ac_config_files"; then
26138   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26139 fi
26140
26141 if test -n "$ac_config_headers"; then
26142   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26143 fi
26144
26145 if test -n "$ac_config_links"; then
26146   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26147 fi
26148
26149 if test -n "$ac_config_commands"; then
26150   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26151 fi
26152
26153 cat >>$CONFIG_STATUS <<\_ACEOF
26154
26155 ac_cs_usage="\
26156 \`$as_me' instantiates files from templates according to the
26157 current configuration.
26158
26159 Usage: $0 [OPTIONS] [FILE]...
26160
26161   -h, --help       print this help, then exit
26162   -V, --version    print version number, then exit
26163   -q, --quiet      do not print progress messages
26164   -d, --debug      don't remove temporary files
26165       --recheck    update $as_me by reconfiguring in the same conditions
26166   --file=FILE[:TEMPLATE]
26167                    instantiate the configuration file FILE
26168   --header=FILE[:TEMPLATE]
26169                    instantiate the configuration header FILE
26170
26171 Configuration files:
26172 $config_files
26173
26174 Configuration headers:
26175 $config_headers
26176
26177 Configuration commands:
26178 $config_commands
26179
26180 Report bugs to <bug-autoconf@gnu.org>."
26181 _ACEOF
26182
26183 cat >>$CONFIG_STATUS <<_ACEOF
26184 ac_cs_version="\\
26185 config.status
26186 configured by $0, generated by GNU Autoconf 2.59,
26187   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26188
26189 Copyright (C) 2003 Free Software Foundation, Inc.
26190 This config.status script is free software; the Free Software Foundation
26191 gives unlimited permission to copy, distribute and modify it."
26192 srcdir=$srcdir
26193 INSTALL="$INSTALL"
26194 _ACEOF
26195
26196 cat >>$CONFIG_STATUS <<\_ACEOF
26197 # If no file are specified by the user, then we need to provide default
26198 # value.  By we need to know if files were specified by the user.
26199 ac_need_defaults=:
26200 while test $# != 0
26201 do
26202   case $1 in
26203   --*=*)
26204     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26205     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26206     ac_shift=:
26207     ;;
26208   -*)
26209     ac_option=$1
26210     ac_optarg=$2
26211     ac_shift=shift
26212     ;;
26213   *) # This is not an option, so the user has probably given explicit
26214      # arguments.
26215      ac_option=$1
26216      ac_need_defaults=false;;
26217   esac
26218
26219   case $ac_option in
26220   # Handling of the options.
26221 _ACEOF
26222 cat >>$CONFIG_STATUS <<\_ACEOF
26223   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26224     ac_cs_recheck=: ;;
26225   --version | --vers* | -V )
26226     echo "$ac_cs_version"; exit 0 ;;
26227   --he | --h)
26228     # Conflict between --help and --header
26229     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26230 Try \`$0 --help' for more information." >&5
26231 echo "$as_me: error: ambiguous option: $1
26232 Try \`$0 --help' for more information." >&2;}
26233    { (exit 1); exit 1; }; };;
26234   --help | --hel | -h )
26235     echo "$ac_cs_usage"; exit 0 ;;
26236   --debug | --d* | -d )
26237     debug=: ;;
26238   --file | --fil | --fi | --f )
26239     $ac_shift
26240     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26241     ac_need_defaults=false;;
26242   --header | --heade | --head | --hea )
26243     $ac_shift
26244     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26245     ac_need_defaults=false;;
26246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26247   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26248     ac_cs_silent=: ;;
26249
26250   # This is an error.
26251   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26252 Try \`$0 --help' for more information." >&5
26253 echo "$as_me: error: unrecognized option: $1
26254 Try \`$0 --help' for more information." >&2;}
26255    { (exit 1); exit 1; }; } ;;
26256
26257   *) ac_config_targets="$ac_config_targets $1" ;;
26258
26259   esac
26260   shift
26261 done
26262
26263 ac_configure_extra_args=
26264
26265 if $ac_cs_silent; then
26266   exec 6>/dev/null
26267   ac_configure_extra_args="$ac_configure_extra_args --silent"
26268 fi
26269
26270 _ACEOF
26271 cat >>$CONFIG_STATUS <<_ACEOF
26272 if \$ac_cs_recheck; then
26273   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26274   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26275 fi
26276
26277 _ACEOF
26278
26279 cat >>$CONFIG_STATUS <<_ACEOF
26280 #
26281 # INIT-COMMANDS section.
26282 #
26283
26284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26285 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
26286     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
26287     # from automake.
26288     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
26289     # Capture the value of LINGUAS because we need it to compute CATALOGS.
26290     LINGUAS="${LINGUAS-%UNSET%}"
26291
26292
26293 _ACEOF
26294
26295
26296
26297 cat >>$CONFIG_STATUS <<\_ACEOF
26298 for ac_config_target in $ac_config_targets
26299 do
26300   case "$ac_config_target" in
26301   # Handling of arguments.
26302   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26303   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
26304   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26305   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26306   "man/cs/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
26307   "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
26308   "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
26309   "man/fi/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fi/Makefile" ;;
26310   "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
26311   "man/hu/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/hu/Makefile" ;;
26312   "man/id/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/id/Makefile" ;;
26313   "man/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;;
26314   "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
26315   "man/ko/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ko/Makefile" ;;
26316   "man/pl/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
26317   "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
26318   "man/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
26319   "man/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/tr/Makefile" ;;
26320   "man/zh_CN/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/zh_CN/Makefile" ;;
26321   "man/zh_TW/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/zh_TW/Makefile" ;;
26322   "libmisc/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
26323   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26324   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26325   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
26326   "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
26327   "etc/pam.d/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
26328   "shadow.spec" ) CONFIG_FILES="$CONFIG_FILES shadow.spec" ;;
26329   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26330   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26331   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26332   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26333 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26334    { (exit 1); exit 1; }; };;
26335   esac
26336 done
26337
26338 # If the user did not use the arguments to specify the items to instantiate,
26339 # then the envvar interface is used.  Set only those that are not.
26340 # We use the long form for the default assignment because of an extremely
26341 # bizarre bug on SunOS 4.1.3.
26342 if $ac_need_defaults; then
26343   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26344   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26345   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26346 fi
26347
26348 # Have a temporary directory for convenience.  Make it in the build tree
26349 # simply because there is no reason to put it here, and in addition,
26350 # creating and moving files from /tmp can sometimes cause problems.
26351 # Create a temporary directory, and hook for its removal unless debugging.
26352 $debug ||
26353 {
26354   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26355   trap '{ (exit 1); exit 1; }' 1 2 13 15
26356 }
26357
26358 # Create a (secure) tmp directory for tmp files.
26359
26360 {
26361   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26362   test -n "$tmp" && test -d "$tmp"
26363 }  ||
26364 {
26365   tmp=./confstat$$-$RANDOM
26366   (umask 077 && mkdir $tmp)
26367 } ||
26368 {
26369    echo "$me: cannot create a temporary directory in ." >&2
26370    { (exit 1); exit 1; }
26371 }
26372
26373 _ACEOF
26374
26375 cat >>$CONFIG_STATUS <<_ACEOF
26376
26377 #
26378 # CONFIG_FILES section.
26379 #
26380
26381 # No need to generate the scripts if there are no CONFIG_FILES.
26382 # This happens for instance when ./config.status config.h
26383 if test -n "\$CONFIG_FILES"; then
26384   # Protect against being on the right side of a sed subst in config.status.
26385   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26386    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26387 s,@SHELL@,$SHELL,;t t
26388 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26389 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26390 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26391 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26392 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26393 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26394 s,@exec_prefix@,$exec_prefix,;t t
26395 s,@prefix@,$prefix,;t t
26396 s,@program_transform_name@,$program_transform_name,;t t
26397 s,@bindir@,$bindir,;t t
26398 s,@sbindir@,$sbindir,;t t
26399 s,@libexecdir@,$libexecdir,;t t
26400 s,@datadir@,$datadir,;t t
26401 s,@sysconfdir@,$sysconfdir,;t t
26402 s,@sharedstatedir@,$sharedstatedir,;t t
26403 s,@localstatedir@,$localstatedir,;t t
26404 s,@libdir@,$libdir,;t t
26405 s,@includedir@,$includedir,;t t
26406 s,@oldincludedir@,$oldincludedir,;t t
26407 s,@infodir@,$infodir,;t t
26408 s,@mandir@,$mandir,;t t
26409 s,@build_alias@,$build_alias,;t t
26410 s,@host_alias@,$host_alias,;t t
26411 s,@target_alias@,$target_alias,;t t
26412 s,@DEFS@,$DEFS,;t t
26413 s,@ECHO_C@,$ECHO_C,;t t
26414 s,@ECHO_N@,$ECHO_N,;t t
26415 s,@ECHO_T@,$ECHO_T,;t t
26416 s,@LIBS@,$LIBS,;t t
26417 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26418 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26419 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26420 s,@CYGPATH_W@,$CYGPATH_W,;t t
26421 s,@PACKAGE@,$PACKAGE,;t t
26422 s,@VERSION@,$VERSION,;t t
26423 s,@ACLOCAL@,$ACLOCAL,;t t
26424 s,@AUTOCONF@,$AUTOCONF,;t t
26425 s,@AUTOMAKE@,$AUTOMAKE,;t t
26426 s,@AUTOHEADER@,$AUTOHEADER,;t t
26427 s,@MAKEINFO@,$MAKEINFO,;t t
26428 s,@install_sh@,$install_sh,;t t
26429 s,@STRIP@,$STRIP,;t t
26430 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26431 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26432 s,@mkdir_p@,$mkdir_p,;t t
26433 s,@AWK@,$AWK,;t t
26434 s,@SET_MAKE@,$SET_MAKE,;t t
26435 s,@am__leading_dot@,$am__leading_dot,;t t
26436 s,@AMTAR@,$AMTAR,;t t
26437 s,@am__tar@,$am__tar,;t t
26438 s,@am__untar@,$am__untar,;t t
26439 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26440 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26441 s,@MAINT@,$MAINT,;t t
26442 s,@CC@,$CC,;t t
26443 s,@CFLAGS@,$CFLAGS,;t t
26444 s,@LDFLAGS@,$LDFLAGS,;t t
26445 s,@CPPFLAGS@,$CPPFLAGS,;t t
26446 s,@ac_ct_CC@,$ac_ct_CC,;t t
26447 s,@EXEEXT@,$EXEEXT,;t t
26448 s,@OBJEXT@,$OBJEXT,;t t
26449 s,@DEPDIR@,$DEPDIR,;t t
26450 s,@am__include@,$am__include,;t t
26451 s,@am__quote@,$am__quote,;t t
26452 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26453 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26454 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26455 s,@CCDEPMODE@,$CCDEPMODE,;t t
26456 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26457 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26458 s,@LN_S@,$LN_S,;t t
26459 s,@YACC@,$YACC,;t t
26460 s,@CPP@,$CPP,;t t
26461 s,@EGREP@,$EGREP,;t t
26462 s,@U@,$U,;t t
26463 s,@ANSI2KNR@,$ANSI2KNR,;t t
26464 s,@build@,$build,;t t
26465 s,@build_cpu@,$build_cpu,;t t
26466 s,@build_vendor@,$build_vendor,;t t
26467 s,@build_os@,$build_os,;t t
26468 s,@host@,$host,;t t
26469 s,@host_cpu@,$host_cpu,;t t
26470 s,@host_vendor@,$host_vendor,;t t
26471 s,@host_os@,$host_os,;t t
26472 s,@ECHO@,$ECHO,;t t
26473 s,@AR@,$AR,;t t
26474 s,@ac_ct_AR@,$ac_ct_AR,;t t
26475 s,@RANLIB@,$RANLIB,;t t
26476 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26477 s,@CXX@,$CXX,;t t
26478 s,@CXXFLAGS@,$CXXFLAGS,;t t
26479 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26480 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26481 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26482 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26483 s,@CXXCPP@,$CXXCPP,;t t
26484 s,@F77@,$F77,;t t
26485 s,@FFLAGS@,$FFLAGS,;t t
26486 s,@ac_ct_F77@,$ac_ct_F77,;t t
26487 s,@LIBTOOL@,$LIBTOOL,;t t
26488 s,@LIBOBJS@,$LIBOBJS,;t t
26489 s,@XSLTPROC@,$XSLTPROC,;t t
26490 s,@XML_CATALOG_FILE@,$XML_CATALOG_FILE,;t t
26491 s,@XMLCATALOG@,$XMLCATALOG,;t t
26492 s,@ENABLE_REGENERATE_MAN_TRUE@,$ENABLE_REGENERATE_MAN_TRUE,;t t
26493 s,@ENABLE_REGENERATE_MAN_FALSE@,$ENABLE_REGENERATE_MAN_FALSE,;t t
26494 s,@LIBCRYPT@,$LIBCRYPT,;t t
26495 s,@LIBAUDIT@,$LIBAUDIT,;t t
26496 s,@LIBCRACK@,$LIBCRACK,;t t
26497 s,@LIBSELINUX@,$LIBSELINUX,;t t
26498 s,@LIBPAM@,$LIBPAM,;t t
26499 s,@LIBSKEY@,$LIBSKEY,;t t
26500 s,@LIBMD@,$LIBMD,;t t
26501 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
26502 s,@USE_NLS@,$USE_NLS,;t t
26503 s,@MSGFMT@,$MSGFMT,;t t
26504 s,@GMSGFMT@,$GMSGFMT,;t t
26505 s,@XGETTEXT@,$XGETTEXT,;t t
26506 s,@MSGMERGE@,$MSGMERGE,;t t
26507 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
26508 s,@LIBICONV@,$LIBICONV,;t t
26509 s,@LTLIBICONV@,$LTLIBICONV,;t t
26510 s,@INTLLIBS@,$INTLLIBS,;t t
26511 s,@LIBINTL@,$LIBINTL,;t t
26512 s,@LTLIBINTL@,$LTLIBINTL,;t t
26513 s,@POSUB@,$POSUB,;t t
26514 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26515 CEOF
26516
26517 _ACEOF
26518
26519   cat >>$CONFIG_STATUS <<\_ACEOF
26520   # Split the substitutions into bite-sized pieces for seds with
26521   # small command number limits, like on Digital OSF/1 and HP-UX.
26522   ac_max_sed_lines=48
26523   ac_sed_frag=1 # Number of current file.
26524   ac_beg=1 # First line for current file.
26525   ac_end=$ac_max_sed_lines # Line after last line for current file.
26526   ac_more_lines=:
26527   ac_sed_cmds=
26528   while $ac_more_lines; do
26529     if test $ac_beg -gt 1; then
26530       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26531     else
26532       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26533     fi
26534     if test ! -s $tmp/subs.frag; then
26535       ac_more_lines=false
26536     else
26537       # The purpose of the label and of the branching condition is to
26538       # speed up the sed processing (if there are no `@' at all, there
26539       # is no need to browse any of the substitutions).
26540       # These are the two extra sed commands mentioned above.
26541       (echo ':t
26542   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26543       if test -z "$ac_sed_cmds"; then
26544         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26545       else
26546         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26547       fi
26548       ac_sed_frag=`expr $ac_sed_frag + 1`
26549       ac_beg=$ac_end
26550       ac_end=`expr $ac_end + $ac_max_sed_lines`
26551     fi
26552   done
26553   if test -z "$ac_sed_cmds"; then
26554     ac_sed_cmds=cat
26555   fi
26556 fi # test -n "$CONFIG_FILES"
26557
26558 _ACEOF
26559 cat >>$CONFIG_STATUS <<\_ACEOF
26560 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26561   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26562   case $ac_file in
26563   - | *:- | *:-:* ) # input from stdin
26564         cat >$tmp/stdin
26565         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26566         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26567   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26568         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26569   * )   ac_file_in=$ac_file.in ;;
26570   esac
26571
26572   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26573   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26574 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26575          X"$ac_file" : 'X\(//\)[^/]' \| \
26576          X"$ac_file" : 'X\(//\)$' \| \
26577          X"$ac_file" : 'X\(/\)' \| \
26578          .     : '\(.\)' 2>/dev/null ||
26579 echo X"$ac_file" |
26580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26582           /^X\(\/\/\)$/{ s//\1/; q; }
26583           /^X\(\/\).*/{ s//\1/; q; }
26584           s/.*/./; q'`
26585   { if $as_mkdir_p; then
26586     mkdir -p "$ac_dir"
26587   else
26588     as_dir="$ac_dir"
26589     as_dirs=
26590     while test ! -d "$as_dir"; do
26591       as_dirs="$as_dir $as_dirs"
26592       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26594          X"$as_dir" : 'X\(//\)[^/]' \| \
26595          X"$as_dir" : 'X\(//\)$' \| \
26596          X"$as_dir" : 'X\(/\)' \| \
26597          .     : '\(.\)' 2>/dev/null ||
26598 echo X"$as_dir" |
26599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26601           /^X\(\/\/\)$/{ s//\1/; q; }
26602           /^X\(\/\).*/{ s//\1/; q; }
26603           s/.*/./; q'`
26604     done
26605     test ! -n "$as_dirs" || mkdir $as_dirs
26606   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26608    { (exit 1); exit 1; }; }; }
26609
26610   ac_builddir=.
26611
26612 if test "$ac_dir" != .; then
26613   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26614   # A "../" for each directory in $ac_dir_suffix.
26615   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26616 else
26617   ac_dir_suffix= ac_top_builddir=
26618 fi
26619
26620 case $srcdir in
26621   .)  # No --srcdir option.  We are building in place.
26622     ac_srcdir=.
26623     if test -z "$ac_top_builddir"; then
26624        ac_top_srcdir=.
26625     else
26626        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26627     fi ;;
26628   [\\/]* | ?:[\\/]* )  # Absolute path.
26629     ac_srcdir=$srcdir$ac_dir_suffix;
26630     ac_top_srcdir=$srcdir ;;
26631   *) # Relative path.
26632     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26633     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26634 esac
26635
26636 # Do not use `cd foo && pwd` to compute absolute paths, because
26637 # the directories may not exist.
26638 case `pwd` in
26639 .) ac_abs_builddir="$ac_dir";;
26640 *)
26641   case "$ac_dir" in
26642   .) ac_abs_builddir=`pwd`;;
26643   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26644   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26645   esac;;
26646 esac
26647 case $ac_abs_builddir in
26648 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26649 *)
26650   case ${ac_top_builddir}. in
26651   .) ac_abs_top_builddir=$ac_abs_builddir;;
26652   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26653   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26654   esac;;
26655 esac
26656 case $ac_abs_builddir in
26657 .) ac_abs_srcdir=$ac_srcdir;;
26658 *)
26659   case $ac_srcdir in
26660   .) ac_abs_srcdir=$ac_abs_builddir;;
26661   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26662   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26663   esac;;
26664 esac
26665 case $ac_abs_builddir in
26666 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26667 *)
26668   case $ac_top_srcdir in
26669   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26670   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26671   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26672   esac;;
26673 esac
26674
26675
26676   case $INSTALL in
26677   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26678   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26679   esac
26680
26681   if test x"$ac_file" != x-; then
26682     { echo "$as_me:$LINENO: creating $ac_file" >&5
26683 echo "$as_me: creating $ac_file" >&6;}
26684     rm -f "$ac_file"
26685   fi
26686   # Let's still pretend it is `configure' which instantiates (i.e., don't
26687   # use $as_me), people would be surprised to read:
26688   #    /* config.h.  Generated by config.status.  */
26689   if test x"$ac_file" = x-; then
26690     configure_input=
26691   else
26692     configure_input="$ac_file.  "
26693   fi
26694   configure_input=$configure_input"Generated from `echo $ac_file_in |
26695                                      sed 's,.*/,,'` by configure."
26696
26697   # First look for the input files in the build tree, otherwise in the
26698   # src tree.
26699   ac_file_inputs=`IFS=:
26700     for f in $ac_file_in; do
26701       case $f in
26702       -) echo $tmp/stdin ;;
26703       [\\/$]*)
26704          # Absolute (can't be DOS-style, as IFS=:)
26705          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26706 echo "$as_me: error: cannot find input file: $f" >&2;}
26707    { (exit 1); exit 1; }; }
26708          echo "$f";;
26709       *) # Relative
26710          if test -f "$f"; then
26711            # Build tree
26712            echo "$f"
26713          elif test -f "$srcdir/$f"; then
26714            # Source tree
26715            echo "$srcdir/$f"
26716          else
26717            # /dev/null tree
26718            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26719 echo "$as_me: error: cannot find input file: $f" >&2;}
26720    { (exit 1); exit 1; }; }
26721          fi;;
26722       esac
26723     done` || { (exit 1); exit 1; }
26724 _ACEOF
26725 cat >>$CONFIG_STATUS <<_ACEOF
26726   sed "$ac_vpsub
26727 $extrasub
26728 _ACEOF
26729 cat >>$CONFIG_STATUS <<\_ACEOF
26730 :t
26731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26732 s,@configure_input@,$configure_input,;t t
26733 s,@srcdir@,$ac_srcdir,;t t
26734 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26735 s,@top_srcdir@,$ac_top_srcdir,;t t
26736 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26737 s,@builddir@,$ac_builddir,;t t
26738 s,@abs_builddir@,$ac_abs_builddir,;t t
26739 s,@top_builddir@,$ac_top_builddir,;t t
26740 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26741 s,@INSTALL@,$ac_INSTALL,;t t
26742 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26743   rm -f $tmp/stdin
26744   if test x"$ac_file" != x-; then
26745     mv $tmp/out $ac_file
26746   else
26747     cat $tmp/out
26748     rm -f $tmp/out
26749   fi
26750
26751 done
26752 _ACEOF
26753 cat >>$CONFIG_STATUS <<\_ACEOF
26754
26755 #
26756 # CONFIG_HEADER section.
26757 #
26758
26759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26761 #
26762 # ac_d sets the value in "#define NAME VALUE" lines.
26763 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
26764 ac_dB='[         ].*$,\1#\2'
26765 ac_dC=' '
26766 ac_dD=',;t'
26767 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26768 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
26769 ac_uB='$,\1#\2define\3'
26770 ac_uC=' '
26771 ac_uD=',;t'
26772
26773 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26774   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26775   case $ac_file in
26776   - | *:- | *:-:* ) # input from stdin
26777         cat >$tmp/stdin
26778         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26779         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26780   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26781         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26782   * )   ac_file_in=$ac_file.in ;;
26783   esac
26784
26785   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26786 echo "$as_me: creating $ac_file" >&6;}
26787
26788   # First look for the input files in the build tree, otherwise in the
26789   # src tree.
26790   ac_file_inputs=`IFS=:
26791     for f in $ac_file_in; do
26792       case $f in
26793       -) echo $tmp/stdin ;;
26794       [\\/$]*)
26795          # Absolute (can't be DOS-style, as IFS=:)
26796          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26797 echo "$as_me: error: cannot find input file: $f" >&2;}
26798    { (exit 1); exit 1; }; }
26799          # Do quote $f, to prevent DOS paths from being IFS'd.
26800          echo "$f";;
26801       *) # Relative
26802          if test -f "$f"; then
26803            # Build tree
26804            echo "$f"
26805          elif test -f "$srcdir/$f"; then
26806            # Source tree
26807            echo "$srcdir/$f"
26808          else
26809            # /dev/null tree
26810            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26811 echo "$as_me: error: cannot find input file: $f" >&2;}
26812    { (exit 1); exit 1; }; }
26813          fi;;
26814       esac
26815     done` || { (exit 1); exit 1; }
26816   # Remove the trailing spaces.
26817   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
26818
26819 _ACEOF
26820
26821 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26822 # `conftest.undefs', that substitutes the proper values into
26823 # config.h.in to produce config.h.  The first handles `#define'
26824 # templates, and the second `#undef' templates.
26825 # And first: Protect against being on the right side of a sed subst in
26826 # config.status.  Protect against being in an unquoted here document
26827 # in config.status.
26828 rm -f conftest.defines conftest.undefs
26829 # Using a here document instead of a string reduces the quoting nightmare.
26830 # Putting comments in sed scripts is not portable.
26831 #
26832 # `end' is used to avoid that the second main sed command (meant for
26833 # 0-ary CPP macros) applies to n-ary macro definitions.
26834 # See the Autoconf documentation for `clear'.
26835 cat >confdef2sed.sed <<\_ACEOF
26836 s/[\\&,]/\\&/g
26837 s,[\\$`],\\&,g
26838 t clear
26839 : clear
26840 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26841 t end
26842 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26843 : end
26844 _ACEOF
26845 # If some macros were called several times there might be several times
26846 # the same #defines, which is useless.  Nevertheless, we may not want to
26847 # sort them, since we want the *last* AC-DEFINE to be honored.
26848 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26849 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26850 rm -f confdef2sed.sed
26851
26852 # This sed command replaces #undef with comments.  This is necessary, for
26853 # example, in the case of _POSIX_SOURCE, which is predefined and required
26854 # on some systems where configure will not decide to define it.
26855 cat >>conftest.undefs <<\_ACEOF
26856 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26857 _ACEOF
26858
26859 # Break up conftest.defines because some shells have a limit on the size
26860 # of here documents, and old seds have small limits too (100 cmds).
26861 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26862 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26863 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26864 echo '  :' >>$CONFIG_STATUS
26865 rm -f conftest.tail
26866 while grep . conftest.defines >/dev/null
26867 do
26868   # Write a limited-size here document to $tmp/defines.sed.
26869   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26870   # Speed up: don't consider the non `#define' lines.
26871   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
26872   # Work around the forget-to-reset-the-flag bug.
26873   echo 't clr' >>$CONFIG_STATUS
26874   echo ': clr' >>$CONFIG_STATUS
26875   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26876   echo 'CEOF
26877   sed -f $tmp/defines.sed $tmp/in >$tmp/out
26878   rm -f $tmp/in
26879   mv $tmp/out $tmp/in
26880 ' >>$CONFIG_STATUS
26881   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26882   rm -f conftest.defines
26883   mv conftest.tail conftest.defines
26884 done
26885 rm -f conftest.defines
26886 echo '  fi # grep' >>$CONFIG_STATUS
26887 echo >>$CONFIG_STATUS
26888
26889 # Break up conftest.undefs because some shells have a limit on the size
26890 # of here documents, and old seds have small limits too (100 cmds).
26891 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
26892 rm -f conftest.tail
26893 while grep . conftest.undefs >/dev/null
26894 do
26895   # Write a limited-size here document to $tmp/undefs.sed.
26896   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26897   # Speed up: don't consider the non `#undef'
26898   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
26899   # Work around the forget-to-reset-the-flag bug.
26900   echo 't clr' >>$CONFIG_STATUS
26901   echo ': clr' >>$CONFIG_STATUS
26902   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26903   echo 'CEOF
26904   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26905   rm -f $tmp/in
26906   mv $tmp/out $tmp/in
26907 ' >>$CONFIG_STATUS
26908   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26909   rm -f conftest.undefs
26910   mv conftest.tail conftest.undefs
26911 done
26912 rm -f conftest.undefs
26913
26914 cat >>$CONFIG_STATUS <<\_ACEOF
26915   # Let's still pretend it is `configure' which instantiates (i.e., don't
26916   # use $as_me), people would be surprised to read:
26917   #    /* config.h.  Generated by config.status.  */
26918   if test x"$ac_file" = x-; then
26919     echo "/* Generated by configure.  */" >$tmp/config.h
26920   else
26921     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
26922   fi
26923   cat $tmp/in >>$tmp/config.h
26924   rm -f $tmp/in
26925   if test x"$ac_file" != x-; then
26926     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26927       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26928 echo "$as_me: $ac_file is unchanged" >&6;}
26929     else
26930       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26932          X"$ac_file" : 'X\(//\)[^/]' \| \
26933          X"$ac_file" : 'X\(//\)$' \| \
26934          X"$ac_file" : 'X\(/\)' \| \
26935          .     : '\(.\)' 2>/dev/null ||
26936 echo X"$ac_file" |
26937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26939           /^X\(\/\/\)$/{ s//\1/; q; }
26940           /^X\(\/\).*/{ s//\1/; q; }
26941           s/.*/./; q'`
26942       { if $as_mkdir_p; then
26943     mkdir -p "$ac_dir"
26944   else
26945     as_dir="$ac_dir"
26946     as_dirs=
26947     while test ! -d "$as_dir"; do
26948       as_dirs="$as_dir $as_dirs"
26949       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26951          X"$as_dir" : 'X\(//\)[^/]' \| \
26952          X"$as_dir" : 'X\(//\)$' \| \
26953          X"$as_dir" : 'X\(/\)' \| \
26954          .     : '\(.\)' 2>/dev/null ||
26955 echo X"$as_dir" |
26956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26958           /^X\(\/\/\)$/{ s//\1/; q; }
26959           /^X\(\/\).*/{ s//\1/; q; }
26960           s/.*/./; q'`
26961     done
26962     test ! -n "$as_dirs" || mkdir $as_dirs
26963   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26965    { (exit 1); exit 1; }; }; }
26966
26967       rm -f $ac_file
26968       mv $tmp/config.h $ac_file
26969     fi
26970   else
26971     cat $tmp/config.h
26972     rm -f $tmp/config.h
26973   fi
26974 # Compute $ac_file's index in $config_headers.
26975 _am_stamp_count=1
26976 for _am_header in $config_headers :; do
26977   case $_am_header in
26978     $ac_file | $ac_file:* )
26979       break ;;
26980     * )
26981       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26982   esac
26983 done
26984 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
26985 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26986          X$ac_file : 'X\(//\)[^/]' \| \
26987          X$ac_file : 'X\(//\)$' \| \
26988          X$ac_file : 'X\(/\)' \| \
26989          .     : '\(.\)' 2>/dev/null ||
26990 echo X$ac_file |
26991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26993           /^X\(\/\/\)$/{ s//\1/; q; }
26994           /^X\(\/\).*/{ s//\1/; q; }
26995           s/.*/./; q'`/stamp-h$_am_stamp_count
26996 done
26997 _ACEOF
26998 cat >>$CONFIG_STATUS <<\_ACEOF
26999
27000 #
27001 # CONFIG_COMMANDS section.
27002 #
27003 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27004   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27005   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27006   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27007 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27008          X"$ac_dest" : 'X\(//\)[^/]' \| \
27009          X"$ac_dest" : 'X\(//\)$' \| \
27010          X"$ac_dest" : 'X\(/\)' \| \
27011          .     : '\(.\)' 2>/dev/null ||
27012 echo X"$ac_dest" |
27013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27014           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27015           /^X\(\/\/\)$/{ s//\1/; q; }
27016           /^X\(\/\).*/{ s//\1/; q; }
27017           s/.*/./; q'`
27018   { if $as_mkdir_p; then
27019     mkdir -p "$ac_dir"
27020   else
27021     as_dir="$ac_dir"
27022     as_dirs=
27023     while test ! -d "$as_dir"; do
27024       as_dirs="$as_dir $as_dirs"
27025       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27027          X"$as_dir" : 'X\(//\)[^/]' \| \
27028          X"$as_dir" : 'X\(//\)$' \| \
27029          X"$as_dir" : 'X\(/\)' \| \
27030          .     : '\(.\)' 2>/dev/null ||
27031 echo X"$as_dir" |
27032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27034           /^X\(\/\/\)$/{ s//\1/; q; }
27035           /^X\(\/\).*/{ s//\1/; q; }
27036           s/.*/./; q'`
27037     done
27038     test ! -n "$as_dirs" || mkdir $as_dirs
27039   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27041    { (exit 1); exit 1; }; }; }
27042
27043   ac_builddir=.
27044
27045 if test "$ac_dir" != .; then
27046   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27047   # A "../" for each directory in $ac_dir_suffix.
27048   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27049 else
27050   ac_dir_suffix= ac_top_builddir=
27051 fi
27052
27053 case $srcdir in
27054   .)  # No --srcdir option.  We are building in place.
27055     ac_srcdir=.
27056     if test -z "$ac_top_builddir"; then
27057        ac_top_srcdir=.
27058     else
27059        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27060     fi ;;
27061   [\\/]* | ?:[\\/]* )  # Absolute path.
27062     ac_srcdir=$srcdir$ac_dir_suffix;
27063     ac_top_srcdir=$srcdir ;;
27064   *) # Relative path.
27065     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27066     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27067 esac
27068
27069 # Do not use `cd foo && pwd` to compute absolute paths, because
27070 # the directories may not exist.
27071 case `pwd` in
27072 .) ac_abs_builddir="$ac_dir";;
27073 *)
27074   case "$ac_dir" in
27075   .) ac_abs_builddir=`pwd`;;
27076   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27077   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27078   esac;;
27079 esac
27080 case $ac_abs_builddir in
27081 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27082 *)
27083   case ${ac_top_builddir}. in
27084   .) ac_abs_top_builddir=$ac_abs_builddir;;
27085   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27086   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27087   esac;;
27088 esac
27089 case $ac_abs_builddir in
27090 .) ac_abs_srcdir=$ac_srcdir;;
27091 *)
27092   case $ac_srcdir in
27093   .) ac_abs_srcdir=$ac_abs_builddir;;
27094   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27095   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27096   esac;;
27097 esac
27098 case $ac_abs_builddir in
27099 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27100 *)
27101   case $ac_top_srcdir in
27102   .) ac_abs_top_srcdir=$ac_abs_builddir;;
27103   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27104   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27105   esac;;
27106 esac
27107
27108
27109   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27110 echo "$as_me: executing $ac_dest commands" >&6;}
27111   case $ac_dest in
27112     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27113   # Strip MF so we end up with the name of the file.
27114   mf=`echo "$mf" | sed -e 's/:.*$//'`
27115   # Check whether this is an Automake generated Makefile or not.
27116   # We used to match only the files named `Makefile.in', but
27117   # some people rename them; so instead we look at the file content.
27118   # Grep'ing the first line is not enough: some people post-process
27119   # each Makefile.in and add a new line on top of each file to say so.
27120   # So let's grep whole file.
27121   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27122     dirpart=`(dirname "$mf") 2>/dev/null ||
27123 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27124          X"$mf" : 'X\(//\)[^/]' \| \
27125          X"$mf" : 'X\(//\)$' \| \
27126          X"$mf" : 'X\(/\)' \| \
27127          .     : '\(.\)' 2>/dev/null ||
27128 echo X"$mf" |
27129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27131           /^X\(\/\/\)$/{ s//\1/; q; }
27132           /^X\(\/\).*/{ s//\1/; q; }
27133           s/.*/./; q'`
27134   else
27135     continue
27136   fi
27137   # Extract the definition of DEPDIR, am__include, and am__quote
27138   # from the Makefile without running `make'.
27139   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27140   test -z "$DEPDIR" && continue
27141   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27142   test -z "am__include" && continue
27143   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27144   # When using ansi2knr, U may be empty or an underscore; expand it
27145   U=`sed -n 's/^U = //p' < "$mf"`
27146   # Find all dependency output files, they are included files with
27147   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27148   # simplest approach to changing $(DEPDIR) to its actual value in the
27149   # expansion.
27150   for file in `sed -n "
27151     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27152        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27153     # Make sure the directory exists.
27154     test -f "$dirpart/$file" && continue
27155     fdir=`(dirname "$file") 2>/dev/null ||
27156 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27157          X"$file" : 'X\(//\)[^/]' \| \
27158          X"$file" : 'X\(//\)$' \| \
27159          X"$file" : 'X\(/\)' \| \
27160          .     : '\(.\)' 2>/dev/null ||
27161 echo X"$file" |
27162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27164           /^X\(\/\/\)$/{ s//\1/; q; }
27165           /^X\(\/\).*/{ s//\1/; q; }
27166           s/.*/./; q'`
27167     { if $as_mkdir_p; then
27168     mkdir -p $dirpart/$fdir
27169   else
27170     as_dir=$dirpart/$fdir
27171     as_dirs=
27172     while test ! -d "$as_dir"; do
27173       as_dirs="$as_dir $as_dirs"
27174       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27176          X"$as_dir" : 'X\(//\)[^/]' \| \
27177          X"$as_dir" : 'X\(//\)$' \| \
27178          X"$as_dir" : 'X\(/\)' \| \
27179          .     : '\(.\)' 2>/dev/null ||
27180 echo X"$as_dir" |
27181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27183           /^X\(\/\/\)$/{ s//\1/; q; }
27184           /^X\(\/\).*/{ s//\1/; q; }
27185           s/.*/./; q'`
27186     done
27187     test ! -n "$as_dirs" || mkdir $as_dirs
27188   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27189 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27190    { (exit 1); exit 1; }; }; }
27191
27192     # echo "creating $dirpart/$file"
27193     echo '# dummy' > "$dirpart/$file"
27194   done
27195 done
27196  ;;
27197     default-1 )
27198     for ac_file in $CONFIG_FILES; do
27199       # Support "outfile[:infile[:infile...]]"
27200       case "$ac_file" in
27201         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
27202       esac
27203       # PO directories have a Makefile.in generated from Makefile.in.in.
27204       case "$ac_file" in */Makefile.in)
27205         # Adjust a relative srcdir.
27206         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
27207         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
27208         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
27209         # In autoconf-2.13 it is called $ac_given_srcdir.
27210         # In autoconf-2.50 it is called $srcdir.
27211         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
27212         case "$ac_given_srcdir" in
27213           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
27214           /*) top_srcdir="$ac_given_srcdir" ;;
27215           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
27216         esac
27217         # Treat a directory as a PO directory if and only if it has a
27218         # POTFILES.in file. This allows packages to have multiple PO
27219         # directories under different names or in different locations.
27220         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
27221           rm -f "$ac_dir/POTFILES"
27222           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
27223           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
27224           POMAKEFILEDEPS="POTFILES.in"
27225           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
27226           # on $ac_dir but don't depend on user-specified configuration
27227           # parameters.
27228           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
27229             # The LINGUAS file contains the set of available languages.
27230             if test -n "$OBSOLETE_ALL_LINGUAS"; then
27231               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
27232             fi
27233             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
27234             # Hide the ALL_LINGUAS assigment from automake.
27235             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
27236             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
27237           else
27238             # The set of available languages was given in configure.in.
27239             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
27240           fi
27241           # Compute POFILES
27242           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
27243           # Compute UPDATEPOFILES
27244           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
27245           # Compute DUMMYPOFILES
27246           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
27247           # Compute GMOFILES
27248           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
27249           case "$ac_given_srcdir" in
27250             .) srcdirpre= ;;
27251             *) srcdirpre='$(srcdir)/' ;;
27252           esac
27253           POFILES=
27254           UPDATEPOFILES=
27255           DUMMYPOFILES=
27256           GMOFILES=
27257           for lang in $ALL_LINGUAS; do
27258             POFILES="$POFILES $srcdirpre$lang.po"
27259             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
27260             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
27261             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
27262           done
27263           # CATALOGS depends on both $ac_dir and the user's LINGUAS
27264           # environment variable.
27265           INST_LINGUAS=
27266           if test -n "$ALL_LINGUAS"; then
27267             for presentlang in $ALL_LINGUAS; do
27268               useit=no
27269               if test "%UNSET%" != "$LINGUAS"; then
27270                 desiredlanguages="$LINGUAS"
27271               else
27272                 desiredlanguages="$ALL_LINGUAS"
27273               fi
27274               for desiredlang in $desiredlanguages; do
27275                 # Use the presentlang catalog if desiredlang is
27276                 #   a. equal to presentlang, or
27277                 #   b. a variant of presentlang (because in this case,
27278                 #      presentlang can be used as a fallback for messages
27279                 #      which are not translated in the desiredlang catalog).
27280                 case "$desiredlang" in
27281                   "$presentlang"*) useit=yes;;
27282                 esac
27283               done
27284               if test $useit = yes; then
27285                 INST_LINGUAS="$INST_LINGUAS $presentlang"
27286               fi
27287             done
27288           fi
27289           CATALOGS=
27290           if test -n "$INST_LINGUAS"; then
27291             for lang in $INST_LINGUAS; do
27292               CATALOGS="$CATALOGS $lang.gmo"
27293             done
27294           fi
27295           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
27296           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
27297           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
27298             if test -f "$f"; then
27299               case "$f" in
27300                 *.orig | *.bak | *~) ;;
27301                 *) cat "$f" >> "$ac_dir/Makefile" ;;
27302               esac
27303             fi
27304           done
27305         fi
27306         ;;
27307       esac
27308     done ;;
27309   esac
27310 done
27311 _ACEOF
27312
27313 cat >>$CONFIG_STATUS <<\_ACEOF
27314
27315 { (exit 0); exit 0; }
27316 _ACEOF
27317 chmod +x $CONFIG_STATUS
27318 ac_clean_files=$ac_clean_files_save
27319
27320
27321 # configure is writing to config.log, and then calls config.status.
27322 # config.status does its own redirection, appending to config.log.
27323 # Unfortunately, on DOS this fails, as config.log is still kept open
27324 # by configure, so config.status won't be able to write to it; its
27325 # output is simply discarded.  So we exec the FD to /dev/null,
27326 # effectively closing config.log, so it can be properly (re)opened and
27327 # appended to by config.status.  When coming back to configure, we
27328 # need to make the FD available again.
27329 if test "$no_create" != yes; then
27330   ac_cs_success=:
27331   ac_config_status_args=
27332   test "$silent" = yes &&
27333     ac_config_status_args="$ac_config_status_args --quiet"
27334   exec 5>/dev/null
27335   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27336   exec 5>>config.log
27337   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27338   # would make configure fail if this is the last instruction.
27339   $ac_cs_success || { (exit 1); exit 1; }
27340 fi
27341
27342
27343 echo
27344 echo "shadow will be compiled with the followig feactures:"
27345 echo
27346 echo "  auditing support:               $with_audit"
27347 echo "  CrackLib support:               $with_libcrack"
27348 echo "  PAM support:                    $with_libpam"
27349 echo "  SELinux support:                $with_selinux"
27350 echo "  shadow group support:           $enable_shadowgrp"
27351 echo "  S/Key support:                  $with_skey"
27352 echo