sync to 0.30.213
[util-vserver.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for util-vserver 0.30.213.
4 #
5 # Report bugs to <vserver@list.linux-vserver.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='util-vserver'
425 PACKAGE_TARNAME='util-vserver'
426 PACKAGE_VERSION='0.30.213'
427 PACKAGE_STRING='util-vserver 0.30.213'
428 PACKAGE_BUGREPORT='vserver@list.linux-vserver.org'
429
430 ac_unique_file="src/capchroot.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os GPG_KEY CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ENSC_HAVE_CXX_COMPILER_TRUE ENSC_HAVE_CXX_COMPILER_FALSE ENSC_HAVE_C99_COMPILER_TRUE ENSC_HAVE_C99_COMPILER_FALSE ENSC_PATHPROG_SED CAT CHOWN CMP CP DIRNAME EGREP ENV GREP LN MKDIR MKFIFO MKTEMP MOUNT MV NICE PS RM RMDIR SED SH TAC TAR TOUCH TTY UMOUNT WC IP IPTABLES MODPROBE NAMEIF NOHUP RMMOD VCONFIG WGET FILE GZIP BZIP2 CPIO RESTORE RSYNC DOXYGEN XSLTP XSLTPROC HAVE_XSLTP_TRUE HAVE_XSLTP_FALSE HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE LIB_DEBUG_CPPFLAGS ENSC_USE_EXPENSIVE_TESTS initrddir RELEASE_CPPFLAGS CPP DIET DIETFLAGS USE_DIETLIBC_TRUE USE_DIETLIBC_FALSE USE_DIETLIBC_COMPAT_TRUE USE_DIETLIBC_COMPAT_FALSE ENSC_USE_DIETLIBC_TRUE ENSC_USE_DIETLIBC_FALSE ENSC_USE_GLIBC_TRUE ENSC_USE_GLIBC_FALSE ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL vserverdir SVN2CL HAVE_SVN2CL_TRUE HAVE_SVN2CL_FALSE ENSC_ENABLE_INTERNAL_HEADERS_TRUE ENSC_ENABLE_INTERNAL_HEADERS_FALSE ENSC_HAVE_BEECRYPT_TRUE ENSC_HAVE_BEECRYPT_FALSE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE HAVE_GENTOO_INIT_TRUE HAVE_GENTOO_INIT_FALSE HAVE_SYSV_INIT_TRUE HAVE_SYSV_INIT_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_DIET_set=${DIET+set}
938 ac_env_DIET_value=$DIET
939 ac_cv_env_DIET_set=${DIET+set}
940 ac_cv_env_DIET_value=$DIET
941 ac_env_DIETFLAGS_set=${DIETFLAGS+set}
942 ac_env_DIETFLAGS_value=$DIETFLAGS
943 ac_cv_env_DIETFLAGS_set=${DIETFLAGS+set}
944 ac_cv_env_DIETFLAGS_value=$DIETFLAGS
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures util-vserver 0.30.213 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 Program names:
1019   --program-prefix=PREFIX            prepend PREFIX to installed program names
1020   --program-suffix=SUFFIX            append SUFFIX to installed program names
1021   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1022
1023 System types:
1024   --build=BUILD     configure for building on BUILD [guessed]
1025   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1026 _ACEOF
1027 fi
1028
1029 if test -n "$ac_init_help"; then
1030   case $ac_init_help in
1031      short | recursive ) echo "Configuration of util-vserver 0.30.213:";;
1032    esac
1033   cat <<\_ACEOF
1034
1035 Optional Features:
1036   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038   --enable-maintainer-mode  enable make rules and dependencies not useful
1039                           (and sometimes confusing) to the casual installer
1040   --disable-dependency-tracking  speeds up one-time build
1041   --enable-dependency-tracking   do not reject slow dependency extractors
1042   --disable-extra-optimizations
1043                           disable certain extra optimizations (default: no)
1044   --enable-lib-debug      enable additional debug code in library (default:
1045                           no)
1046   --enable-expensive-tests
1047                           disable tests which might be expensive on some
1048                           systems (default: no)
1049   --enable-release        enable release mode (default: no)
1050   --disable-alternative-syscalls
1051                           do not use the alternative _syscallX macros provided
1052                           by Herbert Poetzl (default: use them)
1053   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1054                           --enable-dietlibc) (default: autodetect dietlibc)
1055   --enable-shared[=PKGS]
1056                           build shared libraries [default=yes]
1057   --enable-static[=PKGS]
1058                           build static libraries [default=yes]
1059   --enable-fast-install[=PKGS]
1060                           optimize for fast installation [default=yes]
1061   --disable-libtool-lock  avoid locking (might break parallel builds)
1062   --disable-internal-headers
1063                           use vserver specific headers from the kernel instead
1064                           of the shipped versions (default: no)
1065   --enable-apis=APIS      enable support for the given apis; possible values
1066                           are: legacy,compat,v11,fscompat,v13obs,v13,net,
1067                           ALL,NOLEGACY (default: v13,net,v21)
1068
1069 Optional Packages:
1070   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1071   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1072   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1073                           $sysconfdir/init.d)
1074   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1075                           values are 'fast', 'traditional' and 'auto'
1076                           (default: auto)
1077   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1078   --with-pic              try to use only PIC/non-PIC objects [default=use
1079                           both]
1080   --with-tags[=TAGS]
1081                           include additional configurations [automatic]
1082   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1083   --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1084                           and 'sysv' (default: guess)
1085
1086 Some influential environment variables:
1087   CXX         C++ compiler command
1088   CXXFLAGS    C++ compiler flags
1089   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1090               nonstandard directory <lib dir>
1091   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1092               headers in a nonstandard directory <include dir>
1093   CC          C compiler command
1094   CFLAGS      C compiler flags
1095   CPP         C preprocessor
1096   DIET        The 'diet' wrapper (default: diet)
1097   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1098   CXXCPP      C++ preprocessor
1099   F77         Fortran 77 compiler command
1100   FFLAGS      Fortran 77 compiler flags
1101
1102 Use these variables to override the choices made by `configure' or to help
1103 it to find libraries and programs with nonstandard names/locations.
1104
1105 Report bugs to <vserver@list.linux-vserver.org>.
1106 _ACEOF
1107 fi
1108
1109 if test "$ac_init_help" = "recursive"; then
1110   # If there are subdirs, report their specific --help.
1111   ac_popdir=`pwd`
1112   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113     test -d $ac_dir || continue
1114     ac_builddir=.
1115
1116 if test "$ac_dir" != .; then
1117   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118   # A "../" for each directory in $ac_dir_suffix.
1119   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120 else
1121   ac_dir_suffix= ac_top_builddir=
1122 fi
1123
1124 case $srcdir in
1125   .)  # No --srcdir option.  We are building in place.
1126     ac_srcdir=.
1127     if test -z "$ac_top_builddir"; then
1128        ac_top_srcdir=.
1129     else
1130        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131     fi ;;
1132   [\\/]* | ?:[\\/]* )  # Absolute path.
1133     ac_srcdir=$srcdir$ac_dir_suffix;
1134     ac_top_srcdir=$srcdir ;;
1135   *) # Relative path.
1136     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138 esac
1139
1140 # Do not use `cd foo && pwd` to compute absolute paths, because
1141 # the directories may not exist.
1142 case `pwd` in
1143 .) ac_abs_builddir="$ac_dir";;
1144 *)
1145   case "$ac_dir" in
1146   .) ac_abs_builddir=`pwd`;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149   esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1153 *)
1154   case ${ac_top_builddir}. in
1155   .) ac_abs_top_builddir=$ac_abs_builddir;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158   esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1162 *)
1163   case $ac_srcdir in
1164   .) ac_abs_srcdir=$ac_abs_builddir;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1171 *)
1172   case $ac_top_srcdir in
1173   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176   esac;;
1177 esac
1178
1179     cd $ac_dir
1180     # Check for guested configure; otherwise get Cygnus style configure.
1181     if test -f $ac_srcdir/configure.gnu; then
1182       echo
1183       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1184     elif test -f $ac_srcdir/configure; then
1185       echo
1186       $SHELL $ac_srcdir/configure  --help=recursive
1187     elif test -f $ac_srcdir/configure.ac ||
1188            test -f $ac_srcdir/configure.in; then
1189       echo
1190       $ac_configure --help
1191     else
1192       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193     fi
1194     cd $ac_popdir
1195   done
1196 fi
1197
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1200   cat <<\_ACEOF
1201 util-vserver configure 0.30.213
1202 generated by GNU Autoconf 2.59
1203
1204 Copyright (C) 2003 Free Software Foundation, Inc.
1205 This configure script is free software; the Free Software Foundation
1206 gives unlimited permission to copy, distribute and modify it.
1207 _ACEOF
1208   exit 0
1209 fi
1210 exec 5>config.log
1211 cat >&5 <<_ACEOF
1212 This file contains any messages produced by compilers while
1213 running configure, to aid debugging if configure makes a mistake.
1214
1215 It was created by util-vserver $as_me 0.30.213, which was
1216 generated by GNU Autoconf 2.59.  Invocation command line was
1217
1218   $ $0 $@
1219
1220 _ACEOF
1221 {
1222 cat <<_ASUNAME
1223 ## --------- ##
1224 ## Platform. ##
1225 ## --------- ##
1226
1227 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1235
1236 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1237 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1238 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1240 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1241 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1242 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1243
1244 _ASUNAME
1245
1246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247 for as_dir in $PATH
1248 do
1249   IFS=$as_save_IFS
1250   test -z "$as_dir" && as_dir=.
1251   echo "PATH: $as_dir"
1252 done
1253
1254 } >&5
1255
1256 cat >&5 <<_ACEOF
1257
1258
1259 ## ----------- ##
1260 ## Core tests. ##
1261 ## ----------- ##
1262
1263 _ACEOF
1264
1265
1266 # Keep a trace of the command line.
1267 # Strip out --no-create and --no-recursion so they do not pile up.
1268 # Strip out --silent because we don't want to record it for future runs.
1269 # Also quote any args containing shell meta-characters.
1270 # Make two passes to allow for proper duplicate-argument suppression.
1271 ac_configure_args=
1272 ac_configure_args0=
1273 ac_configure_args1=
1274 ac_sep=
1275 ac_must_keep_next=false
1276 for ac_pass in 1 2
1277 do
1278   for ac_arg
1279   do
1280     case $ac_arg in
1281     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283     | -silent | --silent | --silen | --sile | --sil)
1284       continue ;;
1285     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287     esac
1288     case $ac_pass in
1289     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290     2)
1291       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292       if test $ac_must_keep_next = true; then
1293         ac_must_keep_next=false # Got value, back to normal.
1294       else
1295         case $ac_arg in
1296           *=* | --config-cache | -C | -disable-* | --disable-* \
1297           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299           | -with-* | --with-* | -without-* | --without-* | --x)
1300             case "$ac_configure_args0 " in
1301               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302             esac
1303             ;;
1304           -* ) ac_must_keep_next=true ;;
1305         esac
1306       fi
1307       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308       # Get rid of the leading space.
1309       ac_sep=" "
1310       ;;
1311     esac
1312   done
1313 done
1314 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317 # When interrupted or exit'd, cleanup temporary files, and complete
1318 # config.log.  We remove comments because anyway the quotes in there
1319 # would cause problems or look ugly.
1320 # WARNING: Be sure not to use single quotes in there, as some shells,
1321 # such as our DU 5.0 friend, will then `close' the trap.
1322 trap 'exit_status=$?
1323   # Save into config.log some information that might help in debugging.
1324   {
1325     echo
1326
1327     cat <<\_ASBOX
1328 ## ---------------- ##
1329 ## Cache variables. ##
1330 ## ---------------- ##
1331 _ASBOX
1332     echo
1333     # The following way of writing the cache mishandles newlines in values,
1334 {
1335   (set) 2>&1 |
1336     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337     *ac_space=\ *)
1338       sed -n \
1339         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1341       ;;
1342     *)
1343       sed -n \
1344         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1345       ;;
1346     esac;
1347 }
1348     echo
1349
1350     cat <<\_ASBOX
1351 ## ----------------- ##
1352 ## Output variables. ##
1353 ## ----------------- ##
1354 _ASBOX
1355     echo
1356     for ac_var in $ac_subst_vars
1357     do
1358       eval ac_val=$`echo $ac_var`
1359       echo "$ac_var='"'"'$ac_val'"'"'"
1360     done | sort
1361     echo
1362
1363     if test -n "$ac_subst_files"; then
1364       cat <<\_ASBOX
1365 ## ------------- ##
1366 ## Output files. ##
1367 ## ------------- ##
1368 _ASBOX
1369       echo
1370       for ac_var in $ac_subst_files
1371       do
1372         eval ac_val=$`echo $ac_var`
1373         echo "$ac_var='"'"'$ac_val'"'"'"
1374       done | sort
1375       echo
1376     fi
1377
1378     if test -s confdefs.h; then
1379       cat <<\_ASBOX
1380 ## ----------- ##
1381 ## confdefs.h. ##
1382 ## ----------- ##
1383 _ASBOX
1384       echo
1385       sed "/^$/d" confdefs.h | sort
1386       echo
1387     fi
1388     test "$ac_signal" != 0 &&
1389       echo "$as_me: caught signal $ac_signal"
1390     echo "$as_me: exit $exit_status"
1391   } >&5
1392   rm -f core *.core &&
1393   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394     exit $exit_status
1395      ' 0
1396 for ac_signal in 1 2 13 15; do
1397   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398 done
1399 ac_signal=0
1400
1401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1402 rm -rf conftest* confdefs.h
1403 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404 echo >confdefs.h
1405
1406 # Predefined preprocessor variables.
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_NAME "$PACKAGE_NAME"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_STRING "$PACKAGE_STRING"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430 _ACEOF
1431
1432
1433 # Let the site file select an alternate cache file if it wants to.
1434 # Prefer explicitly selected file to automatically selected ones.
1435 if test -z "$CONFIG_SITE"; then
1436   if test "x$prefix" != xNONE; then
1437     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438   else
1439     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440   fi
1441 fi
1442 for ac_site_file in $CONFIG_SITE; do
1443   if test -r "$ac_site_file"; then
1444     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445 echo "$as_me: loading site script $ac_site_file" >&6;}
1446     sed 's/^/| /' "$ac_site_file" >&5
1447     . "$ac_site_file"
1448   fi
1449 done
1450
1451 if test -r "$cache_file"; then
1452   # Some versions of bash will fail to source /dev/null (special
1453   # files actually), so we avoid doing that.
1454   if test -f "$cache_file"; then
1455     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456 echo "$as_me: loading cache $cache_file" >&6;}
1457     case $cache_file in
1458       [\\/]* | ?:[\\/]* ) . $cache_file;;
1459       *)                      . ./$cache_file;;
1460     esac
1461   fi
1462 else
1463   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464 echo "$as_me: creating cache $cache_file" >&6;}
1465   >$cache_file
1466 fi
1467
1468 # Check that the precious variables saved in the cache have kept the same
1469 # value.
1470 ac_cache_corrupted=false
1471 for ac_var in `(set) 2>&1 |
1472                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1473   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474   eval ac_new_set=\$ac_env_${ac_var}_set
1475   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476   eval ac_new_val="\$ac_env_${ac_var}_value"
1477   case $ac_old_set,$ac_new_set in
1478     set,)
1479       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481       ac_cache_corrupted=: ;;
1482     ,set)
1483       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485       ac_cache_corrupted=: ;;
1486     ,);;
1487     *)
1488       if test "x$ac_old_val" != "x$ac_new_val"; then
1489         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1490 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1491         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1492 echo "$as_me:   former value:  $ac_old_val" >&2;}
1493         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1494 echo "$as_me:   current value: $ac_new_val" >&2;}
1495         ac_cache_corrupted=:
1496       fi;;
1497   esac
1498   # Pass precious variables to config.status.
1499   if test "$ac_new_set" = set; then
1500     case $ac_new_val in
1501     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503     *) ac_arg=$ac_var=$ac_new_val ;;
1504     esac
1505     case " $ac_configure_args " in
1506       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1507       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508     esac
1509   fi
1510 done
1511 if $ac_cache_corrupted; then
1512   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516    { (exit 1); exit 1; }; }
1517 fi
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552           ac_config_headers="$ac_config_headers config.h"
1553
1554
1555 am__api_version="1.9"
1556 ac_aux_dir=
1557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Find a good install program.  We prefer a C program (faster),
1582 # so one script is as good as another.  But avoid the broken or
1583 # incompatible versions:
1584 # SysV /etc/install, /usr/sbin/install
1585 # SunOS /usr/etc/install
1586 # IRIX /sbin/install
1587 # AIX /bin/install
1588 # AmigaOS /C/install, which installs bootblocks on floppy discs
1589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1592 # OS/2's system install, which has a completely different semantic
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1595 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1596 if test -z "$INSTALL"; then
1597 if test "${ac_cv_path_install+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   # Account for people who put trailing slashes in PATH elements.
1606 case $as_dir/ in
1607   ./ | .// | /cC/* | \
1608   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1609   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1610   /usr/ucb/* ) ;;
1611   *)
1612     # OSF1 and SCO ODT 3.0 have their own names for install.
1613     # Don't use installbsd from OSF since it installs stuff as root
1614     # by default.
1615     for ac_prog in ginstall scoinst install; do
1616       for ac_exec_ext in '' $ac_executable_extensions; do
1617         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1618           if test $ac_prog = install &&
1619             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1620             # AIX install.  It has an incompatible calling convention.
1621             :
1622           elif test $ac_prog = install &&
1623             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624             # program-specific install script used by HP pwplus--don't use.
1625             :
1626           else
1627             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1628             break 3
1629           fi
1630         fi
1631       done
1632     done
1633     ;;
1634 esac
1635 done
1636
1637
1638 fi
1639   if test "${ac_cv_path_install+set}" = set; then
1640     INSTALL=$ac_cv_path_install
1641   else
1642     # As a last resort, use the slow shell script.  We don't cache a
1643     # path for INSTALL within a source directory, because that will
1644     # break other packages using the cache if that directory is
1645     # removed, or if the path is relative.
1646     INSTALL=$ac_install_sh
1647   fi
1648 fi
1649 echo "$as_me:$LINENO: result: $INSTALL" >&5
1650 echo "${ECHO_T}$INSTALL" >&6
1651
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1655
1656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1657
1658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659
1660 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1661 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1662 # Just in case
1663 sleep 1
1664 echo timestamp > conftest.file
1665 # Do `set' in a subshell so we don't clobber the current shell's
1666 # arguments.  Must try -L first in case configure is actually a
1667 # symlink; some systems play weird games with the mod time of symlinks
1668 # (eg FreeBSD returns the mod time of the symlink's containing
1669 # directory).
1670 if (
1671    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1672    if test "$*" = "X"; then
1673       # -L didn't work.
1674       set X `ls -t $srcdir/configure conftest.file`
1675    fi
1676    rm -f conftest.file
1677    if test "$*" != "X $srcdir/configure conftest.file" \
1678       && test "$*" != "X conftest.file $srcdir/configure"; then
1679
1680       # If neither matched, then we have a broken ls.  This can happen
1681       # if, for instance, CONFIG_SHELL is bash and it inherits a
1682       # broken ls alias from the environment.  This has actually
1683       # happened.  Such a system could not be considered "sane".
1684       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&5
1686 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1687 alias in your environment" >&2;}
1688    { (exit 1); exit 1; }; }
1689    fi
1690
1691    test "$2" = conftest.file
1692    )
1693 then
1694    # Ok.
1695    :
1696 else
1697    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1698 Check your system clock" >&5
1699 echo "$as_me: error: newly created file is older than distributed files!
1700 Check your system clock" >&2;}
1701    { (exit 1); exit 1; }; }
1702 fi
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705 test "$program_prefix" != NONE &&
1706   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1707 # Use a double $ so make ignores it.
1708 test "$program_suffix" != NONE &&
1709   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1710 # Double any \ or $.  echo might interpret backslashes.
1711 # By default was `s,x,x', remove it if useless.
1712 cat <<\_ACEOF >conftest.sed
1713 s/[\\$]/&&/g;s/;s,x,x,$//
1714 _ACEOF
1715 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1716 rm conftest.sed
1717
1718 # expand $ac_aux_dir to an absolute path
1719 am_aux_dir=`cd $ac_aux_dir && pwd`
1720
1721 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1722 # Use eval to expand $SHELL
1723 if eval "$MISSING --run true"; then
1724   am_missing_run="$MISSING --run "
1725 else
1726   am_missing_run=
1727   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1728 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1729 fi
1730
1731 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1732   # We used to keeping the `.' as first argument, in order to
1733   # allow $(mkdir_p) to be used without argument.  As in
1734   #   $(mkdir_p) $(somedir)
1735   # where $(somedir) is conditionally defined.  However this is wrong
1736   # for two reasons:
1737   #  1. if the package is installed by a user who cannot write `.'
1738   #     make install will fail,
1739   #  2. the above comment should most certainly read
1740   #     $(mkdir_p) $(DESTDIR)$(somedir)
1741   #     so it does not work when $(somedir) is undefined and
1742   #     $(DESTDIR) is not.
1743   #  To support the latter case, we have to write
1744   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1745   #  so the `.' trick is pointless.
1746   mkdir_p='mkdir -p --'
1747 else
1748   # On NextStep and OpenStep, the `mkdir' command does not
1749   # recognize any option.  It will interpret all options as
1750   # directories to create, and then abort because `.' already
1751   # exists.
1752   for d in ./-p ./--version;
1753   do
1754     test -d $d && rmdir $d
1755   done
1756   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1757   if test -f "$ac_aux_dir/mkinstalldirs"; then
1758     mkdir_p='$(mkinstalldirs)'
1759   else
1760     mkdir_p='$(install_sh) -d'
1761   fi
1762 fi
1763
1764 for ac_prog in gawk mawk nawk awk
1765 do
1766   # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_AWK+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   if test -n "$AWK"; then
1774   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779   IFS=$as_save_IFS
1780   test -z "$as_dir" && as_dir=.
1781   for ac_exec_ext in '' $ac_executable_extensions; do
1782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783     ac_cv_prog_AWK="$ac_prog"
1784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785     break 2
1786   fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 AWK=$ac_cv_prog_AWK
1793 if test -n "$AWK"; then
1794   echo "$as_me:$LINENO: result: $AWK" >&5
1795 echo "${ECHO_T}$AWK" >&6
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801   test -n "$AWK" && break
1802 done
1803
1804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   cat >conftest.make <<\_ACEOF
1811 all:
1812         @echo 'ac_maketemp="$(MAKE)"'
1813 _ACEOF
1814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1816 if test -n "$ac_maketemp"; then
1817   eval ac_cv_prog_make_${ac_make}_set=yes
1818 else
1819   eval ac_cv_prog_make_${ac_make}_set=no
1820 fi
1821 rm -f conftest.make
1822 fi
1823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1824   echo "$as_me:$LINENO: result: yes" >&5
1825 echo "${ECHO_T}yes" >&6
1826   SET_MAKE=
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830   SET_MAKE="MAKE=${MAKE-make}"
1831 fi
1832
1833 rm -rf .tst 2>/dev/null
1834 mkdir .tst 2>/dev/null
1835 if test -d .tst; then
1836   am__leading_dot=.
1837 else
1838   am__leading_dot=_
1839 fi
1840 rmdir .tst 2>/dev/null
1841
1842 # test to see if srcdir already configured
1843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1844    test -f $srcdir/config.status; then
1845   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1847    { (exit 1); exit 1; }; }
1848 fi
1849
1850 # test whether we have cygpath
1851 if test -z "$CYGPATH_W"; then
1852   if (cygpath --version) >/dev/null 2>/dev/null; then
1853     CYGPATH_W='cygpath -w'
1854   else
1855     CYGPATH_W=echo
1856   fi
1857 fi
1858
1859
1860 # Define the identity of the package.
1861  PACKAGE='util-vserver'
1862  VERSION='0.30.213'
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE "$PACKAGE"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define VERSION "$VERSION"
1872 _ACEOF
1873
1874 # Some tools Automake needs.
1875
1876 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1877
1878
1879 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1880
1881
1882 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1883
1884
1885 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1886
1887
1888 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1889
1890 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1891
1892 # Installed binaries are usually stripped using `strip' when the user
1893 # run `make install-strip'.  However `strip' might not be the right
1894 # tool to use in cross-compilation environments, therefore Automake
1895 # will honor the `STRIP' environment variable to overrule this program.
1896 if test "$cross_compiling" != no; then
1897   if test -n "$ac_tool_prefix"; then
1898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1899 set dummy ${ac_tool_prefix}strip; ac_word=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_STRIP+set}" = set; then
1903   echo $ECHO_N "(cached) $ECHO_C" >&6
1904 else
1905   if test -n "$STRIP"; then
1906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1907 else
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1910 do
1911   IFS=$as_save_IFS
1912   test -z "$as_dir" && as_dir=.
1913   for ac_exec_ext in '' $ac_executable_extensions; do
1914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917     break 2
1918   fi
1919 done
1920 done
1921
1922 fi
1923 fi
1924 STRIP=$ac_cv_prog_STRIP
1925 if test -n "$STRIP"; then
1926   echo "$as_me:$LINENO: result: $STRIP" >&5
1927 echo "${ECHO_T}$STRIP" >&6
1928 else
1929   echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1931 fi
1932
1933 fi
1934 if test -z "$ac_cv_prog_STRIP"; then
1935   ac_ct_STRIP=$STRIP
1936   # Extract the first word of "strip", so it can be a program name with args.
1937 set dummy strip; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$ac_ct_STRIP"; then
1944   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_ac_ct_STRIP="strip"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1961 fi
1962 fi
1963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1964 if test -n "$ac_ct_STRIP"; then
1965   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1966 echo "${ECHO_T}$ac_ct_STRIP" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972   STRIP=$ac_ct_STRIP
1973 else
1974   STRIP="$ac_cv_prog_STRIP"
1975 fi
1976
1977 fi
1978 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1979
1980 # We need awk for the "check" target.  The system "awk" is bad on
1981 # some platforms.
1982 # Always define AMTAR for backward compatibility.
1983
1984 AMTAR=${AMTAR-"${am_missing_run}tar"}
1985
1986 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1987
1988
1989
1990
1991
1992 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1993 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1994     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996   enableval="$enable_maintainer_mode"
1997   USE_MAINTAINER_MODE=$enableval
1998 else
1999   USE_MAINTAINER_MODE=no
2000 fi;
2001   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2002 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2003
2004
2005 if test $USE_MAINTAINER_MODE = yes; then
2006   MAINTAINER_MODE_TRUE=
2007   MAINTAINER_MODE_FALSE='#'
2008 else
2009   MAINTAINER_MODE_TRUE='#'
2010   MAINTAINER_MODE_FALSE=
2011 fi
2012
2013   MAINT=$MAINTAINER_MODE_TRUE
2014
2015
2016
2017 # Make sure we can run config.sub.
2018 $ac_config_sub sun4 >/dev/null 2>&1 ||
2019   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2021    { (exit 1); exit 1; }; }
2022
2023 echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2025 if test "${ac_cv_build+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   ac_cv_build_alias=$build_alias
2029 test -z "$ac_cv_build_alias" &&
2030   ac_cv_build_alias=`$ac_config_guess`
2031 test -z "$ac_cv_build_alias" &&
2032   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034    { (exit 1); exit 1; }; }
2035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2036   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2038    { (exit 1); exit 1; }; }
2039
2040 fi
2041 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6
2043 build=$ac_cv_build
2044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2047
2048
2049 echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2051 if test "${ac_cv_host+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   ac_cv_host_alias=$host_alias
2055 test -z "$ac_cv_host_alias" &&
2056   ac_cv_host_alias=$ac_cv_build_alias
2057 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2058   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2059 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6
2065 host=$ac_cv_host
2066 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2067 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2068 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2069
2070
2071
2072 GPG_KEY="0xFFD316AC53ACA43A!"
2073
2074
2075 # Checks for programs.
2076 ac_ext=cc
2077 ac_cpp='$CXXCPP $CPPFLAGS'
2078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2083   do
2084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CXX+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$CXX"; then
2092   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 CXX=$ac_cv_prog_CXX
2111 if test -n "$CXX"; then
2112   echo "$as_me:$LINENO: result: $CXX" >&5
2113 echo "${ECHO_T}$CXX" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119     test -n "$CXX" && break
2120   done
2121 fi
2122 if test -z "$CXX"; then
2123   ac_ct_CXX=$CXX
2124   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2125 do
2126   # Extract the first word of "$ac_prog", so it can be a program name with args.
2127 set dummy $ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$ac_ct_CXX"; then
2134   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_ac_ct_CXX="$ac_prog"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2153 if test -n "$ac_ct_CXX"; then
2154   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2155 echo "${ECHO_T}$ac_ct_CXX" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161   test -n "$ac_ct_CXX" && break
2162 done
2163 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2164
2165   CXX=$ac_ct_CXX
2166 fi
2167
2168
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171      "checking for C++ compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174   (eval $ac_compiler --version </dev/null >&5) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179   (eval $ac_compiler -v </dev/null >&5) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184   (eval $ac_compiler -V </dev/null >&5) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h.  */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h.  */
2195
2196 int
2197 main ()
2198 {
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2208 # of exeext.
2209 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2210 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213   (eval $ac_link_default) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Find the output, starting from the most likely.  This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2219 # resort.
2220
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2223 ac_cv_exeext=
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2226 do
2227   test -f "$ac_file" || continue
2228   case $ac_file in
2229     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2230         ;;
2231     conftest.$ac_ext )
2232         # This is the source file.
2233         ;;
2234     [ab].out )
2235         # We found the default executable, but exeext='' is most
2236         # certainly right.
2237         break;;
2238     *.* )
2239         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240         # FIXME: I believe we export ac_cv_exeext for Libtool,
2241         # but it would be cool to find out if it's true.  Does anybody
2242         # maintain Libtool? --akim.
2243         export ac_cv_exeext
2244         break;;
2245     * )
2246         break;;
2247   esac
2248 done
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C++ compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2263
2264 # Check the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2267 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277     cross_compiling=no
2278   else
2279     if test "$cross_compiling" = maybe; then
2280         cross_compiling=yes
2281     else
2282         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C++ compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288    { (exit 1); exit 1; }; }
2289     fi
2290   fi
2291 fi
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2294
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run.  If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2303
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307   (eval $ac_link) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2314 # `rm'.
2315 for ac_file in conftest.exe conftest conftest.*; do
2316   test -f "$ac_file" || continue
2317   case $ac_file in
2318     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2320           export ac_cv_exeext
2321           break;;
2322     * ) break;;
2323   esac
2324 done
2325 else
2326   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330    { (exit 1); exit 1; }; }
2331 fi
2332
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2336
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2339 ac_exeext=$EXEEXT
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2367   case $ac_file in
2368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370        break;;
2371   esac
2372 done
2373 else
2374   echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381    { (exit 1); exit 1; }; }
2382 fi
2383
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2385 fi
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2389 ac_objext=$OBJEXT
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405 #ifndef __GNUC__
2406        choke me
2407 #endif
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_cxx_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   ac_compiler_gnu=yes
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 ac_compiler_gnu=no
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2444
2445 fi
2446 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2448 GXX=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CXXFLAGS=${CXXFLAGS+set}
2450 ac_save_CXXFLAGS=$CXXFLAGS
2451 CXXFLAGS="-g"
2452 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2453 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cxx_g+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463
2464 int
2465 main ()
2466 {
2467
2468   ;
2469   return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474   (eval $ac_compile) 2>conftest.er1
2475   ac_status=$?
2476   grep -v '^ *+' conftest.er1 >conftest.err
2477   rm -f conftest.er1
2478   cat conftest.err >&5
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); } &&
2481          { ac_try='test -z "$ac_cxx_werror_flag"
2482                          || test ! -s conftest.err'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; } &&
2488          { ac_try='test -s conftest.$ac_objext'
2489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490   (eval $ac_try) 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; }; then
2494   ac_cv_prog_cxx_g=yes
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_cv_prog_cxx_g=no
2500 fi
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502 fi
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2505 if test "$ac_test_CXXFLAGS" = set; then
2506   CXXFLAGS=$ac_save_CXXFLAGS
2507 elif test $ac_cv_prog_cxx_g = yes; then
2508   if test "$GXX" = yes; then
2509     CXXFLAGS="-g -O2"
2510   else
2511     CXXFLAGS="-g"
2512   fi
2513 else
2514   if test "$GXX" = yes; then
2515     CXXFLAGS="-O2"
2516   else
2517     CXXFLAGS=
2518   fi
2519 fi
2520 for ac_declaration in \
2521    '' \
2522    'extern "C" void std::exit (int) throw (); using std::exit;' \
2523    'extern "C" void std::exit (int); using std::exit;' \
2524    'extern "C" void exit (int) throw ();' \
2525    'extern "C" void exit (int);' \
2526    'void exit (int);'
2527 do
2528   cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h.  */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h.  */
2534 $ac_declaration
2535 #include <stdlib.h>
2536 int
2537 main ()
2538 {
2539 exit (42);
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_cxx_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   :
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 continue
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574   cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 $ac_declaration
2581 int
2582 main ()
2583 {
2584 exit (42);
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591   (eval $ac_compile) 2>conftest.er1
2592   ac_status=$?
2593   grep -v '^ *+' conftest.er1 >conftest.err
2594   rm -f conftest.er1
2595   cat conftest.err >&5
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); } &&
2598          { ac_try='test -z "$ac_cxx_werror_flag"
2599                          || test ! -s conftest.err'
2600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601   (eval $ac_try) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }; } &&
2605          { ac_try='test -s conftest.$ac_objext'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   break
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616 fi
2617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621   echo '#ifdef __cplusplus' >>confdefs.h
2622   echo $ac_declaration      >>confdefs.h
2623   echo '#endif'             >>confdefs.h
2624 fi
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 DEPDIR="${am__leading_dot}deps"
2632
2633           ac_config_commands="$ac_config_commands depfiles"
2634
2635
2636 am_make=${MAKE-make}
2637 cat > confinc << 'END'
2638 am__doit:
2639         @echo done
2640 .PHONY: am__doit
2641 END
2642 # If we don't find an include directive, just comment out the code.
2643 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2644 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2645 am__include="#"
2646 am__quote=
2647 _am_result=none
2648 # First try GNU make style include.
2649 echo "include confinc" > confmf
2650 # We grep out `Entering directory' and `Leaving directory'
2651 # messages which can occur if `w' ends up in MAKEFLAGS.
2652 # In particular we don't look at `^make:' because GNU make might
2653 # be invoked under some other name (usually "gmake"), in which
2654 # case it prints its new name instead of `make'.
2655 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2656    am__include=include
2657    am__quote=
2658    _am_result=GNU
2659 fi
2660 # Now try BSD make style include.
2661 if test "$am__include" = "#"; then
2662    echo '.include "confinc"' > confmf
2663    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2664       am__include=.include
2665       am__quote="\""
2666       _am_result=BSD
2667    fi
2668 fi
2669
2670
2671 echo "$as_me:$LINENO: result: $_am_result" >&5
2672 echo "${ECHO_T}$_am_result" >&6
2673 rm -f confinc confmf
2674
2675 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2676 if test "${enable_dependency_tracking+set}" = set; then
2677   enableval="$enable_dependency_tracking"
2678
2679 fi;
2680 if test "x$enable_dependency_tracking" != xno; then
2681   am_depcomp="$ac_aux_dir/depcomp"
2682   AMDEPBACKSLASH='\'
2683 fi
2684
2685
2686 if test "x$enable_dependency_tracking" != xno; then
2687   AMDEP_TRUE=
2688   AMDEP_FALSE='#'
2689 else
2690   AMDEP_TRUE='#'
2691   AMDEP_FALSE=
2692 fi
2693
2694
2695
2696
2697 depcc="$CXX"  am_compiler_list=
2698
2699 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2700 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2701 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2705   # We make a subdir and do the tests there.  Otherwise we can end up
2706   # making bogus files that we don't know about and never remove.  For
2707   # instance it was reported that on HP-UX the gcc test will end up
2708   # making a dummy file named `D' -- because `-MD' means `put the output
2709   # in D'.
2710   mkdir conftest.dir
2711   # Copy depcomp to subdir because otherwise we won't find it if we're
2712   # using a relative directory.
2713   cp "$am_depcomp" conftest.dir
2714   cd conftest.dir
2715   # We will build objects and dependencies in a subdirectory because
2716   # it helps to detect inapplicable dependency modes.  For instance
2717   # both Tru64's cc and ICC support -MD to output dependencies as a
2718   # side effect of compilation, but ICC will put the dependencies in
2719   # the current directory while Tru64 will put them in the object
2720   # directory.
2721   mkdir sub
2722
2723   am_cv_CXX_dependencies_compiler_type=none
2724   if test "$am_compiler_list" = ""; then
2725      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2726   fi
2727   for depmode in $am_compiler_list; do
2728     # Setup a source with many dependencies, because some compilers
2729     # like to wrap large dependency lists on column 80 (with \), and
2730     # we should not choose a depcomp mode which is confused by this.
2731     #
2732     # We need to recreate these files for each test, as the compiler may
2733     # overwrite some of them when testing with obscure command lines.
2734     # This happens at least with the AIX C compiler.
2735     : > sub/conftest.c
2736     for i in 1 2 3 4 5 6; do
2737       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2738       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2739       # Solaris 8's {/usr,}/bin/sh.
2740       touch sub/conftst$i.h
2741     done
2742     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2743
2744     case $depmode in
2745     nosideeffect)
2746       # after this tag, mechanisms are not by side-effect, so they'll
2747       # only be used when explicitly requested
2748       if test "x$enable_dependency_tracking" = xyes; then
2749         continue
2750       else
2751         break
2752       fi
2753       ;;
2754     none) break ;;
2755     esac
2756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2757     # mode.  It turns out that the SunPro C++ compiler does not properly
2758     # handle `-M -o', and we need to detect this.
2759     if depmode=$depmode \
2760        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2761        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2762        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2763          >/dev/null 2>conftest.err &&
2764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2765        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2767       # icc doesn't choke on unknown options, it will just issue warnings
2768       # or remarks (even with -Werror).  So we grep stderr for any message
2769       # that says an option was ignored or not supported.
2770       # When given -MP, icc 7.0 and 7.1 complain thusly:
2771       #   icc: Command line warning: ignoring option '-M'; no argument required
2772       # The diagnosis changed in icc 8.0:
2773       #   icc: Command line remark: option '-MP' not supported
2774       if (grep 'ignoring option' conftest.err ||
2775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2776         am_cv_CXX_dependencies_compiler_type=$depmode
2777         break
2778       fi
2779     fi
2780   done
2781
2782   cd ..
2783   rm -rf conftest.dir
2784 else
2785   am_cv_CXX_dependencies_compiler_type=none
2786 fi
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2790 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2792
2793
2794
2795 if
2796   test "x$enable_dependency_tracking" != xno \
2797   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2798   am__fastdepCXX_TRUE=
2799   am__fastdepCXX_FALSE='#'
2800 else
2801   am__fastdepCXX_TRUE='#'
2802   am__fastdepCXX_FALSE=
2803 fi
2804
2805
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817   echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819   if test -n "$CC"; then
2820   ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827   for ac_exec_ext in '' $ac_executable_extensions; do
2828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831     break 2
2832   fi
2833 done
2834 done
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   echo "$as_me:$LINENO: result: $CC" >&5
2841 echo "${ECHO_T}$CC" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847 fi
2848 if test -z "$ac_cv_prog_CC"; then
2849   ac_ct_CC=$CC
2850   # Extract the first word of "gcc", so it can be a program name with args.
2851 set dummy gcc; ac_word=$2
2852 echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -n "$ac_ct_CC"; then
2858   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863   IFS=$as_save_IFS
2864   test -z "$as_dir" && as_dir=.
2865   for ac_exec_ext in '' $ac_executable_extensions; do
2866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867     ac_cv_prog_ac_ct_CC="gcc"
2868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869     break 2
2870   fi
2871 done
2872 done
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884
2885   CC=$ac_ct_CC
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891   if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920   echo "$as_me:$LINENO: result: $CC" >&5
2921 echo "${ECHO_T}$CC" >&6
2922 else
2923   echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6
2925 fi
2926
2927 fi
2928 if test -z "$ac_cv_prog_CC"; then
2929   ac_ct_CC=$CC
2930   # Extract the first word of "cc", so it can be a program name with args.
2931 set dummy cc; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   if test -n "$ac_ct_CC"; then
2938   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943   IFS=$as_save_IFS
2944   test -z "$as_dir" && as_dir=.
2945   for ac_exec_ext in '' $ac_executable_extensions; do
2946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947     ac_cv_prog_ac_ct_CC="cc"
2948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949     break 2
2950   fi
2951 done
2952 done
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959 echo "${ECHO_T}$ac_ct_CC" >&6
2960 else
2961   echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 fi
2964
2965   CC=$ac_ct_CC
2966 else
2967   CC="$ac_cv_prog_CC"
2968 fi
2969
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988   for ac_exec_ext in '' $ac_executable_extensions; do
2989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000
3001 if test $ac_prog_rejected = yes; then
3002   # We found a bogon in the path, so make sure we never use it.
3003   set dummy $ac_cv_prog_CC
3004   shift
3005   if test $# != 0; then
3006     # We chose a different compiler from the bogus one.
3007     # However, it has the same basename, so the bogon will be chosen
3008     # first if we set CC to just the basename; use the full file name.
3009     shift
3010     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3011   fi
3012 fi
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017   echo "$as_me:$LINENO: result: $CC" >&5
3018 echo "${ECHO_T}$CC" >&6
3019 else
3020   echo "$as_me:$LINENO: result: no" >&5
3021 echo "${ECHO_T}no" >&6
3022 fi
3023
3024 fi
3025 if test -z "$CC"; then
3026   if test -n "$ac_tool_prefix"; then
3027   for ac_prog in cl
3028   do
3029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044   for ac_exec_ext in '' $ac_executable_extensions; do
3045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051 done
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6
3059 else
3060   echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6
3062 fi
3063
3064     test -n "$CC" && break
3065   done
3066 fi
3067 if test -z "$CC"; then
3068   ac_ct_CC=$CC
3069   for ac_prog in cl
3070 do
3071   # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   if test -n "$ac_ct_CC"; then
3079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088     ac_cv_prog_ac_ct_CC="$ac_prog"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 echo "${ECHO_T}$ac_ct_CC" >&6
3101 else
3102   echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104 fi
3105
3106   test -n "$ac_ct_CC" && break
3107 done
3108
3109   CC=$ac_ct_CC
3110 fi
3111
3112 fi
3113
3114
3115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: no acceptable C compiler found in \$PATH
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120
3121 # Provide some information about the compiler.
3122 echo "$as_me:$LINENO:" \
3123      "checking for C compiler version" >&5
3124 ac_compiler=`set X $ac_compile; echo $2`
3125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126   (eval $ac_compiler --version </dev/null >&5) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }
3130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131   (eval $ac_compiler -v </dev/null >&5) 2>&5
3132   ac_status=$?
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); }
3135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136   (eval $ac_compiler -V </dev/null >&5) 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }
3140
3141 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3142 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3143 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h.  */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h.  */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157        choke me
3158 #endif
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166   (eval $ac_compile) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } &&
3173          { ac_try='test -z "$ac_c_werror_flag"
3174                          || test ! -s conftest.err'
3175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176   (eval $ac_try) 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; } &&
3180          { ac_try='test -s conftest.$ac_objext'
3181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182   (eval $ac_try) 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }; }; then
3186   ac_compiler_gnu=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ac_compiler_gnu=no
3192 fi
3193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3195
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 CFLAGS="-g"
3203 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3204 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3205 if test "${ac_cv_prog_cc_g+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218
3219   ;
3220   return 0;
3221 }
3222 _ACEOF
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225   (eval $ac_compile) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -z "$ac_c_werror_flag"
3233                          || test ! -s conftest.err'
3234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235   (eval $ac_try) 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }; } &&
3239          { ac_try='test -s conftest.$ac_objext'
3240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241   (eval $ac_try) 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; }; then
3245   ac_cv_prog_cc_g=yes
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_cv_prog_cc_g=no
3251 fi
3252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253 fi
3254 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3256 if test "$ac_test_CFLAGS" = set; then
3257   CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259   if test "$GCC" = yes; then
3260     CFLAGS="-g -O2"
3261   else
3262     CFLAGS="-g"
3263   fi
3264 else
3265   if test "$GCC" = yes; then
3266     CFLAGS="-O2"
3267   else
3268     CFLAGS=
3269   fi
3270 fi
3271 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3272 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3273 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_cv_prog_cc_stdc=no
3277 ac_save_CC=$CC
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <stdarg.h>
3285 #include <stdio.h>
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3292      char **p;
3293      int i;
3294 {
3295   return p[i];
3296 }
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3298 {
3299   char *s;
3300   va_list v;
3301   va_start (v,p);
3302   s = g (p, va_arg (v,int));
3303   va_end (v);
3304   return s;
3305 }
3306
3307 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3308    function prototypes and stuff, but not '\xHH' hex character constants.
3309    These don't provoke an error unfortunately, instead are silently treated
3310    as 'x'.  The following induces an error, until -std1 is added to get
3311    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3312    array size at least.  It's necessary to write '\x00'==0 to get something
3313    that's true only with -std1.  */
3314 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
3316 int test (int i, double x);
3317 struct s1 {int (*f) (int a);};
3318 struct s2 {int (*f) (double a);};
3319 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3320 int argc;
3321 char **argv;
3322 int
3323 main ()
3324 {
3325 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3326   ;
3327   return 0;
3328 }
3329 _ACEOF
3330 # Don't try gcc -ansi; that turns off useful extensions and
3331 # breaks some systems' header files.
3332 # AIX                   -qlanglvl=ansi
3333 # Ultrix and OSF/1      -std1
3334 # HP-UX 10.20 and later -Ae
3335 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3336 # SVR4                  -Xc -D__EXTENSIONS__
3337 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3338 do
3339   CC="$ac_save_CC $ac_arg"
3340   rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } &&
3349          { ac_try='test -z "$ac_c_werror_flag"
3350                          || test ! -s conftest.err'
3351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; } &&
3356          { ac_try='test -s conftest.$ac_objext'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; }; then
3362   ac_cv_prog_cc_stdc=$ac_arg
3363 break
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 fi
3369 rm -f conftest.err conftest.$ac_objext
3370 done
3371 rm -f conftest.$ac_ext conftest.$ac_objext
3372 CC=$ac_save_CC
3373
3374 fi
3375
3376 case "x$ac_cv_prog_cc_stdc" in
3377   x|xno)
3378     echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6 ;;
3380   *)
3381     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3382 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3383     CC="$CC $ac_cv_prog_cc_stdc" ;;
3384 esac
3385
3386 # Some people use a C++ compiler to compile C.  Since we use `exit',
3387 # in C++ we need to declare it.  In case someone uses the same compiler
3388 # for both compiling C and C++ we need to have the C++ compiler decide
3389 # the declaration of exit, since it's the most demanding environment.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #ifndef __cplusplus
3392   choke me
3393 #endif
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397   (eval $ac_compile) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"
3405                          || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   for ac_declaration in \
3418    '' \
3419    'extern "C" void std::exit (int) throw (); using std::exit;' \
3420    'extern "C" void std::exit (int); using std::exit;' \
3421    'extern "C" void exit (int) throw ();' \
3422    'extern "C" void exit (int);' \
3423    'void exit (int);'
3424 do
3425   cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h.  */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h.  */
3431 $ac_declaration
3432 #include <stdlib.h>
3433 int
3434 main ()
3435 {
3436 exit (42);
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443   (eval $ac_compile) 2>conftest.er1
3444   ac_status=$?
3445   grep -v '^ *+' conftest.er1 >conftest.err
3446   rm -f conftest.er1
3447   cat conftest.err >&5
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); } &&
3450          { ac_try='test -z "$ac_c_werror_flag"
3451                          || test ! -s conftest.err'
3452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453   (eval $ac_try) 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); }; } &&
3457          { ac_try='test -s conftest.$ac_objext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   :
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 continue
3469 fi
3470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 $ac_declaration
3478 int
3479 main ()
3480 {
3481 exit (42);
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488   (eval $ac_compile) 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } &&
3495          { ac_try='test -z "$ac_c_werror_flag"
3496                          || test ! -s conftest.err'
3497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498   (eval $ac_try) 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }; } &&
3502          { ac_try='test -s conftest.$ac_objext'
3503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504   (eval $ac_try) 2>&5
3505   ac_status=$?
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); }; }; then
3508   break
3509 else
3510   echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 fi
3514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515 done
3516 rm -f conftest*
3517 if test -n "$ac_declaration"; then
3518   echo '#ifdef __cplusplus' >>confdefs.h
3519   echo $ac_declaration      >>confdefs.h
3520   echo '#endif'             >>confdefs.h
3521 fi
3522
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 fi
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535 depcc="$CC"   am_compiler_list=
3536
3537 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3538 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3539 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3543   # We make a subdir and do the tests there.  Otherwise we can end up
3544   # making bogus files that we don't know about and never remove.  For
3545   # instance it was reported that on HP-UX the gcc test will end up
3546   # making a dummy file named `D' -- because `-MD' means `put the output
3547   # in D'.
3548   mkdir conftest.dir
3549   # Copy depcomp to subdir because otherwise we won't find it if we're
3550   # using a relative directory.
3551   cp "$am_depcomp" conftest.dir
3552   cd conftest.dir
3553   # We will build objects and dependencies in a subdirectory because
3554   # it helps to detect inapplicable dependency modes.  For instance
3555   # both Tru64's cc and ICC support -MD to output dependencies as a
3556   # side effect of compilation, but ICC will put the dependencies in
3557   # the current directory while Tru64 will put them in the object
3558   # directory.
3559   mkdir sub
3560
3561   am_cv_CC_dependencies_compiler_type=none
3562   if test "$am_compiler_list" = ""; then
3563      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3564   fi
3565   for depmode in $am_compiler_list; do
3566     # Setup a source with many dependencies, because some compilers
3567     # like to wrap large dependency lists on column 80 (with \), and
3568     # we should not choose a depcomp mode which is confused by this.
3569     #
3570     # We need to recreate these files for each test, as the compiler may
3571     # overwrite some of them when testing with obscure command lines.
3572     # This happens at least with the AIX C compiler.
3573     : > sub/conftest.c
3574     for i in 1 2 3 4 5 6; do
3575       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3577       # Solaris 8's {/usr,}/bin/sh.
3578       touch sub/conftst$i.h
3579     done
3580     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3581
3582     case $depmode in
3583     nosideeffect)
3584       # after this tag, mechanisms are not by side-effect, so they'll
3585       # only be used when explicitly requested
3586       if test "x$enable_dependency_tracking" = xyes; then
3587         continue
3588       else
3589         break
3590       fi
3591       ;;
3592     none) break ;;
3593     esac
3594     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3595     # mode.  It turns out that the SunPro C++ compiler does not properly
3596     # handle `-M -o', and we need to detect this.
3597     if depmode=$depmode \
3598        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3599        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3600        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3601          >/dev/null 2>conftest.err &&
3602        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3603        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3604        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3605       # icc doesn't choke on unknown options, it will just issue warnings
3606       # or remarks (even with -Werror).  So we grep stderr for any message
3607       # that says an option was ignored or not supported.
3608       # When given -MP, icc 7.0 and 7.1 complain thusly:
3609       #   icc: Command line warning: ignoring option '-M'; no argument required
3610       # The diagnosis changed in icc 8.0:
3611       #   icc: Command line remark: option '-MP' not supported
3612       if (grep 'ignoring option' conftest.err ||
3613           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3614         am_cv_CC_dependencies_compiler_type=$depmode
3615         break
3616       fi
3617     fi
3618   done
3619
3620   cd ..
3621   rm -rf conftest.dir
3622 else
3623   am_cv_CC_dependencies_compiler_type=none
3624 fi
3625
3626 fi
3627 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3628 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3629 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3630
3631
3632
3633 if
3634   test "x$enable_dependency_tracking" != xno \
3635   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636   am__fastdepCC_TRUE=
3637   am__fastdepCC_FALSE='#'
3638 else
3639   am__fastdepCC_TRUE='#'
3640   am__fastdepCC_FALSE=
3641 fi
3642
3643
3644 # Find a good install program.  We prefer a C program (faster),
3645 # so one script is as good as another.  But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3650 # AIX /bin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3658 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3659 if test -z "$INSTALL"; then
3660 if test "${ac_cv_path_install+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668   # Account for people who put trailing slashes in PATH elements.
3669 case $as_dir/ in
3670   ./ | .// | /cC/* | \
3671   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3672   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3673   /usr/ucb/* ) ;;
3674   *)
3675     # OSF1 and SCO ODT 3.0 have their own names for install.
3676     # Don't use installbsd from OSF since it installs stuff as root
3677     # by default.
3678     for ac_prog in ginstall scoinst install; do
3679       for ac_exec_ext in '' $ac_executable_extensions; do
3680         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3681           if test $ac_prog = install &&
3682             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683             # AIX install.  It has an incompatible calling convention.
3684             :
3685           elif test $ac_prog = install &&
3686             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687             # program-specific install script used by HP pwplus--don't use.
3688             :
3689           else
3690             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691             break 3
3692           fi
3693         fi
3694       done
3695     done
3696     ;;
3697 esac
3698 done
3699
3700
3701 fi
3702   if test "${ac_cv_path_install+set}" = set; then
3703     INSTALL=$ac_cv_path_install
3704   else
3705     # As a last resort, use the slow shell script.  We don't cache a
3706     # path for INSTALL within a source directory, because that will
3707     # break other packages using the cache if that directory is
3708     # removed, or if the path is relative.
3709     INSTALL=$ac_install_sh
3710   fi
3711 fi
3712 echo "$as_me:$LINENO: result: $INSTALL" >&5
3713 echo "${ECHO_T}$INSTALL" >&6
3714
3715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3716 # It thinks the first close brace ends the variable substitution.
3717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3718
3719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3720
3721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3722
3723 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3725 LN_S=$as_ln_s
3726 if test "$LN_S" = "ln -s"; then
3727   echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731 echo "${ECHO_T}no, using $LN_S" >&6
3732 fi
3733
3734 if test "x$CC" != xcc; then
3735   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3736 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3737 else
3738   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3739 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3740 fi
3741 set dummy $CC; ac_cc=`echo $2 |
3742                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3743 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h.  */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h.  */
3752
3753 int
3754 main ()
3755 {
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 # Make sure it works both with $CC and with simple cc.
3762 # We do the test twice because some compilers refuse to overwrite an
3763 # existing .o file with -o, though they will create one.
3764 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3765 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); };
3775 then
3776   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3777   if test "x$CC" != xcc; then
3778     # Test first that cc exists at all.
3779     if { ac_try='cc -c conftest.$ac_ext >&5'
3780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781   (eval $ac_try) 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); }; }; then
3785       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3786       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787   (eval $ac_try) 2>&5
3788   ac_status=$?
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792   (eval $ac_try) 2>&5
3793   ac_status=$?
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); };
3796       then
3797         # cc works too.
3798         :
3799       else
3800         # cc exists but doesn't like -o.
3801         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3802       fi
3803     fi
3804   fi
3805 else
3806   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3807 fi
3808 rm -f conftest*
3809
3810 fi
3811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3812   echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6
3814 else
3815   echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817
3818 cat >>confdefs.h <<\_ACEOF
3819 #define NO_MINUS_C_MINUS_O 1
3820 _ACEOF
3821
3822 fi
3823
3824 # FIXME: we rely on the cache variable name because
3825 # there is no other way.
3826 set dummy $CC
3827 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3829    # Losing compiler, so override with the script.
3830    # FIXME: It is wrong to rewrite CC.
3831    # But if we don't then we get into trouble of one sort or another.
3832    # A longer-term fix would be to have automake use am__CC in this case,
3833    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3834    CC="$am_aux_dir/compile $CC"
3835 fi
3836
3837
3838
3839
3840
3841         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
3842 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
3843 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846
3847                 ac_ext=cc
3848 ac_cpp='$CXXCPP $CPPFLAGS'
3849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3852
3853                 cat >conftest.$ac_ext <<_ACEOF
3854
3855                     #include <ostream>
3856
3857 _ACEOF
3858 rm -f conftest.$ac_objext
3859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3860   (eval $ac_compile) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } &&
3867          { ac_try='test -z "$ac_cxx_werror_flag"
3868                          || test ! -s conftest.err'
3869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870   (eval $ac_try) 2>&5
3871   ac_status=$?
3872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873   (exit $ac_status); }; } &&
3874          { ac_try='test -s conftest.$ac_objext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ensc_cv_cxx_cxxcompiler=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 ensc_cv_cxx_cxxcompiler=no
3886 fi
3887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888                 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894
3895 fi
3896 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
3897 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
3898
3899
3900
3901 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
3902   ENSC_HAVE_CXX_COMPILER_TRUE=
3903   ENSC_HAVE_CXX_COMPILER_FALSE='#'
3904 else
3905   ENSC_HAVE_CXX_COMPILER_TRUE='#'
3906   ENSC_HAVE_CXX_COMPILER_FALSE=
3907 fi
3908
3909
3910         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
3911                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
3912 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
3913         fi
3914
3915
3916
3917
3918
3919         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
3920 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
3921 if test "${ensc_cv_c99_c99compiler+set}" = set; then
3922   echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924
3925                 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931                 cat >conftest.$ac_ext <<_ACEOF
3932
3933 int main(int argc, char *argv) {
3934   struct { int x; }   a = { .x = argc };
3935   if (0) return 0;
3936   int b;
3937 }
3938
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942   (eval $ac_compile) 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } &&
3949          { ac_try='test -z "$ac_c_werror_flag"
3950                          || test ! -s conftest.err'
3951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952   (eval $ac_try) 2>&5
3953   ac_status=$?
3954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955   (exit $ac_status); }; } &&
3956          { ac_try='test -s conftest.$ac_objext'
3957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958   (eval $ac_try) 2>&5
3959   ac_status=$?
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); }; }; then
3962   ensc_cv_c99_c99compiler=yes
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 ensc_cv_c99_c99compiler=no
3968 fi
3969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3970                 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975
3976
3977 fi
3978 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
3979 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
3980
3981
3982
3983 if test x"$ensc_cv_c99_c99compiler" = xyes; then
3984   ENSC_HAVE_C99_COMPILER_TRUE=
3985   ENSC_HAVE_C99_COMPILER_FALSE='#'
3986 else
3987   ENSC_HAVE_C99_COMPILER_TRUE='#'
3988   ENSC_HAVE_C99_COMPILER_FALSE=
3989 fi
3990
3991
3992         if test x"$ensc_cv_c99_c99compiler" = xno; then
3993                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
3994 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
3995         fi
3996
3997
3998
3999         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4000
4001
4002         ENSC_PATHPROG_SED=
4003
4004
4005
4006
4007
4008
4009
4010         if test -z ""; then
4011                 rq=true
4012         else
4013                 rq=false
4014         fi
4015
4016         if $rq; then
4017                 ensc_dflt=
4018         else
4019                 ensc_dflt=""
4020         fi
4021
4022         for ac_prog in awk
4023 do
4024   # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_path_AWK+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   case $AWK in
4032   [\\/]* | ?:[\\/]*)
4033   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4034   ;;
4035   *)
4036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $ensc_searchpath
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041   for ac_exec_ext in '' $ac_executable_extensions; do
4042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045     break 2
4046   fi
4047 done
4048 done
4049
4050   ;;
4051 esac
4052 fi
4053 AWK=$ac_cv_path_AWK
4054
4055 if test -n "$AWK"; then
4056   echo "$as_me:$LINENO: result: $AWK" >&5
4057 echo "${ECHO_T}$AWK" >&6
4058 else
4059   echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061 fi
4062
4063   test -n "$AWK" && break
4064 done
4065 test -n "$AWK" || AWK="$ensc_dflt"
4066
4067
4068         if test -z "${AWK}" && $rq; then
4069                 if test -z ""; then
4070                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4071 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4072    { (exit 1); exit 1; }; }
4073                 else
4074                         { { echo "$as_me:$LINENO: error:
4075 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4076 " >&5
4077 echo "$as_me: error:
4078 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4079 " >&2;}
4080    { (exit 1); exit 1; }; }
4081                 fi
4082         fi
4083
4084         if test -e "${AWK}"; then
4085                 AWK=`readlink -f "${AWK}"`
4086         fi
4087
4088         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4089
4090         test "${AWK}"
4091
4092
4093
4094
4095         if test -z ""; then
4096                 rq=true
4097         else
4098                 rq=false
4099         fi
4100
4101         if $rq; then
4102                 ensc_dflt=
4103         else
4104                 ensc_dflt=""
4105         fi
4106
4107         for ac_prog in cat
4108 do
4109   # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy $ac_prog; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_CAT+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   case $CAT in
4117   [\\/]* | ?:[\\/]*)
4118   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4119   ;;
4120   *)
4121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $ensc_searchpath
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133 done
4134
4135   ;;
4136 esac
4137 fi
4138 CAT=$ac_cv_path_CAT
4139
4140 if test -n "$CAT"; then
4141   echo "$as_me:$LINENO: result: $CAT" >&5
4142 echo "${ECHO_T}$CAT" >&6
4143 else
4144   echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148   test -n "$CAT" && break
4149 done
4150 test -n "$CAT" || CAT="$ensc_dflt"
4151
4152
4153         if test -z "${CAT}" && $rq; then
4154                 if test -z ""; then
4155                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4156 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4157    { (exit 1); exit 1; }; }
4158                 else
4159                         { { echo "$as_me:$LINENO: error:
4160 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4161 " >&5
4162 echo "$as_me: error:
4163 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4164 " >&2;}
4165    { (exit 1); exit 1; }; }
4166                 fi
4167         fi
4168
4169         if test -e "${CAT}"; then
4170                 CAT=`readlink -f "${CAT}"`
4171         fi
4172
4173         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4174
4175         test "${CAT}"
4176
4177
4178
4179
4180         if test -z ""; then
4181                 rq=true
4182         else
4183                 rq=false
4184         fi
4185
4186         if $rq; then
4187                 ensc_dflt=
4188         else
4189                 ensc_dflt=""
4190         fi
4191
4192         for ac_prog in chown
4193 do
4194   # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_CHOWN+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $CHOWN in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $ensc_searchpath
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219
4220   ;;
4221 esac
4222 fi
4223 CHOWN=$ac_cv_path_CHOWN
4224
4225 if test -n "$CHOWN"; then
4226   echo "$as_me:$LINENO: result: $CHOWN" >&5
4227 echo "${ECHO_T}$CHOWN" >&6
4228 else
4229   echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233   test -n "$CHOWN" && break
4234 done
4235 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4236
4237
4238         if test -z "${CHOWN}" && $rq; then
4239                 if test -z ""; then
4240                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4241 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4242    { (exit 1); exit 1; }; }
4243                 else
4244                         { { echo "$as_me:$LINENO: error:
4245 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4246 " >&5
4247 echo "$as_me: error:
4248 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4249 " >&2;}
4250    { (exit 1); exit 1; }; }
4251                 fi
4252         fi
4253
4254         if test -e "${CHOWN}"; then
4255                 CHOWN=`readlink -f "${CHOWN}"`
4256         fi
4257
4258         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4259
4260         test "${CHOWN}"
4261
4262
4263
4264
4265         if test -z ""; then
4266                 rq=true
4267         else
4268                 rq=false
4269         fi
4270
4271         if $rq; then
4272                 ensc_dflt=
4273         else
4274                 ensc_dflt=""
4275         fi
4276
4277         for ac_prog in cmp
4278 do
4279   # Extract the first word of "$ac_prog", so it can be a program name with args.
4280 set dummy $ac_prog; ac_word=$2
4281 echo "$as_me:$LINENO: checking for $ac_word" >&5
4282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283 if test "${ac_cv_path_CMP+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   case $CMP in
4287   [\\/]* | ?:[\\/]*)
4288   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4289   ;;
4290   *)
4291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $ensc_searchpath
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296   for ac_exec_ext in '' $ac_executable_extensions; do
4297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303 done
4304
4305   ;;
4306 esac
4307 fi
4308 CMP=$ac_cv_path_CMP
4309
4310 if test -n "$CMP"; then
4311   echo "$as_me:$LINENO: result: $CMP" >&5
4312 echo "${ECHO_T}$CMP" >&6
4313 else
4314   echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316 fi
4317
4318   test -n "$CMP" && break
4319 done
4320 test -n "$CMP" || CMP="$ensc_dflt"
4321
4322
4323         if test -z "${CMP}" && $rq; then
4324                 if test -z ""; then
4325                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4326 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4327    { (exit 1); exit 1; }; }
4328                 else
4329                         { { echo "$as_me:$LINENO: error:
4330 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4331 " >&5
4332 echo "$as_me: error:
4333 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4334 " >&2;}
4335    { (exit 1); exit 1; }; }
4336                 fi
4337         fi
4338
4339         if test -e "${CMP}"; then
4340                 CMP=`readlink -f "${CMP}"`
4341         fi
4342
4343         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4344
4345         test "${CMP}"
4346
4347
4348
4349
4350         if test -z ""; then
4351                 rq=true
4352         else
4353                 rq=false
4354         fi
4355
4356         if $rq; then
4357                 ensc_dflt=
4358         else
4359                 ensc_dflt=""
4360         fi
4361
4362         for ac_prog in cp
4363 do
4364   # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 echo "$as_me:$LINENO: checking for $ac_word" >&5
4367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368 if test "${ac_cv_path_CP+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   case $CP in
4372   [\\/]* | ?:[\\/]*)
4373   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4374   ;;
4375   *)
4376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $ensc_searchpath
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381   for ac_exec_ext in '' $ac_executable_extensions; do
4382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388 done
4389
4390   ;;
4391 esac
4392 fi
4393 CP=$ac_cv_path_CP
4394
4395 if test -n "$CP"; then
4396   echo "$as_me:$LINENO: result: $CP" >&5
4397 echo "${ECHO_T}$CP" >&6
4398 else
4399   echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4401 fi
4402
4403   test -n "$CP" && break
4404 done
4405 test -n "$CP" || CP="$ensc_dflt"
4406
4407
4408         if test -z "${CP}" && $rq; then
4409                 if test -z ""; then
4410                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4411 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4412    { (exit 1); exit 1; }; }
4413                 else
4414                         { { echo "$as_me:$LINENO: error:
4415 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4416 " >&5
4417 echo "$as_me: error:
4418 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4419 " >&2;}
4420    { (exit 1); exit 1; }; }
4421                 fi
4422         fi
4423
4424         if test -e "${CP}"; then
4425                 CP=`readlink -f "${CP}"`
4426         fi
4427
4428         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4429
4430         test "${CP}"
4431
4432
4433
4434
4435         if test -z ""; then
4436                 rq=true
4437         else
4438                 rq=false
4439         fi
4440
4441         if $rq; then
4442                 ensc_dflt=
4443         else
4444                 ensc_dflt=""
4445         fi
4446
4447         for ac_prog in dirname
4448 do
4449   # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_path_DIRNAME+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   case $DIRNAME in
4457   [\\/]* | ?:[\\/]*)
4458   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4459   ;;
4460   *)
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $ensc_searchpath
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for ac_exec_ext in '' $ac_executable_extensions; do
4467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474
4475   ;;
4476 esac
4477 fi
4478 DIRNAME=$ac_cv_path_DIRNAME
4479
4480 if test -n "$DIRNAME"; then
4481   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4482 echo "${ECHO_T}$DIRNAME" >&6
4483 else
4484   echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6
4486 fi
4487
4488   test -n "$DIRNAME" && break
4489 done
4490 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4491
4492
4493         if test -z "${DIRNAME}" && $rq; then
4494                 if test -z ""; then
4495                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4496 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4497    { (exit 1); exit 1; }; }
4498                 else
4499                         { { echo "$as_me:$LINENO: error:
4500 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4501 " >&5
4502 echo "$as_me: error:
4503 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4504 " >&2;}
4505    { (exit 1); exit 1; }; }
4506                 fi
4507         fi
4508
4509         if test -e "${DIRNAME}"; then
4510                 DIRNAME=`readlink -f "${DIRNAME}"`
4511         fi
4512
4513         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4514
4515         test "${DIRNAME}"
4516
4517
4518
4519
4520         if test -z ""; then
4521                 rq=true
4522         else
4523                 rq=false
4524         fi
4525
4526         if $rq; then
4527                 ensc_dflt=
4528         else
4529                 ensc_dflt=""
4530         fi
4531
4532         for ac_prog in egrep
4533 do
4534   # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_path_EGREP+set}" = set; then
4539   echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541   case $EGREP in
4542   [\\/]* | ?:[\\/]*)
4543   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4544   ;;
4545   *)
4546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $ensc_searchpath
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551   for ac_exec_ext in '' $ac_executable_extensions; do
4552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558 done
4559
4560   ;;
4561 esac
4562 fi
4563 EGREP=$ac_cv_path_EGREP
4564
4565 if test -n "$EGREP"; then
4566   echo "$as_me:$LINENO: result: $EGREP" >&5
4567 echo "${ECHO_T}$EGREP" >&6
4568 else
4569   echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4571 fi
4572
4573   test -n "$EGREP" && break
4574 done
4575 test -n "$EGREP" || EGREP="$ensc_dflt"
4576
4577
4578         if test -z "${EGREP}" && $rq; then
4579                 if test -z ""; then
4580                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4581 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4582    { (exit 1); exit 1; }; }
4583                 else
4584                         { { echo "$as_me:$LINENO: error:
4585 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4586 " >&5
4587 echo "$as_me: error:
4588 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4589 " >&2;}
4590    { (exit 1); exit 1; }; }
4591                 fi
4592         fi
4593
4594         if test -e "${EGREP}"; then
4595                 EGREP=`readlink -f "${EGREP}"`
4596         fi
4597
4598         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4599
4600         test "${EGREP}"
4601
4602
4603
4604
4605         if test -z ""; then
4606                 rq=true
4607         else
4608                 rq=false
4609         fi
4610
4611         if $rq; then
4612                 ensc_dflt=
4613         else
4614                 ensc_dflt=""
4615         fi
4616
4617         for ac_prog in env
4618 do
4619   # Extract the first word of "$ac_prog", so it can be a program name with args.
4620 set dummy $ac_prog; ac_word=$2
4621 echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623 if test "${ac_cv_path_ENV+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   case $ENV in
4627   [\\/]* | ?:[\\/]*)
4628   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4629   ;;
4630   *)
4631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $ensc_searchpath
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636   for ac_exec_ext in '' $ac_executable_extensions; do
4637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643 done
4644
4645   ;;
4646 esac
4647 fi
4648 ENV=$ac_cv_path_ENV
4649
4650 if test -n "$ENV"; then
4651   echo "$as_me:$LINENO: result: $ENV" >&5
4652 echo "${ECHO_T}$ENV" >&6
4653 else
4654   echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4656 fi
4657
4658   test -n "$ENV" && break
4659 done
4660 test -n "$ENV" || ENV="$ensc_dflt"
4661
4662
4663         if test -z "${ENV}" && $rq; then
4664                 if test -z ""; then
4665                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4666 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4667    { (exit 1); exit 1; }; }
4668                 else
4669                         { { echo "$as_me:$LINENO: error:
4670 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4671 " >&5
4672 echo "$as_me: error:
4673 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4674 " >&2;}
4675    { (exit 1); exit 1; }; }
4676                 fi
4677         fi
4678
4679         if test -e "${ENV}"; then
4680                 ENV=`readlink -f "${ENV}"`
4681         fi
4682
4683         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4684
4685         test "${ENV}"
4686
4687
4688
4689
4690         if test -z ""; then
4691                 rq=true
4692         else
4693                 rq=false
4694         fi
4695
4696         if $rq; then
4697                 ensc_dflt=
4698         else
4699                 ensc_dflt=""
4700         fi
4701
4702         for ac_prog in grep
4703 do
4704   # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_path_GREP+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   case $GREP in
4712   [\\/]* | ?:[\\/]*)
4713   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4714   ;;
4715   *)
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $ensc_searchpath
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_exec_ext in '' $ac_executable_extensions; do
4722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728 done
4729
4730   ;;
4731 esac
4732 fi
4733 GREP=$ac_cv_path_GREP
4734
4735 if test -n "$GREP"; then
4736   echo "$as_me:$LINENO: result: $GREP" >&5
4737 echo "${ECHO_T}$GREP" >&6
4738 else
4739   echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6
4741 fi
4742
4743   test -n "$GREP" && break
4744 done
4745 test -n "$GREP" || GREP="$ensc_dflt"
4746
4747
4748         if test -z "${GREP}" && $rq; then
4749                 if test -z ""; then
4750                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4751 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4752    { (exit 1); exit 1; }; }
4753                 else
4754                         { { echo "$as_me:$LINENO: error:
4755 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4756 " >&5
4757 echo "$as_me: error:
4758 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4759 " >&2;}
4760    { (exit 1); exit 1; }; }
4761                 fi
4762         fi
4763
4764         if test -e "${GREP}"; then
4765                 GREP=`readlink -f "${GREP}"`
4766         fi
4767
4768         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4769
4770         test "${GREP}"
4771
4772
4773
4774
4775         if test -z ""; then
4776                 rq=true
4777         else
4778                 rq=false
4779         fi
4780
4781         if $rq; then
4782                 ensc_dflt=
4783         else
4784                 ensc_dflt=""
4785         fi
4786
4787         for ac_prog in ln
4788 do
4789   # Extract the first word of "$ac_prog", so it can be a program name with args.
4790 set dummy $ac_prog; ac_word=$2
4791 echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4793 if test "${ac_cv_path_LN+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   case $LN in
4797   [\\/]* | ?:[\\/]*)
4798   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4799   ;;
4800   *)
4801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $ensc_searchpath
4803 do
4804   IFS=$as_save_IFS
4805   test -z "$as_dir" && as_dir=.
4806   for ac_exec_ext in '' $ac_executable_extensions; do
4807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810     break 2
4811   fi
4812 done
4813 done
4814
4815   ;;
4816 esac
4817 fi
4818 LN=$ac_cv_path_LN
4819
4820 if test -n "$LN"; then
4821   echo "$as_me:$LINENO: result: $LN" >&5
4822 echo "${ECHO_T}$LN" >&6
4823 else
4824   echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826 fi
4827
4828   test -n "$LN" && break
4829 done
4830 test -n "$LN" || LN="$ensc_dflt"
4831
4832
4833         if test -z "${LN}" && $rq; then
4834                 if test -z ""; then
4835                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4836 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4837    { (exit 1); exit 1; }; }
4838                 else
4839                         { { echo "$as_me:$LINENO: error:
4840 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4841 " >&5
4842 echo "$as_me: error:
4843 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4844 " >&2;}
4845    { (exit 1); exit 1; }; }
4846                 fi
4847         fi
4848
4849         if test -e "${LN}"; then
4850                 LN=`readlink -f "${LN}"`
4851         fi
4852
4853         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4854
4855         test "${LN}"
4856
4857
4858
4859
4860         if test -z ""; then
4861                 rq=true
4862         else
4863                 rq=false
4864         fi
4865
4866         if $rq; then
4867                 ensc_dflt=
4868         else
4869                 ensc_dflt=""
4870         fi
4871
4872         for ac_prog in mkdir
4873 do
4874   # Extract the first word of "$ac_prog", so it can be a program name with args.
4875 set dummy $ac_prog; ac_word=$2
4876 echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4878 if test "${ac_cv_path_MKDIR+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   case $MKDIR in
4882   [\\/]* | ?:[\\/]*)
4883   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4884   ;;
4885   *)
4886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $ensc_searchpath
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891   for ac_exec_ext in '' $ac_executable_extensions; do
4892   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898 done
4899
4900   ;;
4901 esac
4902 fi
4903 MKDIR=$ac_cv_path_MKDIR
4904
4905 if test -n "$MKDIR"; then
4906   echo "$as_me:$LINENO: result: $MKDIR" >&5
4907 echo "${ECHO_T}$MKDIR" >&6
4908 else
4909   echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6
4911 fi
4912
4913   test -n "$MKDIR" && break
4914 done
4915 test -n "$MKDIR" || MKDIR="$ensc_dflt"
4916
4917
4918         if test -z "${MKDIR}" && $rq; then
4919                 if test -z ""; then
4920                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
4921 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4922    { (exit 1); exit 1; }; }
4923                 else
4924                         { { echo "$as_me:$LINENO: error:
4925 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4926 " >&5
4927 echo "$as_me: error:
4928 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
4929 " >&2;}
4930    { (exit 1); exit 1; }; }
4931                 fi
4932         fi
4933
4934         if test -e "${MKDIR}"; then
4935                 MKDIR=`readlink -f "${MKDIR}"`
4936         fi
4937
4938         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
4939
4940         test "${MKDIR}"
4941
4942
4943
4944
4945         if test -z ""; then
4946                 rq=true
4947         else
4948                 rq=false
4949         fi
4950
4951         if $rq; then
4952                 ensc_dflt=
4953         else
4954                 ensc_dflt=""
4955         fi
4956
4957         for ac_prog in mkfifo
4958 do
4959   # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_MKFIFO+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   case $MKFIFO in
4967   [\\/]* | ?:[\\/]*)
4968   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
4969   ;;
4970   *)
4971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $ensc_searchpath
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976   for ac_exec_ext in '' $ac_executable_extensions; do
4977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
4979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983 done
4984
4985   ;;
4986 esac
4987 fi
4988 MKFIFO=$ac_cv_path_MKFIFO
4989
4990 if test -n "$MKFIFO"; then
4991   echo "$as_me:$LINENO: result: $MKFIFO" >&5
4992 echo "${ECHO_T}$MKFIFO" >&6
4993 else
4994   echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6
4996 fi
4997
4998   test -n "$MKFIFO" && break
4999 done
5000 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5001
5002
5003         if test -z "${MKFIFO}" && $rq; then
5004                 if test -z ""; then
5005                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5006 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5007    { (exit 1); exit 1; }; }
5008                 else
5009                         { { echo "$as_me:$LINENO: error:
5010 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5011 " >&5
5012 echo "$as_me: error:
5013 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5014 " >&2;}
5015    { (exit 1); exit 1; }; }
5016                 fi
5017         fi
5018
5019         if test -e "${MKFIFO}"; then
5020                 MKFIFO=`readlink -f "${MKFIFO}"`
5021         fi
5022
5023         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5024
5025         test "${MKFIFO}"
5026
5027
5028
5029
5030         if test -z ""; then
5031                 rq=true
5032         else
5033                 rq=false
5034         fi
5035
5036         if $rq; then
5037                 ensc_dflt=
5038         else
5039                 ensc_dflt=""
5040         fi
5041
5042         for ac_prog in mktemp
5043 do
5044   # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_path_MKTEMP+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   case $MKTEMP in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $ensc_searchpath
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069
5070   ;;
5071 esac
5072 fi
5073 MKTEMP=$ac_cv_path_MKTEMP
5074
5075 if test -n "$MKTEMP"; then
5076   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5077 echo "${ECHO_T}$MKTEMP" >&6
5078 else
5079   echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6
5081 fi
5082
5083   test -n "$MKTEMP" && break
5084 done
5085 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5086
5087
5088         if test -z "${MKTEMP}" && $rq; then
5089                 if test -z ""; then
5090                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5091 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5092    { (exit 1); exit 1; }; }
5093                 else
5094                         { { echo "$as_me:$LINENO: error:
5095 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5096 " >&5
5097 echo "$as_me: error:
5098 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5099 " >&2;}
5100    { (exit 1); exit 1; }; }
5101                 fi
5102         fi
5103
5104         if test -e "${MKTEMP}"; then
5105                 MKTEMP=`readlink -f "${MKTEMP}"`
5106         fi
5107
5108         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5109
5110         test "${MKTEMP}"
5111
5112
5113
5114
5115         if test -z ""; then
5116                 rq=true
5117         else
5118                 rq=false
5119         fi
5120
5121         if $rq; then
5122                 ensc_dflt=
5123         else
5124                 ensc_dflt=""
5125         fi
5126
5127         for ac_prog in mount
5128 do
5129   # Extract the first word of "$ac_prog", so it can be a program name with args.
5130 set dummy $ac_prog; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_MOUNT+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   case $MOUNT in
5137   [\\/]* | ?:[\\/]*)
5138   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5139   ;;
5140   *)
5141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $ensc_searchpath
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154
5155   ;;
5156 esac
5157 fi
5158 MOUNT=$ac_cv_path_MOUNT
5159
5160 if test -n "$MOUNT"; then
5161   echo "$as_me:$LINENO: result: $MOUNT" >&5
5162 echo "${ECHO_T}$MOUNT" >&6
5163 else
5164   echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5166 fi
5167
5168   test -n "$MOUNT" && break
5169 done
5170 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5171
5172
5173         if test -z "${MOUNT}" && $rq; then
5174                 if test -z ""; then
5175                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5176 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5177    { (exit 1); exit 1; }; }
5178                 else
5179                         { { echo "$as_me:$LINENO: error:
5180 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5181 " >&5
5182 echo "$as_me: error:
5183 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5184 " >&2;}
5185    { (exit 1); exit 1; }; }
5186                 fi
5187         fi
5188
5189         if test -e "${MOUNT}"; then
5190                 MOUNT=`readlink -f "${MOUNT}"`
5191         fi
5192
5193         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5194
5195         test "${MOUNT}"
5196
5197
5198
5199
5200         if test -z ""; then
5201                 rq=true
5202         else
5203                 rq=false
5204         fi
5205
5206         if $rq; then
5207                 ensc_dflt=
5208         else
5209                 ensc_dflt=""
5210         fi
5211
5212         for ac_prog in mv
5213 do
5214   # Extract the first word of "$ac_prog", so it can be a program name with args.
5215 set dummy $ac_prog; ac_word=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_path_MV+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   case $MV in
5222   [\\/]* | ?:[\\/]*)
5223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5224   ;;
5225   *)
5226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $ensc_searchpath
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231   for ac_exec_ext in '' $ac_executable_extensions; do
5232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238 done
5239
5240   ;;
5241 esac
5242 fi
5243 MV=$ac_cv_path_MV
5244
5245 if test -n "$MV"; then
5246   echo "$as_me:$LINENO: result: $MV" >&5
5247 echo "${ECHO_T}$MV" >&6
5248 else
5249   echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5251 fi
5252
5253   test -n "$MV" && break
5254 done
5255 test -n "$MV" || MV="$ensc_dflt"
5256
5257
5258         if test -z "${MV}" && $rq; then
5259                 if test -z ""; then
5260                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5261 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5262    { (exit 1); exit 1; }; }
5263                 else
5264                         { { echo "$as_me:$LINENO: error:
5265 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5266 " >&5
5267 echo "$as_me: error:
5268 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5269 " >&2;}
5270    { (exit 1); exit 1; }; }
5271                 fi
5272         fi
5273
5274         if test -e "${MV}"; then
5275                 MV=`readlink -f "${MV}"`
5276         fi
5277
5278         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5279
5280         test "${MV}"
5281
5282
5283
5284
5285         if test -z ""; then
5286                 rq=true
5287         else
5288                 rq=false
5289         fi
5290
5291         if $rq; then
5292                 ensc_dflt=
5293         else
5294                 ensc_dflt=""
5295         fi
5296
5297         for ac_prog in nice
5298 do
5299   # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_path_NICE+set}" = set; then
5304   echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306   case $NICE in
5307   [\\/]* | ?:[\\/]*)
5308   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5309   ;;
5310   *)
5311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $ensc_searchpath
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316   for ac_exec_ext in '' $ac_executable_extensions; do
5317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323 done
5324
5325   ;;
5326 esac
5327 fi
5328 NICE=$ac_cv_path_NICE
5329
5330 if test -n "$NICE"; then
5331   echo "$as_me:$LINENO: result: $NICE" >&5
5332 echo "${ECHO_T}$NICE" >&6
5333 else
5334   echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6
5336 fi
5337
5338   test -n "$NICE" && break
5339 done
5340 test -n "$NICE" || NICE="$ensc_dflt"
5341
5342
5343         if test -z "${NICE}" && $rq; then
5344                 if test -z ""; then
5345                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5346 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5347    { (exit 1); exit 1; }; }
5348                 else
5349                         { { echo "$as_me:$LINENO: error:
5350 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5351 " >&5
5352 echo "$as_me: error:
5353 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5354 " >&2;}
5355    { (exit 1); exit 1; }; }
5356                 fi
5357         fi
5358
5359         if test -e "${NICE}"; then
5360                 NICE=`readlink -f "${NICE}"`
5361         fi
5362
5363         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5364
5365         test "${NICE}"
5366
5367
5368
5369
5370         if test -z ""; then
5371                 rq=true
5372         else
5373                 rq=false
5374         fi
5375
5376         if $rq; then
5377                 ensc_dflt=
5378         else
5379                 ensc_dflt=""
5380         fi
5381
5382         for ac_prog in ps
5383 do
5384   # Extract the first word of "$ac_prog", so it can be a program name with args.
5385 set dummy $ac_prog; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_path_PS+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   case $PS in
5392   [\\/]* | ?:[\\/]*)
5393   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5394   ;;
5395   *)
5396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $ensc_searchpath
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409
5410   ;;
5411 esac
5412 fi
5413 PS=$ac_cv_path_PS
5414
5415 if test -n "$PS"; then
5416   echo "$as_me:$LINENO: result: $PS" >&5
5417 echo "${ECHO_T}$PS" >&6
5418 else
5419   echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6
5421 fi
5422
5423   test -n "$PS" && break
5424 done
5425 test -n "$PS" || PS="$ensc_dflt"
5426
5427
5428         if test -z "${PS}" && $rq; then
5429                 if test -z ""; then
5430                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5431 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5432    { (exit 1); exit 1; }; }
5433                 else
5434                         { { echo "$as_me:$LINENO: error:
5435 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5436 " >&5
5437 echo "$as_me: error:
5438 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5439 " >&2;}
5440    { (exit 1); exit 1; }; }
5441                 fi
5442         fi
5443
5444         if test -e "${PS}"; then
5445                 PS=`readlink -f "${PS}"`
5446         fi
5447
5448         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5449
5450         test "${PS}"
5451
5452
5453
5454
5455         if test -z ""; then
5456                 rq=true
5457         else
5458                 rq=false
5459         fi
5460
5461         if $rq; then
5462                 ensc_dflt=
5463         else
5464                 ensc_dflt=""
5465         fi
5466
5467         for ac_prog in rm
5468 do
5469   # Extract the first word of "$ac_prog", so it can be a program name with args.
5470 set dummy $ac_prog; ac_word=$2
5471 echo "$as_me:$LINENO: checking for $ac_word" >&5
5472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473 if test "${ac_cv_path_RM+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   case $RM in
5477   [\\/]* | ?:[\\/]*)
5478   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5479   ;;
5480   *)
5481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $ensc_searchpath
5483 do
5484   IFS=$as_save_IFS
5485   test -z "$as_dir" && as_dir=.
5486   for ac_exec_ext in '' $ac_executable_extensions; do
5487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490     break 2
5491   fi
5492 done
5493 done
5494
5495   ;;
5496 esac
5497 fi
5498 RM=$ac_cv_path_RM
5499
5500 if test -n "$RM"; then
5501   echo "$as_me:$LINENO: result: $RM" >&5
5502 echo "${ECHO_T}$RM" >&6
5503 else
5504   echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5506 fi
5507
5508   test -n "$RM" && break
5509 done
5510 test -n "$RM" || RM="$ensc_dflt"
5511
5512
5513         if test -z "${RM}" && $rq; then
5514                 if test -z ""; then
5515                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5516 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5517    { (exit 1); exit 1; }; }
5518                 else
5519                         { { echo "$as_me:$LINENO: error:
5520 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5521 " >&5
5522 echo "$as_me: error:
5523 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5524 " >&2;}
5525    { (exit 1); exit 1; }; }
5526                 fi
5527         fi
5528
5529         if test -e "${RM}"; then
5530                 RM=`readlink -f "${RM}"`
5531         fi
5532
5533         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5534
5535         test "${RM}"
5536
5537
5538
5539
5540         if test -z ""; then
5541                 rq=true
5542         else
5543                 rq=false
5544         fi
5545
5546         if $rq; then
5547                 ensc_dflt=
5548         else
5549                 ensc_dflt=""
5550         fi
5551
5552         for ac_prog in rmdir
5553 do
5554   # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5558 if test "${ac_cv_path_RMDIR+set}" = set; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   case $RMDIR in
5562   [\\/]* | ?:[\\/]*)
5563   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5564   ;;
5565   *)
5566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $ensc_searchpath
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571   for ac_exec_ext in '' $ac_executable_extensions; do
5572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578 done
5579
5580   ;;
5581 esac
5582 fi
5583 RMDIR=$ac_cv_path_RMDIR
5584
5585 if test -n "$RMDIR"; then
5586   echo "$as_me:$LINENO: result: $RMDIR" >&5
5587 echo "${ECHO_T}$RMDIR" >&6
5588 else
5589   echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5591 fi
5592
5593   test -n "$RMDIR" && break
5594 done
5595 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5596
5597
5598         if test -z "${RMDIR}" && $rq; then
5599                 if test -z ""; then
5600                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5601 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5602    { (exit 1); exit 1; }; }
5603                 else
5604                         { { echo "$as_me:$LINENO: error:
5605 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5606 " >&5
5607 echo "$as_me: error:
5608 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5609 " >&2;}
5610    { (exit 1); exit 1; }; }
5611                 fi
5612         fi
5613
5614         if test -e "${RMDIR}"; then
5615                 RMDIR=`readlink -f "${RMDIR}"`
5616         fi
5617
5618         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5619
5620         test "${RMDIR}"
5621
5622
5623
5624
5625         if test -z ""; then
5626                 rq=true
5627         else
5628                 rq=false
5629         fi
5630
5631         if $rq; then
5632                 ensc_dflt=
5633         else
5634                 ensc_dflt=""
5635         fi
5636
5637         for ac_prog in sed
5638 do
5639   # Extract the first word of "$ac_prog", so it can be a program name with args.
5640 set dummy $ac_prog; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_SED+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   case $SED in
5647   [\\/]* | ?:[\\/]*)
5648   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5649   ;;
5650   *)
5651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $ensc_searchpath
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656   for ac_exec_ext in '' $ac_executable_extensions; do
5657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660     break 2
5661   fi
5662 done
5663 done
5664
5665   ;;
5666 esac
5667 fi
5668 SED=$ac_cv_path_SED
5669
5670 if test -n "$SED"; then
5671   echo "$as_me:$LINENO: result: $SED" >&5
5672 echo "${ECHO_T}$SED" >&6
5673 else
5674   echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678   test -n "$SED" && break
5679 done
5680 test -n "$SED" || SED="$ensc_dflt"
5681
5682
5683         if test -z "${SED}" && $rq; then
5684                 if test -z ""; then
5685                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5686 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5687    { (exit 1); exit 1; }; }
5688                 else
5689                         { { echo "$as_me:$LINENO: error:
5690 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5691 " >&5
5692 echo "$as_me: error:
5693 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5694 " >&2;}
5695    { (exit 1); exit 1; }; }
5696                 fi
5697         fi
5698
5699         if test -e "${SED}"; then
5700                 SED=`readlink -f "${SED}"`
5701         fi
5702
5703         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5704
5705         test "${SED}"
5706
5707
5708
5709
5710         if test -z ""; then
5711                 rq=true
5712         else
5713                 rq=false
5714         fi
5715
5716         if $rq; then
5717                 ensc_dflt=
5718         else
5719                 ensc_dflt=""
5720         fi
5721
5722         for ac_prog in sh
5723 do
5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_path_SH+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   case $SH in
5732   [\\/]* | ?:[\\/]*)
5733   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5734   ;;
5735   *)
5736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $ensc_searchpath
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for ac_exec_ext in '' $ac_executable_extensions; do
5742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5743     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748 done
5749
5750   ;;
5751 esac
5752 fi
5753 SH=$ac_cv_path_SH
5754
5755 if test -n "$SH"; then
5756   echo "$as_me:$LINENO: result: $SH" >&5
5757 echo "${ECHO_T}$SH" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763   test -n "$SH" && break
5764 done
5765 test -n "$SH" || SH="$ensc_dflt"
5766
5767
5768         if test -z "${SH}" && $rq; then
5769                 if test -z ""; then
5770                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5771 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5772    { (exit 1); exit 1; }; }
5773                 else
5774                         { { echo "$as_me:$LINENO: error:
5775 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5776 " >&5
5777 echo "$as_me: error:
5778 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5779 " >&2;}
5780    { (exit 1); exit 1; }; }
5781                 fi
5782         fi
5783
5784         if test -e "${SH}"; then
5785                 SH=`readlink -f "${SH}"`
5786         fi
5787
5788         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5789
5790         test "${SH}"
5791
5792
5793
5794
5795         if test -z ""; then
5796                 rq=true
5797         else
5798                 rq=false
5799         fi
5800
5801         if $rq; then
5802                 ensc_dflt=
5803         else
5804                 ensc_dflt=""
5805         fi
5806
5807         for ac_prog in tac
5808 do
5809   # Extract the first word of "$ac_prog", so it can be a program name with args.
5810 set dummy $ac_prog; ac_word=$2
5811 echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813 if test "${ac_cv_path_TAC+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   case $TAC in
5817   [\\/]* | ?:[\\/]*)
5818   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
5819   ;;
5820   *)
5821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $ensc_searchpath
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5834
5835   ;;
5836 esac
5837 fi
5838 TAC=$ac_cv_path_TAC
5839
5840 if test -n "$TAC"; then
5841   echo "$as_me:$LINENO: result: $TAC" >&5
5842 echo "${ECHO_T}$TAC" >&6
5843 else
5844   echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5846 fi
5847
5848   test -n "$TAC" && break
5849 done
5850 test -n "$TAC" || TAC="$ensc_dflt"
5851
5852
5853         if test -z "${TAC}" && $rq; then
5854                 if test -z ""; then
5855                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5856 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5857    { (exit 1); exit 1; }; }
5858                 else
5859                         { { echo "$as_me:$LINENO: error:
5860 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5861 " >&5
5862 echo "$as_me: error:
5863 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5864 " >&2;}
5865    { (exit 1); exit 1; }; }
5866                 fi
5867         fi
5868
5869         if test -e "${TAC}"; then
5870                 TAC=`readlink -f "${TAC}"`
5871         fi
5872
5873         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5874
5875         test "${TAC}"
5876
5877
5878
5879
5880         if test -z ""; then
5881                 rq=true
5882         else
5883                 rq=false
5884         fi
5885
5886         if $rq; then
5887                 ensc_dflt=
5888         else
5889                 ensc_dflt=""
5890         fi
5891
5892         for ac_prog in tar
5893 do
5894   # Extract the first word of "$ac_prog", so it can be a program name with args.
5895 set dummy $ac_prog; ac_word=$2
5896 echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898 if test "${ac_cv_path_TAR+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   case $TAR in
5902   [\\/]* | ?:[\\/]*)
5903   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5904   ;;
5905   *)
5906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $ensc_searchpath
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   for ac_exec_ext in '' $ac_executable_extensions; do
5912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918 done
5919
5920   ;;
5921 esac
5922 fi
5923 TAR=$ac_cv_path_TAR
5924
5925 if test -n "$TAR"; then
5926   echo "$as_me:$LINENO: result: $TAR" >&5
5927 echo "${ECHO_T}$TAR" >&6
5928 else
5929   echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5931 fi
5932
5933   test -n "$TAR" && break
5934 done
5935 test -n "$TAR" || TAR="$ensc_dflt"
5936
5937
5938         if test -z "${TAR}" && $rq; then
5939                 if test -z ""; then
5940                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
5941 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5942    { (exit 1); exit 1; }; }
5943                 else
5944                         { { echo "$as_me:$LINENO: error:
5945 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5946 " >&5
5947 echo "$as_me: error:
5948 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
5949 " >&2;}
5950    { (exit 1); exit 1; }; }
5951                 fi
5952         fi
5953
5954         if test -e "${TAR}"; then
5955                 TAR=`readlink -f "${TAR}"`
5956         fi
5957
5958         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
5959
5960         test "${TAR}"
5961
5962
5963
5964
5965         if test -z ""; then
5966                 rq=true
5967         else
5968                 rq=false
5969         fi
5970
5971         if $rq; then
5972                 ensc_dflt=
5973         else
5974                 ensc_dflt=""
5975         fi
5976
5977         for ac_prog in touch
5978 do
5979   # Extract the first word of "$ac_prog", so it can be a program name with args.
5980 set dummy $ac_prog; ac_word=$2
5981 echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5983 if test "${ac_cv_path_TOUCH+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   case $TOUCH in
5987   [\\/]* | ?:[\\/]*)
5988   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5989   ;;
5990   *)
5991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $ensc_searchpath
5993 do
5994   IFS=$as_save_IFS
5995   test -z "$as_dir" && as_dir=.
5996   for ac_exec_ext in '' $ac_executable_extensions; do
5997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000     break 2
6001   fi
6002 done
6003 done
6004
6005   ;;
6006 esac
6007 fi
6008 TOUCH=$ac_cv_path_TOUCH
6009
6010 if test -n "$TOUCH"; then
6011   echo "$as_me:$LINENO: result: $TOUCH" >&5
6012 echo "${ECHO_T}$TOUCH" >&6
6013 else
6014   echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 fi
6017
6018   test -n "$TOUCH" && break
6019 done
6020 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6021
6022
6023         if test -z "${TOUCH}" && $rq; then
6024                 if test -z ""; then
6025                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6026 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6027    { (exit 1); exit 1; }; }
6028                 else
6029                         { { echo "$as_me:$LINENO: error:
6030 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6031 " >&5
6032 echo "$as_me: error:
6033 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6034 " >&2;}
6035    { (exit 1); exit 1; }; }
6036                 fi
6037         fi
6038
6039         if test -e "${TOUCH}"; then
6040                 TOUCH=`readlink -f "${TOUCH}"`
6041         fi
6042
6043         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6044
6045         test "${TOUCH}"
6046
6047
6048
6049
6050         if test -z ""; then
6051                 rq=true
6052         else
6053                 rq=false
6054         fi
6055
6056         if $rq; then
6057                 ensc_dflt=
6058         else
6059                 ensc_dflt=""
6060         fi
6061
6062         for ac_prog in tty
6063 do
6064   # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_path_TTY+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   case $TTY in
6072   [\\/]* | ?:[\\/]*)
6073   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6074   ;;
6075   *)
6076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $ensc_searchpath
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089
6090   ;;
6091 esac
6092 fi
6093 TTY=$ac_cv_path_TTY
6094
6095 if test -n "$TTY"; then
6096   echo "$as_me:$LINENO: result: $TTY" >&5
6097 echo "${ECHO_T}$TTY" >&6
6098 else
6099   echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6101 fi
6102
6103   test -n "$TTY" && break
6104 done
6105 test -n "$TTY" || TTY="$ensc_dflt"
6106
6107
6108         if test -z "${TTY}" && $rq; then
6109                 if test -z ""; then
6110                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6111 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6112    { (exit 1); exit 1; }; }
6113                 else
6114                         { { echo "$as_me:$LINENO: error:
6115 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6116 " >&5
6117 echo "$as_me: error:
6118 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6119 " >&2;}
6120    { (exit 1); exit 1; }; }
6121                 fi
6122         fi
6123
6124         if test -e "${TTY}"; then
6125                 TTY=`readlink -f "${TTY}"`
6126         fi
6127
6128         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6129
6130         test "${TTY}"
6131
6132
6133
6134
6135         if test -z ""; then
6136                 rq=true
6137         else
6138                 rq=false
6139         fi
6140
6141         if $rq; then
6142                 ensc_dflt=
6143         else
6144                 ensc_dflt=""
6145         fi
6146
6147         for ac_prog in umount
6148 do
6149   # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_path_UMOUNT+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   case $UMOUNT in
6157   [\\/]* | ?:[\\/]*)
6158   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6159   ;;
6160   *)
6161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $ensc_searchpath
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174
6175   ;;
6176 esac
6177 fi
6178 UMOUNT=$ac_cv_path_UMOUNT
6179
6180 if test -n "$UMOUNT"; then
6181   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6182 echo "${ECHO_T}$UMOUNT" >&6
6183 else
6184   echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6
6186 fi
6187
6188   test -n "$UMOUNT" && break
6189 done
6190 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6191
6192
6193         if test -z "${UMOUNT}" && $rq; then
6194                 if test -z ""; then
6195                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6196 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6197    { (exit 1); exit 1; }; }
6198                 else
6199                         { { echo "$as_me:$LINENO: error:
6200 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6201 " >&5
6202 echo "$as_me: error:
6203 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6204 " >&2;}
6205    { (exit 1); exit 1; }; }
6206                 fi
6207         fi
6208
6209         if test -e "${UMOUNT}"; then
6210                 UMOUNT=`readlink -f "${UMOUNT}"`
6211         fi
6212
6213         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6214
6215         test "${UMOUNT}"
6216
6217
6218
6219
6220         if test -z ""; then
6221                 rq=true
6222         else
6223                 rq=false
6224         fi
6225
6226         if $rq; then
6227                 ensc_dflt=
6228         else
6229                 ensc_dflt=""
6230         fi
6231
6232         for ac_prog in wc
6233 do
6234   # Extract the first word of "$ac_prog", so it can be a program name with args.
6235 set dummy $ac_prog; ac_word=$2
6236 echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238 if test "${ac_cv_path_WC+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   case $WC in
6242   [\\/]* | ?:[\\/]*)
6243   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6244   ;;
6245   *)
6246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $ensc_searchpath
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259
6260   ;;
6261 esac
6262 fi
6263 WC=$ac_cv_path_WC
6264
6265 if test -n "$WC"; then
6266   echo "$as_me:$LINENO: result: $WC" >&5
6267 echo "${ECHO_T}$WC" >&6
6268 else
6269   echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6271 fi
6272
6273   test -n "$WC" && break
6274 done
6275 test -n "$WC" || WC="$ensc_dflt"
6276
6277
6278         if test -z "${WC}" && $rq; then
6279                 if test -z ""; then
6280                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6281 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6282    { (exit 1); exit 1; }; }
6283                 else
6284                         { { echo "$as_me:$LINENO: error:
6285 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6286 " >&5
6287 echo "$as_me: error:
6288 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6289 " >&2;}
6290    { (exit 1); exit 1; }; }
6291                 fi
6292         fi
6293
6294         if test -e "${WC}"; then
6295                 WC=`readlink -f "${WC}"`
6296         fi
6297
6298         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6299
6300         test "${WC}"
6301
6302
6303
6304
6305
6306
6307         if test -z ""; then
6308                 rq=true
6309         else
6310                 rq=false
6311         fi
6312
6313         if $rq; then
6314                 ensc_dflt=
6315         else
6316                 ensc_dflt=""
6317         fi
6318
6319         for ac_prog in ip
6320 do
6321   # Extract the first word of "$ac_prog", so it can be a program name with args.
6322 set dummy $ac_prog; ac_word=$2
6323 echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6325 if test "${ac_cv_path_IP+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   case $IP in
6329   [\\/]* | ?:[\\/]*)
6330   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6331   ;;
6332   *)
6333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $ensc_searchpath
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338   for ac_exec_ext in '' $ac_executable_extensions; do
6339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345 done
6346
6347   ;;
6348 esac
6349 fi
6350 IP=$ac_cv_path_IP
6351
6352 if test -n "$IP"; then
6353   echo "$as_me:$LINENO: result: $IP" >&5
6354 echo "${ECHO_T}$IP" >&6
6355 else
6356   echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358 fi
6359
6360   test -n "$IP" && break
6361 done
6362 test -n "$IP" || IP="$ensc_dflt"
6363
6364
6365         if test -z "${IP}" && $rq; then
6366                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6367                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6368 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6369    { (exit 1); exit 1; }; }
6370                 else
6371                         { { echo "$as_me:$LINENO: error:
6372 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6373 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6374 echo "$as_me: error:
6375 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6376 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6377    { (exit 1); exit 1; }; }
6378                 fi
6379         fi
6380
6381         if test -e "${IP}"; then
6382                 IP=`readlink -f "${IP}"`
6383         fi
6384
6385         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6386
6387         test "${IP}"
6388
6389
6390
6391
6392         if test -z ""; then
6393                 rq=true
6394         else
6395                 rq=false
6396         fi
6397
6398         if $rq; then
6399                 ensc_dflt=
6400         else
6401                 ensc_dflt=""
6402         fi
6403
6404         for ac_prog in iptables
6405 do
6406   # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410 if test "${ac_cv_path_IPTABLES+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413   case $IPTABLES in
6414   [\\/]* | ?:[\\/]*)
6415   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6416   ;;
6417   *)
6418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $ensc_searchpath
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_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
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   ;;
6433 esac
6434 fi
6435 IPTABLES=$ac_cv_path_IPTABLES
6436
6437 if test -n "$IPTABLES"; then
6438   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6439 echo "${ECHO_T}$IPTABLES" >&6
6440 else
6441   echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6
6443 fi
6444
6445   test -n "$IPTABLES" && break
6446 done
6447 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6448
6449
6450         if test -z "${IPTABLES}" && $rq; then
6451                 if test -z ""; then
6452                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6453 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6454    { (exit 1); exit 1; }; }
6455                 else
6456                         { { echo "$as_me:$LINENO: error:
6457 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6458 " >&5
6459 echo "$as_me: error:
6460 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6461 " >&2;}
6462    { (exit 1); exit 1; }; }
6463                 fi
6464         fi
6465
6466         if test -e "${IPTABLES}"; then
6467                 IPTABLES=`readlink -f "${IPTABLES}"`
6468         fi
6469
6470         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6471
6472         test "${IPTABLES}"
6473
6474
6475
6476
6477         if test -z ""; then
6478                 rq=true
6479         else
6480                 rq=false
6481         fi
6482
6483         if $rq; then
6484                 ensc_dflt=
6485         else
6486                 ensc_dflt=""
6487         fi
6488
6489         for ac_prog in modprobe
6490 do
6491   # Extract the first word of "$ac_prog", so it can be a program name with args.
6492 set dummy $ac_prog; ac_word=$2
6493 echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495 if test "${ac_cv_path_MODPROBE+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   case $MODPROBE in
6499   [\\/]* | ?:[\\/]*)
6500   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6501   ;;
6502   *)
6503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $ensc_searchpath
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508   for ac_exec_ext in '' $ac_executable_extensions; do
6509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515 done
6516
6517   ;;
6518 esac
6519 fi
6520 MODPROBE=$ac_cv_path_MODPROBE
6521
6522 if test -n "$MODPROBE"; then
6523   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6524 echo "${ECHO_T}$MODPROBE" >&6
6525 else
6526   echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6
6528 fi
6529
6530   test -n "$MODPROBE" && break
6531 done
6532 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6533
6534
6535         if test -z "${MODPROBE}" && $rq; then
6536                 if test -z ""; then
6537                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6538 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6539    { (exit 1); exit 1; }; }
6540                 else
6541                         { { echo "$as_me:$LINENO: error:
6542 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6543 " >&5
6544 echo "$as_me: error:
6545 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6546 " >&2;}
6547    { (exit 1); exit 1; }; }
6548                 fi
6549         fi
6550
6551         if test -e "${MODPROBE}"; then
6552                 MODPROBE=`readlink -f "${MODPROBE}"`
6553         fi
6554
6555         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6556
6557         test "${MODPROBE}"
6558
6559
6560
6561
6562         if test -z ""; then
6563                 rq=true
6564         else
6565                 rq=false
6566         fi
6567
6568         if $rq; then
6569                 ensc_dflt=
6570         else
6571                 ensc_dflt=""
6572         fi
6573
6574         for ac_prog in nameif
6575 do
6576   # Extract the first word of "$ac_prog", so it can be a program name with args.
6577 set dummy $ac_prog; ac_word=$2
6578 echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6580 if test "${ac_cv_path_NAMEIF+set}" = set; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   case $NAMEIF in
6584   [\\/]* | ?:[\\/]*)
6585   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6586   ;;
6587   *)
6588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $ensc_searchpath
6590 do
6591   IFS=$as_save_IFS
6592   test -z "$as_dir" && as_dir=.
6593   for ac_exec_ext in '' $ac_executable_extensions; do
6594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597     break 2
6598   fi
6599 done
6600 done
6601
6602   ;;
6603 esac
6604 fi
6605 NAMEIF=$ac_cv_path_NAMEIF
6606
6607 if test -n "$NAMEIF"; then
6608   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6609 echo "${ECHO_T}$NAMEIF" >&6
6610 else
6611   echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6
6613 fi
6614
6615   test -n "$NAMEIF" && break
6616 done
6617 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6618
6619
6620         if test -z "${NAMEIF}" && $rq; then
6621                 if test -z ""; then
6622                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6623 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6624    { (exit 1); exit 1; }; }
6625                 else
6626                         { { echo "$as_me:$LINENO: error:
6627 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6628 " >&5
6629 echo "$as_me: error:
6630 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6631 " >&2;}
6632    { (exit 1); exit 1; }; }
6633                 fi
6634         fi
6635
6636         if test -e "${NAMEIF}"; then
6637                 NAMEIF=`readlink -f "${NAMEIF}"`
6638         fi
6639
6640         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6641
6642         test "${NAMEIF}"
6643
6644
6645
6646
6647         if test -z ""; then
6648                 rq=true
6649         else
6650                 rq=false
6651         fi
6652
6653         if $rq; then
6654                 ensc_dflt=
6655         else
6656                 ensc_dflt=""
6657         fi
6658
6659         for ac_prog in nohup
6660 do
6661   # Extract the first word of "$ac_prog", so it can be a program name with args.
6662 set dummy $ac_prog; ac_word=$2
6663 echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6665 if test "${ac_cv_path_NOHUP+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   case $NOHUP in
6669   [\\/]* | ?:[\\/]*)
6670   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6671   ;;
6672   *)
6673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $ensc_searchpath
6675 do
6676   IFS=$as_save_IFS
6677   test -z "$as_dir" && as_dir=.
6678   for ac_exec_ext in '' $ac_executable_extensions; do
6679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682     break 2
6683   fi
6684 done
6685 done
6686
6687   ;;
6688 esac
6689 fi
6690 NOHUP=$ac_cv_path_NOHUP
6691
6692 if test -n "$NOHUP"; then
6693   echo "$as_me:$LINENO: result: $NOHUP" >&5
6694 echo "${ECHO_T}$NOHUP" >&6
6695 else
6696   echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6698 fi
6699
6700   test -n "$NOHUP" && break
6701 done
6702 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6703
6704
6705         if test -z "${NOHUP}" && $rq; then
6706                 if test -z ""; then
6707                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6708 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6709    { (exit 1); exit 1; }; }
6710                 else
6711                         { { echo "$as_me:$LINENO: error:
6712 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6713 " >&5
6714 echo "$as_me: error:
6715 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6716 " >&2;}
6717    { (exit 1); exit 1; }; }
6718                 fi
6719         fi
6720
6721         if test -e "${NOHUP}"; then
6722                 NOHUP=`readlink -f "${NOHUP}"`
6723         fi
6724
6725         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6726
6727         test "${NOHUP}"
6728
6729
6730
6731
6732         if test -z ""; then
6733                 rq=true
6734         else
6735                 rq=false
6736         fi
6737
6738         if $rq; then
6739                 ensc_dflt=
6740         else
6741                 ensc_dflt=""
6742         fi
6743
6744         for ac_prog in rmmod
6745 do
6746   # Extract the first word of "$ac_prog", so it can be a program name with args.
6747 set dummy $ac_prog; ac_word=$2
6748 echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6750 if test "${ac_cv_path_RMMOD+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $RMMOD in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $ensc_searchpath
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771
6772   ;;
6773 esac
6774 fi
6775 RMMOD=$ac_cv_path_RMMOD
6776
6777 if test -n "$RMMOD"; then
6778   echo "$as_me:$LINENO: result: $RMMOD" >&5
6779 echo "${ECHO_T}$RMMOD" >&6
6780 else
6781   echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6
6783 fi
6784
6785   test -n "$RMMOD" && break
6786 done
6787 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6788
6789
6790         if test -z "${RMMOD}" && $rq; then
6791                 if test -z ""; then
6792                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6793 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6794    { (exit 1); exit 1; }; }
6795                 else
6796                         { { echo "$as_me:$LINENO: error:
6797 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6798 " >&5
6799 echo "$as_me: error:
6800 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6801 " >&2;}
6802    { (exit 1); exit 1; }; }
6803                 fi
6804         fi
6805
6806         if test -e "${RMMOD}"; then
6807                 RMMOD=`readlink -f "${RMMOD}"`
6808         fi
6809
6810         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6811
6812         test "${RMMOD}"
6813
6814
6815
6816
6817         if test -z ""; then
6818                 rq=true
6819         else
6820                 rq=false
6821         fi
6822
6823         if $rq; then
6824                 ensc_dflt=
6825         else
6826                 ensc_dflt=""
6827         fi
6828
6829         for ac_prog in vconfig
6830 do
6831   # Extract the first word of "$ac_prog", so it can be a program name with args.
6832 set dummy $ac_prog; ac_word=$2
6833 echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6835 if test "${ac_cv_path_VCONFIG+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   case $VCONFIG in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $ensc_searchpath
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856
6857   ;;
6858 esac
6859 fi
6860 VCONFIG=$ac_cv_path_VCONFIG
6861
6862 if test -n "$VCONFIG"; then
6863   echo "$as_me:$LINENO: result: $VCONFIG" >&5
6864 echo "${ECHO_T}$VCONFIG" >&6
6865 else
6866   echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6
6868 fi
6869
6870   test -n "$VCONFIG" && break
6871 done
6872 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6873
6874
6875         if test -z "${VCONFIG}" && $rq; then
6876                 if test -z "See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution"; then
6877                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6878 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6879    { (exit 1); exit 1; }; }
6880                 else
6881                         { { echo "$as_me:$LINENO: error:
6882 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6883 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6884 echo "$as_me: error:
6885 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6886 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6887    { (exit 1); exit 1; }; }
6888                 fi
6889         fi
6890
6891         if test -e "${VCONFIG}"; then
6892                 VCONFIG=`readlink -f "${VCONFIG}"`
6893         fi
6894
6895         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6896
6897         test "${VCONFIG}"
6898
6899
6900
6901
6902         if test -z ""; then
6903                 rq=true
6904         else
6905                 rq=false
6906         fi
6907
6908         if $rq; then
6909                 ensc_dflt=
6910         else
6911                 ensc_dflt=""
6912         fi
6913
6914         for ac_prog in wget
6915 do
6916   # Extract the first word of "$ac_prog", so it can be a program name with args.
6917 set dummy $ac_prog; ac_word=$2
6918 echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6920 if test "${ac_cv_path_WGET+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   case $WGET in
6924   [\\/]* | ?:[\\/]*)
6925   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6926   ;;
6927   *)
6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $ensc_searchpath
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933   for ac_exec_ext in '' $ac_executable_extensions; do
6934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940 done
6941
6942   ;;
6943 esac
6944 fi
6945 WGET=$ac_cv_path_WGET
6946
6947 if test -n "$WGET"; then
6948   echo "$as_me:$LINENO: result: $WGET" >&5
6949 echo "${ECHO_T}$WGET" >&6
6950 else
6951   echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6
6953 fi
6954
6955   test -n "$WGET" && break
6956 done
6957 test -n "$WGET" || WGET="$ensc_dflt"
6958
6959
6960         if test -z "${WGET}" && $rq; then
6961                 if test -z ""; then
6962                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
6963 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6964    { (exit 1); exit 1; }; }
6965                 else
6966                         { { echo "$as_me:$LINENO: error:
6967 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6968 " >&5
6969 echo "$as_me: error:
6970 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6971 " >&2;}
6972    { (exit 1); exit 1; }; }
6973                 fi
6974         fi
6975
6976         if test -e "${WGET}"; then
6977                 WGET=`readlink -f "${WGET}"`
6978         fi
6979
6980         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
6981
6982         test "${WGET}"
6983
6984
6985
6986
6987         if test -z "file"; then
6988                 rq=true
6989         else
6990                 rq=false
6991         fi
6992
6993         if $rq; then
6994                 ensc_dflt=
6995         else
6996                 ensc_dflt="file"
6997         fi
6998
6999         for ac_prog in file
7000 do
7001   # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_path_FILE+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   case $FILE in
7009   [\\/]* | ?:[\\/]*)
7010   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7011   ;;
7012   *)
7013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $ensc_searchpath
7015 do
7016   IFS=$as_save_IFS
7017   test -z "$as_dir" && as_dir=.
7018   for ac_exec_ext in '' $ac_executable_extensions; do
7019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022     break 2
7023   fi
7024 done
7025 done
7026
7027   ;;
7028 esac
7029 fi
7030 FILE=$ac_cv_path_FILE
7031
7032 if test -n "$FILE"; then
7033   echo "$as_me:$LINENO: result: $FILE" >&5
7034 echo "${ECHO_T}$FILE" >&6
7035 else
7036   echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6
7038 fi
7039
7040   test -n "$FILE" && break
7041 done
7042 test -n "$FILE" || FILE="$ensc_dflt"
7043
7044
7045         if test -z "${FILE}" && $rq; then
7046                 if test -z ""; then
7047                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7048 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7049    { (exit 1); exit 1; }; }
7050                 else
7051                         { { echo "$as_me:$LINENO: error:
7052 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7053 " >&5
7054 echo "$as_me: error:
7055 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7056 " >&2;}
7057    { (exit 1); exit 1; }; }
7058                 fi
7059         fi
7060
7061         if test -e "${FILE}"; then
7062                 FILE=`readlink -f "${FILE}"`
7063         fi
7064
7065         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7066
7067         test "${FILE}"
7068
7069
7070
7071
7072         if test -z "gzip"; then
7073                 rq=true
7074         else
7075                 rq=false
7076         fi
7077
7078         if $rq; then
7079                 ensc_dflt=
7080         else
7081                 ensc_dflt="gzip"
7082         fi
7083
7084         for ac_prog in gzip
7085 do
7086   # Extract the first word of "$ac_prog", so it can be a program name with args.
7087 set dummy $ac_prog; ac_word=$2
7088 echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090 if test "${ac_cv_path_GZIP+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   case $GZIP in
7094   [\\/]* | ?:[\\/]*)
7095   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7096   ;;
7097   *)
7098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $ensc_searchpath
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103   for ac_exec_ext in '' $ac_executable_extensions; do
7104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110 done
7111
7112   ;;
7113 esac
7114 fi
7115 GZIP=$ac_cv_path_GZIP
7116
7117 if test -n "$GZIP"; then
7118   echo "$as_me:$LINENO: result: $GZIP" >&5
7119 echo "${ECHO_T}$GZIP" >&6
7120 else
7121   echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7123 fi
7124
7125   test -n "$GZIP" && break
7126 done
7127 test -n "$GZIP" || GZIP="$ensc_dflt"
7128
7129
7130         if test -z "${GZIP}" && $rq; then
7131                 if test -z ""; then
7132                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7133 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7134    { (exit 1); exit 1; }; }
7135                 else
7136                         { { echo "$as_me:$LINENO: error:
7137 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7138 " >&5
7139 echo "$as_me: error:
7140 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7141 " >&2;}
7142    { (exit 1); exit 1; }; }
7143                 fi
7144         fi
7145
7146         if test -e "${GZIP}"; then
7147                 GZIP=`readlink -f "${GZIP}"`
7148         fi
7149
7150         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7151
7152         test "${GZIP}"
7153
7154
7155
7156
7157         if test -z "bzip2"; then
7158                 rq=true
7159         else
7160                 rq=false
7161         fi
7162
7163         if $rq; then
7164                 ensc_dflt=
7165         else
7166                 ensc_dflt="bzip2"
7167         fi
7168
7169         for ac_prog in bzip2
7170 do
7171   # Extract the first word of "$ac_prog", so it can be a program name with args.
7172 set dummy $ac_prog; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_path_BZIP2+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $BZIP2 in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $ensc_searchpath
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196
7197   ;;
7198 esac
7199 fi
7200 BZIP2=$ac_cv_path_BZIP2
7201
7202 if test -n "$BZIP2"; then
7203   echo "$as_me:$LINENO: result: $BZIP2" >&5
7204 echo "${ECHO_T}$BZIP2" >&6
7205 else
7206   echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7208 fi
7209
7210   test -n "$BZIP2" && break
7211 done
7212 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7213
7214
7215         if test -z "${BZIP2}" && $rq; then
7216                 if test -z ""; then
7217                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7218 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7219    { (exit 1); exit 1; }; }
7220                 else
7221                         { { echo "$as_me:$LINENO: error:
7222 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7223 " >&5
7224 echo "$as_me: error:
7225 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7226 " >&2;}
7227    { (exit 1); exit 1; }; }
7228                 fi
7229         fi
7230
7231         if test -e "${BZIP2}"; then
7232                 BZIP2=`readlink -f "${BZIP2}"`
7233         fi
7234
7235         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7236
7237         test "${BZIP2}"
7238
7239
7240
7241
7242         if test -z "cpio"; then
7243                 rq=true
7244         else
7245                 rq=false
7246         fi
7247
7248         if $rq; then
7249                 ensc_dflt=
7250         else
7251                 ensc_dflt="cpio"
7252         fi
7253
7254         for ac_prog in cpio
7255 do
7256   # Extract the first word of "$ac_prog", so it can be a program name with args.
7257 set dummy $ac_prog; ac_word=$2
7258 echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7260 if test "${ac_cv_path_CPIO+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   case $CPIO in
7264   [\\/]* | ?:[\\/]*)
7265   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
7266   ;;
7267   *)
7268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $ensc_searchpath
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281
7282   ;;
7283 esac
7284 fi
7285 CPIO=$ac_cv_path_CPIO
7286
7287 if test -n "$CPIO"; then
7288   echo "$as_me:$LINENO: result: $CPIO" >&5
7289 echo "${ECHO_T}$CPIO" >&6
7290 else
7291   echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi
7294
7295   test -n "$CPIO" && break
7296 done
7297 test -n "$CPIO" || CPIO="$ensc_dflt"
7298
7299
7300         if test -z "${CPIO}" && $rq; then
7301                 if test -z ""; then
7302                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
7303 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7304    { (exit 1); exit 1; }; }
7305                 else
7306                         { { echo "$as_me:$LINENO: error:
7307 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7308 " >&5
7309 echo "$as_me: error:
7310 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7311 " >&2;}
7312    { (exit 1); exit 1; }; }
7313                 fi
7314         fi
7315
7316         if test -e "${CPIO}"; then
7317                 CPIO=`readlink -f "${CPIO}"`
7318         fi
7319
7320         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
7321
7322         test "${CPIO}"
7323
7324
7325
7326
7327         if test -z "restore"; then
7328                 rq=true
7329         else
7330                 rq=false
7331         fi
7332
7333         if $rq; then
7334                 ensc_dflt=
7335         else
7336                 ensc_dflt="restore"
7337         fi
7338
7339         for ac_prog in restore
7340 do
7341   # Extract the first word of "$ac_prog", so it can be a program name with args.
7342 set dummy $ac_prog; ac_word=$2
7343 echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345 if test "${ac_cv_path_RESTORE+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   case $RESTORE in
7349   [\\/]* | ?:[\\/]*)
7350   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
7351   ;;
7352   *)
7353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $ensc_searchpath
7355 do
7356   IFS=$as_save_IFS
7357   test -z "$as_dir" && as_dir=.
7358   for ac_exec_ext in '' $ac_executable_extensions; do
7359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
7361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362     break 2
7363   fi
7364 done
7365 done
7366
7367   ;;
7368 esac
7369 fi
7370 RESTORE=$ac_cv_path_RESTORE
7371
7372 if test -n "$RESTORE"; then
7373   echo "$as_me:$LINENO: result: $RESTORE" >&5
7374 echo "${ECHO_T}$RESTORE" >&6
7375 else
7376   echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6
7378 fi
7379
7380   test -n "$RESTORE" && break
7381 done
7382 test -n "$RESTORE" || RESTORE="$ensc_dflt"
7383
7384
7385         if test -z "${RESTORE}" && $rq; then
7386                 if test -z ""; then
7387                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
7388 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7389    { (exit 1); exit 1; }; }
7390                 else
7391                         { { echo "$as_me:$LINENO: error:
7392 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7393 " >&5
7394 echo "$as_me: error:
7395 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7396 " >&2;}
7397    { (exit 1); exit 1; }; }
7398                 fi
7399         fi
7400
7401         if test -e "${RESTORE}"; then
7402                 RESTORE=`readlink -f "${RESTORE}"`
7403         fi
7404
7405         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
7406
7407         test "${RESTORE}"
7408
7409
7410
7411
7412         if test -z "rsync"; then
7413                 rq=true
7414         else
7415                 rq=false
7416         fi
7417
7418         if $rq; then
7419                 ensc_dflt=
7420         else
7421                 ensc_dflt="rsync"
7422         fi
7423
7424         for ac_prog in rsync
7425 do
7426   # Extract the first word of "$ac_prog", so it can be a program name with args.
7427 set dummy $ac_prog; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_path_RSYNC+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   case $RSYNC in
7434   [\\/]* | ?:[\\/]*)
7435   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
7436   ;;
7437   *)
7438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $ensc_searchpath
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443   for ac_exec_ext in '' $ac_executable_extensions; do
7444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
7446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450 done
7451
7452   ;;
7453 esac
7454 fi
7455 RSYNC=$ac_cv_path_RSYNC
7456
7457 if test -n "$RSYNC"; then
7458   echo "$as_me:$LINENO: result: $RSYNC" >&5
7459 echo "${ECHO_T}$RSYNC" >&6
7460 else
7461   echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7463 fi
7464
7465   test -n "$RSYNC" && break
7466 done
7467 test -n "$RSYNC" || RSYNC="$ensc_dflt"
7468
7469
7470         if test -z "${RSYNC}" && $rq; then
7471                 if test -z ""; then
7472                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
7473 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7474    { (exit 1); exit 1; }; }
7475                 else
7476                         { { echo "$as_me:$LINENO: error:
7477 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7478 " >&5
7479 echo "$as_me: error:
7480 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7481 " >&2;}
7482    { (exit 1); exit 1; }; }
7483                 fi
7484         fi
7485
7486         if test -e "${RSYNC}"; then
7487                 RSYNC=`readlink -f "${RSYNC}"`
7488         fi
7489
7490         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
7491
7492         test "${RSYNC}"
7493
7494
7495
7496
7497
7498         if test -z ":"; then
7499                 rq=true
7500         else
7501                 rq=false
7502         fi
7503
7504         if $rq; then
7505                 ensc_dflt=
7506         else
7507                 ensc_dflt=":"
7508         fi
7509
7510         for ac_prog in doxygen
7511 do
7512   # Extract the first word of "$ac_prog", so it can be a program name with args.
7513 set dummy $ac_prog; ac_word=$2
7514 echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   case $DOXYGEN in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $ensc_searchpath
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537
7538   ;;
7539 esac
7540 fi
7541 DOXYGEN=$ac_cv_path_DOXYGEN
7542
7543 if test -n "$DOXYGEN"; then
7544   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7545 echo "${ECHO_T}$DOXYGEN" >&6
7546 else
7547   echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549 fi
7550
7551   test -n "$DOXYGEN" && break
7552 done
7553 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7554
7555
7556         if test -z "${DOXYGEN}" && $rq; then
7557                 if test -z ""; then
7558                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7559 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7560    { (exit 1); exit 1; }; }
7561                 else
7562                         { { echo "$as_me:$LINENO: error:
7563 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7564 " >&5
7565 echo "$as_me: error:
7566 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7567 " >&2;}
7568    { (exit 1); exit 1; }; }
7569                 fi
7570         fi
7571
7572         if test -e "${DOXYGEN}"; then
7573                 DOXYGEN=`readlink -f "${DOXYGEN}"`
7574         fi
7575
7576         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7577
7578         test "${DOXYGEN}"
7579
7580
7581
7582
7583         if test -z ":"; then
7584                 rq=true
7585         else
7586                 rq=false
7587         fi
7588
7589         if $rq; then
7590                 ensc_dflt=
7591         else
7592                 ensc_dflt=":"
7593         fi
7594
7595         for ac_prog in xsltp
7596 do
7597   # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7601 if test "${ac_cv_path_XSLTP+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   case $XSLTP in
7605   [\\/]* | ?:[\\/]*)
7606   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7607   ;;
7608   *)
7609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $ensc_searchpath
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614   for ac_exec_ext in '' $ac_executable_extensions; do
7615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621 done
7622
7623   ;;
7624 esac
7625 fi
7626 XSLTP=$ac_cv_path_XSLTP
7627
7628 if test -n "$XSLTP"; then
7629   echo "$as_me:$LINENO: result: $XSLTP" >&5
7630 echo "${ECHO_T}$XSLTP" >&6
7631 else
7632   echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7634 fi
7635
7636   test -n "$XSLTP" && break
7637 done
7638 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7639
7640
7641         if test -z "${XSLTP}" && $rq; then
7642                 if test -z ""; then
7643                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7644 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7645    { (exit 1); exit 1; }; }
7646                 else
7647                         { { echo "$as_me:$LINENO: error:
7648 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7649 " >&5
7650 echo "$as_me: error:
7651 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7652 " >&2;}
7653    { (exit 1); exit 1; }; }
7654                 fi
7655         fi
7656
7657         if test -e "${XSLTP}"; then
7658                 XSLTP=`readlink -f "${XSLTP}"`
7659         fi
7660
7661         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7662
7663         test "${XSLTP}"
7664
7665
7666
7667
7668         if test -z ":"; then
7669                 rq=true
7670         else
7671                 rq=false
7672         fi
7673
7674         if $rq; then
7675                 ensc_dflt=
7676         else
7677                 ensc_dflt=":"
7678         fi
7679
7680         for ac_prog in xsltproc
7681 do
7682   # Extract the first word of "$ac_prog", so it can be a program name with args.
7683 set dummy $ac_prog; ac_word=$2
7684 echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7686 if test "${ac_cv_path_XSLTPROC+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   case $XSLTPROC in
7690   [\\/]* | ?:[\\/]*)
7691   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7692   ;;
7693   *)
7694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $ensc_searchpath
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707
7708   ;;
7709 esac
7710 fi
7711 XSLTPROC=$ac_cv_path_XSLTPROC
7712
7713 if test -n "$XSLTPROC"; then
7714   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7715 echo "${ECHO_T}$XSLTPROC" >&6
7716 else
7717   echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7719 fi
7720
7721   test -n "$XSLTPROC" && break
7722 done
7723 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7724
7725
7726         if test -z "${XSLTPROC}" && $rq; then
7727                 if test -z ""; then
7728                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7729 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7730    { (exit 1); exit 1; }; }
7731                 else
7732                         { { echo "$as_me:$LINENO: error:
7733 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7734 " >&5
7735 echo "$as_me: error:
7736 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7737 " >&2;}
7738    { (exit 1); exit 1; }; }
7739                 fi
7740         fi
7741
7742         if test -e "${XSLTPROC}"; then
7743                 XSLTPROC=`readlink -f "${XSLTPROC}"`
7744         fi
7745
7746         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7747
7748         test "${XSLTPROC}"
7749
7750
7751
7752
7753 if test "$XSLTP"    != ':'; then
7754   HAVE_XSLTP_TRUE=
7755   HAVE_XSLTP_FALSE='#'
7756 else
7757   HAVE_XSLTP_TRUE='#'
7758   HAVE_XSLTP_FALSE=
7759 fi
7760
7761
7762
7763 if test "$XSLTPROC" != ':'; then
7764   HAVE_XSLTPROC_TRUE=
7765   HAVE_XSLTPROC_FALSE='#'
7766 else
7767   HAVE_XSLTPROC_TRUE='#'
7768   HAVE_XSLTPROC_FALSE=
7769 fi
7770
7771
7772 if test x"$prefix" = x/; then
7773         prefix=
7774 fi
7775
7776
7777
7778         warn_flags="-Werror -W"
7779         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7780 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7781         ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7788         CFLAGS="$warn_flags"
7789         cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 inline static void f(){}
7796 int
7797 main ()
7798 {
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806   (eval $ac_compile) 2>conftest.er1
7807   ac_status=$?
7808   grep -v '^ *+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -z "$ac_c_werror_flag"
7814                          || test ! -s conftest.err'
7815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816   (eval $ac_try) 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; } &&
7820          { ac_try='test -s conftest.$ac_objext'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; }; then
7826   ensc_sys_compilerwarnflags_C=${warn_flags}
7827 else
7828   echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 ensc_sys_compilerwarnflags_C=
7832 fi
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834         ac_ext=c
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
7840         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7841
7842         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7843                 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7845         else
7846                 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7848         fi
7849
7850
7851
7852
7853
7854 echo 'void f(){}' > conftest.c
7855   for i in -std=c99 -Wall -pedantic -W
7856   do
7857     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7858 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7859     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7860     then
7861       CFLAGS="${CFLAGS} $i"
7862       echo "$as_me:$LINENO: result: yes" >&5
7863 echo "${ECHO_T}yes" >&6
7864     else
7865       echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6
7867     fi
7868   done
7869   rm -f conftest.c conftest.o
7870
7871
7872
7873         warn_flags="-Werror -W"
7874         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7875 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7876         ac_ext=cc
7877 ac_cpp='$CXXCPP $CPPFLAGS'
7878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7881
7882         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7883         CXXFLAGS="$warn_flags"
7884         cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h.  */
7890 inline static void f(){}
7891 int
7892 main ()
7893 {
7894
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901   (eval $ac_compile) 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -z "$ac_cxx_werror_flag"
7909                          || test ! -s conftest.err'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest.$ac_objext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   ensc_sys_compilerwarnflags_CXX=${warn_flags}
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 ensc_sys_compilerwarnflags_CXX=
7927 fi
7928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7929         ac_ext=c
7930 ac_cpp='$CPP $CPPFLAGS'
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934
7935         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7936
7937         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7938                 echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6
7940         else
7941                 echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6
7943         fi
7944
7945
7946
7947
7948
7949   echo 'void f(){}' > conftest.cc
7950   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
7951   do
7952     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7953 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7954     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7955     then
7956       CXXFLAGS="${CXXFLAGS} $i"
7957       echo "$as_me:$LINENO: result: yes" >&5
7958 echo "${ECHO_T}yes" >&6
7959     else
7960       echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7962     fi
7963   done
7964   rm -f conftest.cc conftest.o
7965
7966
7967 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7968 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7969 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7970 if test "${enable_extra_optimizations+set}" = set; then
7971   enableval="$enable_extra_optimizations"
7972   case "$enableval" in
7973                   (yes) use_extra_optimizations=1;;
7974                   (no)  use_extra_optimizations=;;
7975                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7976 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7977    { (exit 1); exit 1; }; };;
7978                esac
7979 else
7980   use_extra_optimizations=1
7981 fi;
7982
7983 if test x"$use_extra_optimizations" = x; then
7984         echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6
7986 else
7987         echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7989
7990
7991
7992 echo 'void f(){}' > conftest.c
7993   for i in -funit-at-a-time
7994   do
7995     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7996 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7997     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7998     then
7999       CFLAGS="${CFLAGS} $i"
8000       echo "$as_me:$LINENO: result: yes" >&5
8001 echo "${ECHO_T}yes" >&6
8002     else
8003       echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6
8005     fi
8006   done
8007   rm -f conftest.c conftest.o
8008
8009
8010
8011
8012   echo 'void f(){}' > conftest.cc
8013   for i in -funit-at-a-time
8014   do
8015     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8016 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
8017     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8018     then
8019       CXXFLAGS="${CXXFLAGS} $i"
8020       echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8022     else
8023       echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6
8025     fi
8026   done
8027   rm -f conftest.cc conftest.o
8028
8029 fi
8030
8031 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8032 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
8033 # Check whether --enable-lib-debug or --disable-lib-debug was given.
8034 if test "${enable_lib_debug+set}" = set; then
8035   enableval="$enable_lib_debug"
8036   case "$enableval" in
8037                   (yes) use_lib_debug=1;;
8038                   (no)  use_lib_debug=;;
8039                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8040 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8041    { (exit 1); exit 1; }; };;
8042                esac
8043 else
8044    use_lib_debug=
8045 fi;
8046
8047 if test x"$use_lib_debug" = x; then
8048         LIB_DEBUG_CPPFLAGS=-DNDEBUG
8049
8050         echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6
8052 else
8053
8054         echo "$as_me:$LINENO: result: yes" >&5
8055 echo "${ECHO_T}yes" >&6
8056 fi
8057
8058 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8059 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
8060 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
8061 if test "${enable_expensive_tests+set}" = set; then
8062   enableval="$enable_expensive_tests"
8063   case "$enableval" in
8064                  (yes|no)  use_expensive_tests=$enableval;;
8065                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8066 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8067    { (exit 1); exit 1; }; };;
8068                esac
8069 else
8070    use_expensive_tests=no
8071 fi;
8072 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8073 echo "${ECHO_T}$use_expensive_tests" >&6
8074
8075 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8076
8077
8078
8079
8080         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8081 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
8082         echo "$as_me:$LINENO: result: " >&5
8083 echo "${ECHO_T}" >&6
8084
8085         ac_ext=c
8086 ac_cpp='$CPP $CPPFLAGS'
8087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8090
8091         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
8092 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
8093 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
8094   echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096   cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102
8103 #include <linux/personality.h>
8104
8105
8106 int
8107 main ()
8108 {
8109 #ifndef MMAP_PAGE_ZERO
8110   char *p = (char *) MMAP_PAGE_ZERO;
8111 #endif
8112
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8119   (eval $ac_compile) 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -z "$ac_c_werror_flag"
8127                          || test ! -s conftest.err'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; } &&
8133          { ac_try='test -s conftest.$ac_objext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_cv_have_decl_MMAP_PAGE_ZERO=no
8145 fi
8146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
8149 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
8150 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
8151
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_MMAP_PAGE_ZERO 1
8154 _ACEOF
8155
8156
8157 else
8158   cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DECL_MMAP_PAGE_ZERO 0
8160 _ACEOF
8161
8162
8163 fi
8164 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
8165 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
8166 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175
8176 #include <linux/personality.h>
8177
8178
8179 int
8180 main ()
8181 {
8182 #ifndef ADDR_LIMIT_32BIT
8183   char *p = (char *) ADDR_LIMIT_32BIT;
8184 #endif
8185
8186   ;
8187   return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192   (eval $ac_compile) 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } &&
8199          { ac_try='test -z "$ac_c_werror_flag"
8200                          || test ! -s conftest.err'
8201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202   (eval $ac_try) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; } &&
8206          { ac_try='test -s conftest.$ac_objext'
8207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208   (eval $ac_try) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); }; }; then
8212   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
8213 else
8214   echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
8218 fi
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
8222 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
8223 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
8227 _ACEOF
8228
8229
8230 else
8231   cat >>confdefs.h <<_ACEOF
8232 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
8233 _ACEOF
8234
8235
8236 fi
8237 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
8238 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
8239 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248
8249 #include <linux/personality.h>
8250
8251
8252 int
8253 main ()
8254 {
8255 #ifndef SHORT_INODE
8256   char *p = (char *) SHORT_INODE;
8257 #endif
8258
8259   ;
8260   return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8265   (eval $ac_compile) 2>conftest.er1
8266   ac_status=$?
8267   grep -v '^ *+' conftest.er1 >conftest.err
8268   rm -f conftest.er1
8269   cat conftest.err >&5
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } &&
8272          { ac_try='test -z "$ac_c_werror_flag"
8273                          || test ! -s conftest.err'
8274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275   (eval $ac_try) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; } &&
8279          { ac_try='test -s conftest.$ac_objext'
8280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281   (eval $ac_try) 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); }; }; then
8285   ac_cv_have_decl_SHORT_INODE=yes
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290 ac_cv_have_decl_SHORT_INODE=no
8291 fi
8292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
8295 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
8296 if test $ac_cv_have_decl_SHORT_INODE = yes; then
8297
8298 cat >>confdefs.h <<_ACEOF
8299 #define HAVE_DECL_SHORT_INODE 1
8300 _ACEOF
8301
8302
8303 else
8304   cat >>confdefs.h <<_ACEOF
8305 #define HAVE_DECL_SHORT_INODE 0
8306 _ACEOF
8307
8308
8309 fi
8310 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
8311 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
8312 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321
8322 #include <linux/personality.h>
8323
8324
8325 int
8326 main ()
8327 {
8328 #ifndef WHOLE_SECONDS
8329   char *p = (char *) WHOLE_SECONDS;
8330 #endif
8331
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338   (eval $ac_compile) 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -z "$ac_c_werror_flag"
8346                          || test ! -s conftest.err'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; } &&
8352          { ac_try='test -s conftest.$ac_objext'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; }; then
8358   ac_cv_have_decl_WHOLE_SECONDS=yes
8359 else
8360   echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_have_decl_WHOLE_SECONDS=no
8364 fi
8365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8366 fi
8367 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
8368 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
8369 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
8370
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_DECL_WHOLE_SECONDS 1
8373 _ACEOF
8374
8375
8376 else
8377   cat >>confdefs.h <<_ACEOF
8378 #define HAVE_DECL_WHOLE_SECONDS 0
8379 _ACEOF
8380
8381
8382 fi
8383 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
8384 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
8385 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394
8395 #include <linux/personality.h>
8396
8397
8398 int
8399 main ()
8400 {
8401 #ifndef STICKY_TIMEOUTS
8402   char *p = (char *) STICKY_TIMEOUTS;
8403 #endif
8404
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8411   (eval $ac_compile) 2>conftest.er1
8412   ac_status=$?
8413   grep -v '^ *+' conftest.er1 >conftest.err
8414   rm -f conftest.er1
8415   cat conftest.err >&5
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); } &&
8418          { ac_try='test -z "$ac_c_werror_flag"
8419                          || test ! -s conftest.err'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; } &&
8425          { ac_try='test -s conftest.$ac_objext'
8426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427   (eval $ac_try) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; }; then
8431   ac_cv_have_decl_STICKY_TIMEOUTS=yes
8432 else
8433   echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 ac_cv_have_decl_STICKY_TIMEOUTS=no
8437 fi
8438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8439 fi
8440 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
8441 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
8442 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
8443
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_DECL_STICKY_TIMEOUTS 1
8446 _ACEOF
8447
8448
8449 else
8450   cat >>confdefs.h <<_ACEOF
8451 #define HAVE_DECL_STICKY_TIMEOUTS 0
8452 _ACEOF
8453
8454
8455 fi
8456 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
8457 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
8458 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h.  */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h.  */
8467
8468 #include <linux/personality.h>
8469
8470
8471 int
8472 main ()
8473 {
8474 #ifndef ADDR_LIMIT_3GB
8475   char *p = (char *) ADDR_LIMIT_3GB;
8476 #endif
8477
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8514 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8515 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8516
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8519 _ACEOF
8520
8521
8522 else
8523   cat >>confdefs.h <<_ACEOF
8524 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8525 _ACEOF
8526
8527
8528 fi
8529
8530
8531
8532         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8533 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8534 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h.  */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h.  */
8543
8544 #include <linux/personality.h>
8545
8546
8547 int
8548 main ()
8549 {
8550 #ifndef PER_LINUX
8551   char *p = (char *) PER_LINUX;
8552 #endif
8553
8554   ;
8555   return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560   (eval $ac_compile) 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } &&
8567          { ac_try='test -z "$ac_c_werror_flag"
8568                          || test ! -s conftest.err'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; } &&
8574          { ac_try='test -s conftest.$ac_objext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_have_decl_PER_LINUX=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_cv_have_decl_PER_LINUX=no
8586 fi
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588 fi
8589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8590 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8591 if test $ac_cv_have_decl_PER_LINUX = yes; then
8592
8593 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_DECL_PER_LINUX 1
8595 _ACEOF
8596
8597
8598 else
8599   cat >>confdefs.h <<_ACEOF
8600 #define HAVE_DECL_PER_LINUX 0
8601 _ACEOF
8602
8603
8604 fi
8605 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8606 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8607 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616
8617 #include <linux/personality.h>
8618
8619
8620 int
8621 main ()
8622 {
8623 #ifndef PER_LINUX_32BIT
8624   char *p = (char *) PER_LINUX_32BIT;
8625 #endif
8626
8627   ;
8628   return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633   (eval $ac_compile) 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -z "$ac_c_werror_flag"
8641                          || test ! -s conftest.err'
8642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643   (eval $ac_try) 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; } &&
8647          { ac_try='test -s conftest.$ac_objext'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; }; then
8653   ac_cv_have_decl_PER_LINUX_32BIT=yes
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_cv_have_decl_PER_LINUX_32BIT=no
8659 fi
8660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8663 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8664 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8665
8666 cat >>confdefs.h <<_ACEOF
8667 #define HAVE_DECL_PER_LINUX_32BIT 1
8668 _ACEOF
8669
8670
8671 else
8672   cat >>confdefs.h <<_ACEOF
8673 #define HAVE_DECL_PER_LINUX_32BIT 0
8674 _ACEOF
8675
8676
8677 fi
8678 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8679 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8680 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 #include <linux/personality.h>
8691
8692
8693 int
8694 main ()
8695 {
8696 #ifndef PER_SVR4
8697   char *p = (char *) PER_SVR4;
8698 #endif
8699
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8706   (eval $ac_compile) 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag"
8714                          || test ! -s conftest.err'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; } &&
8720          { ac_try='test -s conftest.$ac_objext'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; }; then
8726   ac_cv_have_decl_PER_SVR4=yes
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_cv_have_decl_PER_SVR4=no
8732 fi
8733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8734 fi
8735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8736 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8737 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8738
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_DECL_PER_SVR4 1
8741 _ACEOF
8742
8743
8744 else
8745   cat >>confdefs.h <<_ACEOF
8746 #define HAVE_DECL_PER_SVR4 0
8747 _ACEOF
8748
8749
8750 fi
8751 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8752 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8753 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756   cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h.  */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h.  */
8762
8763 #include <linux/personality.h>
8764
8765
8766 int
8767 main ()
8768 {
8769 #ifndef PER_SVR3
8770   char *p = (char *) PER_SVR3;
8771 #endif
8772
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779   (eval $ac_compile) 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } &&
8786          { ac_try='test -z "$ac_c_werror_flag"
8787                          || test ! -s conftest.err'
8788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789   (eval $ac_try) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; } &&
8793          { ac_try='test -s conftest.$ac_objext'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   ac_cv_have_decl_PER_SVR3=yes
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_cv_have_decl_PER_SVR3=no
8805 fi
8806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8807 fi
8808 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8809 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8810 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8811
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_DECL_PER_SVR3 1
8814 _ACEOF
8815
8816
8817 else
8818   cat >>confdefs.h <<_ACEOF
8819 #define HAVE_DECL_PER_SVR3 0
8820 _ACEOF
8821
8822
8823 fi
8824 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8825 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8826 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829   cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835
8836 #include <linux/personality.h>
8837
8838
8839 int
8840 main ()
8841 {
8842 #ifndef PER_SCOSVR3
8843   char *p = (char *) PER_SCOSVR3;
8844 #endif
8845
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag"
8860                          || test ! -s conftest.err'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_have_decl_PER_SCOSVR3=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_have_decl_PER_SCOSVR3=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8882 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8883 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8884
8885 cat >>confdefs.h <<_ACEOF
8886 #define HAVE_DECL_PER_SCOSVR3 1
8887 _ACEOF
8888
8889
8890 else
8891   cat >>confdefs.h <<_ACEOF
8892 #define HAVE_DECL_PER_SCOSVR3 0
8893 _ACEOF
8894
8895
8896 fi
8897 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8898 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8899 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908
8909 #include <linux/personality.h>
8910
8911
8912 int
8913 main ()
8914 {
8915 #ifndef PER_OSR5
8916   char *p = (char *) PER_OSR5;
8917 #endif
8918
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925   (eval $ac_compile) 2>conftest.er1
8926   ac_status=$?
8927   grep -v '^ *+' conftest.er1 >conftest.err
8928   rm -f conftest.er1
8929   cat conftest.err >&5
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } &&
8932          { ac_try='test -z "$ac_c_werror_flag"
8933                          || test ! -s conftest.err'
8934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935   (eval $ac_try) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; } &&
8939          { ac_try='test -s conftest.$ac_objext'
8940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941   (eval $ac_try) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); }; }; then
8945   ac_cv_have_decl_PER_OSR5=yes
8946 else
8947   echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950 ac_cv_have_decl_PER_OSR5=no
8951 fi
8952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8955 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8956 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8957
8958 cat >>confdefs.h <<_ACEOF
8959 #define HAVE_DECL_PER_OSR5 1
8960 _ACEOF
8961
8962
8963 else
8964   cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_PER_OSR5 0
8966 _ACEOF
8967
8968
8969 fi
8970 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8971 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8972 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8973   echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975   cat >conftest.$ac_ext <<_ACEOF
8976 /* confdefs.h.  */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h.  */
8981
8982 #include <linux/personality.h>
8983
8984
8985 int
8986 main ()
8987 {
8988 #ifndef PER_WYSEV386
8989   char *p = (char *) PER_WYSEV386;
8990 #endif
8991
8992   ;
8993   return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8998   (eval $ac_compile) 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } &&
9005          { ac_try='test -z "$ac_c_werror_flag"
9006                          || test ! -s conftest.err'
9007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008   (eval $ac_try) 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); }; } &&
9012          { ac_try='test -s conftest.$ac_objext'
9013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014   (eval $ac_try) 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); }; }; then
9018   ac_cv_have_decl_PER_WYSEV386=yes
9019 else
9020   echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 ac_cv_have_decl_PER_WYSEV386=no
9024 fi
9025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9026 fi
9027 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9028 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
9029 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9030
9031 cat >>confdefs.h <<_ACEOF
9032 #define HAVE_DECL_PER_WYSEV386 1
9033 _ACEOF
9034
9035
9036 else
9037   cat >>confdefs.h <<_ACEOF
9038 #define HAVE_DECL_PER_WYSEV386 0
9039 _ACEOF
9040
9041
9042 fi
9043 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9044 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
9045 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048   cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054
9055 #include <linux/personality.h>
9056
9057
9058 int
9059 main ()
9060 {
9061 #ifndef PER_ISCR4
9062   char *p = (char *) PER_ISCR4;
9063 #endif
9064
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071   (eval $ac_compile) 2>conftest.er1
9072   ac_status=$?
9073   grep -v '^ *+' conftest.er1 >conftest.err
9074   rm -f conftest.er1
9075   cat conftest.err >&5
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -z "$ac_c_werror_flag"
9079                          || test ! -s conftest.err'
9080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081   (eval $ac_try) 2>&5
9082   ac_status=$?
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); }; } &&
9085          { ac_try='test -s conftest.$ac_objext'
9086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087   (eval $ac_try) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); }; }; then
9091   ac_cv_have_decl_PER_ISCR4=yes
9092 else
9093   echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9095
9096 ac_cv_have_decl_PER_ISCR4=no
9097 fi
9098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9099 fi
9100 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9101 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
9102 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9103
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_DECL_PER_ISCR4 1
9106 _ACEOF
9107
9108
9109 else
9110   cat >>confdefs.h <<_ACEOF
9111 #define HAVE_DECL_PER_ISCR4 0
9112 _ACEOF
9113
9114
9115 fi
9116 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9117 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
9118 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121   cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127
9128 #include <linux/personality.h>
9129
9130
9131 int
9132 main ()
9133 {
9134 #ifndef PER_BSD
9135   char *p = (char *) PER_BSD;
9136 #endif
9137
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144   (eval $ac_compile) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } &&
9151          { ac_try='test -z "$ac_c_werror_flag"
9152                          || test ! -s conftest.err'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest.$ac_objext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_cv_have_decl_PER_BSD=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_cv_have_decl_PER_BSD=no
9170 fi
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
9174 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
9175 if test $ac_cv_have_decl_PER_BSD = yes; then
9176
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_DECL_PER_BSD 1
9179 _ACEOF
9180
9181
9182 else
9183   cat >>confdefs.h <<_ACEOF
9184 #define HAVE_DECL_PER_BSD 0
9185 _ACEOF
9186
9187
9188 fi
9189 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
9190 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
9191 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h.  */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h.  */
9200
9201 #include <linux/personality.h>
9202
9203
9204 int
9205 main ()
9206 {
9207 #ifndef PER_SUNOS
9208   char *p = (char *) PER_SUNOS;
9209 #endif
9210
9211   ;
9212   return 0;
9213 }
9214 _ACEOF
9215 rm -f conftest.$ac_objext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217   (eval $ac_compile) 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } &&
9224          { ac_try='test -z "$ac_c_werror_flag"
9225                          || test ! -s conftest.err'
9226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227   (eval $ac_try) 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; } &&
9231          { ac_try='test -s conftest.$ac_objext'
9232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233   (eval $ac_try) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   ac_cv_have_decl_PER_SUNOS=yes
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242 ac_cv_have_decl_PER_SUNOS=no
9243 fi
9244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245 fi
9246 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
9247 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
9248 if test $ac_cv_have_decl_PER_SUNOS = yes; then
9249
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_DECL_PER_SUNOS 1
9252 _ACEOF
9253
9254
9255 else
9256   cat >>confdefs.h <<_ACEOF
9257 #define HAVE_DECL_PER_SUNOS 0
9258 _ACEOF
9259
9260
9261 fi
9262 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
9263 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
9264 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273
9274 #include <linux/personality.h>
9275
9276
9277 int
9278 main ()
9279 {
9280 #ifndef PER_XENIX
9281   char *p = (char *) PER_XENIX;
9282 #endif
9283
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290   (eval $ac_compile) 2>conftest.er1
9291   ac_status=$?
9292   grep -v '^ *+' conftest.er1 >conftest.err
9293   rm -f conftest.er1
9294   cat conftest.err >&5
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } &&
9297          { ac_try='test -z "$ac_c_werror_flag"
9298                          || test ! -s conftest.err'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; } &&
9304          { ac_try='test -s conftest.$ac_objext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310   ac_cv_have_decl_PER_XENIX=yes
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 ac_cv_have_decl_PER_XENIX=no
9316 fi
9317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
9320 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
9321 if test $ac_cv_have_decl_PER_XENIX = yes; then
9322
9323 cat >>confdefs.h <<_ACEOF
9324 #define HAVE_DECL_PER_XENIX 1
9325 _ACEOF
9326
9327
9328 else
9329   cat >>confdefs.h <<_ACEOF
9330 #define HAVE_DECL_PER_XENIX 0
9331 _ACEOF
9332
9333
9334 fi
9335 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
9336 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
9337 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
9338   echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340   cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346
9347 #include <linux/personality.h>
9348
9349
9350 int
9351 main ()
9352 {
9353 #ifndef PER_LINUX32
9354   char *p = (char *) PER_LINUX32;
9355 #endif
9356
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9363   (eval $ac_compile) 2>conftest.er1
9364   ac_status=$?
9365   grep -v '^ *+' conftest.er1 >conftest.err
9366   rm -f conftest.er1
9367   cat conftest.err >&5
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } &&
9370          { ac_try='test -z "$ac_c_werror_flag"
9371                          || test ! -s conftest.err'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; } &&
9377          { ac_try='test -s conftest.$ac_objext'
9378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379   (eval $ac_try) 2>&5
9380   ac_status=$?
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); }; }; then
9383   ac_cv_have_decl_PER_LINUX32=yes
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 ac_cv_have_decl_PER_LINUX32=no
9389 fi
9390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
9393 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
9394 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
9395
9396 cat >>confdefs.h <<_ACEOF
9397 #define HAVE_DECL_PER_LINUX32 1
9398 _ACEOF
9399
9400
9401 else
9402   cat >>confdefs.h <<_ACEOF
9403 #define HAVE_DECL_PER_LINUX32 0
9404 _ACEOF
9405
9406
9407 fi
9408 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
9409 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
9410 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419
9420 #include <linux/personality.h>
9421
9422
9423 int
9424 main ()
9425 {
9426 #ifndef PER_LINUX32_3GB
9427   char *p = (char *) PER_LINUX32_3GB;
9428 #endif
9429
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 rm -f conftest.$ac_objext
9435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436   (eval $ac_compile) 2>conftest.er1
9437   ac_status=$?
9438   grep -v '^ *+' conftest.er1 >conftest.err
9439   rm -f conftest.er1
9440   cat conftest.err >&5
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); } &&
9443          { ac_try='test -z "$ac_c_werror_flag"
9444                          || test ! -s conftest.err'
9445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446   (eval $ac_try) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); }; } &&
9450          { ac_try='test -s conftest.$ac_objext'
9451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452   (eval $ac_try) 2>&5
9453   ac_status=$?
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); }; }; then
9456   ac_cv_have_decl_PER_LINUX32_3GB=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_cv_have_decl_PER_LINUX32_3GB=no
9462 fi
9463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9464 fi
9465 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
9466 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
9467 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
9468
9469 cat >>confdefs.h <<_ACEOF
9470 #define HAVE_DECL_PER_LINUX32_3GB 1
9471 _ACEOF
9472
9473
9474 else
9475   cat >>confdefs.h <<_ACEOF
9476 #define HAVE_DECL_PER_LINUX32_3GB 0
9477 _ACEOF
9478
9479
9480 fi
9481 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
9482 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
9483 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492
9493 #include <linux/personality.h>
9494
9495
9496 int
9497 main ()
9498 {
9499 #ifndef PER_IRIX32
9500   char *p = (char *) PER_IRIX32;
9501 #endif
9502
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext
9508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9509   (eval $ac_compile) 2>conftest.er1
9510   ac_status=$?
9511   grep -v '^ *+' conftest.er1 >conftest.err
9512   rm -f conftest.er1
9513   cat conftest.err >&5
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } &&
9516          { ac_try='test -z "$ac_c_werror_flag"
9517                          || test ! -s conftest.err'
9518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519   (eval $ac_try) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); }; } &&
9523          { ac_try='test -s conftest.$ac_objext'
9524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525   (eval $ac_try) 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; }; then
9529   ac_cv_have_decl_PER_IRIX32=yes
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534 ac_cv_have_decl_PER_IRIX32=no
9535 fi
9536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9539 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9540 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9541
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_DECL_PER_IRIX32 1
9544 _ACEOF
9545
9546
9547 else
9548   cat >>confdefs.h <<_ACEOF
9549 #define HAVE_DECL_PER_IRIX32 0
9550 _ACEOF
9551
9552
9553 fi
9554 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9555 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9556 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565
9566 #include <linux/personality.h>
9567
9568
9569 int
9570 main ()
9571 {
9572 #ifndef PER_IRIXN32
9573   char *p = (char *) PER_IRIXN32;
9574 #endif
9575
9576   ;
9577   return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582   (eval $ac_compile) 2>conftest.er1
9583   ac_status=$?
9584   grep -v '^ *+' conftest.er1 >conftest.err
9585   rm -f conftest.er1
9586   cat conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } &&
9589          { ac_try='test -z "$ac_c_werror_flag"
9590                          || test ! -s conftest.err'
9591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592   (eval $ac_try) 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; } &&
9596          { ac_try='test -s conftest.$ac_objext'
9597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598   (eval $ac_try) 2>&5
9599   ac_status=$?
9600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601   (exit $ac_status); }; }; then
9602   ac_cv_have_decl_PER_IRIXN32=yes
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607 ac_cv_have_decl_PER_IRIXN32=no
9608 fi
9609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9610 fi
9611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9612 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9613 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9614
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_DECL_PER_IRIXN32 1
9617 _ACEOF
9618
9619
9620 else
9621   cat >>confdefs.h <<_ACEOF
9622 #define HAVE_DECL_PER_IRIXN32 0
9623 _ACEOF
9624
9625
9626 fi
9627 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9628 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9629 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9630   echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632   cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638
9639 #include <linux/personality.h>
9640
9641
9642 int
9643 main ()
9644 {
9645 #ifndef PER_IRIX64
9646   char *p = (char *) PER_IRIX64;
9647 #endif
9648
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655   (eval $ac_compile) 2>conftest.er1
9656   ac_status=$?
9657   grep -v '^ *+' conftest.er1 >conftest.err
9658   rm -f conftest.er1
9659   cat conftest.err >&5
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -z "$ac_c_werror_flag"
9663                          || test ! -s conftest.err'
9664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665   (eval $ac_try) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest.$ac_objext'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ac_cv_have_decl_PER_IRIX64=yes
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_cv_have_decl_PER_IRIX64=no
9681 fi
9682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9683 fi
9684 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9685 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9686 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9687
9688 cat >>confdefs.h <<_ACEOF
9689 #define HAVE_DECL_PER_IRIX64 1
9690 _ACEOF
9691
9692
9693 else
9694   cat >>confdefs.h <<_ACEOF
9695 #define HAVE_DECL_PER_IRIX64 0
9696 _ACEOF
9697
9698
9699 fi
9700 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9701 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9702 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711
9712 #include <linux/personality.h>
9713
9714
9715 int
9716 main ()
9717 {
9718 #ifndef PER_RISCOS
9719   char *p = (char *) PER_RISCOS;
9720 #endif
9721
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728   (eval $ac_compile) 2>conftest.er1
9729   ac_status=$?
9730   grep -v '^ *+' conftest.er1 >conftest.err
9731   rm -f conftest.er1
9732   cat conftest.err >&5
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } &&
9735          { ac_try='test -z "$ac_c_werror_flag"
9736                          || test ! -s conftest.err'
9737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738   (eval $ac_try) 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); }; } &&
9742          { ac_try='test -s conftest.$ac_objext'
9743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744   (eval $ac_try) 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; }; then
9748   ac_cv_have_decl_PER_RISCOS=yes
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 ac_cv_have_decl_PER_RISCOS=no
9754 fi
9755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9756 fi
9757 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9758 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9759 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9760
9761 cat >>confdefs.h <<_ACEOF
9762 #define HAVE_DECL_PER_RISCOS 1
9763 _ACEOF
9764
9765
9766 else
9767   cat >>confdefs.h <<_ACEOF
9768 #define HAVE_DECL_PER_RISCOS 0
9769 _ACEOF
9770
9771
9772 fi
9773 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9774 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9775 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784
9785 #include <linux/personality.h>
9786
9787
9788 int
9789 main ()
9790 {
9791 #ifndef PER_SOLARIS
9792   char *p = (char *) PER_SOLARIS;
9793 #endif
9794
9795   ;
9796   return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801   (eval $ac_compile) 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } &&
9808          { ac_try='test -z "$ac_c_werror_flag"
9809                          || test ! -s conftest.err'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; } &&
9815          { ac_try='test -s conftest.$ac_objext'
9816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817   (eval $ac_try) 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; }; then
9821   ac_cv_have_decl_PER_SOLARIS=yes
9822 else
9823   echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826 ac_cv_have_decl_PER_SOLARIS=no
9827 fi
9828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9829 fi
9830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9831 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9832 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9833
9834 cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DECL_PER_SOLARIS 1
9836 _ACEOF
9837
9838
9839 else
9840   cat >>confdefs.h <<_ACEOF
9841 #define HAVE_DECL_PER_SOLARIS 0
9842 _ACEOF
9843
9844
9845 fi
9846 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9847 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9848 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 #include <linux/personality.h>
9859
9860
9861 int
9862 main ()
9863 {
9864 #ifndef PER_UW7
9865   char *p = (char *) PER_UW7;
9866 #endif
9867
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext
9873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9874   (eval $ac_compile) 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } &&
9881          { ac_try='test -z "$ac_c_werror_flag"
9882                          || test ! -s conftest.err'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; } &&
9888          { ac_try='test -s conftest.$ac_objext'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894   ac_cv_have_decl_PER_UW7=yes
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899 ac_cv_have_decl_PER_UW7=no
9900 fi
9901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902 fi
9903 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9904 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9905 if test $ac_cv_have_decl_PER_UW7 = yes; then
9906
9907 cat >>confdefs.h <<_ACEOF
9908 #define HAVE_DECL_PER_UW7 1
9909 _ACEOF
9910
9911
9912 else
9913   cat >>confdefs.h <<_ACEOF
9914 #define HAVE_DECL_PER_UW7 0
9915 _ACEOF
9916
9917
9918 fi
9919 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9920 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9921 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h.  */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h.  */
9930
9931 #include <linux/personality.h>
9932
9933
9934 int
9935 main ()
9936 {
9937 #ifndef PER_HPUX
9938   char *p = (char *) PER_HPUX;
9939 #endif
9940
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947   (eval $ac_compile) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag"
9955                          || test ! -s conftest.err'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; } &&
9961          { ac_try='test -s conftest.$ac_objext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_cv_have_decl_PER_HPUX=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_cv_have_decl_PER_HPUX=no
9973 fi
9974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9975 fi
9976 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9977 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9978 if test $ac_cv_have_decl_PER_HPUX = yes; then
9979
9980 cat >>confdefs.h <<_ACEOF
9981 #define HAVE_DECL_PER_HPUX 1
9982 _ACEOF
9983
9984
9985 else
9986   cat >>confdefs.h <<_ACEOF
9987 #define HAVE_DECL_PER_HPUX 0
9988 _ACEOF
9989
9990
9991 fi
9992 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9993 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9994 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003
10004 #include <linux/personality.h>
10005
10006
10007 int
10008 main ()
10009 {
10010 #ifndef PER_OSF4
10011   char *p = (char *) PER_OSF4;
10012 #endif
10013
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020   (eval $ac_compile) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag"
10028                          || test ! -s conftest.err'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest.$ac_objext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   ac_cv_have_decl_PER_OSF4=yes
10041 else
10042   echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 ac_cv_have_decl_PER_OSF4=no
10046 fi
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10048 fi
10049 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10050 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
10051 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10052
10053 cat >>confdefs.h <<_ACEOF
10054 #define HAVE_DECL_PER_OSF4 1
10055 _ACEOF
10056
10057
10058 else
10059   cat >>confdefs.h <<_ACEOF
10060 #define HAVE_DECL_PER_OSF4 0
10061 _ACEOF
10062
10063
10064 fi
10065
10066
10067         ac_ext=c
10068 ac_cpp='$CPP $CPPFLAGS'
10069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10072
10073
10074
10075
10076
10077
10078         echo "$as_me:$LINENO: checking for initrddir" >&5
10079 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
10080
10081 # Check whether --with-initrddir or --without-initrddir was given.
10082 if test "${with_initrddir+set}" = set; then
10083   withval="$with_initrddir"
10084   case "$withval" in
10085                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10086 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10087    { (exit 1); exit 1; }; };;
10088                         *)      ensc_initrddir=$withval;;
10089                      esac
10090 else
10091   ensc_initrddir='$(sysconfdir)/init.d'
10092 fi;
10093
10094         if test "initrddir"; then
10095                 initrddir=$ensc_initrddir
10096
10097         fi
10098
10099         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10100 echo "${ECHO_T}$ensc_initrddir" >&6
10101
10102
10103         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10104 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
10105         # Check whether --enable-release or --disable-release was given.
10106 if test "${enable_release+set}" = set; then
10107   enableval="$enable_release"
10108   case "$enableval" in
10109                           yes)  ensc_release_mode=yes;;
10110                           no)   ensc_release_mode=no;;
10111                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10112 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10113    { (exit 1); exit 1; }; };;
10114                        esac
10115 else
10116    ensc_release_mode=no
10117 fi;
10118
10119         if test x"$ensc_release_mode" = xno; then
10120                 RELEASE_CPPFLAGS=
10121         else
10122                 RELEASE_CPPFLAGS='-DNDEBUG'
10123         fi
10124
10125
10126         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10127 echo "${ECHO_T}$ensc_release_mode" >&6
10128
10129
10130 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
10131 # syscalls will never be enabled for glibc.
10132 ac_ext=c
10133 ac_cpp='$CPP $CPPFLAGS'
10134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10137 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10138 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10139 # On Suns, sometimes $CPP names a directory.
10140 if test -n "$CPP" && test -d "$CPP"; then
10141   CPP=
10142 fi
10143 if test -z "$CPP"; then
10144   if test "${ac_cv_prog_CPP+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147       # Double quotes because CPP needs to be expanded
10148     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10149     do
10150       ac_preproc_ok=false
10151 for ac_c_preproc_warn_flag in '' yes
10152 do
10153   # Use a header file that comes with gcc, so configuring glibc
10154   # with a fresh cross-compiler works.
10155   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10156   # <limits.h> exists even on freestanding compilers.
10157   # On the NeXT, cc -E runs the code through the compiler's parser,
10158   # not just through cpp. "Syntax error" is here to catch this case.
10159   cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 #ifdef __STDC__
10166 # include <limits.h>
10167 #else
10168 # include <assert.h>
10169 #endif
10170                      Syntax error
10171 _ACEOF
10172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10174   ac_status=$?
10175   grep -v '^ *+' conftest.er1 >conftest.err
10176   rm -f conftest.er1
10177   cat conftest.err >&5
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); } >/dev/null; then
10180   if test -s conftest.err; then
10181     ac_cpp_err=$ac_c_preproc_warn_flag
10182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10183   else
10184     ac_cpp_err=
10185   fi
10186 else
10187   ac_cpp_err=yes
10188 fi
10189 if test -z "$ac_cpp_err"; then
10190   :
10191 else
10192   echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195   # Broken: fails on valid input.
10196 continue
10197 fi
10198 rm -f conftest.err conftest.$ac_ext
10199
10200   # OK, works on sane cases.  Now check whether non-existent headers
10201   # can be detected and how.
10202   cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h.  */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h.  */
10208 #include <ac_nonexistent.h>
10209 _ACEOF
10210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } >/dev/null; then
10218   if test -s conftest.err; then
10219     ac_cpp_err=$ac_c_preproc_warn_flag
10220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10221   else
10222     ac_cpp_err=
10223   fi
10224 else
10225   ac_cpp_err=yes
10226 fi
10227 if test -z "$ac_cpp_err"; then
10228   # Broken: success on invalid input.
10229 continue
10230 else
10231   echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234   # Passes both tests.
10235 ac_preproc_ok=:
10236 break
10237 fi
10238 rm -f conftest.err conftest.$ac_ext
10239
10240 done
10241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10242 rm -f conftest.err conftest.$ac_ext
10243 if $ac_preproc_ok; then
10244   break
10245 fi
10246
10247     done
10248     ac_cv_prog_CPP=$CPP
10249
10250 fi
10251   CPP=$ac_cv_prog_CPP
10252 else
10253   ac_cv_prog_CPP=$CPP
10254 fi
10255 echo "$as_me:$LINENO: result: $CPP" >&5
10256 echo "${ECHO_T}$CPP" >&6
10257 ac_preproc_ok=false
10258 for ac_c_preproc_warn_flag in '' yes
10259 do
10260   # Use a header file that comes with gcc, so configuring glibc
10261   # with a fresh cross-compiler works.
10262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263   # <limits.h> exists even on freestanding compilers.
10264   # On the NeXT, cc -E runs the code through the compiler's parser,
10265   # not just through cpp. "Syntax error" is here to catch this case.
10266   cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272 #ifdef __STDC__
10273 # include <limits.h>
10274 #else
10275 # include <assert.h>
10276 #endif
10277                      Syntax error
10278 _ACEOF
10279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10281   ac_status=$?
10282   grep -v '^ *+' conftest.er1 >conftest.err
10283   rm -f conftest.er1
10284   cat conftest.err >&5
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); } >/dev/null; then
10287   if test -s conftest.err; then
10288     ac_cpp_err=$ac_c_preproc_warn_flag
10289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10290   else
10291     ac_cpp_err=
10292   fi
10293 else
10294   ac_cpp_err=yes
10295 fi
10296 if test -z "$ac_cpp_err"; then
10297   :
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302   # Broken: fails on valid input.
10303 continue
10304 fi
10305 rm -f conftest.err conftest.$ac_ext
10306
10307   # OK, works on sane cases.  Now check whether non-existent headers
10308   # can be detected and how.
10309   cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h.  */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h.  */
10315 #include <ac_nonexistent.h>
10316 _ACEOF
10317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10319   ac_status=$?
10320   grep -v '^ *+' conftest.er1 >conftest.err
10321   rm -f conftest.er1
10322   cat conftest.err >&5
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); } >/dev/null; then
10325   if test -s conftest.err; then
10326     ac_cpp_err=$ac_c_preproc_warn_flag
10327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10328   else
10329     ac_cpp_err=
10330   fi
10331 else
10332   ac_cpp_err=yes
10333 fi
10334 if test -z "$ac_cpp_err"; then
10335   # Broken: success on invalid input.
10336 continue
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341   # Passes both tests.
10342 ac_preproc_ok=:
10343 break
10344 fi
10345 rm -f conftest.err conftest.$ac_ext
10346
10347 done
10348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10349 rm -f conftest.err conftest.$ac_ext
10350 if $ac_preproc_ok; then
10351   :
10352 else
10353   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10354 See \`config.log' for more details." >&5
10355 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10356 See \`config.log' for more details." >&2;}
10357    { (exit 1); exit 1; }; }
10358 fi
10359
10360 ac_ext=c
10361 ac_cpp='$CPP $CPPFLAGS'
10362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10365
10366 echo "$as_me:$LINENO: checking for egrep" >&5
10367 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10368 if test "${ac_cv_prog_egrep+set}" = set; then
10369   echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10372     then ac_cv_prog_egrep='grep -E'
10373     else ac_cv_prog_egrep='egrep'
10374     fi
10375 fi
10376 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10377 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10378  EGREP=$ac_cv_prog_egrep
10379
10380
10381
10382
10383
10384
10385         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
10386 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
10387 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
10388   echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390
10391                 ac_ext=c
10392 ac_cpp='$CPP $CPPFLAGS'
10393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10396
10397                 cat >conftest.$ac_ext <<_ACEOF
10398
10399 #ifdef ENSC_SYSCALL_FALLBACK
10400 #  include ENSC_SYSCALL_FALLBACK
10401 #else
10402 #  include <asm/unistd.h>
10403 #endif
10404 #ifdef __NR_vserver
10405 ensc_syscall_tmp_nr=__NR_vserver;
10406 ensc_syscall_tmp_src=ENSC_MARK
10407 #endif
10408
10409 _ACEOF
10410                 ensc_syscall_tmp_nr=
10411                 ensc_syscall_tmp_src=
10412                 test x"$ensc_syscall_tmp_nr" != x || \
10413                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
10414                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
10415                         eval $($CPP $CPPFLAGS -D ENSC_MARK='fallback' -D ENSC_SYSCALL_FALLBACK='"lib/syscall-fallback.h"' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
10416                 test "$ensc_syscall_tmp_nr" || {
10417                         ensc_syscall_tmp_nr=273
10418                         ensc_syscall_tmp_src=default
10419                 }
10420
10421                 if test x"$ensc_syscall_tmp_nr" = x; then
10422                         { { echo "$as_me:$LINENO: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&5
10423 echo "$as_me: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&2;}
10424    { (exit 1); exit 1; }; }
10425                 fi
10426                 ac_ext=c
10427 ac_cpp='$CPP $CPPFLAGS'
10428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431
10432
10433                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
10434
10435 fi
10436 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
10437 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
10438
10439         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
10440         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
10441
10442         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
10443
10444 cat >>confdefs.h <<_ACEOF
10445 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
10446 _ACEOF
10447
10448         fi
10449
10450
10451         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
10452 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
10453         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
10454 if test "${enable_alternative_syscalls+set}" = set; then
10455   enableval="$enable_alternative_syscalls"
10456   case $enableval in
10457                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
10458                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
10459 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
10460    { (exit 1); exit 1; }; };;
10461                        esac
10462 else
10463   ensc_use_alternative_syscall_macros=yes
10464 fi;
10465
10466         case $ensc_use_alternative_syscall_macros in
10467                 (yes)
10468 cat >>confdefs.h <<\_ACEOF
10469 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
10470 _ACEOF
10471 ;;
10472         esac
10473
10474         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
10475 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
10476
10477
10478
10479
10480         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
10481 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
10482
10483 # Check whether --with-syscall or --without-syscall was given.
10484 if test "${with_syscall+set}" = set; then
10485   withval="$with_syscall"
10486
10487 else
10488   with_syscall=auto
10489 fi;
10490         echo "$as_me:$LINENO: result: $with_syscall" >&5
10491 echo "${ECHO_T}$with_syscall" >&6
10492
10493         case x"$with_syscall" in
10494             (xauto)
10495                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
10496 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
10497 if test "${ensc_cv_test_syscall+set}" = set; then
10498   echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500
10501                                 ac_ext=c
10502 ac_cpp='$CPP $CPPFLAGS'
10503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10506
10507                                 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513
10514 #include "$srcdir/lib/syscall-wrap.h"
10515 #include <errno.h>
10516
10517 #define __NR_foo0       300
10518 #define __NR_foo1       301
10519 #define __NR_foo2       302
10520 #define __NR_foo3       303
10521 #define __NR_foo4       304
10522 #define __NR_foo5       305
10523 inline static _syscall0(int, foo0)
10524 inline static _syscall1(int, foo1, int, a)
10525 inline static _syscall2(int, foo2, int, a, int, b)
10526 inline static _syscall3(int, foo3, int, a, int, b, int, c)
10527 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
10528 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
10529
10530 int main() {
10531   return foo0() || \
10532          foo1(1) || \
10533          foo2(1,2) || \
10534          foo3(1,2,3) || \
10535          foo4(1,2,3,4) || \
10536          foo5(1,2,3,4,5);
10537 }
10538
10539 _ACEOF
10540 rm -f conftest.$ac_objext
10541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10542   (eval $ac_compile) 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -z "$ac_c_werror_flag"
10550                          || test ! -s conftest.err'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; } &&
10556          { ac_try='test -s conftest.$ac_objext'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; }; then
10562   ensc_cv_test_syscall=fast
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ensc_cv_test_syscall=traditional
10568 fi
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570
10571                                 ac_ext=c
10572 ac_cpp='$CPP $CPPFLAGS'
10573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10576
10577
10578 fi
10579 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
10580 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
10581                 with_syscall=$ensc_cv_test_syscall
10582                 ;;
10583             (xfast|xtraditional)
10584                 ;;
10585             *)
10586                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
10587 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
10588    { (exit 1); exit 1; }; }
10589                 ;;
10590         esac
10591
10592         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
10593             with_syscall='alternative'
10594         fi
10595
10596         if test x"$with_syscall" = xtraditional; then
10597
10598 cat >>confdefs.h <<\_ACEOF
10599 #define ENSC_SYSCALL_TRADITIONAL 1
10600 _ACEOF
10601
10602         fi
10603
10604
10605
10606
10607
10608
10609 case $host_cpu in
10610         (i*86|athlon)   min_diet_ver=0.25;;
10611         (ia64|hppa*)    min_diet_ver=0.29;;
10612         (sparc*)        min_diet_ver=0.30;;
10613         (x86_64)        min_diet_ver=0.27;;
10614         (*)             min_diet_ver=0.28;;
10615 esac
10616
10617
10618         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
10619 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
10620
10621
10622
10623
10624         : ${DIET:=diet}
10625         : ${DIETFLAGS=-Os}
10626
10627         # Check whether --enable-dietlibc or --disable-dietlibc was given.
10628 if test "${enable_dietlibc+set}" = set; then
10629   enableval="$enable_dietlibc"
10630   case "$enableval" in
10631                           (yes) use_dietlibc=forced;;
10632                           (no)  use_dietlibc=forced_no;;
10633                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
10634 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
10635    { (exit 1); exit 1; }; };;
10636                        esac
10637 else
10638   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
10639 fi;
10640
10641         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
10642             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
10643             _dietlibc_ver=${_dietlibc_ver##*diet version }
10644             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
10645             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
10646             _dietlibc_ver_min=${_dietlibc_ver##*.}
10647             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
10648             _dietlibc_cmp="$min_diet_ver"
10649             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
10650             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
10651
10652             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
10653
10654             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
10655             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
10656
10657             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
10658         else
10659             ENSC_VERSION_DIETLIBC=
10660             _dietlibc_ver=-1
10661         fi
10662
10663         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
10664         ensc_have_dietlibc=no
10665
10666         case x"$use_dietlibc" in
10667             xdetected)
10668
10669
10670 if true; then
10671   USE_DIETLIBC_TRUE=
10672   USE_DIETLIBC_FALSE='#'
10673 else
10674   USE_DIETLIBC_TRUE='#'
10675   USE_DIETLIBC_FALSE=
10676 fi
10677
10678                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
10679 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
10680                 ensc_have_dietlibc=yes
10681                 ;;
10682             xforced)
10683
10684
10685 if true; then
10686   USE_DIETLIBC_TRUE=
10687   USE_DIETLIBC_FALSE='#'
10688 else
10689   USE_DIETLIBC_TRUE='#'
10690   USE_DIETLIBC_FALSE=
10691 fi
10692
10693                 echo "$as_me:$LINENO: result: yes (forced)" >&5
10694 echo "${ECHO_T}yes (forced)" >&6
10695                 ensc_have_dietlibc=yes
10696                 ;;
10697             xdetected_no)
10698
10699
10700 if false; then
10701   USE_DIETLIBC_TRUE=
10702   USE_DIETLIBC_FALSE='#'
10703 else
10704   USE_DIETLIBC_TRUE='#'
10705   USE_DIETLIBC_FALSE=
10706 fi
10707
10708                 echo "$as_me:$LINENO: result: no (detected)" >&5
10709 echo "${ECHO_T}no (detected)" >&6
10710                 ;;
10711             xdetected_old)
10712
10713
10714 if false; then
10715   USE_DIETLIBC_TRUE=
10716   USE_DIETLIBC_FALSE='#'
10717 else
10718   USE_DIETLIBC_TRUE='#'
10719   USE_DIETLIBC_FALSE=
10720 fi
10721
10722                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
10723 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
10724                 ;;
10725             xforced_no)
10726
10727
10728 if false; then
10729   USE_DIETLIBC_TRUE=
10730   USE_DIETLIBC_FALSE='#'
10731 else
10732   USE_DIETLIBC_TRUE='#'
10733   USE_DIETLIBC_FALSE=
10734 fi
10735
10736                 echo "$as_me:$LINENO: result: no (forced)" >&5
10737 echo "${ECHO_T}no (forced)" >&6
10738                 ;;
10739             *)
10740                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
10741 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
10742    { (exit 1); exit 1; }; }
10743                 ;;
10744         esac
10745
10746         if test x"$ensc_have_dietlibc" != xno; then
10747
10748
10749
10750
10751         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
10752 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
10753 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
10754   echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756
10757                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
10758                 _ensc_dietlibc_c99_old_CC=$CC
10759
10760                 CFLAGS="-std=c99"
10761                 CC="${DIET:-diet} $CC"
10762
10763                 ac_ext=c
10764 ac_cpp='$CPP $CPPFLAGS'
10765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10768
10769                 cat >conftest.$ac_ext <<_ACEOF
10770 /* */
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774   (eval $ac_compile) 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } &&
10781          { ac_try='test -z "$ac_c_werror_flag"
10782                          || test ! -s conftest.err'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; } &&
10788          { ac_try='test -s conftest.$ac_objext'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; }; then
10794
10795                         cat >conftest.$ac_ext <<_ACEOF
10796
10797                                 #include <stdint.h>
10798                                 #include <sys/cdefs.h>
10799                                 #if defined(inline)
10800                                 #  error 'inline' badly defined
10801                                 #endif
10802                                 volatile uint64_t       a;
10803
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807   (eval $ac_compile) 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -z "$ac_c_werror_flag"
10815                          || test ! -s conftest.err'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; } &&
10821          { ac_try='test -s conftest.$ac_objext'
10822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823   (eval $ac_try) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; }; then
10827   ensc_cv_c_dietlibc_c99=yes
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 ensc_cv_c_dietlibc_c99=no
10833 fi
10834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
10840 fi
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842                 ac_ext=c
10843 ac_cpp='$CPP $CPPFLAGS'
10844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847
10848
10849                 CC=$_ensc_dietlibc_c99_old_CC
10850                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
10851
10852 fi
10853 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
10854 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
10855
10856         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
10857                 cat >>confdefs.h <<\_ACEOF
10858 #define ENSC_DIETLIBC_C99 1
10859 _ACEOF
10860
10861         fi
10862
10863
10864
10865
10866
10867         echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
10868 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6
10869 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872
10873                 _ensc_dietlibc_syscall_old_CC="$CC"
10874                 CC="${DIET:-diet} $CC"
10875
10876                 ac_ext=c
10877 ac_cpp='$CPP $CPPFLAGS'
10878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10881
10882                 cat >conftest.$ac_ext <<_ACEOF
10883
10884                         #include <sys/syscall.h>
10885                         long int syscall(long int __sysno, ...);
10886
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890   (eval $ac_compile) 2>conftest.er1
10891   ac_status=$?
10892   grep -v '^ *+' conftest.er1 >conftest.err
10893   rm -f conftest.er1
10894   cat conftest.err >&5
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -z "$ac_c_werror_flag"
10898                          || test ! -s conftest.err'
10899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900   (eval $ac_try) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; } &&
10904          { ac_try='test -s conftest.$ac_objext'
10905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906   (eval $ac_try) 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; }; then
10910   ensc_cv_c_dietlibc_syscall=no
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ensc_cv_c_dietlibc_syscall=yes
10916 fi
10917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10918                 ac_ext=c
10919 ac_cpp='$CPP $CPPFLAGS'
10920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10923
10924
10925                 CC="$_ensc_dietlibc_syscall_old_CC"
10926
10927 fi
10928 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
10929 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6
10930
10931         if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
10932                 cat >>confdefs.h <<\_ACEOF
10933 #define ENSC_DIETLIBC_HAS_SYSCALL 1
10934 _ACEOF
10935
10936         fi
10937
10938         fi
10939
10940
10941 if test x"$ensc_have_dietlibc" = xno; then
10942         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
10943 echo "$as_me: WARNING: ***                                                         ***" >&2;}
10944         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
10945 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
10946         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
10947 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
10948         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
10949 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
10950         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
10951 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
10952         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
10953 echo "$as_me: WARNING: ***                                                         ***" >&2;}
10954
10955
10956 if false; then
10957   USE_DIETLIBC_COMPAT_TRUE=
10958   USE_DIETLIBC_COMPAT_FALSE='#'
10959 else
10960   USE_DIETLIBC_COMPAT_TRUE='#'
10961   USE_DIETLIBC_COMPAT_FALSE=
10962 fi
10963
10964 else
10965         # HACK: libtool does not have cmdline options to build only
10966         # dynamic libraries; this can be done with the
10967         # '--disable-static' ./configure option only.  As our static
10968         # libraries will be build with dietlibc, we have to do set
10969         # this option which is evaluated by 'AC_PROG_LIBTOOL'
10970         # below.  Therefore, this macro must not be called earlier.
10971         enable_static=no
10972
10973
10974
10975
10976         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
10977 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
10978 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981
10982                 ac_ext=c
10983 ac_cpp='$CPP $CPPFLAGS'
10984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10987
10988                 ensc_dietlibc_need_compat_old_CC=$CC
10989                 CC="${DIET:-diet} $CC"
10990                 cat >conftest.$ac_ext <<_ACEOF
10991
10992                         /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997
10998 #include "$srcdir/lib/syscall-wrap.h"
10999 #include <errno.h>
11000
11001 #define __NR_foo0               42
11002 #define __NR_foo1               42
11003 #define __NR_foo2               42
11004 #define __NR_foo3               42
11005 #define __NR_foo4               42
11006 #define __NR_foo5               42
11007 inline static _syscall0(int, foo0)
11008 inline static _syscall1(int, foo1, int, a)
11009 inline static _syscall2(int, foo2, int, a, int, b)
11010 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11011 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11012 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11013
11014 int
11015 main ()
11016 {
11017 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024   (eval $ac_link) 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -z "$ac_c_werror_flag"
11032                          || test ! -s conftest.err'
11033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034   (eval $ac_try) 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; } &&
11038          { ac_try='test -s conftest$ac_exeext'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; }; then
11044   ensc_cv_c_dietlibc_compat=no
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 ensc_cv_c_dietlibc_compat=yes
11050 fi
11051 rm -f conftest.err conftest.$ac_objext \
11052       conftest$ac_exeext conftest.$ac_ext
11053                 CC=$ensc_dietlibc_need_compat_old_CC
11054                 ac_ext=c
11055 ac_cpp='$CPP $CPPFLAGS'
11056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11059
11060
11061 fi
11062 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
11063 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
11064
11065         if test x"USE_DIETLIBC_COMPAT" != x; then
11066
11067
11068 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
11069   USE_DIETLIBC_COMPAT_TRUE=
11070   USE_DIETLIBC_COMPAT_FALSE='#'
11071 else
11072   USE_DIETLIBC_COMPAT_TRUE='#'
11073   USE_DIETLIBC_COMPAT_FALSE=
11074 fi
11075
11076         fi
11077
11078 fi
11079
11080
11081
11082 if test x"$ensc_have_dietlibc" = xyes; then
11083   ENSC_USE_DIETLIBC_TRUE=
11084   ENSC_USE_DIETLIBC_FALSE='#'
11085 else
11086   ENSC_USE_DIETLIBC_TRUE='#'
11087   ENSC_USE_DIETLIBC_FALSE=
11088 fi
11089
11090
11091
11092 if true; then
11093   ENSC_USE_GLIBC_TRUE=
11094   ENSC_USE_GLIBC_FALSE='#'
11095 else
11096   ENSC_USE_GLIBC_TRUE='#'
11097   ENSC_USE_GLIBC_FALSE=
11098 fi
11099
11100
11101 # HACK: see comments at 'enable_static' above
11102 # Check whether --enable-shared or --disable-shared was given.
11103 if test "${enable_shared+set}" = set; then
11104   enableval="$enable_shared"
11105   p=${PACKAGE-default}
11106     case $enableval in
11107     yes) enable_shared=yes ;;
11108     no) enable_shared=no ;;
11109     *)
11110       enable_shared=no
11111       # Look at the argument we got.  We use all the common list separators.
11112       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11113       for pkg in $enableval; do
11114         IFS="$lt_save_ifs"
11115         if test "X$pkg" = "X$p"; then
11116           enable_shared=yes
11117         fi
11118       done
11119       IFS="$lt_save_ifs"
11120       ;;
11121     esac
11122 else
11123   enable_shared=yes
11124 fi;
11125
11126 # Check whether --enable-static or --disable-static was given.
11127 if test "${enable_static+set}" = set; then
11128   enableval="$enable_static"
11129   p=${PACKAGE-default}
11130     case $enableval in
11131     yes) enable_static=yes ;;
11132     no) enable_static=no ;;
11133     *)
11134      enable_static=no
11135       # Look at the argument we got.  We use all the common list separators.
11136       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11137       for pkg in $enableval; do
11138         IFS="$lt_save_ifs"
11139         if test "X$pkg" = "X$p"; then
11140           enable_static=yes
11141         fi
11142       done
11143       IFS="$lt_save_ifs"
11144       ;;
11145     esac
11146 else
11147   enable_static=yes
11148 fi;
11149
11150 # Check whether --enable-fast-install or --disable-fast-install was given.
11151 if test "${enable_fast_install+set}" = set; then
11152   enableval="$enable_fast_install"
11153   p=${PACKAGE-default}
11154     case $enableval in
11155     yes) enable_fast_install=yes ;;
11156     no) enable_fast_install=no ;;
11157     *)
11158       enable_fast_install=no
11159       # Look at the argument we got.  We use all the common list separators.
11160       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161       for pkg in $enableval; do
11162         IFS="$lt_save_ifs"
11163         if test "X$pkg" = "X$p"; then
11164           enable_fast_install=yes
11165         fi
11166       done
11167       IFS="$lt_save_ifs"
11168       ;;
11169     esac
11170 else
11171   enable_fast_install=yes
11172 fi;
11173
11174 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11175 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
11176 if test "${lt_cv_path_SED+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   # Loop through the user's path and test for sed and gsed.
11180 # Then use that list of sed's as ones to test for truncation.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184   IFS=$as_save_IFS
11185   test -z "$as_dir" && as_dir=.
11186   for lt_ac_prog in sed gsed; do
11187     for ac_exec_ext in '' $ac_executable_extensions; do
11188       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11189         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11190       fi
11191     done
11192   done
11193 done
11194 lt_ac_max=0
11195 lt_ac_count=0
11196 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11197 # along with /bin/sed that truncates output.
11198 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11199   test ! -f $lt_ac_sed && continue
11200   cat /dev/null > conftest.in
11201   lt_ac_count=0
11202   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11203   # Check for GNU sed and select it if it is found.
11204   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11205     lt_cv_path_SED=$lt_ac_sed
11206     break
11207   fi
11208   while true; do
11209     cat conftest.in conftest.in >conftest.tmp
11210     mv conftest.tmp conftest.in
11211     cp conftest.in conftest.nl
11212     echo >>conftest.nl
11213     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11214     cmp -s conftest.out conftest.nl || break
11215     # 10000 chars as input seems more than enough
11216     test $lt_ac_count -gt 10 && break
11217     lt_ac_count=`expr $lt_ac_count + 1`
11218     if test $lt_ac_count -gt $lt_ac_max; then
11219       lt_ac_max=$lt_ac_count
11220       lt_cv_path_SED=$lt_ac_sed
11221     fi
11222   done
11223 done
11224
11225 fi
11226
11227 SED=$lt_cv_path_SED
11228 echo "$as_me:$LINENO: result: $SED" >&5
11229 echo "${ECHO_T}$SED" >&6
11230
11231
11232 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11233 if test "${with_gnu_ld+set}" = set; then
11234   withval="$with_gnu_ld"
11235   test "$withval" = no || with_gnu_ld=yes
11236 else
11237   with_gnu_ld=no
11238 fi;
11239 ac_prog=ld
11240 if test "$GCC" = yes; then
11241   # Check if gcc -print-prog-name=ld gives a path.
11242   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11243 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11244   case $host in
11245   *-*-mingw*)
11246     # gcc leaves a trailing carriage return which upsets mingw
11247     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11248   *)
11249     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11250   esac
11251   case $ac_prog in
11252     # Accept absolute paths.
11253     [\\/]* | ?:[\\/]*)
11254       re_direlt='/[^/][^/]*/\.\./'
11255       # Canonicalize the pathname of ld
11256       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11257       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11258         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11259       done
11260       test -z "$LD" && LD="$ac_prog"
11261       ;;
11262   "")
11263     # If it fails, then pretend we aren't using GCC.
11264     ac_prog=ld
11265     ;;
11266   *)
11267     # If it is relative, then search for the first ld in PATH.
11268     with_gnu_ld=unknown
11269     ;;
11270   esac
11271 elif test "$with_gnu_ld" = yes; then
11272   echo "$as_me:$LINENO: checking for GNU ld" >&5
11273 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11274 else
11275   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11276 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11277 fi
11278 if test "${lt_cv_path_LD+set}" = set; then
11279   echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281   if test -z "$LD"; then
11282   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11283   for ac_dir in $PATH; do
11284     IFS="$lt_save_ifs"
11285     test -z "$ac_dir" && ac_dir=.
11286     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11287       lt_cv_path_LD="$ac_dir/$ac_prog"
11288       # Check to see if the program is GNU ld.  I'd rather use --version,
11289       # but apparently some variants of GNU ld only accept -v.
11290       # Break only if it was the GNU/non-GNU ld that we prefer.
11291       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11292       *GNU* | *'with BFD'*)
11293         test "$with_gnu_ld" != no && break
11294         ;;
11295       *)
11296         test "$with_gnu_ld" != yes && break
11297         ;;
11298       esac
11299     fi
11300   done
11301   IFS="$lt_save_ifs"
11302 else
11303   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11304 fi
11305 fi
11306
11307 LD="$lt_cv_path_LD"
11308 if test -n "$LD"; then
11309   echo "$as_me:$LINENO: result: $LD" >&5
11310 echo "${ECHO_T}$LD" >&6
11311 else
11312   echo "$as_me:$LINENO: result: no" >&5
11313 echo "${ECHO_T}no" >&6
11314 fi
11315 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11316 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11317    { (exit 1); exit 1; }; }
11318 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11319 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11324 case `$LD -v 2>&1 </dev/null` in
11325 *GNU* | *'with BFD'*)
11326   lt_cv_prog_gnu_ld=yes
11327   ;;
11328 *)
11329   lt_cv_prog_gnu_ld=no
11330   ;;
11331 esac
11332 fi
11333 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11334 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11335 with_gnu_ld=$lt_cv_prog_gnu_ld
11336
11337
11338 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11339 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
11340 if test "${lt_cv_ld_reload_flag+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   lt_cv_ld_reload_flag='-r'
11344 fi
11345 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11346 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
11347 reload_flag=$lt_cv_ld_reload_flag
11348 case $reload_flag in
11349 "" | " "*) ;;
11350 *) reload_flag=" $reload_flag" ;;
11351 esac
11352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11353 case $host_os in
11354   darwin*)
11355     if test "$GCC" = yes; then
11356       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11357     else
11358       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11359     fi
11360     ;;
11361 esac
11362
11363 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11364 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
11365 if test "${lt_cv_path_NM+set}" = set; then
11366   echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368   if test -n "$NM"; then
11369   # Let the user override the test.
11370   lt_cv_path_NM="$NM"
11371 else
11372   lt_nm_to_check="${ac_tool_prefix}nm"
11373   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11374     lt_nm_to_check="$lt_nm_to_check nm"
11375   fi
11376   for lt_tmp_nm in $lt_nm_to_check; do
11377     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11378     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11379       IFS="$lt_save_ifs"
11380       test -z "$ac_dir" && ac_dir=.
11381       tmp_nm="$ac_dir/$lt_tmp_nm"
11382       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11383         # Check to see if the nm accepts a BSD-compat flag.
11384         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11385         #   nm: unknown option "B" ignored
11386         # Tru64's nm complains that /dev/null is an invalid object file
11387         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11388         */dev/null* | *'Invalid file or object type'*)
11389           lt_cv_path_NM="$tmp_nm -B"
11390           break
11391           ;;
11392         *)
11393           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11394           */dev/null*)
11395             lt_cv_path_NM="$tmp_nm -p"
11396             break
11397             ;;
11398           *)
11399             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11400             continue # so that we can try to find one that supports BSD flags
11401             ;;
11402           esac
11403           ;;
11404         esac
11405       fi
11406     done
11407     IFS="$lt_save_ifs"
11408   done
11409   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11410 fi
11411 fi
11412 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11413 echo "${ECHO_T}$lt_cv_path_NM" >&6
11414 NM="$lt_cv_path_NM"
11415
11416 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11417 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
11418 if test "${lt_cv_deplibs_check_method+set}" = set; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421   lt_cv_file_magic_cmd='$MAGIC_CMD'
11422 lt_cv_file_magic_test_file=
11423 lt_cv_deplibs_check_method='unknown'
11424 # Need to set the preceding variable on all platforms that support
11425 # interlibrary dependencies.
11426 # 'none' -- dependencies not supported.
11427 # `unknown' -- same as none, but documents that we really don't know.
11428 # 'pass_all' -- all dependencies passed with no checks.
11429 # 'test_compile' -- check by making test program.
11430 # 'file_magic [[regex]]' -- check by looking for files in library path
11431 # which responds to the $file_magic_cmd with a given extended regex.
11432 # If you have `file' or equivalent on your system and you're not sure
11433 # whether `pass_all' will *always* work, you probably want this one.
11434
11435 case $host_os in
11436 aix4* | aix5*)
11437   lt_cv_deplibs_check_method=pass_all
11438   ;;
11439
11440 beos*)
11441   lt_cv_deplibs_check_method=pass_all
11442   ;;
11443
11444 bsdi[45]*)
11445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11446   lt_cv_file_magic_cmd='/usr/bin/file -L'
11447   lt_cv_file_magic_test_file=/shlib/libc.so
11448   ;;
11449
11450 cygwin*)
11451   # func_win32_libid is a shell function defined in ltmain.sh
11452   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11453   lt_cv_file_magic_cmd='func_win32_libid'
11454   ;;
11455
11456 mingw* | pw32*)
11457   # Base MSYS/MinGW do not provide the 'file' command needed by
11458   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11459   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11460   lt_cv_file_magic_cmd='$OBJDUMP -f'
11461   ;;
11462
11463 darwin* | rhapsody*)
11464   lt_cv_deplibs_check_method=pass_all
11465   ;;
11466
11467 freebsd* | kfreebsd*-gnu | dragonfly*)
11468   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11469     case $host_cpu in
11470     i*86 )
11471       # Not sure whether the presence of OpenBSD here was a mistake.
11472       # Let's accept both of them until this is cleared up.
11473       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11474       lt_cv_file_magic_cmd=/usr/bin/file
11475       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11476       ;;
11477     esac
11478   else
11479     lt_cv_deplibs_check_method=pass_all
11480   fi
11481   ;;
11482
11483 gnu*)
11484   lt_cv_deplibs_check_method=pass_all
11485   ;;
11486
11487 hpux10.20* | hpux11*)
11488   lt_cv_file_magic_cmd=/usr/bin/file
11489   case $host_cpu in
11490   ia64*)
11491     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11492     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11493     ;;
11494   hppa*64*)
11495     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]'
11496     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11497     ;;
11498   *)
11499     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11500     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11501     ;;
11502   esac
11503   ;;
11504
11505 interix3*)
11506   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11507   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11508   ;;
11509
11510 irix5* | irix6* | nonstopux*)
11511   case $LD in
11512   *-32|*"-32 ") libmagic=32-bit;;
11513   *-n32|*"-n32 ") libmagic=N32;;
11514   *-64|*"-64 ") libmagic=64-bit;;
11515   *) libmagic=never-match;;
11516   esac
11517   lt_cv_deplibs_check_method=pass_all
11518   ;;
11519
11520 # This must be Linux ELF.
11521 linux*)
11522   lt_cv_deplibs_check_method=pass_all
11523   ;;
11524
11525 netbsd*)
11526   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11527     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11528   else
11529     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11530   fi
11531   ;;
11532
11533 newos6*)
11534   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11535   lt_cv_file_magic_cmd=/usr/bin/file
11536   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11537   ;;
11538
11539 nto-qnx*)
11540   lt_cv_deplibs_check_method=unknown
11541   ;;
11542
11543 openbsd*)
11544   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11545     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11546   else
11547     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11548   fi
11549   ;;
11550
11551 osf3* | osf4* | osf5*)
11552   lt_cv_deplibs_check_method=pass_all
11553   ;;
11554
11555 solaris*)
11556   lt_cv_deplibs_check_method=pass_all
11557   ;;
11558
11559 sysv4 | sysv4.3*)
11560   case $host_vendor in
11561   motorola)
11562     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]'
11563     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11564     ;;
11565   ncr)
11566     lt_cv_deplibs_check_method=pass_all
11567     ;;
11568   sequent)
11569     lt_cv_file_magic_cmd='/bin/file'
11570     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11571     ;;
11572   sni)
11573     lt_cv_file_magic_cmd='/bin/file'
11574     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11575     lt_cv_file_magic_test_file=/lib/libc.so
11576     ;;
11577   siemens)
11578     lt_cv_deplibs_check_method=pass_all
11579     ;;
11580   pc)
11581     lt_cv_deplibs_check_method=pass_all
11582     ;;
11583   esac
11584   ;;
11585
11586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11587   lt_cv_deplibs_check_method=pass_all
11588   ;;
11589 esac
11590
11591 fi
11592 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11593 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
11594 file_magic_cmd=$lt_cv_file_magic_cmd
11595 deplibs_check_method=$lt_cv_deplibs_check_method
11596 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11597
11598
11599
11600
11601 # If no C compiler was specified, use CC.
11602 LTCC=${LTCC-"$CC"}
11603
11604 # If no C compiler flags were specified, use CFLAGS.
11605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11606
11607 # Allow CC to be a program name with arguments.
11608 compiler=$CC
11609
11610 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11611 if test "${enable_libtool_lock+set}" = set; then
11612   enableval="$enable_libtool_lock"
11613
11614 fi;
11615 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11616
11617 # Some flags need to be propagated to the compiler or linker for good
11618 # libtool support.
11619 case $host in
11620 ia64-*-hpux*)
11621   # Find out which ABI we are using.
11622   echo 'int i;' > conftest.$ac_ext
11623   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11624   (eval $ac_compile) 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; then
11628     case `/usr/bin/file conftest.$ac_objext` in
11629     *ELF-32*)
11630       HPUX_IA64_MODE="32"
11631       ;;
11632     *ELF-64*)
11633       HPUX_IA64_MODE="64"
11634       ;;
11635     esac
11636   fi
11637   rm -rf conftest*
11638   ;;
11639 *-*-irix6*)
11640   # Find out which ABI we are using.
11641   echo '#line 11641 "configure"' > conftest.$ac_ext
11642   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643   (eval $ac_compile) 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; then
11647    if test "$lt_cv_prog_gnu_ld" = yes; then
11648     case `/usr/bin/file conftest.$ac_objext` in
11649     *32-bit*)
11650       LD="${LD-ld} -melf32bsmip"
11651       ;;
11652     *N32*)
11653       LD="${LD-ld} -melf32bmipn32"
11654       ;;
11655     *64-bit*)
11656       LD="${LD-ld} -melf64bmip"
11657       ;;
11658     esac
11659    else
11660     case `/usr/bin/file conftest.$ac_objext` in
11661     *32-bit*)
11662       LD="${LD-ld} -32"
11663       ;;
11664     *N32*)
11665       LD="${LD-ld} -n32"
11666       ;;
11667     *64-bit*)
11668       LD="${LD-ld} -64"
11669       ;;
11670     esac
11671    fi
11672   fi
11673   rm -rf conftest*
11674   ;;
11675
11676 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11677   # Find out which ABI we are using.
11678   echo 'int i;' > conftest.$ac_ext
11679   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680   (eval $ac_compile) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; then
11684     case `/usr/bin/file conftest.o` in
11685     *32-bit*)
11686       case $host in
11687         x86_64-*linux*)
11688           LD="${LD-ld} -m elf_i386"
11689           ;;
11690         ppc64-*linux*|powerpc64-*linux*)
11691           LD="${LD-ld} -m elf32ppclinux"
11692           ;;
11693         s390x-*linux*)
11694           LD="${LD-ld} -m elf_s390"
11695           ;;
11696         sparc64-*linux*)
11697           LD="${LD-ld} -m elf32_sparc"
11698           ;;
11699       esac
11700       ;;
11701     *64-bit*)
11702       case $host in
11703         x86_64-*linux*)
11704           LD="${LD-ld} -m elf_x86_64"
11705           ;;
11706         ppc*-*linux*|powerpc*-*linux*)
11707           LD="${LD-ld} -m elf64ppc"
11708           ;;
11709         s390*-*linux*)
11710           LD="${LD-ld} -m elf64_s390"
11711           ;;
11712         sparc*-*linux*)
11713           LD="${LD-ld} -m elf64_sparc"
11714           ;;
11715       esac
11716       ;;
11717     esac
11718   fi
11719   rm -rf conftest*
11720   ;;
11721
11722 *-*-sco3.2v5*)
11723   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11724   SAVE_CFLAGS="$CFLAGS"
11725   CFLAGS="$CFLAGS -belf"
11726   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11727 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11728 if test "${lt_cv_cc_needs_belf+set}" = set; then
11729   echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731   ac_ext=c
11732 ac_cpp='$CPP $CPPFLAGS'
11733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11736
11737      cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743
11744 int
11745 main ()
11746 {
11747
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754   (eval $ac_link) 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag"
11762                          || test ! -s conftest.err'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest$ac_exeext'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   lt_cv_cc_needs_belf=yes
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 lt_cv_cc_needs_belf=no
11780 fi
11781 rm -f conftest.err conftest.$ac_objext \
11782       conftest$ac_exeext conftest.$ac_ext
11783      ac_ext=c
11784 ac_cpp='$CPP $CPPFLAGS'
11785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11788
11789 fi
11790 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11791 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11792   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11793     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11794     CFLAGS="$SAVE_CFLAGS"
11795   fi
11796   ;;
11797 sparc*-*solaris*)
11798   # Find out which ABI we are using.
11799   echo 'int i;' > conftest.$ac_ext
11800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11801   (eval $ac_compile) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; then
11805     case `/usr/bin/file conftest.o` in
11806     *64-bit*)
11807       case $lt_cv_prog_gnu_ld in
11808       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11809       *)    LD="${LD-ld} -64" ;;
11810       esac
11811       ;;
11812     esac
11813   fi
11814   rm -rf conftest*
11815   ;;
11816
11817
11818 esac
11819
11820 need_locks="$enable_libtool_lock"
11821
11822
11823
11824 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11826 if test "${ac_cv_header_stdc+set}" = set; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 #include <stdlib.h>
11836 #include <stdarg.h>
11837 #include <string.h>
11838 #include <float.h>
11839
11840 int
11841 main ()
11842 {
11843
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850   (eval $ac_compile) 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -z "$ac_c_werror_flag"
11858                          || test ! -s conftest.err'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest.$ac_objext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   ac_cv_header_stdc=yes
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_cv_header_stdc=no
11876 fi
11877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11878
11879 if test $ac_cv_header_stdc = yes; then
11880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11881   cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887 #include <string.h>
11888
11889 _ACEOF
11890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11891   $EGREP "memchr" >/dev/null 2>&1; then
11892   :
11893 else
11894   ac_cv_header_stdc=no
11895 fi
11896 rm -f conftest*
11897
11898 fi
11899
11900 if test $ac_cv_header_stdc = yes; then
11901   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11902   cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 #include <stdlib.h>
11909
11910 _ACEOF
11911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11912   $EGREP "free" >/dev/null 2>&1; then
11913   :
11914 else
11915   ac_cv_header_stdc=no
11916 fi
11917 rm -f conftest*
11918
11919 fi
11920
11921 if test $ac_cv_header_stdc = yes; then
11922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11923   if test "$cross_compiling" = yes; then
11924   :
11925 else
11926   cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 #include <ctype.h>
11933 #if ((' ' & 0x0FF) == 0x020)
11934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11936 #else
11937 # define ISLOWER(c) \
11938                    (('a' <= (c) && (c) <= 'i') \
11939                      || ('j' <= (c) && (c) <= 'r') \
11940                      || ('s' <= (c) && (c) <= 'z'))
11941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11942 #endif
11943
11944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11945 int
11946 main ()
11947 {
11948   int i;
11949   for (i = 0; i < 256; i++)
11950     if (XOR (islower (i), ISLOWER (i))
11951         || toupper (i) != TOUPPER (i))
11952       exit(2);
11953   exit (0);
11954 }
11955 _ACEOF
11956 rm -f conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958   (eval $ac_link) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963   (eval $ac_try) 2>&5
11964   ac_status=$?
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); }; }; then
11967   :
11968 else
11969   echo "$as_me: program exited with status $ac_status" >&5
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ( exit $ac_status )
11974 ac_cv_header_stdc=no
11975 fi
11976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11977 fi
11978 fi
11979 fi
11980 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11981 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11982 if test $ac_cv_header_stdc = yes; then
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define STDC_HEADERS 1
11986 _ACEOF
11987
11988 fi
11989
11990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12001                   inttypes.h stdint.h unistd.h
12002 do
12003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12004 echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015 $ac_includes_default
12016
12017 #include <$ac_header>
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021   (eval $ac_compile) 2>conftest.er1
12022   ac_status=$?
12023   grep -v '^ *+' conftest.er1 >conftest.err
12024   rm -f conftest.er1
12025   cat conftest.err >&5
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); } &&
12028          { ac_try='test -z "$ac_c_werror_flag"
12029                          || test ! -s conftest.err'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; } &&
12035          { ac_try='test -s conftest.$ac_objext'
12036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037   (eval $ac_try) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; }; then
12041   eval "$as_ac_Header=yes"
12042 else
12043   echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12045
12046 eval "$as_ac_Header=no"
12047 fi
12048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12053   cat >>confdefs.h <<_ACEOF
12054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12055 _ACEOF
12056
12057 fi
12058
12059 done
12060
12061
12062
12063 for ac_header in dlfcn.h
12064 do
12065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12067   echo "$as_me:$LINENO: checking for $ac_header" >&5
12068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 fi
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12074 else
12075   # Is the header compilable?
12076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 $ac_includes_default
12085 #include <$ac_header>
12086 _ACEOF
12087 rm -f conftest.$ac_objext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12089   (eval $ac_compile) 2>conftest.er1
12090   ac_status=$?
12091   grep -v '^ *+' conftest.er1 >conftest.err
12092   rm -f conftest.er1
12093   cat conftest.err >&5
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); } &&
12096          { ac_try='test -z "$ac_c_werror_flag"
12097                          || test ! -s conftest.err'
12098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099   (eval $ac_try) 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; } &&
12103          { ac_try='test -s conftest.$ac_objext'
12104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105   (eval $ac_try) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); }; }; then
12109   ac_header_compiler=yes
12110 else
12111   echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_header_compiler=no
12115 fi
12116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12118 echo "${ECHO_T}$ac_header_compiler" >&6
12119
12120 # Is the header present?
12121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 #include <$ac_header>
12130 _ACEOF
12131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } >/dev/null; then
12139   if test -s conftest.err; then
12140     ac_cpp_err=$ac_c_preproc_warn_flag
12141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12142   else
12143     ac_cpp_err=
12144   fi
12145 else
12146   ac_cpp_err=yes
12147 fi
12148 if test -z "$ac_cpp_err"; then
12149   ac_header_preproc=yes
12150 else
12151   echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154   ac_header_preproc=no
12155 fi
12156 rm -f conftest.err conftest.$ac_ext
12157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12158 echo "${ECHO_T}$ac_header_preproc" >&6
12159
12160 # So?  What about this header?
12161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12162   yes:no: )
12163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12167     ac_header_preproc=yes
12168     ;;
12169   no:yes:* )
12170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12182     (
12183       cat <<\_ASBOX
12184 ## --------------------------------------------- ##
12185 ## Report this to vserver@list.linux-vserver.org ##
12186 ## --------------------------------------------- ##
12187 _ASBOX
12188     ) |
12189       sed "s/^/$as_me: WARNING:     /" >&2
12190     ;;
12191 esac
12192 echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   eval "$as_ac_Header=\$ac_header_preproc"
12198 fi
12199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12201
12202 fi
12203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12204   cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12206 _ACEOF
12207
12208 fi
12209
12210 done
12211
12212
12213
12214 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12215     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12216     (test "X$CXX" != "Xg++"))) ; then
12217   ac_ext=cc
12218 ac_cpp='$CXXCPP $CPPFLAGS'
12219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12222 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12223 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
12224 if test -z "$CXXCPP"; then
12225   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228       # Double quotes because CXXCPP needs to be expanded
12229     for CXXCPP in "$CXX -E" "/lib/cpp"
12230     do
12231       ac_preproc_ok=false
12232 for ac_cxx_preproc_warn_flag in '' yes
12233 do
12234   # Use a header file that comes with gcc, so configuring glibc
12235   # with a fresh cross-compiler works.
12236   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12237   # <limits.h> exists even on freestanding compilers.
12238   # On the NeXT, cc -E runs the code through the compiler's parser,
12239   # not just through cpp. "Syntax error" is here to catch this case.
12240   cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h.  */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h.  */
12246 #ifdef __STDC__
12247 # include <limits.h>
12248 #else
12249 # include <assert.h>
12250 #endif
12251                      Syntax error
12252 _ACEOF
12253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } >/dev/null; then
12261   if test -s conftest.err; then
12262     ac_cpp_err=$ac_cxx_preproc_warn_flag
12263     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12264   else
12265     ac_cpp_err=
12266   fi
12267 else
12268   ac_cpp_err=yes
12269 fi
12270 if test -z "$ac_cpp_err"; then
12271   :
12272 else
12273   echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12275
12276   # Broken: fails on valid input.
12277 continue
12278 fi
12279 rm -f conftest.err conftest.$ac_ext
12280
12281   # OK, works on sane cases.  Now check whether non-existent headers
12282   # can be detected and how.
12283   cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 #include <ac_nonexistent.h>
12290 _ACEOF
12291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12293   ac_status=$?
12294   grep -v '^ *+' conftest.er1 >conftest.err
12295   rm -f conftest.er1
12296   cat conftest.err >&5
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } >/dev/null; then
12299   if test -s conftest.err; then
12300     ac_cpp_err=$ac_cxx_preproc_warn_flag
12301     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12302   else
12303     ac_cpp_err=
12304   fi
12305 else
12306   ac_cpp_err=yes
12307 fi
12308 if test -z "$ac_cpp_err"; then
12309   # Broken: success on invalid input.
12310 continue
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315   # Passes both tests.
12316 ac_preproc_ok=:
12317 break
12318 fi
12319 rm -f conftest.err conftest.$ac_ext
12320
12321 done
12322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12323 rm -f conftest.err conftest.$ac_ext
12324 if $ac_preproc_ok; then
12325   break
12326 fi
12327
12328     done
12329     ac_cv_prog_CXXCPP=$CXXCPP
12330
12331 fi
12332   CXXCPP=$ac_cv_prog_CXXCPP
12333 else
12334   ac_cv_prog_CXXCPP=$CXXCPP
12335 fi
12336 echo "$as_me:$LINENO: result: $CXXCPP" >&5
12337 echo "${ECHO_T}$CXXCPP" >&6
12338 ac_preproc_ok=false
12339 for ac_cxx_preproc_warn_flag in '' yes
12340 do
12341   # Use a header file that comes with gcc, so configuring glibc
12342   # with a fresh cross-compiler works.
12343   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344   # <limits.h> exists even on freestanding compilers.
12345   # On the NeXT, cc -E runs the code through the compiler's parser,
12346   # not just through cpp. "Syntax error" is here to catch this case.
12347   cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353 #ifdef __STDC__
12354 # include <limits.h>
12355 #else
12356 # include <assert.h>
12357 #endif
12358                      Syntax error
12359 _ACEOF
12360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } >/dev/null; then
12368   if test -s conftest.err; then
12369     ac_cpp_err=$ac_cxx_preproc_warn_flag
12370     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12371   else
12372     ac_cpp_err=
12373   fi
12374 else
12375   ac_cpp_err=yes
12376 fi
12377 if test -z "$ac_cpp_err"; then
12378   :
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383   # Broken: fails on valid input.
12384 continue
12385 fi
12386 rm -f conftest.err conftest.$ac_ext
12387
12388   # OK, works on sane cases.  Now check whether non-existent headers
12389   # can be detected and how.
12390   cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 #include <ac_nonexistent.h>
12397 _ACEOF
12398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } >/dev/null; then
12406   if test -s conftest.err; then
12407     ac_cpp_err=$ac_cxx_preproc_warn_flag
12408     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12409   else
12410     ac_cpp_err=
12411   fi
12412 else
12413   ac_cpp_err=yes
12414 fi
12415 if test -z "$ac_cpp_err"; then
12416   # Broken: success on invalid input.
12417 continue
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422   # Passes both tests.
12423 ac_preproc_ok=:
12424 break
12425 fi
12426 rm -f conftest.err conftest.$ac_ext
12427
12428 done
12429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12430 rm -f conftest.err conftest.$ac_ext
12431 if $ac_preproc_ok; then
12432   :
12433 else
12434   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12435 See \`config.log' for more details." >&5
12436 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12437 See \`config.log' for more details." >&2;}
12438    { (exit 1); exit 1; }; }
12439 fi
12440
12441 ac_ext=cc
12442 ac_cpp='$CXXCPP $CPPFLAGS'
12443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12446
12447 fi
12448
12449 ac_ext=f
12450 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12451 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12452 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12453 if test -n "$ac_tool_prefix"; then
12454   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12455   do
12456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12458 echo "$as_me:$LINENO: checking for $ac_word" >&5
12459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12460 if test "${ac_cv_prog_F77+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   if test -n "$F77"; then
12464   ac_cv_prog_F77="$F77" # Let the user override the test.
12465 else
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12468 do
12469   IFS=$as_save_IFS
12470   test -z "$as_dir" && as_dir=.
12471   for ac_exec_ext in '' $ac_executable_extensions; do
12472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12475     break 2
12476   fi
12477 done
12478 done
12479
12480 fi
12481 fi
12482 F77=$ac_cv_prog_F77
12483 if test -n "$F77"; then
12484   echo "$as_me:$LINENO: result: $F77" >&5
12485 echo "${ECHO_T}$F77" >&6
12486 else
12487   echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6
12489 fi
12490
12491     test -n "$F77" && break
12492   done
12493 fi
12494 if test -z "$F77"; then
12495   ac_ct_F77=$F77
12496   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12497 do
12498   # Extract the first word of "$ac_prog", so it can be a program name with args.
12499 set dummy $ac_prog; ac_word=$2
12500 echo "$as_me:$LINENO: checking for $ac_word" >&5
12501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12502 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   if test -n "$ac_ct_F77"; then
12506   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12507 else
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12510 do
12511   IFS=$as_save_IFS
12512   test -z "$as_dir" && as_dir=.
12513   for ac_exec_ext in '' $ac_executable_extensions; do
12514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12515     ac_cv_prog_ac_ct_F77="$ac_prog"
12516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12517     break 2
12518   fi
12519 done
12520 done
12521
12522 fi
12523 fi
12524 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12525 if test -n "$ac_ct_F77"; then
12526   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12527 echo "${ECHO_T}$ac_ct_F77" >&6
12528 else
12529   echo "$as_me:$LINENO: result: no" >&5
12530 echo "${ECHO_T}no" >&6
12531 fi
12532
12533   test -n "$ac_ct_F77" && break
12534 done
12535
12536   F77=$ac_ct_F77
12537 fi
12538
12539
12540 # Provide some information about the compiler.
12541 echo "$as_me:12541:" \
12542      "checking for Fortran 77 compiler version" >&5
12543 ac_compiler=`set X $ac_compile; echo $2`
12544 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12545   (eval $ac_compiler --version </dev/null >&5) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }
12549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12550   (eval $ac_compiler -v </dev/null >&5) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }
12554 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12555   (eval $ac_compiler -V </dev/null >&5) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }
12559 rm -f a.out
12560
12561 # If we don't use `.F' as extension, the preprocessor is not run on the
12562 # input file.  (Note that this only needs to work for GNU compilers.)
12563 ac_save_ext=$ac_ext
12564 ac_ext=F
12565 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12566 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12567 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   cat >conftest.$ac_ext <<_ACEOF
12571       program main
12572 #ifndef __GNUC__
12573        choke me
12574 #endif
12575
12576       end
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580   (eval $ac_compile) 2>conftest.er1
12581   ac_status=$?
12582   grep -v '^ *+' conftest.er1 >conftest.err
12583   rm -f conftest.er1
12584   cat conftest.err >&5
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -z "$ac_f77_werror_flag"
12588                          || test ! -s conftest.err'
12589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590   (eval $ac_try) 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; } &&
12594          { ac_try='test -s conftest.$ac_objext'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; }; then
12600   ac_compiler_gnu=yes
12601 else
12602   echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605 ac_compiler_gnu=no
12606 fi
12607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12608 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12609
12610 fi
12611 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12612 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12613 ac_ext=$ac_save_ext
12614 ac_test_FFLAGS=${FFLAGS+set}
12615 ac_save_FFLAGS=$FFLAGS
12616 FFLAGS=
12617 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12618 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12619 if test "${ac_cv_prog_f77_g+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   FFLAGS=-g
12623 cat >conftest.$ac_ext <<_ACEOF
12624       program main
12625
12626       end
12627 _ACEOF
12628 rm -f conftest.$ac_objext
12629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12630   (eval $ac_compile) 2>conftest.er1
12631   ac_status=$?
12632   grep -v '^ *+' conftest.er1 >conftest.err
12633   rm -f conftest.er1
12634   cat conftest.err >&5
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } &&
12637          { ac_try='test -z "$ac_f77_werror_flag"
12638                          || test ! -s conftest.err'
12639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640   (eval $ac_try) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; } &&
12644          { ac_try='test -s conftest.$ac_objext'
12645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646   (eval $ac_try) 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   ac_cv_prog_f77_g=yes
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 ac_cv_prog_f77_g=no
12656 fi
12657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12658
12659 fi
12660 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12661 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12662 if test "$ac_test_FFLAGS" = set; then
12663   FFLAGS=$ac_save_FFLAGS
12664 elif test $ac_cv_prog_f77_g = yes; then
12665   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12666     FFLAGS="-g -O2"
12667   else
12668     FFLAGS="-g"
12669   fi
12670 else
12671   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12672     FFLAGS="-O2"
12673   else
12674     FFLAGS=
12675   fi
12676 fi
12677
12678 G77=`test $ac_compiler_gnu = yes && echo yes`
12679 ac_ext=c
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685
12686
12687 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12688
12689 # find the maximum length of command line arguments
12690 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12691 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12692 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695     i=0
12696   teststring="ABCD"
12697
12698   case $build_os in
12699   msdosdjgpp*)
12700     # On DJGPP, this test can blow up pretty badly due to problems in libc
12701     # (any single argument exceeding 2000 bytes causes a buffer overrun
12702     # during glob expansion).  Even if it were fixed, the result of this
12703     # check would be larger than it should be.
12704     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12705     ;;
12706
12707   gnu*)
12708     # Under GNU Hurd, this test is not required because there is
12709     # no limit to the length of command line arguments.
12710     # Libtool will interpret -1 as no limit whatsoever
12711     lt_cv_sys_max_cmd_len=-1;
12712     ;;
12713
12714   cygwin* | mingw*)
12715     # On Win9x/ME, this test blows up -- it succeeds, but takes
12716     # about 5 minutes as the teststring grows exponentially.
12717     # Worse, since 9x/ME are not pre-emptively multitasking,
12718     # you end up with a "frozen" computer, even though with patience
12719     # the test eventually succeeds (with a max line length of 256k).
12720     # Instead, let's just punt: use the minimum linelength reported by
12721     # all of the supported platforms: 8192 (on NT/2K/XP).
12722     lt_cv_sys_max_cmd_len=8192;
12723     ;;
12724
12725   amigaos*)
12726     # On AmigaOS with pdksh, this test takes hours, literally.
12727     # So we just punt and use a minimum line length of 8192.
12728     lt_cv_sys_max_cmd_len=8192;
12729     ;;
12730
12731   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12732     # This has been around since 386BSD, at least.  Likely further.
12733     if test -x /sbin/sysctl; then
12734       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12735     elif test -x /usr/sbin/sysctl; then
12736       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12737     else
12738       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12739     fi
12740     # And add a safety zone
12741     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12742     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12743     ;;
12744
12745   interix*)
12746     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12747     lt_cv_sys_max_cmd_len=196608
12748     ;;
12749
12750   osf*)
12751     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12752     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12753     # nice to cause kernel panics so lets avoid the loop below.
12754     # First set a reasonable default.
12755     lt_cv_sys_max_cmd_len=16384
12756     #
12757     if test -x /sbin/sysconfig; then
12758       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12759         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12760       esac
12761     fi
12762     ;;
12763   sco3.2v5*)
12764     lt_cv_sys_max_cmd_len=102400
12765     ;;
12766   sysv5* | sco5v6* | sysv4.2uw2*)
12767     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12768     if test -n "$kargmax"; then
12769       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12770     else
12771       lt_cv_sys_max_cmd_len=32768
12772     fi
12773     ;;
12774   *)
12775     # If test is not a shell built-in, we'll probably end up computing a
12776     # maximum length that is only half of the actual maximum length, but
12777     # we can't tell.
12778     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12779     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12780                = "XX$teststring") >/dev/null 2>&1 &&
12781             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12782             lt_cv_sys_max_cmd_len=$new_result &&
12783             test $i != 17 # 1/2 MB should be enough
12784     do
12785       i=`expr $i + 1`
12786       teststring=$teststring$teststring
12787     done
12788     teststring=
12789     # Add a significant safety factor because C++ compilers can tack on massive
12790     # amounts of additional arguments before passing them to the linker.
12791     # It appears as though 1/2 is a usable value.
12792     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12793     ;;
12794   esac
12795
12796 fi
12797
12798 if test -n $lt_cv_sys_max_cmd_len ; then
12799   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12800 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12801 else
12802   echo "$as_me:$LINENO: result: none" >&5
12803 echo "${ECHO_T}none" >&6
12804 fi
12805
12806
12807
12808
12809 # Check for command to grab the raw symbol name followed by C symbol from nm.
12810 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12811 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12812 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12813   echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815
12816 # These are sane defaults that work on at least a few old systems.
12817 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12818
12819 # Character class describing NM global symbol codes.
12820 symcode='[BCDEGRST]'
12821
12822 # Regexp to match symbols that can be accessed directly from C.
12823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12824
12825 # Transform an extracted symbol line into a proper C declaration
12826 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12827
12828 # Transform an extracted symbol line into symbol name and symbol address
12829 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'"
12830
12831 # Define system-specific variables.
12832 case $host_os in
12833 aix*)
12834   symcode='[BCDT]'
12835   ;;
12836 cygwin* | mingw* | pw32*)
12837   symcode='[ABCDGISTW]'
12838   ;;
12839 hpux*) # Its linker distinguishes data from code symbols
12840   if test "$host_cpu" = ia64; then
12841     symcode='[ABCDEGRST]'
12842   fi
12843   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12844   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'"
12845   ;;
12846 linux*)
12847   if test "$host_cpu" = ia64; then
12848     symcode='[ABCDGIRSTW]'
12849     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12850     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'"
12851   fi
12852   ;;
12853 irix* | nonstopux*)
12854   symcode='[BCDEGRST]'
12855   ;;
12856 osf*)
12857   symcode='[BCDEGQRST]'
12858   ;;
12859 solaris*)
12860   symcode='[BDRT]'
12861   ;;
12862 sco3.2v5*)
12863   symcode='[DT]'
12864   ;;
12865 sysv4.2uw2*)
12866   symcode='[DT]'
12867   ;;
12868 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12869   symcode='[ABDT]'
12870   ;;
12871 sysv4)
12872   symcode='[DFNSTU]'
12873   ;;
12874 esac
12875
12876 # Handle CRLF in mingw tool chain
12877 opt_cr=
12878 case $build_os in
12879 mingw*)
12880   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12881   ;;
12882 esac
12883
12884 # If we're using GNU nm, then use its standard symbol codes.
12885 case `$NM -V 2>&1` in
12886 *GNU* | *'with BFD'*)
12887   symcode='[ABCDGIRSTW]' ;;
12888 esac
12889
12890 # Try without a prefix undercore, then with it.
12891 for ac_symprfx in "" "_"; do
12892
12893   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12894   symxfrm="\\1 $ac_symprfx\\2 \\2"
12895
12896   # Write the raw and C identifiers.
12897   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12898
12899   # Check to see that the pipe works correctly.
12900   pipe_works=no
12901
12902   rm -f conftest*
12903   cat > conftest.$ac_ext <<EOF
12904 #ifdef __cplusplus
12905 extern "C" {
12906 #endif
12907 char nm_test_var;
12908 void nm_test_func(){}
12909 #ifdef __cplusplus
12910 }
12911 #endif
12912 int main(){nm_test_var='a';nm_test_func();return(0);}
12913 EOF
12914
12915   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916   (eval $ac_compile) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; then
12920     # Now try to grab the symbols.
12921     nlist=conftest.nm
12922     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12923   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } && test -s "$nlist"; then
12927       # Try sorting and uniquifying the output.
12928       if sort "$nlist" | uniq > "$nlist"T; then
12929         mv -f "$nlist"T "$nlist"
12930       else
12931         rm -f "$nlist"T
12932       fi
12933
12934       # Make sure that we snagged all the symbols we need.
12935       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12936         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12937           cat <<EOF > conftest.$ac_ext
12938 #ifdef __cplusplus
12939 extern "C" {
12940 #endif
12941
12942 EOF
12943           # Now generate the symbol file.
12944           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12945
12946           cat <<EOF >> conftest.$ac_ext
12947 #if defined (__STDC__) && __STDC__
12948 # define lt_ptr_t void *
12949 #else
12950 # define lt_ptr_t char *
12951 # define const
12952 #endif
12953
12954 /* The mapping between symbol names and symbols. */
12955 const struct {
12956   const char *name;
12957   lt_ptr_t address;
12958 }
12959 lt_preloaded_symbols[] =
12960 {
12961 EOF
12962           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12963           cat <<\EOF >> conftest.$ac_ext
12964   {0, (lt_ptr_t) 0}
12965 };
12966
12967 #ifdef __cplusplus
12968 }
12969 #endif
12970 EOF
12971           # Now try linking the two files.
12972           mv conftest.$ac_objext conftstm.$ac_objext
12973           lt_save_LIBS="$LIBS"
12974           lt_save_CFLAGS="$CFLAGS"
12975           LIBS="conftstm.$ac_objext"
12976           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12977           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12982             pipe_works=yes
12983           fi
12984           LIBS="$lt_save_LIBS"
12985           CFLAGS="$lt_save_CFLAGS"
12986         else
12987           echo "cannot find nm_test_func in $nlist" >&5
12988         fi
12989       else
12990         echo "cannot find nm_test_var in $nlist" >&5
12991       fi
12992     else
12993       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12994     fi
12995   else
12996     echo "$progname: failed program was:" >&5
12997     cat conftest.$ac_ext >&5
12998   fi
12999   rm -f conftest* conftst*
13000
13001   # Do not use the global_symbol_pipe unless it works.
13002   if test "$pipe_works" = yes; then
13003     break
13004   else
13005     lt_cv_sys_global_symbol_pipe=
13006   fi
13007 done
13008
13009 fi
13010
13011 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13012   lt_cv_sys_global_symbol_to_cdecl=
13013 fi
13014 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13015   echo "$as_me:$LINENO: result: failed" >&5
13016 echo "${ECHO_T}failed" >&6
13017 else
13018   echo "$as_me:$LINENO: result: ok" >&5
13019 echo "${ECHO_T}ok" >&6
13020 fi
13021
13022 echo "$as_me:$LINENO: checking for objdir" >&5
13023 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
13024 if test "${lt_cv_objdir+set}" = set; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   rm -f .libs 2>/dev/null
13028 mkdir .libs 2>/dev/null
13029 if test -d .libs; then
13030   lt_cv_objdir=.libs
13031 else
13032   # MS-DOS does not allow filenames that begin with a dot.
13033   lt_cv_objdir=_libs
13034 fi
13035 rmdir .libs 2>/dev/null
13036 fi
13037 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13038 echo "${ECHO_T}$lt_cv_objdir" >&6
13039 objdir=$lt_cv_objdir
13040
13041
13042
13043
13044
13045 case $host_os in
13046 aix3*)
13047   # AIX sometimes has problems with the GCC collect2 program.  For some
13048   # reason, if we set the COLLECT_NAMES environment variable, the problems
13049   # vanish in a puff of smoke.
13050   if test "X${COLLECT_NAMES+set}" != Xset; then
13051     COLLECT_NAMES=
13052     export COLLECT_NAMES
13053   fi
13054   ;;
13055 esac
13056
13057 # Sed substitution that helps us do robust quoting.  It backslashifies
13058 # metacharacters that are still active within double-quoted strings.
13059 Xsed='sed -e 1s/^X//'
13060 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13061
13062 # Same as above, but do not quote variable references.
13063 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13064
13065 # Sed substitution to delay expansion of an escaped shell variable in a
13066 # double_quote_subst'ed string.
13067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13068
13069 # Sed substitution to avoid accidental globbing in evaled expressions
13070 no_glob_subst='s/\*/\\\*/g'
13071
13072 # Constants:
13073 rm="rm -f"
13074
13075 # Global variables:
13076 default_ofile=libtool
13077 can_build_shared=yes
13078
13079 # All known linkers require a `.a' archive for static linking (except MSVC,
13080 # which needs '.lib').
13081 libext=a
13082 ltmain="$ac_aux_dir/ltmain.sh"
13083 ofile="$default_ofile"
13084 with_gnu_ld="$lt_cv_prog_gnu_ld"
13085
13086 if test -n "$ac_tool_prefix"; then
13087   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13088 set dummy ${ac_tool_prefix}ar; ac_word=$2
13089 echo "$as_me:$LINENO: checking for $ac_word" >&5
13090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13091 if test "${ac_cv_prog_AR+set}" = set; then
13092   echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094   if test -n "$AR"; then
13095   ac_cv_prog_AR="$AR" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13099 do
13100   IFS=$as_save_IFS
13101   test -z "$as_dir" && as_dir=.
13102   for ac_exec_ext in '' $ac_executable_extensions; do
13103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13104     ac_cv_prog_AR="${ac_tool_prefix}ar"
13105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13106     break 2
13107   fi
13108 done
13109 done
13110
13111 fi
13112 fi
13113 AR=$ac_cv_prog_AR
13114 if test -n "$AR"; then
13115   echo "$as_me:$LINENO: result: $AR" >&5
13116 echo "${ECHO_T}$AR" >&6
13117 else
13118   echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6
13120 fi
13121
13122 fi
13123 if test -z "$ac_cv_prog_AR"; then
13124   ac_ct_AR=$AR
13125   # Extract the first word of "ar", so it can be a program name with args.
13126 set dummy ar; ac_word=$2
13127 echo "$as_me:$LINENO: checking for $ac_word" >&5
13128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   if test -n "$ac_ct_AR"; then
13133   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13134 else
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13137 do
13138   IFS=$as_save_IFS
13139   test -z "$as_dir" && as_dir=.
13140   for ac_exec_ext in '' $ac_executable_extensions; do
13141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142     ac_cv_prog_ac_ct_AR="ar"
13143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13144     break 2
13145   fi
13146 done
13147 done
13148
13149   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
13150 fi
13151 fi
13152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13153 if test -n "$ac_ct_AR"; then
13154   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13155 echo "${ECHO_T}$ac_ct_AR" >&6
13156 else
13157   echo "$as_me:$LINENO: result: no" >&5
13158 echo "${ECHO_T}no" >&6
13159 fi
13160
13161   AR=$ac_ct_AR
13162 else
13163   AR="$ac_cv_prog_AR"
13164 fi
13165
13166 if test -n "$ac_tool_prefix"; then
13167   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13169 echo "$as_me:$LINENO: checking for $ac_word" >&5
13170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13171 if test "${ac_cv_prog_RANLIB+set}" = set; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   if test -n "$RANLIB"; then
13175   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13176 else
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13179 do
13180   IFS=$as_save_IFS
13181   test -z "$as_dir" && as_dir=.
13182   for ac_exec_ext in '' $ac_executable_extensions; do
13183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13184     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13186     break 2
13187   fi
13188 done
13189 done
13190
13191 fi
13192 fi
13193 RANLIB=$ac_cv_prog_RANLIB
13194 if test -n "$RANLIB"; then
13195   echo "$as_me:$LINENO: result: $RANLIB" >&5
13196 echo "${ECHO_T}$RANLIB" >&6
13197 else
13198   echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6
13200 fi
13201
13202 fi
13203 if test -z "$ac_cv_prog_RANLIB"; then
13204   ac_ct_RANLIB=$RANLIB
13205   # Extract the first word of "ranlib", so it can be a program name with args.
13206 set dummy ranlib; ac_word=$2
13207 echo "$as_me:$LINENO: checking for $ac_word" >&5
13208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13209 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13210   echo $ECHO_N "(cached) $ECHO_C" >&6
13211 else
13212   if test -n "$ac_ct_RANLIB"; then
13213   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13214 else
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13217 do
13218   IFS=$as_save_IFS
13219   test -z "$as_dir" && as_dir=.
13220   for ac_exec_ext in '' $ac_executable_extensions; do
13221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222     ac_cv_prog_ac_ct_RANLIB="ranlib"
13223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13224     break 2
13225   fi
13226 done
13227 done
13228
13229   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13230 fi
13231 fi
13232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13233 if test -n "$ac_ct_RANLIB"; then
13234   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13235 echo "${ECHO_T}$ac_ct_RANLIB" >&6
13236 else
13237   echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6
13239 fi
13240
13241   RANLIB=$ac_ct_RANLIB
13242 else
13243   RANLIB="$ac_cv_prog_RANLIB"
13244 fi
13245
13246 if test -n "$ac_tool_prefix"; then
13247   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13248 set dummy ${ac_tool_prefix}strip; ac_word=$2
13249 echo "$as_me:$LINENO: checking for $ac_word" >&5
13250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13251 if test "${ac_cv_prog_STRIP+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   if test -n "$STRIP"; then
13255   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13256 else
13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258 for as_dir in $PATH
13259 do
13260   IFS=$as_save_IFS
13261   test -z "$as_dir" && as_dir=.
13262   for ac_exec_ext in '' $ac_executable_extensions; do
13263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13264     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13266     break 2
13267   fi
13268 done
13269 done
13270
13271 fi
13272 fi
13273 STRIP=$ac_cv_prog_STRIP
13274 if test -n "$STRIP"; then
13275   echo "$as_me:$LINENO: result: $STRIP" >&5
13276 echo "${ECHO_T}$STRIP" >&6
13277 else
13278   echo "$as_me:$LINENO: result: no" >&5
13279 echo "${ECHO_T}no" >&6
13280 fi
13281
13282 fi
13283 if test -z "$ac_cv_prog_STRIP"; then
13284   ac_ct_STRIP=$STRIP
13285   # Extract the first word of "strip", so it can be a program name with args.
13286 set dummy strip; ac_word=$2
13287 echo "$as_me:$LINENO: checking for $ac_word" >&5
13288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13289 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292   if test -n "$ac_ct_STRIP"; then
13293   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298   IFS=$as_save_IFS
13299   test -z "$as_dir" && as_dir=.
13300   for ac_exec_ext in '' $ac_executable_extensions; do
13301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302     ac_cv_prog_ac_ct_STRIP="strip"
13303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304     break 2
13305   fi
13306 done
13307 done
13308
13309   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
13310 fi
13311 fi
13312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13313 if test -n "$ac_ct_STRIP"; then
13314   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13315 echo "${ECHO_T}$ac_ct_STRIP" >&6
13316 else
13317   echo "$as_me:$LINENO: result: no" >&5
13318 echo "${ECHO_T}no" >&6
13319 fi
13320
13321   STRIP=$ac_ct_STRIP
13322 else
13323   STRIP="$ac_cv_prog_STRIP"
13324 fi
13325
13326
13327 old_CC="$CC"
13328 old_CFLAGS="$CFLAGS"
13329
13330 # Set sane defaults for various variables
13331 test -z "$AR" && AR=ar
13332 test -z "$AR_FLAGS" && AR_FLAGS=cru
13333 test -z "$AS" && AS=as
13334 test -z "$CC" && CC=cc
13335 test -z "$LTCC" && LTCC=$CC
13336 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13337 test -z "$DLLTOOL" && DLLTOOL=dlltool
13338 test -z "$LD" && LD=ld
13339 test -z "$LN_S" && LN_S="ln -s"
13340 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13341 test -z "$NM" && NM=nm
13342 test -z "$SED" && SED=sed
13343 test -z "$OBJDUMP" && OBJDUMP=objdump
13344 test -z "$RANLIB" && RANLIB=:
13345 test -z "$STRIP" && STRIP=:
13346 test -z "$ac_objext" && ac_objext=o
13347
13348 # Determine commands to create old-style static archives.
13349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13350 old_postinstall_cmds='chmod 644 $oldlib'
13351 old_postuninstall_cmds=
13352
13353 if test -n "$RANLIB"; then
13354   case $host_os in
13355   openbsd*)
13356     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13357     ;;
13358   *)
13359     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13360     ;;
13361   esac
13362   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13363 fi
13364
13365 for cc_temp in $compiler""; do
13366   case $cc_temp in
13367     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13368     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13369     \-*) ;;
13370     *) break;;
13371   esac
13372 done
13373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13374
13375
13376 # Only perform the check for file, if the check method requires it
13377 case $deplibs_check_method in
13378 file_magic*)
13379   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13380     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13381 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
13382 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   case $MAGIC_CMD in
13386 [\\/*] |  ?:[\\/]*)
13387   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13388   ;;
13389 *)
13390   lt_save_MAGIC_CMD="$MAGIC_CMD"
13391   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13392   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13393   for ac_dir in $ac_dummy; do
13394     IFS="$lt_save_ifs"
13395     test -z "$ac_dir" && ac_dir=.
13396     if test -f $ac_dir/${ac_tool_prefix}file; then
13397       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13398       if test -n "$file_magic_test_file"; then
13399         case $deplibs_check_method in
13400         "file_magic "*)
13401           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13402           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13403           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13404             $EGREP "$file_magic_regex" > /dev/null; then
13405             :
13406           else
13407             cat <<EOF 1>&2
13408
13409 *** Warning: the command libtool uses to detect shared libraries,
13410 *** $file_magic_cmd, produces output that libtool cannot recognize.
13411 *** The result is that libtool may fail to recognize shared libraries
13412 *** as such.  This will affect the creation of libtool libraries that
13413 *** depend on shared libraries, but programs linked with such libtool
13414 *** libraries will work regardless of this problem.  Nevertheless, you
13415 *** may want to report the problem to your system manager and/or to
13416 *** bug-libtool@gnu.org
13417
13418 EOF
13419           fi ;;
13420         esac
13421       fi
13422       break
13423     fi
13424   done
13425   IFS="$lt_save_ifs"
13426   MAGIC_CMD="$lt_save_MAGIC_CMD"
13427   ;;
13428 esac
13429 fi
13430
13431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13432 if test -n "$MAGIC_CMD"; then
13433   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13434 echo "${ECHO_T}$MAGIC_CMD" >&6
13435 else
13436   echo "$as_me:$LINENO: result: no" >&5
13437 echo "${ECHO_T}no" >&6
13438 fi
13439
13440 if test -z "$lt_cv_path_MAGIC_CMD"; then
13441   if test -n "$ac_tool_prefix"; then
13442     echo "$as_me:$LINENO: checking for file" >&5
13443 echo $ECHO_N "checking for file... $ECHO_C" >&6
13444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13445   echo $ECHO_N "(cached) $ECHO_C" >&6
13446 else
13447   case $MAGIC_CMD in
13448 [\\/*] |  ?:[\\/]*)
13449   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13450   ;;
13451 *)
13452   lt_save_MAGIC_CMD="$MAGIC_CMD"
13453   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13454   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13455   for ac_dir in $ac_dummy; do
13456     IFS="$lt_save_ifs"
13457     test -z "$ac_dir" && ac_dir=.
13458     if test -f $ac_dir/file; then
13459       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13460       if test -n "$file_magic_test_file"; then
13461         case $deplibs_check_method in
13462         "file_magic "*)
13463           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13464           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13465           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13466             $EGREP "$file_magic_regex" > /dev/null; then
13467             :
13468           else
13469             cat <<EOF 1>&2
13470
13471 *** Warning: the command libtool uses to detect shared libraries,
13472 *** $file_magic_cmd, produces output that libtool cannot recognize.
13473 *** The result is that libtool may fail to recognize shared libraries
13474 *** as such.  This will affect the creation of libtool libraries that
13475 *** depend on shared libraries, but programs linked with such libtool
13476 *** libraries will work regardless of this problem.  Nevertheless, you
13477 *** may want to report the problem to your system manager and/or to
13478 *** bug-libtool@gnu.org
13479
13480 EOF
13481           fi ;;
13482         esac
13483       fi
13484       break
13485     fi
13486   done
13487   IFS="$lt_save_ifs"
13488   MAGIC_CMD="$lt_save_MAGIC_CMD"
13489   ;;
13490 esac
13491 fi
13492
13493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13494 if test -n "$MAGIC_CMD"; then
13495   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13496 echo "${ECHO_T}$MAGIC_CMD" >&6
13497 else
13498   echo "$as_me:$LINENO: result: no" >&5
13499 echo "${ECHO_T}no" >&6
13500 fi
13501
13502   else
13503     MAGIC_CMD=:
13504   fi
13505 fi
13506
13507   fi
13508   ;;
13509 esac
13510
13511 enable_dlopen=no
13512 enable_win32_dll=no
13513
13514 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13515 if test "${enable_libtool_lock+set}" = set; then
13516   enableval="$enable_libtool_lock"
13517
13518 fi;
13519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13520
13521
13522 # Check whether --with-pic or --without-pic was given.
13523 if test "${with_pic+set}" = set; then
13524   withval="$with_pic"
13525   pic_mode="$withval"
13526 else
13527   pic_mode=default
13528 fi;
13529 test -z "$pic_mode" && pic_mode=default
13530
13531 # Use C for the default configuration in the libtool script
13532 tagname=
13533 lt_save_CC="$CC"
13534 ac_ext=c
13535 ac_cpp='$CPP $CPPFLAGS'
13536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13539
13540
13541 # Source file extension for C test sources.
13542 ac_ext=c
13543
13544 # Object file extension for compiled C test sources.
13545 objext=o
13546 objext=$objext
13547
13548 # Code to be used in simple compile tests
13549 lt_simple_compile_test_code="int some_variable = 0;\n"
13550
13551 # Code to be used in simple link tests
13552 lt_simple_link_test_code='int main(){return(0);}\n'
13553
13554
13555 # If no C compiler was specified, use CC.
13556 LTCC=${LTCC-"$CC"}
13557
13558 # If no C compiler flags were specified, use CFLAGS.
13559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13560
13561 # Allow CC to be a program name with arguments.
13562 compiler=$CC
13563
13564
13565 # save warnings/boilerplate of simple test code
13566 ac_outfile=conftest.$ac_objext
13567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13569 _lt_compiler_boilerplate=`cat conftest.err`
13570 $rm conftest*
13571
13572 ac_outfile=conftest.$ac_objext
13573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13575 _lt_linker_boilerplate=`cat conftest.err`
13576 $rm conftest*
13577
13578
13579
13580 lt_prog_compiler_no_builtin_flag=
13581
13582 if test "$GCC" = yes; then
13583   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13584
13585
13586 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13587 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13589   echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591   lt_cv_prog_compiler_rtti_exceptions=no
13592   ac_outfile=conftest.$ac_objext
13593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13594    lt_compiler_flag="-fno-rtti -fno-exceptions"
13595    # Insert the option either (1) after the last *FLAGS variable, or
13596    # (2) before a word containing "conftest.", or (3) at the end.
13597    # Note that $ac_compile itself does not contain backslashes and begins
13598    # with a dollar sign (not a hyphen), so the echo should work correctly.
13599    # The option is referenced via a variable to avoid confusing sed.
13600    lt_compile=`echo "$ac_compile" | $SED \
13601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13603    -e 's:$: $lt_compiler_flag:'`
13604    (eval echo "\"\$as_me:13604: $lt_compile\"" >&5)
13605    (eval "$lt_compile" 2>conftest.err)
13606    ac_status=$?
13607    cat conftest.err >&5
13608    echo "$as_me:13608: \$? = $ac_status" >&5
13609    if (exit $ac_status) && test -s "$ac_outfile"; then
13610      # The compiler can only warn and ignore the option if not recognized
13611      # So say no if there are warnings other than the usual output.
13612      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13613      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13614      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13615        lt_cv_prog_compiler_rtti_exceptions=yes
13616      fi
13617    fi
13618    $rm conftest*
13619
13620 fi
13621 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13622 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13623
13624 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13625     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13626 else
13627     :
13628 fi
13629
13630 fi
13631
13632 lt_prog_compiler_wl=
13633 lt_prog_compiler_pic=
13634 lt_prog_compiler_static=
13635
13636 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13637 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13638
13639   if test "$GCC" = yes; then
13640     lt_prog_compiler_wl='-Wl,'
13641     lt_prog_compiler_static='-static'
13642
13643     case $host_os in
13644       aix*)
13645       # All AIX code is PIC.
13646       if test "$host_cpu" = ia64; then
13647         # AIX 5 now supports IA64 processor
13648         lt_prog_compiler_static='-Bstatic'
13649       fi
13650       ;;
13651
13652     amigaos*)
13653       # FIXME: we need at least 68020 code to build shared libraries, but
13654       # adding the `-m68020' flag to GCC prevents building anything better,
13655       # like `-m68040'.
13656       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13657       ;;
13658
13659     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13660       # PIC is the default for these OSes.
13661       ;;
13662
13663     mingw* | pw32* | os2*)
13664       # This hack is so that the source file can tell whether it is being
13665       # built for inclusion in a dll (and should export symbols for example).
13666       lt_prog_compiler_pic='-DDLL_EXPORT'
13667       ;;
13668
13669     darwin* | rhapsody*)
13670       # PIC is the default on this platform
13671       # Common symbols not allowed in MH_DYLIB files
13672       lt_prog_compiler_pic='-fno-common'
13673       ;;
13674
13675     interix3*)
13676       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13677       # Instead, we relocate shared libraries at runtime.
13678       ;;
13679
13680     msdosdjgpp*)
13681       # Just because we use GCC doesn't mean we suddenly get shared libraries
13682       # on systems that don't support them.
13683       lt_prog_compiler_can_build_shared=no
13684       enable_shared=no
13685       ;;
13686
13687     sysv4*MP*)
13688       if test -d /usr/nec; then
13689         lt_prog_compiler_pic=-Kconform_pic
13690       fi
13691       ;;
13692
13693     hpux*)
13694       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13695       # not for PA HP-UX.
13696       case $host_cpu in
13697       hppa*64*|ia64*)
13698         # +Z the default
13699         ;;
13700       *)
13701         lt_prog_compiler_pic='-fPIC'
13702         ;;
13703       esac
13704       ;;
13705
13706     *)
13707       lt_prog_compiler_pic='-fPIC'
13708       ;;
13709     esac
13710   else
13711     # PORTME Check for flag to pass linker flags through the system compiler.
13712     case $host_os in
13713     aix*)
13714       lt_prog_compiler_wl='-Wl,'
13715       if test "$host_cpu" = ia64; then
13716         # AIX 5 now supports IA64 processor
13717         lt_prog_compiler_static='-Bstatic'
13718       else
13719         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13720       fi
13721       ;;
13722       darwin*)
13723         # PIC is the default on this platform
13724         # Common symbols not allowed in MH_DYLIB files
13725        case $cc_basename in
13726          xlc*)
13727          lt_prog_compiler_pic='-qnocommon'
13728          lt_prog_compiler_wl='-Wl,'
13729          ;;
13730        esac
13731        ;;
13732
13733     mingw* | pw32* | os2*)
13734       # This hack is so that the source file can tell whether it is being
13735       # built for inclusion in a dll (and should export symbols for example).
13736       lt_prog_compiler_pic='-DDLL_EXPORT'
13737       ;;
13738
13739     hpux9* | hpux10* | hpux11*)
13740       lt_prog_compiler_wl='-Wl,'
13741       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13742       # not for PA HP-UX.
13743       case $host_cpu in
13744       hppa*64*|ia64*)
13745         # +Z the default
13746         ;;
13747       *)
13748         lt_prog_compiler_pic='+Z'
13749         ;;
13750       esac
13751       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13752       lt_prog_compiler_static='${wl}-a ${wl}archive'
13753       ;;
13754
13755     irix5* | irix6* | nonstopux*)
13756       lt_prog_compiler_wl='-Wl,'
13757       # PIC (with -KPIC) is the default.
13758       lt_prog_compiler_static='-non_shared'
13759       ;;
13760
13761     newsos6)
13762       lt_prog_compiler_pic='-KPIC'
13763       lt_prog_compiler_static='-Bstatic'
13764       ;;
13765
13766     linux*)
13767       case $cc_basename in
13768       icc* | ecc*)
13769         lt_prog_compiler_wl='-Wl,'
13770         lt_prog_compiler_pic='-KPIC'
13771         lt_prog_compiler_static='-static'
13772         ;;
13773       pgcc* | pgf77* | pgf90* | pgf95*)
13774         # Portland Group compilers (*not* the Pentium gcc compiler,
13775         # which looks to be a dead project)
13776         lt_prog_compiler_wl='-Wl,'
13777         lt_prog_compiler_pic='-fpic'
13778         lt_prog_compiler_static='-Bstatic'
13779         ;;
13780       ccc*)
13781         lt_prog_compiler_wl='-Wl,'
13782         # All Alpha code is PIC.
13783         lt_prog_compiler_static='-non_shared'
13784         ;;
13785       esac
13786       ;;
13787
13788     osf3* | osf4* | osf5*)
13789       lt_prog_compiler_wl='-Wl,'
13790       # All OSF/1 code is PIC.
13791       lt_prog_compiler_static='-non_shared'
13792       ;;
13793
13794     solaris*)
13795       lt_prog_compiler_pic='-KPIC'
13796       lt_prog_compiler_static='-Bstatic'
13797       case $cc_basename in
13798       f77* | f90* | f95*)
13799         lt_prog_compiler_wl='-Qoption ld ';;
13800       *)
13801         lt_prog_compiler_wl='-Wl,';;
13802       esac
13803       ;;
13804
13805     sunos4*)
13806       lt_prog_compiler_wl='-Qoption ld '
13807       lt_prog_compiler_pic='-PIC'
13808       lt_prog_compiler_static='-Bstatic'
13809       ;;
13810
13811     sysv4 | sysv4.2uw2* | sysv4.3*)
13812       lt_prog_compiler_wl='-Wl,'
13813       lt_prog_compiler_pic='-KPIC'
13814       lt_prog_compiler_static='-Bstatic'
13815       ;;
13816
13817     sysv4*MP*)
13818       if test -d /usr/nec ;then
13819         lt_prog_compiler_pic='-Kconform_pic'
13820         lt_prog_compiler_static='-Bstatic'
13821       fi
13822       ;;
13823
13824     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13825       lt_prog_compiler_wl='-Wl,'
13826       lt_prog_compiler_pic='-KPIC'
13827       lt_prog_compiler_static='-Bstatic'
13828       ;;
13829
13830     unicos*)
13831       lt_prog_compiler_wl='-Wl,'
13832       lt_prog_compiler_can_build_shared=no
13833       ;;
13834
13835     uts4*)
13836       lt_prog_compiler_pic='-pic'
13837       lt_prog_compiler_static='-Bstatic'
13838       ;;
13839
13840     *)
13841       lt_prog_compiler_can_build_shared=no
13842       ;;
13843     esac
13844   fi
13845
13846 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13847 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13848
13849 #
13850 # Check to make sure the PIC flag actually works.
13851 #
13852 if test -n "$lt_prog_compiler_pic"; then
13853
13854 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13855 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13856 if test "${lt_prog_compiler_pic_works+set}" = set; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859   lt_prog_compiler_pic_works=no
13860   ac_outfile=conftest.$ac_objext
13861    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13862    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13863    # Insert the option either (1) after the last *FLAGS variable, or
13864    # (2) before a word containing "conftest.", or (3) at the end.
13865    # Note that $ac_compile itself does not contain backslashes and begins
13866    # with a dollar sign (not a hyphen), so the echo should work correctly.
13867    # The option is referenced via a variable to avoid confusing sed.
13868    lt_compile=`echo "$ac_compile" | $SED \
13869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13871    -e 's:$: $lt_compiler_flag:'`
13872    (eval echo "\"\$as_me:13872: $lt_compile\"" >&5)
13873    (eval "$lt_compile" 2>conftest.err)
13874    ac_status=$?
13875    cat conftest.err >&5
13876    echo "$as_me:13876: \$? = $ac_status" >&5
13877    if (exit $ac_status) && test -s "$ac_outfile"; then
13878      # The compiler can only warn and ignore the option if not recognized
13879      # So say no if there are warnings other than the usual output.
13880      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13881      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13882      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13883        lt_prog_compiler_pic_works=yes
13884      fi
13885    fi
13886    $rm conftest*
13887
13888 fi
13889 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13890 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13891
13892 if test x"$lt_prog_compiler_pic_works" = xyes; then
13893     case $lt_prog_compiler_pic in
13894      "" | " "*) ;;
13895      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13896      esac
13897 else
13898     lt_prog_compiler_pic=
13899      lt_prog_compiler_can_build_shared=no
13900 fi
13901
13902 fi
13903 case $host_os in
13904   # For platforms which do not support PIC, -DPIC is meaningless:
13905   *djgpp*)
13906     lt_prog_compiler_pic=
13907     ;;
13908   *)
13909     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13910     ;;
13911 esac
13912
13913 #
13914 # Check to make sure the static flag actually works.
13915 #
13916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13917 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13918 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13919 if test "${lt_prog_compiler_static_works+set}" = set; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922   lt_prog_compiler_static_works=no
13923    save_LDFLAGS="$LDFLAGS"
13924    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13925    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13926    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13927      # The linker can only warn and ignore the option if not recognized
13928      # So say no if there are warnings
13929      if test -s conftest.err; then
13930        # Append any errors to the config.log.
13931        cat conftest.err 1>&5
13932        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13933        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13934        if diff conftest.exp conftest.er2 >/dev/null; then
13935          lt_prog_compiler_static_works=yes
13936        fi
13937      else
13938        lt_prog_compiler_static_works=yes
13939      fi
13940    fi
13941    $rm conftest*
13942    LDFLAGS="$save_LDFLAGS"
13943
13944 fi
13945 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13946 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13947
13948 if test x"$lt_prog_compiler_static_works" = xyes; then
13949     :
13950 else
13951     lt_prog_compiler_static=
13952 fi
13953
13954
13955 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13956 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13957 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13958   echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960   lt_cv_prog_compiler_c_o=no
13961    $rm -r conftest 2>/dev/null
13962    mkdir conftest
13963    cd conftest
13964    mkdir out
13965    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13966
13967    lt_compiler_flag="-o out/conftest2.$ac_objext"
13968    # Insert the option either (1) after the last *FLAGS variable, or
13969    # (2) before a word containing "conftest.", or (3) at the end.
13970    # Note that $ac_compile itself does not contain backslashes and begins
13971    # with a dollar sign (not a hyphen), so the echo should work correctly.
13972    lt_compile=`echo "$ac_compile" | $SED \
13973    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13974    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13975    -e 's:$: $lt_compiler_flag:'`
13976    (eval echo "\"\$as_me:13976: $lt_compile\"" >&5)
13977    (eval "$lt_compile" 2>out/conftest.err)
13978    ac_status=$?
13979    cat out/conftest.err >&5
13980    echo "$as_me:13980: \$? = $ac_status" >&5
13981    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13982    then
13983      # The compiler can only warn and ignore the option if not recognized
13984      # So say no if there are warnings
13985      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13986      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13987      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13988        lt_cv_prog_compiler_c_o=yes
13989      fi
13990    fi
13991    chmod u+w . 2>&5
13992    $rm conftest*
13993    # SGI C++ compiler will create directory out/ii_files/ for
13994    # template instantiation
13995    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13996    $rm out/* && rmdir out
13997    cd ..
13998    rmdir conftest
13999    $rm conftest*
14000
14001 fi
14002 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14003 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
14004
14005
14006 hard_links="nottested"
14007 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14008   # do not overwrite the value of need_locks provided by the user
14009   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14010 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14011   hard_links=yes
14012   $rm conftest*
14013   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14014   touch conftest.a
14015   ln conftest.a conftest.b 2>&5 || hard_links=no
14016   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14017   echo "$as_me:$LINENO: result: $hard_links" >&5
14018 echo "${ECHO_T}$hard_links" >&6
14019   if test "$hard_links" = no; then
14020     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14021 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14022     need_locks=warn
14023   fi
14024 else
14025   need_locks=no
14026 fi
14027
14028 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14029 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14030
14031   runpath_var=
14032   allow_undefined_flag=
14033   enable_shared_with_static_runtimes=no
14034   archive_cmds=
14035   archive_expsym_cmds=
14036   old_archive_From_new_cmds=
14037   old_archive_from_expsyms_cmds=
14038   export_dynamic_flag_spec=
14039   whole_archive_flag_spec=
14040   thread_safe_flag_spec=
14041   hardcode_libdir_flag_spec=
14042   hardcode_libdir_flag_spec_ld=
14043   hardcode_libdir_separator=
14044   hardcode_direct=no
14045   hardcode_minus_L=no
14046   hardcode_shlibpath_var=unsupported
14047   link_all_deplibs=unknown
14048   hardcode_automatic=no
14049   module_cmds=
14050   module_expsym_cmds=
14051   always_export_symbols=no
14052   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14053   # include_expsyms should be a list of space-separated symbols to be *always*
14054   # included in the symbol list
14055   include_expsyms=
14056   # exclude_expsyms can be an extended regexp of symbols to exclude
14057   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14058   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14059   # as well as any symbol that contains `d'.
14060   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14061   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14062   # platforms (ab)use it in PIC code, but their linkers get confused if
14063   # the symbol is explicitly referenced.  Since portable code cannot
14064   # rely on this symbol name, it's probably fine to never include it in
14065   # preloaded symbol tables.
14066   extract_expsyms_cmds=
14067   # Just being paranoid about ensuring that cc_basename is set.
14068   for cc_temp in $compiler""; do
14069   case $cc_temp in
14070     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14071     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14072     \-*) ;;
14073     *) break;;
14074   esac
14075 done
14076 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14077
14078   case $host_os in
14079   cygwin* | mingw* | pw32*)
14080     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14081     # When not using gcc, we currently assume that we are using
14082     # Microsoft Visual C++.
14083     if test "$GCC" != yes; then
14084       with_gnu_ld=no
14085     fi
14086     ;;
14087   interix*)
14088     # we just hope/assume this is gcc and not c89 (= MSVC++)
14089     with_gnu_ld=yes
14090     ;;
14091   openbsd*)
14092     with_gnu_ld=no
14093     ;;
14094   esac
14095
14096   ld_shlibs=yes
14097   if test "$with_gnu_ld" = yes; then
14098     # If archive_cmds runs LD, not CC, wlarc should be empty
14099     wlarc='${wl}'
14100
14101     # Set some defaults for GNU ld with shared library support. These
14102     # are reset later if shared libraries are not supported. Putting them
14103     # here allows them to be overridden if necessary.
14104     runpath_var=LD_RUN_PATH
14105     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14106     export_dynamic_flag_spec='${wl}--export-dynamic'
14107     # ancient GNU ld didn't support --whole-archive et. al.
14108     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14109         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14110       else
14111         whole_archive_flag_spec=
14112     fi
14113     supports_anon_versioning=no
14114     case `$LD -v 2>/dev/null` in
14115       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14116       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14117       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14118       *\ 2.11.*) ;; # other 2.11 versions
14119       *) supports_anon_versioning=yes ;;
14120     esac
14121
14122     # See if GNU ld supports shared libraries.
14123     case $host_os in
14124     aix3* | aix4* | aix5*)
14125       # On AIX/PPC, the GNU linker is very broken
14126       if test "$host_cpu" != ia64; then
14127         ld_shlibs=no
14128         cat <<EOF 1>&2
14129
14130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14131 *** to be unable to reliably create shared libraries on AIX.
14132 *** Therefore, libtool is disabling shared libraries support.  If you
14133 *** really care for shared libraries, you may want to modify your PATH
14134 *** so that a non-GNU linker is found, and then restart.
14135
14136 EOF
14137       fi
14138       ;;
14139
14140     amigaos*)
14141       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)'
14142       hardcode_libdir_flag_spec='-L$libdir'
14143       hardcode_minus_L=yes
14144
14145       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14146       # that the semantics of dynamic libraries on AmigaOS, at least up
14147       # to version 4, is to share data among multiple programs linked
14148       # with the same dynamic library.  Since this doesn't match the
14149       # behavior of shared libraries on other platforms, we can't use
14150       # them.
14151       ld_shlibs=no
14152       ;;
14153
14154     beos*)
14155       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14156         allow_undefined_flag=unsupported
14157         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14158         # support --undefined.  This deserves some investigation.  FIXME
14159         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14160       else
14161         ld_shlibs=no
14162       fi
14163       ;;
14164
14165     cygwin* | mingw* | pw32*)
14166       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14167       # as there is no search path for DLLs.
14168       hardcode_libdir_flag_spec='-L$libdir'
14169       allow_undefined_flag=unsupported
14170       always_export_symbols=no
14171       enable_shared_with_static_runtimes=yes
14172       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14173
14174       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14175         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14176         # If the export-symbols file already is a .def file (1st line
14177         # is EXPORTS), use it as is; otherwise, prepend...
14178         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14179           cp $export_symbols $output_objdir/$soname.def;
14180         else
14181           echo EXPORTS > $output_objdir/$soname.def;
14182           cat $export_symbols >> $output_objdir/$soname.def;
14183         fi~
14184         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14185       else
14186         ld_shlibs=no
14187       fi
14188       ;;
14189
14190     interix3*)
14191       hardcode_direct=no
14192       hardcode_shlibpath_var=no
14193       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14194       export_dynamic_flag_spec='${wl}-E'
14195       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14196       # Instead, shared libraries are loaded at an image base (0x10000000 by
14197       # default) and relocated if they conflict, which is a slow very memory
14198       # consuming and fragmenting process.  To avoid this, we pick a random,
14199       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14200       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14201       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14202       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'
14203       ;;
14204
14205     linux*)
14206       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14207         tmp_addflag=
14208         case $cc_basename,$host_cpu in
14209         pgcc*)                          # Portland Group C compiler
14210           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'
14211           tmp_addflag=' $pic_flag'
14212           ;;
14213         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14214           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'
14215           tmp_addflag=' $pic_flag -Mnomain' ;;
14216         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14217           tmp_addflag=' -i_dynamic' ;;
14218         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14219           tmp_addflag=' -i_dynamic -nofor_main' ;;
14220         ifc* | ifort*)                  # Intel Fortran compiler
14221           tmp_addflag=' -nofor_main' ;;
14222         esac
14223         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224
14225         if test $supports_anon_versioning = yes; then
14226           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14227   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14228   $echo "local: *; };" >> $output_objdir/$libname.ver~
14229           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14230         fi
14231       else
14232         ld_shlibs=no
14233       fi
14234       ;;
14235
14236     netbsd*)
14237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14238         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14239         wlarc=
14240       else
14241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14243       fi
14244       ;;
14245
14246     solaris*)
14247       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14248         ld_shlibs=no
14249         cat <<EOF 1>&2
14250
14251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14252 *** create shared libraries on Solaris systems.  Therefore, libtool
14253 *** is disabling shared libraries support.  We urge you to upgrade GNU
14254 *** binutils to release 2.9.1 or newer.  Another option is to modify
14255 *** your PATH or compiler configuration so that the native linker is
14256 *** used, and then restart.
14257
14258 EOF
14259       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14262       else
14263         ld_shlibs=no
14264       fi
14265       ;;
14266
14267     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14268       case `$LD -v 2>&1` in
14269         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14270         ld_shlibs=no
14271         cat <<_LT_EOF 1>&2
14272
14273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14274 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14275 *** is disabling shared libraries support.  We urge you to upgrade GNU
14276 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14277 *** your PATH or compiler configuration so that the native linker is
14278 *** used, and then restart.
14279
14280 _LT_EOF
14281         ;;
14282         *)
14283           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14284             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14285             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14286             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14287           else
14288             ld_shlibs=no
14289           fi
14290         ;;
14291       esac
14292       ;;
14293
14294     sunos4*)
14295       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14296       wlarc=
14297       hardcode_direct=yes
14298       hardcode_shlibpath_var=no
14299       ;;
14300
14301     *)
14302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14303         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14305       else
14306         ld_shlibs=no
14307       fi
14308       ;;
14309     esac
14310
14311     if test "$ld_shlibs" = no; then
14312       runpath_var=
14313       hardcode_libdir_flag_spec=
14314       export_dynamic_flag_spec=
14315       whole_archive_flag_spec=
14316     fi
14317   else
14318     # PORTME fill in a description of your system's linker (not GNU ld)
14319     case $host_os in
14320     aix3*)
14321       allow_undefined_flag=unsupported
14322       always_export_symbols=yes
14323       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'
14324       # Note: this linker hardcodes the directories in LIBPATH if there
14325       # are no directories specified by -L.
14326       hardcode_minus_L=yes
14327       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14328         # Neither direct hardcoding nor static linking is supported with a
14329         # broken collect2.
14330         hardcode_direct=unsupported
14331       fi
14332       ;;
14333
14334     aix4* | aix5*)
14335       if test "$host_cpu" = ia64; then
14336         # On IA64, the linker does run time linking by default, so we don't
14337         # have to do anything special.
14338         aix_use_runtimelinking=no
14339         exp_sym_flag='-Bexport'
14340         no_entry_flag=""
14341       else
14342         # If we're using GNU nm, then we don't want the "-C" option.
14343         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14344         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14345           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'
14346         else
14347           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'
14348         fi
14349         aix_use_runtimelinking=no
14350
14351         # Test if we are trying to use run time linking or normal
14352         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14353         # need to do runtime linking.
14354         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14355           for ld_flag in $LDFLAGS; do
14356           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14357             aix_use_runtimelinking=yes
14358             break
14359           fi
14360           done
14361           ;;
14362         esac
14363
14364         exp_sym_flag='-bexport'
14365         no_entry_flag='-bnoentry'
14366       fi
14367
14368       # When large executables or shared objects are built, AIX ld can
14369       # have problems creating the table of contents.  If linking a library
14370       # or program results in "error TOC overflow" add -mminimal-toc to
14371       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14372       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14373
14374       archive_cmds=''
14375       hardcode_direct=yes
14376       hardcode_libdir_separator=':'
14377       link_all_deplibs=yes
14378
14379       if test "$GCC" = yes; then
14380         case $host_os in aix4.[012]|aix4.[012].*)
14381         # We only want to do this on AIX 4.2 and lower, the check
14382         # below for broken collect2 doesn't work under 4.3+
14383           collect2name=`${CC} -print-prog-name=collect2`
14384           if test -f "$collect2name" && \
14385            strings "$collect2name" | grep resolve_lib_name >/dev/null
14386           then
14387           # We have reworked collect2
14388           hardcode_direct=yes
14389           else
14390           # We have old collect2
14391           hardcode_direct=unsupported
14392           # It fails to find uninstalled libraries when the uninstalled
14393           # path is not listed in the libpath.  Setting hardcode_minus_L
14394           # to unsupported forces relinking
14395           hardcode_minus_L=yes
14396           hardcode_libdir_flag_spec='-L$libdir'
14397           hardcode_libdir_separator=
14398           fi
14399           ;;
14400         esac
14401         shared_flag='-shared'
14402         if test "$aix_use_runtimelinking" = yes; then
14403           shared_flag="$shared_flag "'${wl}-G'
14404         fi
14405       else
14406         # not using gcc
14407         if test "$host_cpu" = ia64; then
14408         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14409         # chokes on -Wl,-G. The following line is correct:
14410           shared_flag='-G'
14411         else
14412           if test "$aix_use_runtimelinking" = yes; then
14413             shared_flag='${wl}-G'
14414           else
14415             shared_flag='${wl}-bM:SRE'
14416           fi
14417         fi
14418       fi
14419
14420       # It seems that -bexpall does not export symbols beginning with
14421       # underscore (_), so it is better to generate a list of symbols to export.
14422       always_export_symbols=yes
14423       if test "$aix_use_runtimelinking" = yes; then
14424         # Warning - without using the other runtime loading flags (-brtl),
14425         # -berok will link without error, but may produce a broken library.
14426         allow_undefined_flag='-berok'
14427        # Determine the default libpath from the value encoded in an empty executable.
14428        cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434
14435 int
14436 main ()
14437 {
14438
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445   (eval $ac_link) 2>conftest.er1
14446   ac_status=$?
14447   grep -v '^ *+' conftest.er1 >conftest.err
14448   rm -f conftest.er1
14449   cat conftest.err >&5
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); } &&
14452          { ac_try='test -z "$ac_c_werror_flag"
14453                          || test ! -s conftest.err'
14454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455   (eval $ac_try) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }; } &&
14459          { ac_try='test -s conftest$ac_exeext'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; }; then
14465
14466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14467 }'`
14468 # Check for a 64-bit object if we didn't find anything.
14469 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; }
14470 }'`; fi
14471 else
14472   echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 fi
14476 rm -f conftest.err conftest.$ac_objext \
14477       conftest$ac_exeext conftest.$ac_ext
14478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14479
14480        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14481         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"
14482        else
14483         if test "$host_cpu" = ia64; then
14484           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14485           allow_undefined_flag="-z nodefs"
14486           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"
14487         else
14488          # Determine the default libpath from the value encoded in an empty executable.
14489          cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h.  */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h.  */
14495
14496 int
14497 main ()
14498 {
14499
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14506   (eval $ac_link) 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag"
14514                          || test ! -s conftest.err'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; } &&
14520          { ac_try='test -s conftest$ac_exeext'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; }; then
14526
14527 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14528 }'`
14529 # Check for a 64-bit object if we didn't find anything.
14530 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; }
14531 }'`; fi
14532 else
14533   echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 fi
14537 rm -f conftest.err conftest.$ac_objext \
14538       conftest$ac_exeext conftest.$ac_ext
14539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14540
14541          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14542           # Warning - without using the other run time loading flags,
14543           # -berok will link without error, but may produce a broken library.
14544           no_undefined_flag=' ${wl}-bernotok'
14545           allow_undefined_flag=' ${wl}-berok'
14546           # Exported symbols can be pulled into shared objects from archives
14547           whole_archive_flag_spec='$convenience'
14548           archive_cmds_need_lc=yes
14549           # This is similar to how AIX traditionally builds its shared libraries.
14550           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'
14551         fi
14552       fi
14553       ;;
14554
14555     amigaos*)
14556       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)'
14557       hardcode_libdir_flag_spec='-L$libdir'
14558       hardcode_minus_L=yes
14559       # see comment about different semantics on the GNU ld section
14560       ld_shlibs=no
14561       ;;
14562
14563     bsdi[45]*)
14564       export_dynamic_flag_spec=-rdynamic
14565       ;;
14566
14567     cygwin* | mingw* | pw32*)
14568       # When not using gcc, we currently assume that we are using
14569       # Microsoft Visual C++.
14570       # hardcode_libdir_flag_spec is actually meaningless, as there is
14571       # no search path for DLLs.
14572       hardcode_libdir_flag_spec=' '
14573       allow_undefined_flag=unsupported
14574       # Tell ltmain to make .lib files, not .a files.
14575       libext=lib
14576       # Tell ltmain to make .dll files, not .so files.
14577       shrext_cmds=".dll"
14578       # FIXME: Setting linknames here is a bad hack.
14579       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14580       # The linker will automatically build a .lib file if we build a DLL.
14581       old_archive_From_new_cmds='true'
14582       # FIXME: Should let the user specify the lib program.
14583       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14584       fix_srcfile_path='`cygpath -w "$srcfile"`'
14585       enable_shared_with_static_runtimes=yes
14586       ;;
14587
14588     darwin* | rhapsody*)
14589       case $host_os in
14590         rhapsody* | darwin1.[012])
14591          allow_undefined_flag='${wl}-undefined ${wl}suppress'
14592          ;;
14593        *) # Darwin 1.3 on
14594          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14595            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14596          else
14597            case ${MACOSX_DEPLOYMENT_TARGET} in
14598              10.[012])
14599                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14600                ;;
14601              10.*)
14602                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14603                ;;
14604            esac
14605          fi
14606          ;;
14607       esac
14608       archive_cmds_need_lc=no
14609       hardcode_direct=no
14610       hardcode_automatic=yes
14611       hardcode_shlibpath_var=unsupported
14612       whole_archive_flag_spec=''
14613       link_all_deplibs=yes
14614     if test "$GCC" = yes ; then
14615         output_verbose_link_cmd='echo'
14616         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14617       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14618       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14619       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}'
14620       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}'
14621     else
14622       case $cc_basename in
14623         xlc*)
14624          output_verbose_link_cmd='echo'
14625          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14626          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14627           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14628          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}'
14629           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}'
14630           ;;
14631        *)
14632          ld_shlibs=no
14633           ;;
14634       esac
14635     fi
14636       ;;
14637
14638     dgux*)
14639       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640       hardcode_libdir_flag_spec='-L$libdir'
14641       hardcode_shlibpath_var=no
14642       ;;
14643
14644     freebsd1*)
14645       ld_shlibs=no
14646       ;;
14647
14648     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14649     # support.  Future versions do this automatically, but an explicit c++rt0.o
14650     # does not break anything, and helps significantly (at the cost of a little
14651     # extra space).
14652     freebsd2.2*)
14653       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14654       hardcode_libdir_flag_spec='-R$libdir'
14655       hardcode_direct=yes
14656       hardcode_shlibpath_var=no
14657       ;;
14658
14659     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14660     freebsd2*)
14661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14662       hardcode_direct=yes
14663       hardcode_minus_L=yes
14664       hardcode_shlibpath_var=no
14665       ;;
14666
14667     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14668     freebsd* | kfreebsd*-gnu | dragonfly*)
14669       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14670       hardcode_libdir_flag_spec='-R$libdir'
14671       hardcode_direct=yes
14672       hardcode_shlibpath_var=no
14673       ;;
14674
14675     hpux9*)
14676       if test "$GCC" = yes; then
14677         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'
14678       else
14679         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'
14680       fi
14681       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14682       hardcode_libdir_separator=:
14683       hardcode_direct=yes
14684
14685       # hardcode_minus_L: Not really in the search PATH,
14686       # but as the default location of the library.
14687       hardcode_minus_L=yes
14688       export_dynamic_flag_spec='${wl}-E'
14689       ;;
14690
14691     hpux10*)
14692       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14693         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14694       else
14695         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14696       fi
14697       if test "$with_gnu_ld" = no; then
14698         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14699         hardcode_libdir_separator=:
14700
14701         hardcode_direct=yes
14702         export_dynamic_flag_spec='${wl}-E'
14703
14704         # hardcode_minus_L: Not really in the search PATH,
14705         # but as the default location of the library.
14706         hardcode_minus_L=yes
14707       fi
14708       ;;
14709
14710     hpux11*)
14711       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14712         case $host_cpu in
14713         hppa*64*)
14714           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14715           ;;
14716         ia64*)
14717           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14718           ;;
14719         *)
14720           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14721           ;;
14722         esac
14723       else
14724         case $host_cpu in
14725         hppa*64*)
14726           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14727           ;;
14728         ia64*)
14729           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14730           ;;
14731         *)
14732           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14733           ;;
14734         esac
14735       fi
14736       if test "$with_gnu_ld" = no; then
14737         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14738         hardcode_libdir_separator=:
14739
14740         case $host_cpu in
14741         hppa*64*|ia64*)
14742           hardcode_libdir_flag_spec_ld='+b $libdir'
14743           hardcode_direct=no
14744           hardcode_shlibpath_var=no
14745           ;;
14746         *)
14747           hardcode_direct=yes
14748           export_dynamic_flag_spec='${wl}-E'
14749
14750           # hardcode_minus_L: Not really in the search PATH,
14751           # but as the default location of the library.
14752           hardcode_minus_L=yes
14753           ;;
14754         esac
14755       fi
14756       ;;
14757
14758     irix5* | irix6* | nonstopux*)
14759       if test "$GCC" = yes; then
14760         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'
14761       else
14762         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'
14763         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14764       fi
14765       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14766       hardcode_libdir_separator=:
14767       link_all_deplibs=yes
14768       ;;
14769
14770     netbsd*)
14771       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14772         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14773       else
14774         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14775       fi
14776       hardcode_libdir_flag_spec='-R$libdir'
14777       hardcode_direct=yes
14778       hardcode_shlibpath_var=no
14779       ;;
14780
14781     newsos6)
14782       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783       hardcode_direct=yes
14784       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14785       hardcode_libdir_separator=:
14786       hardcode_shlibpath_var=no
14787       ;;
14788
14789     openbsd*)
14790       hardcode_direct=yes
14791       hardcode_shlibpath_var=no
14792       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14793         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14794         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14795         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14796         export_dynamic_flag_spec='${wl}-E'
14797       else
14798        case $host_os in
14799          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14800            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14801            hardcode_libdir_flag_spec='-R$libdir'
14802            ;;
14803          *)
14804            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14806            ;;
14807        esac
14808       fi
14809       ;;
14810
14811     os2*)
14812       hardcode_libdir_flag_spec='-L$libdir'
14813       hardcode_minus_L=yes
14814       allow_undefined_flag=unsupported
14815       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'
14816       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14817       ;;
14818
14819     osf3*)
14820       if test "$GCC" = yes; then
14821         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14822         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'
14823       else
14824         allow_undefined_flag=' -expect_unresolved \*'
14825         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'
14826       fi
14827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14828       hardcode_libdir_separator=:
14829       ;;
14830
14831     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14832       if test "$GCC" = yes; then
14833         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14834         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'
14835         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14836       else
14837         allow_undefined_flag=' -expect_unresolved \*'
14838         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'
14839         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14840         $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'
14841
14842         # Both c and cxx compiler support -rpath directly
14843         hardcode_libdir_flag_spec='-rpath $libdir'
14844       fi
14845       hardcode_libdir_separator=:
14846       ;;
14847
14848     solaris*)
14849       no_undefined_flag=' -z text'
14850       if test "$GCC" = yes; then
14851         wlarc='${wl}'
14852         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14854           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14855       else
14856         wlarc=''
14857         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14858         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14859         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14860       fi
14861       hardcode_libdir_flag_spec='-R$libdir'
14862       hardcode_shlibpath_var=no
14863       case $host_os in
14864       solaris2.[0-5] | solaris2.[0-5].*) ;;
14865       *)
14866         # The compiler driver will combine linker options so we
14867         # cannot just pass the convience library names through
14868         # without $wl, iff we do not link with $LD.
14869         # Luckily, gcc supports the same syntax we need for Sun Studio.
14870         # Supported since Solaris 2.6 (maybe 2.5.1?)
14871         case $wlarc in
14872         '')
14873           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14874         *)
14875           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' ;;
14876         esac ;;
14877       esac
14878       link_all_deplibs=yes
14879       ;;
14880
14881     sunos4*)
14882       if test "x$host_vendor" = xsequent; then
14883         # Use $CC to link under sequent, because it throws in some extra .o
14884         # files that make .init and .fini sections work.
14885         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14886       else
14887         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14888       fi
14889       hardcode_libdir_flag_spec='-L$libdir'
14890       hardcode_direct=yes
14891       hardcode_minus_L=yes
14892       hardcode_shlibpath_var=no
14893       ;;
14894
14895     sysv4)
14896       case $host_vendor in
14897         sni)
14898           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899           hardcode_direct=yes # is this really true???
14900         ;;
14901         siemens)
14902           ## LD is ld it makes a PLAMLIB
14903           ## CC just makes a GrossModule.
14904           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14905           reload_cmds='$CC -r -o $output$reload_objs'
14906           hardcode_direct=no
14907         ;;
14908         motorola)
14909           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14910           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14911         ;;
14912       esac
14913       runpath_var='LD_RUN_PATH'
14914       hardcode_shlibpath_var=no
14915       ;;
14916
14917     sysv4.3*)
14918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14919       hardcode_shlibpath_var=no
14920       export_dynamic_flag_spec='-Bexport'
14921       ;;
14922
14923     sysv4*MP*)
14924       if test -d /usr/nec; then
14925         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926         hardcode_shlibpath_var=no
14927         runpath_var=LD_RUN_PATH
14928         hardcode_runpath_var=yes
14929         ld_shlibs=yes
14930       fi
14931       ;;
14932
14933     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14934       no_undefined_flag='${wl}-z,text'
14935       archive_cmds_need_lc=no
14936       hardcode_shlibpath_var=no
14937       runpath_var='LD_RUN_PATH'
14938
14939       if test "$GCC" = yes; then
14940         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14941         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14942       else
14943         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14944         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14945       fi
14946       ;;
14947
14948     sysv5* | sco3.2v5* | sco5v6*)
14949       # Note: We can NOT use -z defs as we might desire, because we do not
14950       # link with -lc, and that would cause any symbols used from libc to
14951       # always be unresolved, which means just about no library would
14952       # ever link correctly.  If we're not using GNU ld we use -z text
14953       # though, which does catch some bad symbols but isn't as heavy-handed
14954       # as -z defs.
14955       no_undefined_flag='${wl}-z,text'
14956       allow_undefined_flag='${wl}-z,nodefs'
14957       archive_cmds_need_lc=no
14958       hardcode_shlibpath_var=no
14959       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14960       hardcode_libdir_separator=':'
14961       link_all_deplibs=yes
14962       export_dynamic_flag_spec='${wl}-Bexport'
14963       runpath_var='LD_RUN_PATH'
14964
14965       if test "$GCC" = yes; then
14966         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14967         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14968       else
14969         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14970         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14971       fi
14972       ;;
14973
14974     uts4*)
14975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14976       hardcode_libdir_flag_spec='-L$libdir'
14977       hardcode_shlibpath_var=no
14978       ;;
14979
14980     *)
14981       ld_shlibs=no
14982       ;;
14983     esac
14984   fi
14985
14986 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14987 echo "${ECHO_T}$ld_shlibs" >&6
14988 test "$ld_shlibs" = no && can_build_shared=no
14989
14990 #
14991 # Do we need to explicitly link libc?
14992 #
14993 case "x$archive_cmds_need_lc" in
14994 x|xyes)
14995   # Assume -lc should be added
14996   archive_cmds_need_lc=yes
14997
14998   if test "$enable_shared" = yes && test "$GCC" = yes; then
14999     case $archive_cmds in
15000     *'~'*)
15001       # FIXME: we may have to deal with multi-command sequences.
15002       ;;
15003     '$CC '*)
15004       # Test whether the compiler implicitly links with -lc since on some
15005       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15006       # to ld, don't add -lc before -lgcc.
15007       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15008 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15009       $rm conftest*
15010       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15011
15012       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013   (eval $ac_compile) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } 2>conftest.err; then
15017         soname=conftest
15018         lib=conftest
15019         libobjs=conftest.$ac_objext
15020         deplibs=
15021         wl=$lt_prog_compiler_wl
15022         pic_flag=$lt_prog_compiler_pic
15023         compiler_flags=-v
15024         linker_flags=-v
15025         verstring=
15026         output_objdir=.
15027         libname=conftest
15028         lt_save_allow_undefined_flag=$allow_undefined_flag
15029         allow_undefined_flag=
15030         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15031   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15032   ac_status=$?
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); }
15035         then
15036           archive_cmds_need_lc=no
15037         else
15038           archive_cmds_need_lc=yes
15039         fi
15040         allow_undefined_flag=$lt_save_allow_undefined_flag
15041       else
15042         cat conftest.err 1>&5
15043       fi
15044       $rm conftest*
15045       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15046 echo "${ECHO_T}$archive_cmds_need_lc" >&6
15047       ;;
15048     esac
15049   fi
15050   ;;
15051 esac
15052
15053 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15054 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15055 library_names_spec=
15056 libname_spec='lib$name'
15057 soname_spec=
15058 shrext_cmds=".so"
15059 postinstall_cmds=
15060 postuninstall_cmds=
15061 finish_cmds=
15062 finish_eval=
15063 shlibpath_var=
15064 shlibpath_overrides_runpath=unknown
15065 version_type=none
15066 dynamic_linker="$host_os ld.so"
15067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15068 if test "$GCC" = yes; then
15069   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15070   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15071     # if the path contains ";" then we assume it to be the separator
15072     # otherwise default to the standard path separator (i.e. ":") - it is
15073     # assumed that no part of a normal pathname contains ";" but that should
15074     # okay in the real world where ";" in dirpaths is itself problematic.
15075     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15076   else
15077     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15078   fi
15079 else
15080   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15081 fi
15082 need_lib_prefix=unknown
15083 hardcode_into_libs=no
15084
15085 # when you set need_version to no, make sure it does not cause -set_version
15086 # flags to be left without arguments
15087 need_version=unknown
15088
15089 case $host_os in
15090 aix3*)
15091   version_type=linux
15092   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15093   shlibpath_var=LIBPATH
15094
15095   # AIX 3 has no versioning support, so we append a major version to the name.
15096   soname_spec='${libname}${release}${shared_ext}$major'
15097   ;;
15098
15099 aix4* | aix5*)
15100   version_type=linux
15101   need_lib_prefix=no
15102   need_version=no
15103   hardcode_into_libs=yes
15104   if test "$host_cpu" = ia64; then
15105     # AIX 5 supports IA64
15106     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15107     shlibpath_var=LD_LIBRARY_PATH
15108   else
15109     # With GCC up to 2.95.x, collect2 would create an import file
15110     # for dependence libraries.  The import file would start with
15111     # the line `#! .'.  This would cause the generated library to
15112     # depend on `.', always an invalid library.  This was fixed in
15113     # development snapshots of GCC prior to 3.0.
15114     case $host_os in
15115       aix4 | aix4.[01] | aix4.[01].*)
15116       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15117            echo ' yes '
15118            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15119         :
15120       else
15121         can_build_shared=no
15122       fi
15123       ;;
15124     esac
15125     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15126     # soname into executable. Probably we can add versioning support to
15127     # collect2, so additional links can be useful in future.
15128     if test "$aix_use_runtimelinking" = yes; then
15129       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15130       # instead of lib<name>.a to let people know that these are not
15131       # typical AIX shared libraries.
15132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133     else
15134       # We preserve .a as extension for shared libraries through AIX4.2
15135       # and later when we are not doing run time linking.
15136       library_names_spec='${libname}${release}.a $libname.a'
15137       soname_spec='${libname}${release}${shared_ext}$major'
15138     fi
15139     shlibpath_var=LIBPATH
15140   fi
15141   ;;
15142
15143 amigaos*)
15144   library_names_spec='$libname.ixlibrary $libname.a'
15145   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15146   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'
15147   ;;
15148
15149 beos*)
15150   library_names_spec='${libname}${shared_ext}'
15151   dynamic_linker="$host_os ld.so"
15152   shlibpath_var=LIBRARY_PATH
15153   ;;
15154
15155 bsdi[45]*)
15156   version_type=linux
15157   need_version=no
15158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159   soname_spec='${libname}${release}${shared_ext}$major'
15160   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15161   shlibpath_var=LD_LIBRARY_PATH
15162   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15163   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15164   # the default ld.so.conf also contains /usr/contrib/lib and
15165   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15166   # libtool to hard-code these into programs
15167   ;;
15168
15169 cygwin* | mingw* | pw32*)
15170   version_type=windows
15171   shrext_cmds=".dll"
15172   need_version=no
15173   need_lib_prefix=no
15174
15175   case $GCC,$host_os in
15176   yes,cygwin* | yes,mingw* | yes,pw32*)
15177     library_names_spec='$libname.dll.a'
15178     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15179     postinstall_cmds='base_file=`basename \${file}`~
15180       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15181       dldir=$destdir/`dirname \$dlpath`~
15182       test -d \$dldir || mkdir -p \$dldir~
15183       $install_prog $dir/$dlname \$dldir/$dlname~
15184       chmod a+x \$dldir/$dlname'
15185     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15186       dlpath=$dir/\$dldll~
15187        $rm \$dlpath'
15188     shlibpath_overrides_runpath=yes
15189
15190     case $host_os in
15191     cygwin*)
15192       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15193       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15194       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15195       ;;
15196     mingw*)
15197       # MinGW DLLs use traditional 'lib' prefix
15198       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15199       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15200       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15201         # It is most probably a Windows format PATH printed by
15202         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15203         # path with ; separators, and with drive letters. We can handle the
15204         # drive letters (cygwin fileutils understands them), so leave them,
15205         # especially as we might pass files found there to a mingw objdump,
15206         # which wouldn't understand a cygwinified path. Ahh.
15207         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15208       else
15209         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15210       fi
15211       ;;
15212     pw32*)
15213       # pw32 DLLs use 'pw' prefix rather than 'lib'
15214       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15215       ;;
15216     esac
15217     ;;
15218
15219   *)
15220     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15221     ;;
15222   esac
15223   dynamic_linker='Win32 ld.exe'
15224   # FIXME: first we should search . and the directory the executable is in
15225   shlibpath_var=PATH
15226   ;;
15227
15228 darwin* | rhapsody*)
15229   dynamic_linker="$host_os dyld"
15230   version_type=darwin
15231   need_lib_prefix=no
15232   need_version=no
15233   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15234   soname_spec='${libname}${release}${major}$shared_ext'
15235   shlibpath_overrides_runpath=yes
15236   shlibpath_var=DYLD_LIBRARY_PATH
15237   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15238   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15239   if test "$GCC" = yes; then
15240     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"`
15241   else
15242     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15243   fi
15244   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15245   ;;
15246
15247 dgux*)
15248   version_type=linux
15249   need_lib_prefix=no
15250   need_version=no
15251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15252   soname_spec='${libname}${release}${shared_ext}$major'
15253   shlibpath_var=LD_LIBRARY_PATH
15254   ;;
15255
15256 freebsd1*)
15257   dynamic_linker=no
15258   ;;
15259
15260 kfreebsd*-gnu)
15261   version_type=linux
15262   need_lib_prefix=no
15263   need_version=no
15264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15265   soname_spec='${libname}${release}${shared_ext}$major'
15266   shlibpath_var=LD_LIBRARY_PATH
15267   shlibpath_overrides_runpath=no
15268   hardcode_into_libs=yes
15269   dynamic_linker='GNU ld.so'
15270   ;;
15271
15272 freebsd* | dragonfly*)
15273   # DragonFly does not have aout.  When/if they implement a new
15274   # versioning mechanism, adjust this.
15275   if test -x /usr/bin/objformat; then
15276     objformat=`/usr/bin/objformat`
15277   else
15278     case $host_os in
15279     freebsd[123]*) objformat=aout ;;
15280     *) objformat=elf ;;
15281     esac
15282   fi
15283   version_type=freebsd-$objformat
15284   case $version_type in
15285     freebsd-elf*)
15286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15287       need_version=no
15288       need_lib_prefix=no
15289       ;;
15290     freebsd-*)
15291       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15292       need_version=yes
15293       ;;
15294   esac
15295   shlibpath_var=LD_LIBRARY_PATH
15296   case $host_os in
15297   freebsd2*)
15298     shlibpath_overrides_runpath=yes
15299     ;;
15300   freebsd3.[01]* | freebsdelf3.[01]*)
15301     shlibpath_overrides_runpath=yes
15302     hardcode_into_libs=yes
15303     ;;
15304   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15305   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15306     shlibpath_overrides_runpath=no
15307     hardcode_into_libs=yes
15308     ;;
15309   freebsd*) # from 4.6 on
15310     shlibpath_overrides_runpath=yes
15311     hardcode_into_libs=yes
15312     ;;
15313   esac
15314   ;;
15315
15316 gnu*)
15317   version_type=linux
15318   need_lib_prefix=no
15319   need_version=no
15320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15321   soname_spec='${libname}${release}${shared_ext}$major'
15322   shlibpath_var=LD_LIBRARY_PATH
15323   hardcode_into_libs=yes
15324   ;;
15325
15326 hpux9* | hpux10* | hpux11*)
15327   # Give a soname corresponding to the major version so that dld.sl refuses to
15328   # link against other versions.
15329   version_type=sunos
15330   need_lib_prefix=no
15331   need_version=no
15332   case $host_cpu in
15333   ia64*)
15334     shrext_cmds='.so'
15335     hardcode_into_libs=yes
15336     dynamic_linker="$host_os dld.so"
15337     shlibpath_var=LD_LIBRARY_PATH
15338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340     soname_spec='${libname}${release}${shared_ext}$major'
15341     if test "X$HPUX_IA64_MODE" = X32; then
15342       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15343     else
15344       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15345     fi
15346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15347     ;;
15348    hppa*64*)
15349      shrext_cmds='.sl'
15350      hardcode_into_libs=yes
15351      dynamic_linker="$host_os dld.sl"
15352      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15353      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15354      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355      soname_spec='${libname}${release}${shared_ext}$major'
15356      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15357      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15358      ;;
15359    *)
15360     shrext_cmds='.sl'
15361     dynamic_linker="$host_os dld.sl"
15362     shlibpath_var=SHLIB_PATH
15363     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365     soname_spec='${libname}${release}${shared_ext}$major'
15366     ;;
15367   esac
15368   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15369   postinstall_cmds='chmod 555 $lib'
15370   ;;
15371
15372 interix3*)
15373   version_type=linux
15374   need_lib_prefix=no
15375   need_version=no
15376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15377   soname_spec='${libname}${release}${shared_ext}$major'
15378   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15379   shlibpath_var=LD_LIBRARY_PATH
15380   shlibpath_overrides_runpath=no
15381   hardcode_into_libs=yes
15382   ;;
15383
15384 irix5* | irix6* | nonstopux*)
15385   case $host_os in
15386     nonstopux*) version_type=nonstopux ;;
15387     *)
15388         if test "$lt_cv_prog_gnu_ld" = yes; then
15389                 version_type=linux
15390         else
15391                 version_type=irix
15392         fi ;;
15393   esac
15394   need_lib_prefix=no
15395   need_version=no
15396   soname_spec='${libname}${release}${shared_ext}$major'
15397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15398   case $host_os in
15399   irix5* | nonstopux*)
15400     libsuff= shlibsuff=
15401     ;;
15402   *)
15403     case $LD in # libtool.m4 will add one of these switches to LD
15404     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15405       libsuff= shlibsuff= libmagic=32-bit;;
15406     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15407       libsuff=32 shlibsuff=N32 libmagic=N32;;
15408     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15409       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15410     *) libsuff= shlibsuff= libmagic=never-match;;
15411     esac
15412     ;;
15413   esac
15414   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15415   shlibpath_overrides_runpath=no
15416   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15417   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15418   hardcode_into_libs=yes
15419   ;;
15420
15421 # No shared lib support for Linux oldld, aout, or coff.
15422 linux*oldld* | linux*aout* | linux*coff*)
15423   dynamic_linker=no
15424   ;;
15425
15426 # This must be Linux ELF.
15427 linux*)
15428   version_type=linux
15429   need_lib_prefix=no
15430   need_version=no
15431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432   soname_spec='${libname}${release}${shared_ext}$major'
15433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15434   shlibpath_var=LD_LIBRARY_PATH
15435   shlibpath_overrides_runpath=no
15436   # This implies no fast_install, which is unacceptable.
15437   # Some rework will be needed to allow for fast_install
15438   # before this can be enabled.
15439   hardcode_into_libs=yes
15440
15441   # find out which ABI we are using
15442   libsuff=
15443   case "$host_cpu" in
15444   x86_64*|s390x*|powerpc64*)
15445     echo '#line 15445 "configure"' > conftest.$ac_ext
15446     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447   (eval $ac_compile) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; then
15451       case `/usr/bin/file conftest.$ac_objext` in
15452       *64-bit*)
15453         libsuff=64
15454         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15455         ;;
15456       esac
15457     fi
15458     rm -rf conftest*
15459     ;;
15460   esac
15461
15462   # Append ld.so.conf contents to the search path
15463   if test -f /etc/ld.so.conf; then
15464     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' ' '`
15465     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15466   fi
15467
15468   # We used to test for /lib/ld.so.1 and disable shared libraries on
15469   # powerpc, because MkLinux only supported shared libraries with the
15470   # GNU dynamic linker.  Since this was broken with cross compilers,
15471   # most powerpc-linux boxes support dynamic linking these days and
15472   # people can always --disable-shared, the test was removed, and we
15473   # assume the GNU/Linux dynamic linker is in use.
15474   dynamic_linker='GNU/Linux ld.so'
15475   ;;
15476
15477 knetbsd*-gnu)
15478   version_type=linux
15479   need_lib_prefix=no
15480   need_version=no
15481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   shlibpath_var=LD_LIBRARY_PATH
15484   shlibpath_overrides_runpath=no
15485   hardcode_into_libs=yes
15486   dynamic_linker='GNU ld.so'
15487   ;;
15488
15489 netbsd*)
15490   version_type=sunos
15491   need_lib_prefix=no
15492   need_version=no
15493   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15495     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15496     dynamic_linker='NetBSD (a.out) ld.so'
15497   else
15498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15499     soname_spec='${libname}${release}${shared_ext}$major'
15500     dynamic_linker='NetBSD ld.elf_so'
15501   fi
15502   shlibpath_var=LD_LIBRARY_PATH
15503   shlibpath_overrides_runpath=yes
15504   hardcode_into_libs=yes
15505   ;;
15506
15507 newsos6)
15508   version_type=linux
15509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510   shlibpath_var=LD_LIBRARY_PATH
15511   shlibpath_overrides_runpath=yes
15512   ;;
15513
15514 nto-qnx*)
15515   version_type=linux
15516   need_lib_prefix=no
15517   need_version=no
15518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519   soname_spec='${libname}${release}${shared_ext}$major'
15520   shlibpath_var=LD_LIBRARY_PATH
15521   shlibpath_overrides_runpath=yes
15522   ;;
15523
15524 openbsd*)
15525   version_type=sunos
15526   sys_lib_dlsearch_path_spec="/usr/lib"
15527   need_lib_prefix=no
15528   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15529   case $host_os in
15530     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15531     *)                         need_version=no  ;;
15532   esac
15533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15534   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15535   shlibpath_var=LD_LIBRARY_PATH
15536   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15537     case $host_os in
15538       openbsd2.[89] | openbsd2.[89].*)
15539         shlibpath_overrides_runpath=no
15540         ;;
15541       *)
15542         shlibpath_overrides_runpath=yes
15543         ;;
15544       esac
15545   else
15546     shlibpath_overrides_runpath=yes
15547   fi
15548   ;;
15549
15550 os2*)
15551   libname_spec='$name'
15552   shrext_cmds=".dll"
15553   need_lib_prefix=no
15554   library_names_spec='$libname${shared_ext} $libname.a'
15555   dynamic_linker='OS/2 ld.exe'
15556   shlibpath_var=LIBPATH
15557   ;;
15558
15559 osf3* | osf4* | osf5*)
15560   version_type=osf
15561   need_lib_prefix=no
15562   need_version=no
15563   soname_spec='${libname}${release}${shared_ext}$major'
15564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565   shlibpath_var=LD_LIBRARY_PATH
15566   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15567   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15568   ;;
15569
15570 solaris*)
15571   version_type=linux
15572   need_lib_prefix=no
15573   need_version=no
15574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575   soname_spec='${libname}${release}${shared_ext}$major'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   shlibpath_overrides_runpath=yes
15578   hardcode_into_libs=yes
15579   # ldd complains unless libraries are executable
15580   postinstall_cmds='chmod +x $lib'
15581   ;;
15582
15583 sunos4*)
15584   version_type=sunos
15585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15586   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15587   shlibpath_var=LD_LIBRARY_PATH
15588   shlibpath_overrides_runpath=yes
15589   if test "$with_gnu_ld" = yes; then
15590     need_lib_prefix=no
15591   fi
15592   need_version=yes
15593   ;;
15594
15595 sysv4 | sysv4.3*)
15596   version_type=linux
15597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15598   soname_spec='${libname}${release}${shared_ext}$major'
15599   shlibpath_var=LD_LIBRARY_PATH
15600   case $host_vendor in
15601     sni)
15602       shlibpath_overrides_runpath=no
15603       need_lib_prefix=no
15604       export_dynamic_flag_spec='${wl}-Blargedynsym'
15605       runpath_var=LD_RUN_PATH
15606       ;;
15607     siemens)
15608       need_lib_prefix=no
15609       ;;
15610     motorola)
15611       need_lib_prefix=no
15612       need_version=no
15613       shlibpath_overrides_runpath=no
15614       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15615       ;;
15616   esac
15617   ;;
15618
15619 sysv4*MP*)
15620   if test -d /usr/nec ;then
15621     version_type=linux
15622     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15623     soname_spec='$libname${shared_ext}.$major'
15624     shlibpath_var=LD_LIBRARY_PATH
15625   fi
15626   ;;
15627
15628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15629   version_type=freebsd-elf
15630   need_lib_prefix=no
15631   need_version=no
15632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15633   soname_spec='${libname}${release}${shared_ext}$major'
15634   shlibpath_var=LD_LIBRARY_PATH
15635   hardcode_into_libs=yes
15636   if test "$with_gnu_ld" = yes; then
15637     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15638     shlibpath_overrides_runpath=no
15639   else
15640     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15641     shlibpath_overrides_runpath=yes
15642     case $host_os in
15643       sco3.2v5*)
15644         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15645         ;;
15646     esac
15647   fi
15648   sys_lib_dlsearch_path_spec='/usr/lib'
15649   ;;
15650
15651 uts4*)
15652   version_type=linux
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654   soname_spec='${libname}${release}${shared_ext}$major'
15655   shlibpath_var=LD_LIBRARY_PATH
15656   ;;
15657
15658 *)
15659   dynamic_linker=no
15660   ;;
15661 esac
15662 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15663 echo "${ECHO_T}$dynamic_linker" >&6
15664 test "$dynamic_linker" = no && can_build_shared=no
15665
15666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15667 if test "$GCC" = yes; then
15668   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15669 fi
15670
15671 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15673 hardcode_action=
15674 if test -n "$hardcode_libdir_flag_spec" || \
15675    test -n "$runpath_var" || \
15676    test "X$hardcode_automatic" = "Xyes" ; then
15677
15678   # We can hardcode non-existant directories.
15679   if test "$hardcode_direct" != no &&
15680      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15681      # have to relink, otherwise we might link with an installed library
15682      # when we should be linking with a yet-to-be-installed one
15683      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15684      test "$hardcode_minus_L" != no; then
15685     # Linking always hardcodes the temporary library directory.
15686     hardcode_action=relink
15687   else
15688     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15689     hardcode_action=immediate
15690   fi
15691 else
15692   # We cannot hardcode anything, or else we can only hardcode existing
15693   # directories.
15694   hardcode_action=unsupported
15695 fi
15696 echo "$as_me:$LINENO: result: $hardcode_action" >&5
15697 echo "${ECHO_T}$hardcode_action" >&6
15698
15699 if test "$hardcode_action" = relink; then
15700   # Fast installation is not supported
15701   enable_fast_install=no
15702 elif test "$shlibpath_overrides_runpath" = yes ||
15703      test "$enable_shared" = no; then
15704   # Fast installation is not necessary
15705   enable_fast_install=needless
15706 fi
15707
15708 striplib=
15709 old_striplib=
15710 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15715   echo "$as_me:$LINENO: result: yes" >&5
15716 echo "${ECHO_T}yes" >&6
15717 else
15718 # FIXME - insert some real tests, host_os isn't really good enough
15719   case $host_os in
15720    darwin*)
15721        if test -n "$STRIP" ; then
15722          striplib="$STRIP -x"
15723          echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6
15725        else
15726   echo "$as_me:$LINENO: result: no" >&5
15727 echo "${ECHO_T}no" >&6
15728 fi
15729        ;;
15730    *)
15731   echo "$as_me:$LINENO: result: no" >&5
15732 echo "${ECHO_T}no" >&6
15733     ;;
15734   esac
15735 fi
15736
15737 if test "x$enable_dlopen" != xyes; then
15738   enable_dlopen=unknown
15739   enable_dlopen_self=unknown
15740   enable_dlopen_self_static=unknown
15741 else
15742   lt_cv_dlopen=no
15743   lt_cv_dlopen_libs=
15744
15745   case $host_os in
15746   beos*)
15747     lt_cv_dlopen="load_add_on"
15748     lt_cv_dlopen_libs=
15749     lt_cv_dlopen_self=yes
15750     ;;
15751
15752   mingw* | pw32*)
15753     lt_cv_dlopen="LoadLibrary"
15754     lt_cv_dlopen_libs=
15755    ;;
15756
15757   cygwin*)
15758     lt_cv_dlopen="dlopen"
15759     lt_cv_dlopen_libs=
15760    ;;
15761
15762   darwin*)
15763   # if libdl is installed we need to link against it
15764     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   ac_check_lib_save_LIBS=$LIBS
15770 LIBS="-ldl  $LIBS"
15771 cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777
15778 /* Override any gcc2 internal prototype to avoid an error.  */
15779 #ifdef __cplusplus
15780 extern "C"
15781 #endif
15782 /* We use char because int might match the return type of a gcc2
15783    builtin and then its argument prototype would still apply.  */
15784 char dlopen ();
15785 int
15786 main ()
15787 {
15788 dlopen ();
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext conftest$ac_exeext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15795   (eval $ac_link) 2>conftest.er1
15796   ac_status=$?
15797   grep -v '^ *+' conftest.er1 >conftest.err
15798   rm -f conftest.er1
15799   cat conftest.err >&5
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); } &&
15802          { ac_try='test -z "$ac_c_werror_flag"
15803                          || test ! -s conftest.err'
15804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805   (eval $ac_try) 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; } &&
15809          { ac_try='test -s conftest$ac_exeext'
15810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811   (eval $ac_try) 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; }; then
15815   ac_cv_lib_dl_dlopen=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_cv_lib_dl_dlopen=no
15821 fi
15822 rm -f conftest.err conftest.$ac_objext \
15823       conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15825 fi
15826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15828 if test $ac_cv_lib_dl_dlopen = yes; then
15829   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15830 else
15831
15832     lt_cv_dlopen="dyld"
15833     lt_cv_dlopen_libs=
15834     lt_cv_dlopen_self=yes
15835
15836 fi
15837
15838    ;;
15839
15840   *)
15841     echo "$as_me:$LINENO: checking for shl_load" >&5
15842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15843 if test "${ac_cv_func_shl_load+set}" = set; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846   cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15854 #define shl_load innocuous_shl_load
15855
15856 /* System header to define __stub macros and hopefully few prototypes,
15857     which can conflict with char shl_load (); below.
15858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15859     <limits.h> exists even on freestanding compilers.  */
15860
15861 #ifdef __STDC__
15862 # include <limits.h>
15863 #else
15864 # include <assert.h>
15865 #endif
15866
15867 #undef shl_load
15868
15869 /* Override any gcc2 internal prototype to avoid an error.  */
15870 #ifdef __cplusplus
15871 extern "C"
15872 {
15873 #endif
15874 /* We use char because int might match the return type of a gcc2
15875    builtin and then its argument prototype would still apply.  */
15876 char shl_load ();
15877 /* The GNU C library defines this for functions which it implements
15878     to always fail with ENOSYS.  Some functions are actually named
15879     something starting with __ and the normal name is an alias.  */
15880 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15881 choke me
15882 #else
15883 char (*f) () = shl_load;
15884 #endif
15885 #ifdef __cplusplus
15886 }
15887 #endif
15888
15889 int
15890 main ()
15891 {
15892 return f != shl_load;
15893   ;
15894   return 0;
15895 }
15896 _ACEOF
15897 rm -f conftest.$ac_objext conftest$ac_exeext
15898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15899   (eval $ac_link) 2>conftest.er1
15900   ac_status=$?
15901   grep -v '^ *+' conftest.er1 >conftest.err
15902   rm -f conftest.er1
15903   cat conftest.err >&5
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); } &&
15906          { ac_try='test -z "$ac_c_werror_flag"
15907                          || test ! -s conftest.err'
15908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909   (eval $ac_try) 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); }; } &&
15913          { ac_try='test -s conftest$ac_exeext'
15914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915   (eval $ac_try) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }; then
15919   ac_cv_func_shl_load=yes
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_cv_func_shl_load=no
15925 fi
15926 rm -f conftest.err conftest.$ac_objext \
15927       conftest$ac_exeext conftest.$ac_ext
15928 fi
15929 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15930 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15931 if test $ac_cv_func_shl_load = yes; then
15932   lt_cv_dlopen="shl_load"
15933 else
15934   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15935 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15936 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939   ac_check_lib_save_LIBS=$LIBS
15940 LIBS="-ldld  $LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947
15948 /* Override any gcc2 internal prototype to avoid an error.  */
15949 #ifdef __cplusplus
15950 extern "C"
15951 #endif
15952 /* We use char because int might match the return type of a gcc2
15953    builtin and then its argument prototype would still apply.  */
15954 char shl_load ();
15955 int
15956 main ()
15957 {
15958 shl_load ();
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965   (eval $ac_link) 2>conftest.er1
15966   ac_status=$?
15967   grep -v '^ *+' conftest.er1 >conftest.err
15968   rm -f conftest.er1
15969   cat conftest.err >&5
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); } &&
15972          { ac_try='test -z "$ac_c_werror_flag"
15973                          || test ! -s conftest.err'
15974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975   (eval $ac_try) 2>&5
15976   ac_status=$?
15977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978   (exit $ac_status); }; } &&
15979          { ac_try='test -s conftest$ac_exeext'
15980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981   (eval $ac_try) 2>&5
15982   ac_status=$?
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); }; }; then
15985   ac_cv_lib_dld_shl_load=yes
15986 else
15987   echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15989
15990 ac_cv_lib_dld_shl_load=no
15991 fi
15992 rm -f conftest.err conftest.$ac_objext \
15993       conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15997 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15998 if test $ac_cv_lib_dld_shl_load = yes; then
15999   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16000 else
16001   echo "$as_me:$LINENO: checking for dlopen" >&5
16002 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16003 if test "${ac_cv_func_dlopen+set}" = set; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h.  */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h.  */
16012 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16014 #define dlopen innocuous_dlopen
16015
16016 /* System header to define __stub macros and hopefully few prototypes,
16017     which can conflict with char dlopen (); below.
16018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019     <limits.h> exists even on freestanding compilers.  */
16020
16021 #ifdef __STDC__
16022 # include <limits.h>
16023 #else
16024 # include <assert.h>
16025 #endif
16026
16027 #undef dlopen
16028
16029 /* Override any gcc2 internal prototype to avoid an error.  */
16030 #ifdef __cplusplus
16031 extern "C"
16032 {
16033 #endif
16034 /* We use char because int might match the return type of a gcc2
16035    builtin and then its argument prototype would still apply.  */
16036 char dlopen ();
16037 /* The GNU C library defines this for functions which it implements
16038     to always fail with ENOSYS.  Some functions are actually named
16039     something starting with __ and the normal name is an alias.  */
16040 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16041 choke me
16042 #else
16043 char (*f) () = dlopen;
16044 #endif
16045 #ifdef __cplusplus
16046 }
16047 #endif
16048
16049 int
16050 main ()
16051 {
16052 return f != dlopen;
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059   (eval $ac_link) 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } &&
16066          { ac_try='test -z "$ac_c_werror_flag"
16067                          || test ! -s conftest.err'
16068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069   (eval $ac_try) 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; } &&
16073          { ac_try='test -s conftest$ac_exeext'
16074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075   (eval $ac_try) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; }; then
16079   ac_cv_func_dlopen=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084 ac_cv_func_dlopen=no
16085 fi
16086 rm -f conftest.err conftest.$ac_objext \
16087       conftest$ac_exeext conftest.$ac_ext
16088 fi
16089 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16090 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16091 if test $ac_cv_func_dlopen = yes; then
16092   lt_cv_dlopen="dlopen"
16093 else
16094   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16097   echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099   ac_check_lib_save_LIBS=$LIBS
16100 LIBS="-ldl  $LIBS"
16101 cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h.  */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h.  */
16107
16108 /* Override any gcc2 internal prototype to avoid an error.  */
16109 #ifdef __cplusplus
16110 extern "C"
16111 #endif
16112 /* We use char because int might match the return type of a gcc2
16113    builtin and then its argument prototype would still apply.  */
16114 char dlopen ();
16115 int
16116 main ()
16117 {
16118 dlopen ();
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125   (eval $ac_link) 2>conftest.er1
16126   ac_status=$?
16127   grep -v '^ *+' conftest.er1 >conftest.err
16128   rm -f conftest.er1
16129   cat conftest.err >&5
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); } &&
16132          { ac_try='test -z "$ac_c_werror_flag"
16133                          || test ! -s conftest.err'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; } &&
16139          { ac_try='test -s conftest$ac_exeext'
16140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141   (eval $ac_try) 2>&5
16142   ac_status=$?
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); }; }; then
16145   ac_cv_lib_dl_dlopen=yes
16146 else
16147   echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 ac_cv_lib_dl_dlopen=no
16151 fi
16152 rm -f conftest.err conftest.$ac_objext \
16153       conftest$ac_exeext conftest.$ac_ext
16154 LIBS=$ac_check_lib_save_LIBS
16155 fi
16156 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16158 if test $ac_cv_lib_dl_dlopen = yes; then
16159   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16160 else
16161   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16162 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16163 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   ac_check_lib_save_LIBS=$LIBS
16167 LIBS="-lsvld  $LIBS"
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174
16175 /* Override any gcc2 internal prototype to avoid an error.  */
16176 #ifdef __cplusplus
16177 extern "C"
16178 #endif
16179 /* We use char because int might match the return type of a gcc2
16180    builtin and then its argument prototype would still apply.  */
16181 char dlopen ();
16182 int
16183 main ()
16184 {
16185 dlopen ();
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192   (eval $ac_link) 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag"
16200                          || test ! -s conftest.err'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; } &&
16206          { ac_try='test -s conftest$ac_exeext'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; }; then
16212   ac_cv_lib_svld_dlopen=yes
16213 else
16214   echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 ac_cv_lib_svld_dlopen=no
16218 fi
16219 rm -f conftest.err conftest.$ac_objext \
16220       conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16222 fi
16223 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16224 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16225 if test $ac_cv_lib_svld_dlopen = yes; then
16226   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16227 else
16228   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16229 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16230 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16231   echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233   ac_check_lib_save_LIBS=$LIBS
16234 LIBS="-ldld  $LIBS"
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241
16242 /* Override any gcc2 internal prototype to avoid an error.  */
16243 #ifdef __cplusplus
16244 extern "C"
16245 #endif
16246 /* We use char because int might match the return type of a gcc2
16247    builtin and then its argument prototype would still apply.  */
16248 char dld_link ();
16249 int
16250 main ()
16251 {
16252 dld_link ();
16253   ;
16254   return 0;
16255 }
16256 _ACEOF
16257 rm -f conftest.$ac_objext conftest$ac_exeext
16258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16259   (eval $ac_link) 2>conftest.er1
16260   ac_status=$?
16261   grep -v '^ *+' conftest.er1 >conftest.err
16262   rm -f conftest.er1
16263   cat conftest.err >&5
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } &&
16266          { ac_try='test -z "$ac_c_werror_flag"
16267                          || test ! -s conftest.err'
16268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269   (eval $ac_try) 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; } &&
16273          { ac_try='test -s conftest$ac_exeext'
16274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275   (eval $ac_try) 2>&5
16276   ac_status=$?
16277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); }; }; then
16279   ac_cv_lib_dld_dld_link=yes
16280 else
16281   echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284 ac_cv_lib_dld_dld_link=no
16285 fi
16286 rm -f conftest.err conftest.$ac_objext \
16287       conftest$ac_exeext conftest.$ac_ext
16288 LIBS=$ac_check_lib_save_LIBS
16289 fi
16290 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16291 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16292 if test $ac_cv_lib_dld_dld_link = yes; then
16293   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16294 fi
16295
16296
16297 fi
16298
16299
16300 fi
16301
16302
16303 fi
16304
16305
16306 fi
16307
16308
16309 fi
16310
16311     ;;
16312   esac
16313
16314   if test "x$lt_cv_dlopen" != xno; then
16315     enable_dlopen=yes
16316   else
16317     enable_dlopen=no
16318   fi
16319
16320   case $lt_cv_dlopen in
16321   dlopen)
16322     save_CPPFLAGS="$CPPFLAGS"
16323     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16324
16325     save_LDFLAGS="$LDFLAGS"
16326     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16327
16328     save_LIBS="$LIBS"
16329     LIBS="$lt_cv_dlopen_libs $LIBS"
16330
16331     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16332 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16333 if test "${lt_cv_dlopen_self+set}" = set; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336           if test "$cross_compiling" = yes; then :
16337   lt_cv_dlopen_self=cross
16338 else
16339   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16340   lt_status=$lt_dlunknown
16341   cat > conftest.$ac_ext <<EOF
16342 #line 16342 "configure"
16343 #include "confdefs.h"
16344
16345 #if HAVE_DLFCN_H
16346 #include <dlfcn.h>
16347 #endif
16348
16349 #include <stdio.h>
16350
16351 #ifdef RTLD_GLOBAL
16352 #  define LT_DLGLOBAL           RTLD_GLOBAL
16353 #else
16354 #  ifdef DL_GLOBAL
16355 #    define LT_DLGLOBAL         DL_GLOBAL
16356 #  else
16357 #    define LT_DLGLOBAL         0
16358 #  endif
16359 #endif
16360
16361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16362    find out it does not work in some platform. */
16363 #ifndef LT_DLLAZY_OR_NOW
16364 #  ifdef RTLD_LAZY
16365 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16366 #  else
16367 #    ifdef DL_LAZY
16368 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16369 #    else
16370 #      ifdef RTLD_NOW
16371 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16372 #      else
16373 #        ifdef DL_NOW
16374 #          define LT_DLLAZY_OR_NOW      DL_NOW
16375 #        else
16376 #          define LT_DLLAZY_OR_NOW      0
16377 #        endif
16378 #      endif
16379 #    endif
16380 #  endif
16381 #endif
16382
16383 #ifdef __cplusplus
16384 extern "C" void exit (int);
16385 #endif
16386
16387 void fnord() { int i=42;}
16388 int main ()
16389 {
16390   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16391   int status = $lt_dlunknown;
16392
16393   if (self)
16394     {
16395       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16396       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16397       /* dlclose (self); */
16398     }
16399   else
16400     puts (dlerror ());
16401
16402     exit (status);
16403 }
16404 EOF
16405   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16406   (eval $ac_link) 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16410     (./conftest; exit; ) >&5 2>/dev/null
16411     lt_status=$?
16412     case x$lt_status in
16413       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16414       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16415       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16416     esac
16417   else :
16418     # compilation failed
16419     lt_cv_dlopen_self=no
16420   fi
16421 fi
16422 rm -fr conftest*
16423
16424
16425 fi
16426 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16427 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16428
16429     if test "x$lt_cv_dlopen_self" = xyes; then
16430       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16431       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16432 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16433 if test "${lt_cv_dlopen_self_static+set}" = set; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436           if test "$cross_compiling" = yes; then :
16437   lt_cv_dlopen_self_static=cross
16438 else
16439   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16440   lt_status=$lt_dlunknown
16441   cat > conftest.$ac_ext <<EOF
16442 #line 16442 "configure"
16443 #include "confdefs.h"
16444
16445 #if HAVE_DLFCN_H
16446 #include <dlfcn.h>
16447 #endif
16448
16449 #include <stdio.h>
16450
16451 #ifdef RTLD_GLOBAL
16452 #  define LT_DLGLOBAL           RTLD_GLOBAL
16453 #else
16454 #  ifdef DL_GLOBAL
16455 #    define LT_DLGLOBAL         DL_GLOBAL
16456 #  else
16457 #    define LT_DLGLOBAL         0
16458 #  endif
16459 #endif
16460
16461 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16462    find out it does not work in some platform. */
16463 #ifndef LT_DLLAZY_OR_NOW
16464 #  ifdef RTLD_LAZY
16465 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16466 #  else
16467 #    ifdef DL_LAZY
16468 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16469 #    else
16470 #      ifdef RTLD_NOW
16471 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16472 #      else
16473 #        ifdef DL_NOW
16474 #          define LT_DLLAZY_OR_NOW      DL_NOW
16475 #        else
16476 #          define LT_DLLAZY_OR_NOW      0
16477 #        endif
16478 #      endif
16479 #    endif
16480 #  endif
16481 #endif
16482
16483 #ifdef __cplusplus
16484 extern "C" void exit (int);
16485 #endif
16486
16487 void fnord() { int i=42;}
16488 int main ()
16489 {
16490   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16491   int status = $lt_dlunknown;
16492
16493   if (self)
16494     {
16495       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16496       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16497       /* dlclose (self); */
16498     }
16499   else
16500     puts (dlerror ());
16501
16502     exit (status);
16503 }
16504 EOF
16505   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506   (eval $ac_link) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16510     (./conftest; exit; ) >&5 2>/dev/null
16511     lt_status=$?
16512     case x$lt_status in
16513       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16514       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16515       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16516     esac
16517   else :
16518     # compilation failed
16519     lt_cv_dlopen_self_static=no
16520   fi
16521 fi
16522 rm -fr conftest*
16523
16524
16525 fi
16526 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16527 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16528     fi
16529
16530     CPPFLAGS="$save_CPPFLAGS"
16531     LDFLAGS="$save_LDFLAGS"
16532     LIBS="$save_LIBS"
16533     ;;
16534   esac
16535
16536   case $lt_cv_dlopen_self in
16537   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16538   *) enable_dlopen_self=unknown ;;
16539   esac
16540
16541   case $lt_cv_dlopen_self_static in
16542   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16543   *) enable_dlopen_self_static=unknown ;;
16544   esac
16545 fi
16546
16547
16548 # Report which library types will actually be built
16549 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16550 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16551 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16552 echo "${ECHO_T}$can_build_shared" >&6
16553
16554 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16555 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16556 test "$can_build_shared" = "no" && enable_shared=no
16557
16558 # On AIX, shared libraries and static libraries use the same namespace, and
16559 # are all built from PIC.
16560 case $host_os in
16561 aix3*)
16562   test "$enable_shared" = yes && enable_static=no
16563   if test -n "$RANLIB"; then
16564     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16565     postinstall_cmds='$RANLIB $lib'
16566   fi
16567   ;;
16568
16569 aix4* | aix5*)
16570   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16571     test "$enable_shared" = yes && enable_static=no
16572   fi
16573     ;;
16574 esac
16575 echo "$as_me:$LINENO: result: $enable_shared" >&5
16576 echo "${ECHO_T}$enable_shared" >&6
16577
16578 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16579 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16580 # Make sure either enable_shared or enable_static is yes.
16581 test "$enable_shared" = yes || enable_static=yes
16582 echo "$as_me:$LINENO: result: $enable_static" >&5
16583 echo "${ECHO_T}$enable_static" >&6
16584
16585 # The else clause should only fire when bootstrapping the
16586 # libtool distribution, otherwise you forgot to ship ltmain.sh
16587 # with your package, and you will get complaints that there are
16588 # no rules to generate ltmain.sh.
16589 if test -f "$ltmain"; then
16590   # See if we are running on zsh, and set the options which allow our commands through
16591   # without removal of \ escapes.
16592   if test -n "${ZSH_VERSION+set}" ; then
16593     setopt NO_GLOB_SUBST
16594   fi
16595   # Now quote all the things that may contain metacharacters while being
16596   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16597   # variables and quote the copies for generation of the libtool script.
16598   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16599     SED SHELL STRIP \
16600     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16601     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16602     deplibs_check_method reload_flag reload_cmds need_locks \
16603     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16604     lt_cv_sys_global_symbol_to_c_name_address \
16605     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16606     old_postinstall_cmds old_postuninstall_cmds \
16607     compiler \
16608     CC \
16609     LD \
16610     lt_prog_compiler_wl \
16611     lt_prog_compiler_pic \
16612     lt_prog_compiler_static \
16613     lt_prog_compiler_no_builtin_flag \
16614     export_dynamic_flag_spec \
16615     thread_safe_flag_spec \
16616     whole_archive_flag_spec \
16617     enable_shared_with_static_runtimes \
16618     old_archive_cmds \
16619     old_archive_from_new_cmds \
16620     predep_objects \
16621     postdep_objects \
16622     predeps \
16623     postdeps \
16624     compiler_lib_search_path \
16625     archive_cmds \
16626     archive_expsym_cmds \
16627     postinstall_cmds \
16628     postuninstall_cmds \
16629     old_archive_from_expsyms_cmds \
16630     allow_undefined_flag \
16631     no_undefined_flag \
16632     export_symbols_cmds \
16633     hardcode_libdir_flag_spec \
16634     hardcode_libdir_flag_spec_ld \
16635     hardcode_libdir_separator \
16636     hardcode_automatic \
16637     module_cmds \
16638     module_expsym_cmds \
16639     lt_cv_prog_compiler_c_o \
16640     exclude_expsyms \
16641     include_expsyms; do
16642
16643     case $var in
16644     old_archive_cmds | \
16645     old_archive_from_new_cmds | \
16646     archive_cmds | \
16647     archive_expsym_cmds | \
16648     module_cmds | \
16649     module_expsym_cmds | \
16650     old_archive_from_expsyms_cmds | \
16651     export_symbols_cmds | \
16652     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16653     postinstall_cmds | postuninstall_cmds | \
16654     old_postinstall_cmds | old_postuninstall_cmds | \
16655     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16656       # Double-quote double-evaled strings.
16657       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16658       ;;
16659     *)
16660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16661       ;;
16662     esac
16663   done
16664
16665   case $lt_echo in
16666   *'\$0 --fallback-echo"')
16667     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16668     ;;
16669   esac
16670
16671 cfgfile="${ofile}T"
16672   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16673   $rm -f "$cfgfile"
16674   { echo "$as_me:$LINENO: creating $ofile" >&5
16675 echo "$as_me: creating $ofile" >&6;}
16676
16677   cat <<__EOF__ >> "$cfgfile"
16678 #! $SHELL
16679
16680 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16681 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16682 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16683 #
16684 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16685 # Free Software Foundation, Inc.
16686 #
16687 # This file is part of GNU Libtool:
16688 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16689 #
16690 # This program is free software; you can redistribute it and/or modify
16691 # it under the terms of the GNU General Public License as published by
16692 # the Free Software Foundation; either version 2 of the License, or
16693 # (at your option) any later version.
16694 #
16695 # This program is distributed in the hope that it will be useful, but
16696 # WITHOUT ANY WARRANTY; without even the implied warranty of
16697 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16698 # General Public License for more details.
16699 #
16700 # You should have received a copy of the GNU General Public License
16701 # along with this program; if not, write to the Free Software
16702 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16703 #
16704 # As a special exception to the GNU General Public License, if you
16705 # distribute this file as part of a program that contains a
16706 # configuration script generated by Autoconf, you may include it under
16707 # the same distribution terms that you use for the rest of that program.
16708
16709 # A sed program that does not truncate output.
16710 SED=$lt_SED
16711
16712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16713 Xsed="$SED -e 1s/^X//"
16714
16715 # The HP-UX ksh and POSIX shell print the target directory to stdout
16716 # if CDPATH is set.
16717 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16718
16719 # The names of the tagged configurations supported by this script.
16720 available_tags=
16721
16722 # ### BEGIN LIBTOOL CONFIG
16723
16724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16725
16726 # Shell to use when invoking shell scripts.
16727 SHELL=$lt_SHELL
16728
16729 # Whether or not to build shared libraries.
16730 build_libtool_libs=$enable_shared
16731
16732 # Whether or not to build static libraries.
16733 build_old_libs=$enable_static
16734
16735 # Whether or not to add -lc for building shared libraries.
16736 build_libtool_need_lc=$archive_cmds_need_lc
16737
16738 # Whether or not to disallow shared libs when runtime libs are static
16739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16740
16741 # Whether or not to optimize for fast installation.
16742 fast_install=$enable_fast_install
16743
16744 # The host system.
16745 host_alias=$host_alias
16746 host=$host
16747 host_os=$host_os
16748
16749 # The build system.
16750 build_alias=$build_alias
16751 build=$build
16752 build_os=$build_os
16753
16754 # An echo program that does not interpret backslashes.
16755 echo=$lt_echo
16756
16757 # The archiver.
16758 AR=$lt_AR
16759 AR_FLAGS=$lt_AR_FLAGS
16760
16761 # A C compiler.
16762 LTCC=$lt_LTCC
16763
16764 # LTCC compiler flags.
16765 LTCFLAGS=$lt_LTCFLAGS
16766
16767 # A language-specific compiler.
16768 CC=$lt_compiler
16769
16770 # Is the compiler the GNU C compiler?
16771 with_gcc=$GCC
16772
16773 # An ERE matcher.
16774 EGREP=$lt_EGREP
16775
16776 # The linker used to build libraries.
16777 LD=$lt_LD
16778
16779 # Whether we need hard or soft links.
16780 LN_S=$lt_LN_S
16781
16782 # A BSD-compatible nm program.
16783 NM=$lt_NM
16784
16785 # A symbol stripping program
16786 STRIP=$lt_STRIP
16787
16788 # Used to examine libraries when file_magic_cmd begins "file"
16789 MAGIC_CMD=$MAGIC_CMD
16790
16791 # Used on cygwin: DLL creation program.
16792 DLLTOOL="$DLLTOOL"
16793
16794 # Used on cygwin: object dumper.
16795 OBJDUMP="$OBJDUMP"
16796
16797 # Used on cygwin: assembler.
16798 AS="$AS"
16799
16800 # The name of the directory that contains temporary libtool files.
16801 objdir=$objdir
16802
16803 # How to create reloadable object files.
16804 reload_flag=$lt_reload_flag
16805 reload_cmds=$lt_reload_cmds
16806
16807 # How to pass a linker flag through the compiler.
16808 wl=$lt_lt_prog_compiler_wl
16809
16810 # Object file suffix (normally "o").
16811 objext="$ac_objext"
16812
16813 # Old archive suffix (normally "a").
16814 libext="$libext"
16815
16816 # Shared library suffix (normally ".so").
16817 shrext_cmds='$shrext_cmds'
16818
16819 # Executable file suffix (normally "").
16820 exeext="$exeext"
16821
16822 # Additional compiler flags for building library objects.
16823 pic_flag=$lt_lt_prog_compiler_pic
16824 pic_mode=$pic_mode
16825
16826 # What is the maximum length of a command?
16827 max_cmd_len=$lt_cv_sys_max_cmd_len
16828
16829 # Does compiler simultaneously support -c and -o options?
16830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16831
16832 # Must we lock files when doing compilation?
16833 need_locks=$lt_need_locks
16834
16835 # Do we need the lib prefix for modules?
16836 need_lib_prefix=$need_lib_prefix
16837
16838 # Do we need a version for libraries?
16839 need_version=$need_version
16840
16841 # Whether dlopen is supported.
16842 dlopen_support=$enable_dlopen
16843
16844 # Whether dlopen of programs is supported.
16845 dlopen_self=$enable_dlopen_self
16846
16847 # Whether dlopen of statically linked programs is supported.
16848 dlopen_self_static=$enable_dlopen_self_static
16849
16850 # Compiler flag to prevent dynamic linking.
16851 link_static_flag=$lt_lt_prog_compiler_static
16852
16853 # Compiler flag to turn off builtin functions.
16854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16855
16856 # Compiler flag to allow reflexive dlopens.
16857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16858
16859 # Compiler flag to generate shared objects directly from archives.
16860 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16861
16862 # Compiler flag to generate thread-safe objects.
16863 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16864
16865 # Library versioning type.
16866 version_type=$version_type
16867
16868 # Format of library name prefix.
16869 libname_spec=$lt_libname_spec
16870
16871 # List of archive names.  First name is the real one, the rest are links.
16872 # The last name is the one that the linker finds with -lNAME.
16873 library_names_spec=$lt_library_names_spec
16874
16875 # The coded name of the library, if different from the real name.
16876 soname_spec=$lt_soname_spec
16877
16878 # Commands used to build and install an old-style archive.
16879 RANLIB=$lt_RANLIB
16880 old_archive_cmds=$lt_old_archive_cmds
16881 old_postinstall_cmds=$lt_old_postinstall_cmds
16882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16883
16884 # Create an old-style archive from a shared archive.
16885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16886
16887 # Create a temporary old-style archive to link instead of a shared archive.
16888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16889
16890 # Commands used to build and install a shared archive.
16891 archive_cmds=$lt_archive_cmds
16892 archive_expsym_cmds=$lt_archive_expsym_cmds
16893 postinstall_cmds=$lt_postinstall_cmds
16894 postuninstall_cmds=$lt_postuninstall_cmds
16895
16896 # Commands used to build a loadable module (assumed same as above if empty)
16897 module_cmds=$lt_module_cmds
16898 module_expsym_cmds=$lt_module_expsym_cmds
16899
16900 # Commands to strip libraries.
16901 old_striplib=$lt_old_striplib
16902 striplib=$lt_striplib
16903
16904 # Dependencies to place before the objects being linked to create a
16905 # shared library.
16906 predep_objects=$lt_predep_objects
16907
16908 # Dependencies to place after the objects being linked to create a
16909 # shared library.
16910 postdep_objects=$lt_postdep_objects
16911
16912 # Dependencies to place before the objects being linked to create a
16913 # shared library.
16914 predeps=$lt_predeps
16915
16916 # Dependencies to place after the objects being linked to create a
16917 # shared library.
16918 postdeps=$lt_postdeps
16919
16920 # The library search path used internally by the compiler when linking
16921 # a shared library.
16922 compiler_lib_search_path=$lt_compiler_lib_search_path
16923
16924 # Method to check whether dependent libraries are shared objects.
16925 deplibs_check_method=$lt_deplibs_check_method
16926
16927 # Command to use when deplibs_check_method == file_magic.
16928 file_magic_cmd=$lt_file_magic_cmd
16929
16930 # Flag that allows shared libraries with undefined symbols to be built.
16931 allow_undefined_flag=$lt_allow_undefined_flag
16932
16933 # Flag that forces no undefined symbols.
16934 no_undefined_flag=$lt_no_undefined_flag
16935
16936 # Commands used to finish a libtool library installation in a directory.
16937 finish_cmds=$lt_finish_cmds
16938
16939 # Same as above, but a single script fragment to be evaled but not shown.
16940 finish_eval=$lt_finish_eval
16941
16942 # Take the output of nm and produce a listing of raw symbols and C names.
16943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16944
16945 # Transform the output of nm in a proper C declaration
16946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16947
16948 # Transform the output of nm in a C name address pair
16949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16950
16951 # This is the shared library runtime path variable.
16952 runpath_var=$runpath_var
16953
16954 # This is the shared library path variable.
16955 shlibpath_var=$shlibpath_var
16956
16957 # Is shlibpath searched before the hard-coded library search path?
16958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16959
16960 # How to hardcode a shared library path into an executable.
16961 hardcode_action=$hardcode_action
16962
16963 # Whether we should hardcode library paths into libraries.
16964 hardcode_into_libs=$hardcode_into_libs
16965
16966 # Flag to hardcode \$libdir into a binary during linking.
16967 # This must work even if \$libdir does not exist.
16968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16969
16970 # If ld is used when linking, flag to hardcode \$libdir into
16971 # a binary during linking. This must work even if \$libdir does
16972 # not exist.
16973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16974
16975 # Whether we need a single -rpath flag with a separated argument.
16976 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16977
16978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16979 # resulting binary.
16980 hardcode_direct=$hardcode_direct
16981
16982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16983 # resulting binary.
16984 hardcode_minus_L=$hardcode_minus_L
16985
16986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16987 # the resulting binary.
16988 hardcode_shlibpath_var=$hardcode_shlibpath_var
16989
16990 # Set to yes if building a shared library automatically hardcodes DIR into the library
16991 # and all subsequent libraries and executables linked against it.
16992 hardcode_automatic=$hardcode_automatic
16993
16994 # Variables whose values should be saved in libtool wrapper scripts and
16995 # restored at relink time.
16996 variables_saved_for_relink="$variables_saved_for_relink"
16997
16998 # Whether libtool must link a program against all its dependency libraries.
16999 link_all_deplibs=$link_all_deplibs
17000
17001 # Compile-time system search path for libraries
17002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17003
17004 # Run-time system search path for libraries
17005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17006
17007 # Fix the shell variable \$srcfile for the compiler.
17008 fix_srcfile_path="$fix_srcfile_path"
17009
17010 # Set to yes if exported symbols are required.
17011 always_export_symbols=$always_export_symbols
17012
17013 # The commands to list exported symbols.
17014 export_symbols_cmds=$lt_export_symbols_cmds
17015
17016 # The commands to extract the exported symbol list from a shared archive.
17017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17018
17019 # Symbols that should not be listed in the preloaded symbols.
17020 exclude_expsyms=$lt_exclude_expsyms
17021
17022 # Symbols that must always be exported.
17023 include_expsyms=$lt_include_expsyms
17024
17025 # ### END LIBTOOL CONFIG
17026
17027 __EOF__
17028
17029
17030   case $host_os in
17031   aix3*)
17032     cat <<\EOF >> "$cfgfile"
17033
17034 # AIX sometimes has problems with the GCC collect2 program.  For some
17035 # reason, if we set the COLLECT_NAMES environment variable, the problems
17036 # vanish in a puff of smoke.
17037 if test "X${COLLECT_NAMES+set}" != Xset; then
17038   COLLECT_NAMES=
17039   export COLLECT_NAMES
17040 fi
17041 EOF
17042     ;;
17043   esac
17044
17045   # We use sed instead of cat because bash on DJGPP gets confused if
17046   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17047   # text mode, it properly converts lines to CR/LF.  This bash problem
17048   # is reportedly fixed, but why not run on old versions too?
17049   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17050
17051   mv -f "$cfgfile" "$ofile" || \
17052     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17053   chmod +x "$ofile"
17054
17055 else
17056   # If there is no Makefile yet, we rely on a make rule to execute
17057   # `config.status --recheck' to rerun these tests and create the
17058   # libtool script then.
17059   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17060   if test -f "$ltmain_in"; then
17061     test -f Makefile && make "$ltmain"
17062   fi
17063 fi
17064
17065
17066 ac_ext=c
17067 ac_cpp='$CPP $CPPFLAGS'
17068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17071
17072 CC="$lt_save_CC"
17073
17074
17075 # Check whether --with-tags or --without-tags was given.
17076 if test "${with_tags+set}" = set; then
17077   withval="$with_tags"
17078   tagnames="$withval"
17079 fi;
17080
17081 if test -f "$ltmain" && test -n "$tagnames"; then
17082   if test ! -f "${ofile}"; then
17083     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17084 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17085   fi
17086
17087   if test -z "$LTCC"; then
17088     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17089     if test -z "$LTCC"; then
17090       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17091 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17092     else
17093       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17094 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17095     fi
17096   fi
17097   if test -z "$LTCFLAGS"; then
17098     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17099   fi
17100
17101   # Extract list of available tagged configurations in $ofile.
17102   # Note that this assumes the entire list is on one line.
17103   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17104
17105   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17106   for tagname in $tagnames; do
17107     IFS="$lt_save_ifs"
17108     # Check whether tagname contains only valid characters
17109     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17110     "") ;;
17111     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17112 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17113    { (exit 1); exit 1; }; }
17114         ;;
17115     esac
17116
17117     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17118     then
17119       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17120 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17121    { (exit 1); exit 1; }; }
17122     fi
17123
17124     # Update the list of available tags.
17125     if test -n "$tagname"; then
17126       echo appending configuration tag \"$tagname\" to $ofile
17127
17128       case $tagname in
17129       CXX)
17130         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17131             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17132             (test "X$CXX" != "Xg++"))) ; then
17133           ac_ext=cc
17134 ac_cpp='$CXXCPP $CPPFLAGS'
17135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17138
17139
17140
17141
17142 archive_cmds_need_lc_CXX=no
17143 allow_undefined_flag_CXX=
17144 always_export_symbols_CXX=no
17145 archive_expsym_cmds_CXX=
17146 export_dynamic_flag_spec_CXX=
17147 hardcode_direct_CXX=no
17148 hardcode_libdir_flag_spec_CXX=
17149 hardcode_libdir_flag_spec_ld_CXX=
17150 hardcode_libdir_separator_CXX=
17151 hardcode_minus_L_CXX=no
17152 hardcode_shlibpath_var_CXX=unsupported
17153 hardcode_automatic_CXX=no
17154 module_cmds_CXX=
17155 module_expsym_cmds_CXX=
17156 link_all_deplibs_CXX=unknown
17157 old_archive_cmds_CXX=$old_archive_cmds
17158 no_undefined_flag_CXX=
17159 whole_archive_flag_spec_CXX=
17160 enable_shared_with_static_runtimes_CXX=no
17161
17162 # Dependencies to place before and after the object being linked:
17163 predep_objects_CXX=
17164 postdep_objects_CXX=
17165 predeps_CXX=
17166 postdeps_CXX=
17167 compiler_lib_search_path_CXX=
17168
17169 # Source file extension for C++ test sources.
17170 ac_ext=cpp
17171
17172 # Object file extension for compiled C++ test sources.
17173 objext=o
17174 objext_CXX=$objext
17175
17176 # Code to be used in simple compile tests
17177 lt_simple_compile_test_code="int some_variable = 0;\n"
17178
17179 # Code to be used in simple link tests
17180 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17181
17182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17183
17184 # If no C compiler was specified, use CC.
17185 LTCC=${LTCC-"$CC"}
17186
17187 # If no C compiler flags were specified, use CFLAGS.
17188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17189
17190 # Allow CC to be a program name with arguments.
17191 compiler=$CC
17192
17193
17194 # save warnings/boilerplate of simple test code
17195 ac_outfile=conftest.$ac_objext
17196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17198 _lt_compiler_boilerplate=`cat conftest.err`
17199 $rm conftest*
17200
17201 ac_outfile=conftest.$ac_objext
17202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17204 _lt_linker_boilerplate=`cat conftest.err`
17205 $rm conftest*
17206
17207
17208 # Allow CC to be a program name with arguments.
17209 lt_save_CC=$CC
17210 lt_save_LD=$LD
17211 lt_save_GCC=$GCC
17212 GCC=$GXX
17213 lt_save_with_gnu_ld=$with_gnu_ld
17214 lt_save_path_LD=$lt_cv_path_LD
17215 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17216   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17217 else
17218   $as_unset lt_cv_prog_gnu_ld
17219 fi
17220 if test -n "${lt_cv_path_LDCXX+set}"; then
17221   lt_cv_path_LD=$lt_cv_path_LDCXX
17222 else
17223   $as_unset lt_cv_path_LD
17224 fi
17225 test -z "${LDCXX+set}" || LD=$LDCXX
17226 CC=${CXX-"c++"}
17227 compiler=$CC
17228 compiler_CXX=$CC
17229 for cc_temp in $compiler""; do
17230   case $cc_temp in
17231     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17232     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17233     \-*) ;;
17234     *) break;;
17235   esac
17236 done
17237 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17238
17239
17240 # We don't want -fno-exception wen compiling C++ code, so set the
17241 # no_builtin_flag separately
17242 if test "$GXX" = yes; then
17243   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17244 else
17245   lt_prog_compiler_no_builtin_flag_CXX=
17246 fi
17247
17248 if test "$GXX" = yes; then
17249   # Set up default GNU C++ configuration
17250
17251
17252 # Check whether --with-gnu-ld or --without-gnu-ld was given.
17253 if test "${with_gnu_ld+set}" = set; then
17254   withval="$with_gnu_ld"
17255   test "$withval" = no || with_gnu_ld=yes
17256 else
17257   with_gnu_ld=no
17258 fi;
17259 ac_prog=ld
17260 if test "$GCC" = yes; then
17261   # Check if gcc -print-prog-name=ld gives a path.
17262   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17263 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
17264   case $host in
17265   *-*-mingw*)
17266     # gcc leaves a trailing carriage return which upsets mingw
17267     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17268   *)
17269     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17270   esac
17271   case $ac_prog in
17272     # Accept absolute paths.
17273     [\\/]* | ?:[\\/]*)
17274       re_direlt='/[^/][^/]*/\.\./'
17275       # Canonicalize the pathname of ld
17276       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17277       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17278         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17279       done
17280       test -z "$LD" && LD="$ac_prog"
17281       ;;
17282   "")
17283     # If it fails, then pretend we aren't using GCC.
17284     ac_prog=ld
17285     ;;
17286   *)
17287     # If it is relative, then search for the first ld in PATH.
17288     with_gnu_ld=unknown
17289     ;;
17290   esac
17291 elif test "$with_gnu_ld" = yes; then
17292   echo "$as_me:$LINENO: checking for GNU ld" >&5
17293 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
17294 else
17295   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17296 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
17297 fi
17298 if test "${lt_cv_path_LD+set}" = set; then
17299   echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301   if test -z "$LD"; then
17302   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17303   for ac_dir in $PATH; do
17304     IFS="$lt_save_ifs"
17305     test -z "$ac_dir" && ac_dir=.
17306     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17307       lt_cv_path_LD="$ac_dir/$ac_prog"
17308       # Check to see if the program is GNU ld.  I'd rather use --version,
17309       # but apparently some variants of GNU ld only accept -v.
17310       # Break only if it was the GNU/non-GNU ld that we prefer.
17311       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17312       *GNU* | *'with BFD'*)
17313         test "$with_gnu_ld" != no && break
17314         ;;
17315       *)
17316         test "$with_gnu_ld" != yes && break
17317         ;;
17318       esac
17319     fi
17320   done
17321   IFS="$lt_save_ifs"
17322 else
17323   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17324 fi
17325 fi
17326
17327 LD="$lt_cv_path_LD"
17328 if test -n "$LD"; then
17329   echo "$as_me:$LINENO: result: $LD" >&5
17330 echo "${ECHO_T}$LD" >&6
17331 else
17332   echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6
17334 fi
17335 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17336 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17337    { (exit 1); exit 1; }; }
17338 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17339 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
17340 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17344 case `$LD -v 2>&1 </dev/null` in
17345 *GNU* | *'with BFD'*)
17346   lt_cv_prog_gnu_ld=yes
17347   ;;
17348 *)
17349   lt_cv_prog_gnu_ld=no
17350   ;;
17351 esac
17352 fi
17353 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17354 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
17355 with_gnu_ld=$lt_cv_prog_gnu_ld
17356
17357
17358
17359   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17360   # archiving commands below assume that GNU ld is being used.
17361   if test "$with_gnu_ld" = yes; then
17362     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17363     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'
17364
17365     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17366     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17367
17368     # If archive_cmds runs LD, not CC, wlarc should be empty
17369     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17370     #     investigate it a little bit more. (MM)
17371     wlarc='${wl}'
17372
17373     # ancient GNU ld didn't support --whole-archive et. al.
17374     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17375         grep 'no-whole-archive' > /dev/null; then
17376       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17377     else
17378       whole_archive_flag_spec_CXX=
17379     fi
17380   else
17381     with_gnu_ld=no
17382     wlarc=
17383
17384     # A generic and very simple default shared library creation
17385     # command for GNU C++ for the case where it uses the native
17386     # linker, instead of GNU ld.  If possible, this setting should
17387     # overridden to take advantage of the native linker features on
17388     # the platform it is being used on.
17389     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17390   fi
17391
17392   # Commands to make compiler produce verbose output that lists
17393   # what "hidden" libraries, object files and flags are used when
17394   # linking a shared library.
17395   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17396
17397 else
17398   GXX=no
17399   with_gnu_ld=no
17400   wlarc=
17401 fi
17402
17403 # PORTME: fill in a description of your system's C++ link characteristics
17404 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17405 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17406 ld_shlibs_CXX=yes
17407 case $host_os in
17408   aix3*)
17409     # FIXME: insert proper C++ library support
17410     ld_shlibs_CXX=no
17411     ;;
17412   aix4* | aix5*)
17413     if test "$host_cpu" = ia64; then
17414       # On IA64, the linker does run time linking by default, so we don't
17415       # have to do anything special.
17416       aix_use_runtimelinking=no
17417       exp_sym_flag='-Bexport'
17418       no_entry_flag=""
17419     else
17420       aix_use_runtimelinking=no
17421
17422       # Test if we are trying to use run time linking or normal
17423       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17424       # need to do runtime linking.
17425       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17426         for ld_flag in $LDFLAGS; do
17427           case $ld_flag in
17428           *-brtl*)
17429             aix_use_runtimelinking=yes
17430             break
17431             ;;
17432           esac
17433         done
17434         ;;
17435       esac
17436
17437       exp_sym_flag='-bexport'
17438       no_entry_flag='-bnoentry'
17439     fi
17440
17441     # When large executables or shared objects are built, AIX ld can
17442     # have problems creating the table of contents.  If linking a library
17443     # or program results in "error TOC overflow" add -mminimal-toc to
17444     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17445     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17446
17447     archive_cmds_CXX=''
17448     hardcode_direct_CXX=yes
17449     hardcode_libdir_separator_CXX=':'
17450     link_all_deplibs_CXX=yes
17451
17452     if test "$GXX" = yes; then
17453       case $host_os in aix4.[012]|aix4.[012].*)
17454       # We only want to do this on AIX 4.2 and lower, the check
17455       # below for broken collect2 doesn't work under 4.3+
17456         collect2name=`${CC} -print-prog-name=collect2`
17457         if test -f "$collect2name" && \
17458            strings "$collect2name" | grep resolve_lib_name >/dev/null
17459         then
17460           # We have reworked collect2
17461           hardcode_direct_CXX=yes
17462         else
17463           # We have old collect2
17464           hardcode_direct_CXX=unsupported
17465           # It fails to find uninstalled libraries when the uninstalled
17466           # path is not listed in the libpath.  Setting hardcode_minus_L
17467           # to unsupported forces relinking
17468           hardcode_minus_L_CXX=yes
17469           hardcode_libdir_flag_spec_CXX='-L$libdir'
17470           hardcode_libdir_separator_CXX=
17471         fi
17472         ;;
17473       esac
17474       shared_flag='-shared'
17475       if test "$aix_use_runtimelinking" = yes; then
17476         shared_flag="$shared_flag "'${wl}-G'
17477       fi
17478     else
17479       # not using gcc
17480       if test "$host_cpu" = ia64; then
17481         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17482         # chokes on -Wl,-G. The following line is correct:
17483         shared_flag='-G'
17484       else
17485         if test "$aix_use_runtimelinking" = yes; then
17486           shared_flag='${wl}-G'
17487         else
17488           shared_flag='${wl}-bM:SRE'
17489         fi
17490       fi
17491     fi
17492
17493     # It seems that -bexpall does not export symbols beginning with
17494     # underscore (_), so it is better to generate a list of symbols to export.
17495     always_export_symbols_CXX=yes
17496     if test "$aix_use_runtimelinking" = yes; then
17497       # Warning - without using the other runtime loading flags (-brtl),
17498       # -berok will link without error, but may produce a broken library.
17499       allow_undefined_flag_CXX='-berok'
17500       # Determine the default libpath from the value encoded in an empty executable.
17501       cat >conftest.$ac_ext <<_ACEOF
17502 /* confdefs.h.  */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h.  */
17507
17508 int
17509 main ()
17510 {
17511
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17518   (eval $ac_link) 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } &&
17525          { ac_try='test -z "$ac_cxx_werror_flag"
17526                          || test ! -s conftest.err'
17527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528   (eval $ac_try) 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; } &&
17532          { ac_try='test -s conftest$ac_exeext'
17533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534   (eval $ac_try) 2>&5
17535   ac_status=$?
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); }; }; then
17538
17539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17540 }'`
17541 # Check for a 64-bit object if we didn't find anything.
17542 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; }
17543 }'`; fi
17544 else
17545   echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548 fi
17549 rm -f conftest.err conftest.$ac_objext \
17550       conftest$ac_exeext conftest.$ac_ext
17551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17552
17553       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17554
17555       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"
17556      else
17557       if test "$host_cpu" = ia64; then
17558         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17559         allow_undefined_flag_CXX="-z nodefs"
17560         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"
17561       else
17562         # Determine the default libpath from the value encoded in an empty executable.
17563         cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 int
17571 main ()
17572 {
17573
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580   (eval $ac_link) 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } &&
17587          { ac_try='test -z "$ac_cxx_werror_flag"
17588                          || test ! -s conftest.err'
17589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590   (eval $ac_try) 2>&5
17591   ac_status=$?
17592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593   (exit $ac_status); }; } &&
17594          { ac_try='test -s conftest$ac_exeext'
17595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596   (eval $ac_try) 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; }; then
17600
17601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17602 }'`
17603 # Check for a 64-bit object if we didn't find anything.
17604 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; }
17605 }'`; fi
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610 fi
17611 rm -f conftest.err conftest.$ac_objext \
17612       conftest$ac_exeext conftest.$ac_ext
17613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17614
17615         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17616         # Warning - without using the other run time loading flags,
17617         # -berok will link without error, but may produce a broken library.
17618         no_undefined_flag_CXX=' ${wl}-bernotok'
17619         allow_undefined_flag_CXX=' ${wl}-berok'
17620         # Exported symbols can be pulled into shared objects from archives
17621         whole_archive_flag_spec_CXX='$convenience'
17622         archive_cmds_need_lc_CXX=yes
17623         # This is similar to how AIX traditionally builds its shared libraries.
17624         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'
17625       fi
17626     fi
17627     ;;
17628
17629   beos*)
17630     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17631       allow_undefined_flag_CXX=unsupported
17632       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17633       # support --undefined.  This deserves some investigation.  FIXME
17634       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17635     else
17636       ld_shlibs_CXX=no
17637     fi
17638     ;;
17639
17640   chorus*)
17641     case $cc_basename in
17642       *)
17643         # FIXME: insert proper C++ library support
17644         ld_shlibs_CXX=no
17645         ;;
17646     esac
17647     ;;
17648
17649   cygwin* | mingw* | pw32*)
17650     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17651     # as there is no search path for DLLs.
17652     hardcode_libdir_flag_spec_CXX='-L$libdir'
17653     allow_undefined_flag_CXX=unsupported
17654     always_export_symbols_CXX=no
17655     enable_shared_with_static_runtimes_CXX=yes
17656
17657     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17658       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'
17659       # If the export-symbols file already is a .def file (1st line
17660       # is EXPORTS), use it as is; otherwise, prepend...
17661       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17662         cp $export_symbols $output_objdir/$soname.def;
17663       else
17664         echo EXPORTS > $output_objdir/$soname.def;
17665         cat $export_symbols >> $output_objdir/$soname.def;
17666       fi~
17667       $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'
17668     else
17669       ld_shlibs_CXX=no
17670     fi
17671   ;;
17672       darwin* | rhapsody*)
17673         case $host_os in
17674         rhapsody* | darwin1.[012])
17675          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17676          ;;
17677        *) # Darwin 1.3 on
17678          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17679            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17680          else
17681            case ${MACOSX_DEPLOYMENT_TARGET} in
17682              10.[012])
17683                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17684                ;;
17685              10.*)
17686                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17687                ;;
17688            esac
17689          fi
17690          ;;
17691         esac
17692       archive_cmds_need_lc_CXX=no
17693       hardcode_direct_CXX=no
17694       hardcode_automatic_CXX=yes
17695       hardcode_shlibpath_var_CXX=unsupported
17696       whole_archive_flag_spec_CXX=''
17697       link_all_deplibs_CXX=yes
17698
17699     if test "$GXX" = yes ; then
17700       lt_int_apple_cc_single_mod=no
17701       output_verbose_link_cmd='echo'
17702       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17703        lt_int_apple_cc_single_mod=yes
17704       fi
17705       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17706        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17707       else
17708           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'
17709         fi
17710         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17711         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17712           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17713             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}'
17714           else
17715             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}'
17716           fi
17717             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}'
17718       else
17719       case $cc_basename in
17720         xlc*)
17721          output_verbose_link_cmd='echo'
17722           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'
17723           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17724           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17725           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}'
17726           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}'
17727           ;;
17728        *)
17729          ld_shlibs_CXX=no
17730           ;;
17731       esac
17732       fi
17733         ;;
17734
17735   dgux*)
17736     case $cc_basename in
17737       ec++*)
17738         # FIXME: insert proper C++ library support
17739         ld_shlibs_CXX=no
17740         ;;
17741       ghcx*)
17742         # Green Hills C++ Compiler
17743         # FIXME: insert proper C++ library support
17744         ld_shlibs_CXX=no
17745         ;;
17746       *)
17747         # FIXME: insert proper C++ library support
17748         ld_shlibs_CXX=no
17749         ;;
17750     esac
17751     ;;
17752   freebsd[12]*)
17753     # C++ shared libraries reported to be fairly broken before switch to ELF
17754     ld_shlibs_CXX=no
17755     ;;
17756   freebsd-elf*)
17757     archive_cmds_need_lc_CXX=no
17758     ;;
17759   freebsd* | kfreebsd*-gnu | dragonfly*)
17760     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17761     # conventions
17762     ld_shlibs_CXX=yes
17763     ;;
17764   gnu*)
17765     ;;
17766   hpux9*)
17767     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17768     hardcode_libdir_separator_CXX=:
17769     export_dynamic_flag_spec_CXX='${wl}-E'
17770     hardcode_direct_CXX=yes
17771     hardcode_minus_L_CXX=yes # Not in the search PATH,
17772                                 # but as the default
17773                                 # location of the library.
17774
17775     case $cc_basename in
17776     CC*)
17777       # FIXME: insert proper C++ library support
17778       ld_shlibs_CXX=no
17779       ;;
17780     aCC*)
17781       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'
17782       # Commands to make compiler produce verbose output that lists
17783       # what "hidden" libraries, object files and flags are used when
17784       # linking a shared library.
17785       #
17786       # There doesn't appear to be a way to prevent this compiler from
17787       # explicitly linking system object files so we need to strip them
17788       # from the output so that they don't get included in the library
17789       # dependencies.
17790       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'
17791       ;;
17792     *)
17793       if test "$GXX" = yes; then
17794         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'
17795       else
17796         # FIXME: insert proper C++ library support
17797         ld_shlibs_CXX=no
17798       fi
17799       ;;
17800     esac
17801     ;;
17802   hpux10*|hpux11*)
17803     if test $with_gnu_ld = no; then
17804       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17805       hardcode_libdir_separator_CXX=:
17806
17807       case $host_cpu in
17808       hppa*64*|ia64*)
17809         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17810         ;;
17811       *)
17812         export_dynamic_flag_spec_CXX='${wl}-E'
17813         ;;
17814       esac
17815     fi
17816     case $host_cpu in
17817     hppa*64*|ia64*)
17818       hardcode_direct_CXX=no
17819       hardcode_shlibpath_var_CXX=no
17820       ;;
17821     *)
17822       hardcode_direct_CXX=yes
17823       hardcode_minus_L_CXX=yes # Not in the search PATH,
17824                                               # but as the default
17825                                               # location of the library.
17826       ;;
17827     esac
17828
17829     case $cc_basename in
17830       CC*)
17831         # FIXME: insert proper C++ library support
17832         ld_shlibs_CXX=no
17833         ;;
17834       aCC*)
17835         case $host_cpu in
17836         hppa*64*)
17837           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17838           ;;
17839         ia64*)
17840           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17841           ;;
17842         *)
17843           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17844           ;;
17845         esac
17846         # Commands to make compiler produce verbose output that lists
17847         # what "hidden" libraries, object files and flags are used when
17848         # linking a shared library.
17849         #
17850         # There doesn't appear to be a way to prevent this compiler from
17851         # explicitly linking system object files so we need to strip them
17852         # from the output so that they don't get included in the library
17853         # dependencies.
17854         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'
17855         ;;
17856       *)
17857         if test "$GXX" = yes; then
17858           if test $with_gnu_ld = no; then
17859             case $host_cpu in
17860             hppa*64*)
17861               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17862               ;;
17863             ia64*)
17864               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17865               ;;
17866             *)
17867               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'
17868               ;;
17869             esac
17870           fi
17871         else
17872           # FIXME: insert proper C++ library support
17873           ld_shlibs_CXX=no
17874         fi
17875         ;;
17876     esac
17877     ;;
17878   interix3*)
17879     hardcode_direct_CXX=no
17880     hardcode_shlibpath_var_CXX=no
17881     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17882     export_dynamic_flag_spec_CXX='${wl}-E'
17883     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17884     # Instead, shared libraries are loaded at an image base (0x10000000 by
17885     # default) and relocated if they conflict, which is a slow very memory
17886     # consuming and fragmenting process.  To avoid this, we pick a random,
17887     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17888     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17889     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'
17890     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'
17891     ;;
17892   irix5* | irix6*)
17893     case $cc_basename in
17894       CC*)
17895         # SGI C++
17896         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'
17897
17898         # Archives containing C++ object files must be created using
17899         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17900         # necessary to make sure instantiated templates are included
17901         # in the archive.
17902         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17903         ;;
17904       *)
17905         if test "$GXX" = yes; then
17906           if test "$with_gnu_ld" = no; then
17907             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'
17908           else
17909             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'
17910           fi
17911         fi
17912         link_all_deplibs_CXX=yes
17913         ;;
17914     esac
17915     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17916     hardcode_libdir_separator_CXX=:
17917     ;;
17918   linux*)
17919     case $cc_basename in
17920       KCC*)
17921         # Kuck and Associates, Inc. (KAI) C++ Compiler
17922
17923         # KCC will only create a shared library if the output file
17924         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17925         # to its proper name (with version) after linking.
17926         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'
17927         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'
17928         # Commands to make compiler produce verbose output that lists
17929         # what "hidden" libraries, object files and flags are used when
17930         # linking a shared library.
17931         #
17932         # There doesn't appear to be a way to prevent this compiler from
17933         # explicitly linking system object files so we need to strip them
17934         # from the output so that they don't get included in the library
17935         # dependencies.
17936         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'
17937
17938         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17939         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17940
17941         # Archives containing C++ object files must be created using
17942         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17943         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17944         ;;
17945       icpc*)
17946         # Intel C++
17947         with_gnu_ld=yes
17948         # version 8.0 and above of icpc choke on multiply defined symbols
17949         # if we add $predep_objects and $postdep_objects, however 7.1 and
17950         # earlier do not add the objects themselves.
17951         case `$CC -V 2>&1` in
17952         *"Version 7."*)
17953           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17954           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'
17955           ;;
17956         *)  # Version 8.0 or newer
17957           tmp_idyn=
17958           case $host_cpu in
17959             ia64*) tmp_idyn=' -i_dynamic';;
17960           esac
17961           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17962           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'
17963           ;;
17964         esac
17965         archive_cmds_need_lc_CXX=no
17966         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17967         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17968         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17969         ;;
17970       pgCC*)
17971         # Portland Group C++ compiler
17972         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17973         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'
17974
17975         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17976         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17977         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'
17978         ;;
17979       cxx*)
17980         # Compaq C++
17981         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17982         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'
17983
17984         runpath_var=LD_RUN_PATH
17985         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17986         hardcode_libdir_separator_CXX=:
17987
17988         # Commands to make compiler produce verbose output that lists
17989         # what "hidden" libraries, object files and flags are used when
17990         # linking a shared library.
17991         #
17992         # There doesn't appear to be a way to prevent this compiler from
17993         # explicitly linking system object files so we need to strip them
17994         # from the output so that they don't get included in the library
17995         # dependencies.
17996         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'
17997         ;;
17998     esac
17999     ;;
18000   lynxos*)
18001     # FIXME: insert proper C++ library support
18002     ld_shlibs_CXX=no
18003     ;;
18004   m88k*)
18005     # FIXME: insert proper C++ library support
18006     ld_shlibs_CXX=no
18007     ;;
18008   mvs*)
18009     case $cc_basename in
18010       cxx*)
18011         # FIXME: insert proper C++ library support
18012         ld_shlibs_CXX=no
18013         ;;
18014       *)
18015         # FIXME: insert proper C++ library support
18016         ld_shlibs_CXX=no
18017         ;;
18018     esac
18019     ;;
18020   netbsd*)
18021     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18022       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18023       wlarc=
18024       hardcode_libdir_flag_spec_CXX='-R$libdir'
18025       hardcode_direct_CXX=yes
18026       hardcode_shlibpath_var_CXX=no
18027     fi
18028     # Workaround some broken pre-1.5 toolchains
18029     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18030     ;;
18031   openbsd2*)
18032     # C++ shared libraries are fairly broken
18033     ld_shlibs_CXX=no
18034     ;;
18035   openbsd*)
18036     hardcode_direct_CXX=yes
18037     hardcode_shlibpath_var_CXX=no
18038     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18039     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18040     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18041       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18042       export_dynamic_flag_spec_CXX='${wl}-E'
18043       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18044     fi
18045     output_verbose_link_cmd='echo'
18046     ;;
18047   osf3*)
18048     case $cc_basename in
18049       KCC*)
18050         # Kuck and Associates, Inc. (KAI) C++ Compiler
18051
18052         # KCC will only create a shared library if the output file
18053         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18054         # to its proper name (with version) after linking.
18055         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'
18056
18057         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18058         hardcode_libdir_separator_CXX=:
18059
18060         # Archives containing C++ object files must be created using
18061         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18062         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18063
18064         ;;
18065       RCC*)
18066         # Rational C++ 2.4.1
18067         # FIXME: insert proper C++ library support
18068         ld_shlibs_CXX=no
18069         ;;
18070       cxx*)
18071         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18072         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'
18073
18074         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18075         hardcode_libdir_separator_CXX=:
18076
18077         # Commands to make compiler produce verbose output that lists
18078         # what "hidden" libraries, object files and flags are used when
18079         # linking a shared library.
18080         #
18081         # There doesn't appear to be a way to prevent this compiler from
18082         # explicitly linking system object files so we need to strip them
18083         # from the output so that they don't get included in the library
18084         # dependencies.
18085         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'
18086         ;;
18087       *)
18088         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18089           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18090           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'
18091
18092           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18093           hardcode_libdir_separator_CXX=:
18094
18095           # Commands to make compiler produce verbose output that lists
18096           # what "hidden" libraries, object files and flags are used when
18097           # linking a shared library.
18098           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18099
18100         else
18101           # FIXME: insert proper C++ library support
18102           ld_shlibs_CXX=no
18103         fi
18104         ;;
18105     esac
18106     ;;
18107   osf4* | osf5*)
18108     case $cc_basename in
18109       KCC*)
18110         # Kuck and Associates, Inc. (KAI) C++ Compiler
18111
18112         # KCC will only create a shared library if the output file
18113         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18114         # to its proper name (with version) after linking.
18115         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'
18116
18117         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18118         hardcode_libdir_separator_CXX=:
18119
18120         # Archives containing C++ object files must be created using
18121         # the KAI C++ compiler.
18122         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18123         ;;
18124       RCC*)
18125         # Rational C++ 2.4.1
18126         # FIXME: insert proper C++ library support
18127         ld_shlibs_CXX=no
18128         ;;
18129       cxx*)
18130         allow_undefined_flag_CXX=' -expect_unresolved \*'
18131         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'
18132         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18133           echo "-hidden">> $lib.exp~
18134           $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~
18135           $rm $lib.exp'
18136
18137         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18138         hardcode_libdir_separator_CXX=:
18139
18140         # Commands to make compiler produce verbose output that lists
18141         # what "hidden" libraries, object files and flags are used when
18142         # linking a shared library.
18143         #
18144         # There doesn't appear to be a way to prevent this compiler from
18145         # explicitly linking system object files so we need to strip them
18146         # from the output so that they don't get included in the library
18147         # dependencies.
18148         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'
18149         ;;
18150       *)
18151         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18152           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18153          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'
18154
18155           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18156           hardcode_libdir_separator_CXX=:
18157
18158           # Commands to make compiler produce verbose output that lists
18159           # what "hidden" libraries, object files and flags are used when
18160           # linking a shared library.
18161           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18162
18163         else
18164           # FIXME: insert proper C++ library support
18165           ld_shlibs_CXX=no
18166         fi
18167         ;;
18168     esac
18169     ;;
18170   psos*)
18171     # FIXME: insert proper C++ library support
18172     ld_shlibs_CXX=no
18173     ;;
18174   sunos4*)
18175     case $cc_basename in
18176       CC*)
18177         # Sun C++ 4.x
18178         # FIXME: insert proper C++ library support
18179         ld_shlibs_CXX=no
18180         ;;
18181       lcc*)
18182         # Lucid
18183         # FIXME: insert proper C++ library support
18184         ld_shlibs_CXX=no
18185         ;;
18186       *)
18187         # FIXME: insert proper C++ library support
18188         ld_shlibs_CXX=no
18189         ;;
18190     esac
18191     ;;
18192   solaris*)
18193     case $cc_basename in
18194       CC*)
18195         # Sun C++ 4.2, 5.x and Centerline C++
18196         archive_cmds_need_lc_CXX=yes
18197         no_undefined_flag_CXX=' -zdefs'
18198         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18199         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18200         $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'
18201
18202         hardcode_libdir_flag_spec_CXX='-R$libdir'
18203         hardcode_shlibpath_var_CXX=no
18204         case $host_os in
18205           solaris2.[0-5] | solaris2.[0-5].*) ;;
18206           *)
18207             # The C++ compiler is used as linker so we must use $wl
18208             # flag to pass the commands to the underlying system
18209             # linker. We must also pass each convience library through
18210             # to the system linker between allextract/defaultextract.
18211             # The C++ compiler will combine linker options so we
18212             # cannot just pass the convience library names through
18213             # without $wl.
18214             # Supported since Solaris 2.6 (maybe 2.5.1?)
18215             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'
18216             ;;
18217         esac
18218         link_all_deplibs_CXX=yes
18219
18220         output_verbose_link_cmd='echo'
18221
18222         # Archives containing C++ object files must be created using
18223         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18224         # necessary to make sure instantiated templates are included
18225         # in the archive.
18226         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18227         ;;
18228       gcx*)
18229         # Green Hills C++ Compiler
18230         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18231
18232         # The C++ compiler must be used to create the archive.
18233         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18234         ;;
18235       *)
18236         # GNU C++ compiler with Solaris linker
18237         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18238           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18239           if $CC --version | grep -v '^2\.7' > /dev/null; then
18240             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18241             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18242                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18243
18244             # Commands to make compiler produce verbose output that lists
18245             # what "hidden" libraries, object files and flags are used when
18246             # linking a shared library.
18247             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18248           else
18249             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18250             # platform.
18251             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18252             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18253                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18254
18255             # Commands to make compiler produce verbose output that lists
18256             # what "hidden" libraries, object files and flags are used when
18257             # linking a shared library.
18258             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18259           fi
18260
18261           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18262         fi
18263         ;;
18264     esac
18265     ;;
18266   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18267     no_undefined_flag_CXX='${wl}-z,text'
18268     archive_cmds_need_lc_CXX=no
18269     hardcode_shlibpath_var_CXX=no
18270     runpath_var='LD_RUN_PATH'
18271
18272     case $cc_basename in
18273       CC*)
18274         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276         ;;
18277       *)
18278         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18279         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18280         ;;
18281     esac
18282     ;;
18283   sysv5* | sco3.2v5* | sco5v6*)
18284     # Note: We can NOT use -z defs as we might desire, because we do not
18285     # link with -lc, and that would cause any symbols used from libc to
18286     # always be unresolved, which means just about no library would
18287     # ever link correctly.  If we're not using GNU ld we use -z text
18288     # though, which does catch some bad symbols but isn't as heavy-handed
18289     # as -z defs.
18290     # For security reasons, it is highly recommended that you always
18291     # use absolute paths for naming shared libraries, and exclude the
18292     # DT_RUNPATH tag from executables and libraries.  But doing so
18293     # requires that you compile everything twice, which is a pain.
18294     # So that behaviour is only enabled if SCOABSPATH is set to a
18295     # non-empty value in the environment.  Most likely only useful for
18296     # creating official distributions of packages.
18297     # This is a hack until libtool officially supports absolute path
18298     # names for shared libraries.
18299     no_undefined_flag_CXX='${wl}-z,text'
18300     allow_undefined_flag_CXX='${wl}-z,nodefs'
18301     archive_cmds_need_lc_CXX=no
18302     hardcode_shlibpath_var_CXX=no
18303     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18304     hardcode_libdir_separator_CXX=':'
18305     link_all_deplibs_CXX=yes
18306     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18307     runpath_var='LD_RUN_PATH'
18308
18309     case $cc_basename in
18310       CC*)
18311         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18312         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18313         ;;
18314       *)
18315         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18316         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18317         ;;
18318     esac
18319     ;;
18320   tandem*)
18321     case $cc_basename in
18322       NCC*)
18323         # NonStop-UX NCC 3.20
18324         # FIXME: insert proper C++ library support
18325         ld_shlibs_CXX=no
18326         ;;
18327       *)
18328         # FIXME: insert proper C++ library support
18329         ld_shlibs_CXX=no
18330         ;;
18331     esac
18332     ;;
18333   vxworks*)
18334     # FIXME: insert proper C++ library support
18335     ld_shlibs_CXX=no
18336     ;;
18337   *)
18338     # FIXME: insert proper C++ library support
18339     ld_shlibs_CXX=no
18340     ;;
18341 esac
18342 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18343 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18344 test "$ld_shlibs_CXX" = no && can_build_shared=no
18345
18346 GCC_CXX="$GXX"
18347 LD_CXX="$LD"
18348
18349
18350 cat > conftest.$ac_ext <<EOF
18351 class Foo
18352 {
18353 public:
18354   Foo (void) { a = 0; }
18355 private:
18356   int a;
18357 };
18358 EOF
18359
18360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18361   (eval $ac_compile) 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; then
18365   # Parse the compiler output and extract the necessary
18366   # objects, libraries and library flags.
18367
18368   # Sentinel used to keep track of whether or not we are before
18369   # the conftest object file.
18370   pre_test_object_deps_done=no
18371
18372   # The `*' in the case matches for architectures that use `case' in
18373   # $output_verbose_cmd can trigger glob expansion during the loop
18374   # eval without this substitution.
18375   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18376
18377   for p in `eval $output_verbose_link_cmd`; do
18378     case $p in
18379
18380     -L* | -R* | -l*)
18381        # Some compilers place space between "-{L,R}" and the path.
18382        # Remove the space.
18383        if test $p = "-L" \
18384           || test $p = "-R"; then
18385          prev=$p
18386          continue
18387        else
18388          prev=
18389        fi
18390
18391        if test "$pre_test_object_deps_done" = no; then
18392          case $p in
18393          -L* | -R*)
18394            # Internal compiler library paths should come after those
18395            # provided the user.  The postdeps already come after the
18396            # user supplied libs so there is no need to process them.
18397            if test -z "$compiler_lib_search_path_CXX"; then
18398              compiler_lib_search_path_CXX="${prev}${p}"
18399            else
18400              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18401            fi
18402            ;;
18403          # The "-l" case would never come before the object being
18404          # linked, so don't bother handling this case.
18405          esac
18406        else
18407          if test -z "$postdeps_CXX"; then
18408            postdeps_CXX="${prev}${p}"
18409          else
18410            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18411          fi
18412        fi
18413        ;;
18414
18415     *.$objext)
18416        # This assumes that the test object file only shows up
18417        # once in the compiler output.
18418        if test "$p" = "conftest.$objext"; then
18419          pre_test_object_deps_done=yes
18420          continue
18421        fi
18422
18423        if test "$pre_test_object_deps_done" = no; then
18424          if test -z "$predep_objects_CXX"; then
18425            predep_objects_CXX="$p"
18426          else
18427            predep_objects_CXX="$predep_objects_CXX $p"
18428          fi
18429        else
18430          if test -z "$postdep_objects_CXX"; then
18431            postdep_objects_CXX="$p"
18432          else
18433            postdep_objects_CXX="$postdep_objects_CXX $p"
18434          fi
18435        fi
18436        ;;
18437
18438     *) ;; # Ignore the rest.
18439
18440     esac
18441   done
18442
18443   # Clean up.
18444   rm -f a.out a.exe
18445 else
18446   echo "libtool.m4: error: problem compiling CXX test program"
18447 fi
18448
18449 $rm -f confest.$objext
18450
18451 # PORTME: override above test on systems where it is broken
18452 case $host_os in
18453 interix3*)
18454   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18455   # hack all around it, let's just trust "g++" to DTRT.
18456   predep_objects_CXX=
18457   postdep_objects_CXX=
18458   postdeps_CXX=
18459   ;;
18460
18461 solaris*)
18462   case $cc_basename in
18463   CC*)
18464     # Adding this requires a known-good setup of shared libraries for
18465     # Sun compiler versions before 5.6, else PIC objects from an old
18466     # archive will be linked into the output, leading to subtle bugs.
18467     postdeps_CXX='-lCstd -lCrun'
18468     ;;
18469   esac
18470   ;;
18471 esac
18472
18473
18474 case " $postdeps_CXX " in
18475 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18476 esac
18477
18478 lt_prog_compiler_wl_CXX=
18479 lt_prog_compiler_pic_CXX=
18480 lt_prog_compiler_static_CXX=
18481
18482 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18484
18485   # C++ specific cases for pic, static, wl, etc.
18486   if test "$GXX" = yes; then
18487     lt_prog_compiler_wl_CXX='-Wl,'
18488     lt_prog_compiler_static_CXX='-static'
18489
18490     case $host_os in
18491     aix*)
18492       # All AIX code is PIC.
18493       if test "$host_cpu" = ia64; then
18494         # AIX 5 now supports IA64 processor
18495         lt_prog_compiler_static_CXX='-Bstatic'
18496       fi
18497       ;;
18498     amigaos*)
18499       # FIXME: we need at least 68020 code to build shared libraries, but
18500       # adding the `-m68020' flag to GCC prevents building anything better,
18501       # like `-m68040'.
18502       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18503       ;;
18504     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18505       # PIC is the default for these OSes.
18506       ;;
18507     mingw* | os2* | pw32*)
18508       # This hack is so that the source file can tell whether it is being
18509       # built for inclusion in a dll (and should export symbols for example).
18510       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18511       ;;
18512     darwin* | rhapsody*)
18513       # PIC is the default on this platform
18514       # Common symbols not allowed in MH_DYLIB files
18515       lt_prog_compiler_pic_CXX='-fno-common'
18516       ;;
18517     *djgpp*)
18518       # DJGPP does not support shared libraries at all
18519       lt_prog_compiler_pic_CXX=
18520       ;;
18521     interix3*)
18522       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18523       # Instead, we relocate shared libraries at runtime.
18524       ;;
18525     sysv4*MP*)
18526       if test -d /usr/nec; then
18527         lt_prog_compiler_pic_CXX=-Kconform_pic
18528       fi
18529       ;;
18530     hpux*)
18531       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18532       # not for PA HP-UX.
18533       case $host_cpu in
18534       hppa*64*|ia64*)
18535         ;;
18536       *)
18537         lt_prog_compiler_pic_CXX='-fPIC'
18538         ;;
18539       esac
18540       ;;
18541     *)
18542       lt_prog_compiler_pic_CXX='-fPIC'
18543       ;;
18544     esac
18545   else
18546     case $host_os in
18547       aix4* | aix5*)
18548         # All AIX code is PIC.
18549         if test "$host_cpu" = ia64; then
18550           # AIX 5 now supports IA64 processor
18551           lt_prog_compiler_static_CXX='-Bstatic'
18552         else
18553           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18554         fi
18555         ;;
18556       chorus*)
18557         case $cc_basename in
18558         cxch68*)
18559           # Green Hills C++ Compiler
18560           # _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"
18561           ;;
18562         esac
18563         ;;
18564        darwin*)
18565          # PIC is the default on this platform
18566          # Common symbols not allowed in MH_DYLIB files
18567          case $cc_basename in
18568            xlc*)
18569            lt_prog_compiler_pic_CXX='-qnocommon'
18570            lt_prog_compiler_wl_CXX='-Wl,'
18571            ;;
18572          esac
18573        ;;
18574       dgux*)
18575         case $cc_basename in
18576           ec++*)
18577             lt_prog_compiler_pic_CXX='-KPIC'
18578             ;;
18579           ghcx*)
18580             # Green Hills C++ Compiler
18581             lt_prog_compiler_pic_CXX='-pic'
18582             ;;
18583           *)
18584             ;;
18585         esac
18586         ;;
18587       freebsd* | kfreebsd*-gnu | dragonfly*)
18588         # FreeBSD uses GNU C++
18589         ;;
18590       hpux9* | hpux10* | hpux11*)
18591         case $cc_basename in
18592           CC*)
18593             lt_prog_compiler_wl_CXX='-Wl,'
18594             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18595             if test "$host_cpu" != ia64; then
18596               lt_prog_compiler_pic_CXX='+Z'
18597             fi
18598             ;;
18599           aCC*)
18600             lt_prog_compiler_wl_CXX='-Wl,'
18601             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18602             case $host_cpu in
18603             hppa*64*|ia64*)
18604               # +Z the default
18605               ;;
18606             *)
18607               lt_prog_compiler_pic_CXX='+Z'
18608               ;;
18609             esac
18610             ;;
18611           *)
18612             ;;
18613         esac
18614         ;;
18615       interix*)
18616         # This is c89, which is MS Visual C++ (no shared libs)
18617         # Anyone wants to do a port?
18618         ;;
18619       irix5* | irix6* | nonstopux*)
18620         case $cc_basename in
18621           CC*)
18622             lt_prog_compiler_wl_CXX='-Wl,'
18623             lt_prog_compiler_static_CXX='-non_shared'
18624             # CC pic flag -KPIC is the default.
18625             ;;
18626           *)
18627             ;;
18628         esac
18629         ;;
18630       linux*)
18631         case $cc_basename in
18632           KCC*)
18633             # KAI C++ Compiler
18634             lt_prog_compiler_wl_CXX='--backend -Wl,'
18635             lt_prog_compiler_pic_CXX='-fPIC'
18636             ;;
18637           icpc* | ecpc*)
18638             # Intel C++
18639             lt_prog_compiler_wl_CXX='-Wl,'
18640             lt_prog_compiler_pic_CXX='-KPIC'
18641             lt_prog_compiler_static_CXX='-static'
18642             ;;
18643           pgCC*)
18644             # Portland Group C++ compiler.
18645             lt_prog_compiler_wl_CXX='-Wl,'
18646             lt_prog_compiler_pic_CXX='-fpic'
18647             lt_prog_compiler_static_CXX='-Bstatic'
18648             ;;
18649           cxx*)
18650             # Compaq C++
18651             # Make sure the PIC flag is empty.  It appears that all Alpha
18652             # Linux and Compaq Tru64 Unix objects are PIC.
18653             lt_prog_compiler_pic_CXX=
18654             lt_prog_compiler_static_CXX='-non_shared'
18655             ;;
18656           *)
18657             ;;
18658         esac
18659         ;;
18660       lynxos*)
18661         ;;
18662       m88k*)
18663         ;;
18664       mvs*)
18665         case $cc_basename in
18666           cxx*)
18667             lt_prog_compiler_pic_CXX='-W c,exportall'
18668             ;;
18669           *)
18670             ;;
18671         esac
18672         ;;
18673       netbsd*)
18674         ;;
18675       osf3* | osf4* | osf5*)
18676         case $cc_basename in
18677           KCC*)
18678             lt_prog_compiler_wl_CXX='--backend -Wl,'
18679             ;;
18680           RCC*)
18681             # Rational C++ 2.4.1
18682             lt_prog_compiler_pic_CXX='-pic'
18683             ;;
18684           cxx*)
18685             # Digital/Compaq C++
18686             lt_prog_compiler_wl_CXX='-Wl,'
18687             # Make sure the PIC flag is empty.  It appears that all Alpha
18688             # Linux and Compaq Tru64 Unix objects are PIC.
18689             lt_prog_compiler_pic_CXX=
18690             lt_prog_compiler_static_CXX='-non_shared'
18691             ;;
18692           *)
18693             ;;
18694         esac
18695         ;;
18696       psos*)
18697         ;;
18698       solaris*)
18699         case $cc_basename in
18700           CC*)
18701             # Sun C++ 4.2, 5.x and Centerline C++
18702             lt_prog_compiler_pic_CXX='-KPIC'
18703             lt_prog_compiler_static_CXX='-Bstatic'
18704             lt_prog_compiler_wl_CXX='-Qoption ld '
18705             ;;
18706           gcx*)
18707             # Green Hills C++ Compiler
18708             lt_prog_compiler_pic_CXX='-PIC'
18709             ;;
18710           *)
18711             ;;
18712         esac
18713         ;;
18714       sunos4*)
18715         case $cc_basename in
18716           CC*)
18717             # Sun C++ 4.x
18718             lt_prog_compiler_pic_CXX='-pic'
18719             lt_prog_compiler_static_CXX='-Bstatic'
18720             ;;
18721           lcc*)
18722             # Lucid
18723             lt_prog_compiler_pic_CXX='-pic'
18724             ;;
18725           *)
18726             ;;
18727         esac
18728         ;;
18729       tandem*)
18730         case $cc_basename in
18731           NCC*)
18732             # NonStop-UX NCC 3.20
18733             lt_prog_compiler_pic_CXX='-KPIC'
18734             ;;
18735           *)
18736             ;;
18737         esac
18738         ;;
18739       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18740         case $cc_basename in
18741           CC*)
18742             lt_prog_compiler_wl_CXX='-Wl,'
18743             lt_prog_compiler_pic_CXX='-KPIC'
18744             lt_prog_compiler_static_CXX='-Bstatic'
18745             ;;
18746         esac
18747         ;;
18748       vxworks*)
18749         ;;
18750       *)
18751         lt_prog_compiler_can_build_shared_CXX=no
18752         ;;
18753     esac
18754   fi
18755
18756 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18757 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18758
18759 #
18760 # Check to make sure the PIC flag actually works.
18761 #
18762 if test -n "$lt_prog_compiler_pic_CXX"; then
18763
18764 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18765 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18766 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18767   echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769   lt_prog_compiler_pic_works_CXX=no
18770   ac_outfile=conftest.$ac_objext
18771    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18772    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18773    # Insert the option either (1) after the last *FLAGS variable, or
18774    # (2) before a word containing "conftest.", or (3) at the end.
18775    # Note that $ac_compile itself does not contain backslashes and begins
18776    # with a dollar sign (not a hyphen), so the echo should work correctly.
18777    # The option is referenced via a variable to avoid confusing sed.
18778    lt_compile=`echo "$ac_compile" | $SED \
18779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18781    -e 's:$: $lt_compiler_flag:'`
18782    (eval echo "\"\$as_me:18782: $lt_compile\"" >&5)
18783    (eval "$lt_compile" 2>conftest.err)
18784    ac_status=$?
18785    cat conftest.err >&5
18786    echo "$as_me:18786: \$? = $ac_status" >&5
18787    if (exit $ac_status) && test -s "$ac_outfile"; then
18788      # The compiler can only warn and ignore the option if not recognized
18789      # So say no if there are warnings other than the usual output.
18790      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18793        lt_prog_compiler_pic_works_CXX=yes
18794      fi
18795    fi
18796    $rm conftest*
18797
18798 fi
18799 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18800 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18801
18802 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18803     case $lt_prog_compiler_pic_CXX in
18804      "" | " "*) ;;
18805      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18806      esac
18807 else
18808     lt_prog_compiler_pic_CXX=
18809      lt_prog_compiler_can_build_shared_CXX=no
18810 fi
18811
18812 fi
18813 case $host_os in
18814   # For platforms which do not support PIC, -DPIC is meaningless:
18815   *djgpp*)
18816     lt_prog_compiler_pic_CXX=
18817     ;;
18818   *)
18819     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18820     ;;
18821 esac
18822
18823 #
18824 # Check to make sure the static flag actually works.
18825 #
18826 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18827 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18829 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18830   echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832   lt_prog_compiler_static_works_CXX=no
18833    save_LDFLAGS="$LDFLAGS"
18834    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18835    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18836    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18837      # The linker can only warn and ignore the option if not recognized
18838      # So say no if there are warnings
18839      if test -s conftest.err; then
18840        # Append any errors to the config.log.
18841        cat conftest.err 1>&5
18842        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18843        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18844        if diff conftest.exp conftest.er2 >/dev/null; then
18845          lt_prog_compiler_static_works_CXX=yes
18846        fi
18847      else
18848        lt_prog_compiler_static_works_CXX=yes
18849      fi
18850    fi
18851    $rm conftest*
18852    LDFLAGS="$save_LDFLAGS"
18853
18854 fi
18855 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18856 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
18857
18858 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18859     :
18860 else
18861     lt_prog_compiler_static_CXX=
18862 fi
18863
18864
18865 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18867 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   lt_cv_prog_compiler_c_o_CXX=no
18871    $rm -r conftest 2>/dev/null
18872    mkdir conftest
18873    cd conftest
18874    mkdir out
18875    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18876
18877    lt_compiler_flag="-o out/conftest2.$ac_objext"
18878    # Insert the option either (1) after the last *FLAGS variable, or
18879    # (2) before a word containing "conftest.", or (3) at the end.
18880    # Note that $ac_compile itself does not contain backslashes and begins
18881    # with a dollar sign (not a hyphen), so the echo should work correctly.
18882    lt_compile=`echo "$ac_compile" | $SED \
18883    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18885    -e 's:$: $lt_compiler_flag:'`
18886    (eval echo "\"\$as_me:18886: $lt_compile\"" >&5)
18887    (eval "$lt_compile" 2>out/conftest.err)
18888    ac_status=$?
18889    cat out/conftest.err >&5
18890    echo "$as_me:18890: \$? = $ac_status" >&5
18891    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18892    then
18893      # The compiler can only warn and ignore the option if not recognized
18894      # So say no if there are warnings
18895      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18896      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18897      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18898        lt_cv_prog_compiler_c_o_CXX=yes
18899      fi
18900    fi
18901    chmod u+w . 2>&5
18902    $rm conftest*
18903    # SGI C++ compiler will create directory out/ii_files/ for
18904    # template instantiation
18905    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18906    $rm out/* && rmdir out
18907    cd ..
18908    rmdir conftest
18909    $rm conftest*
18910
18911 fi
18912 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18913 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18914
18915
18916 hard_links="nottested"
18917 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18918   # do not overwrite the value of need_locks provided by the user
18919   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18921   hard_links=yes
18922   $rm conftest*
18923   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18924   touch conftest.a
18925   ln conftest.a conftest.b 2>&5 || hard_links=no
18926   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18927   echo "$as_me:$LINENO: result: $hard_links" >&5
18928 echo "${ECHO_T}$hard_links" >&6
18929   if test "$hard_links" = no; then
18930     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18931 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18932     need_locks=warn
18933   fi
18934 else
18935   need_locks=no
18936 fi
18937
18938 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18940
18941   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18942   case $host_os in
18943   aix4* | aix5*)
18944     # If we're using GNU nm, then we don't want the "-C" option.
18945     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18946     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18947       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'
18948     else
18949       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'
18950     fi
18951     ;;
18952   pw32*)
18953     export_symbols_cmds_CXX="$ltdll_cmds"
18954   ;;
18955   cygwin* | mingw*)
18956     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'
18957   ;;
18958   *)
18959     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18960   ;;
18961   esac
18962
18963 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18964 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18965 test "$ld_shlibs_CXX" = no && can_build_shared=no
18966
18967 #
18968 # Do we need to explicitly link libc?
18969 #
18970 case "x$archive_cmds_need_lc_CXX" in
18971 x|xyes)
18972   # Assume -lc should be added
18973   archive_cmds_need_lc_CXX=yes
18974
18975   if test "$enable_shared" = yes && test "$GCC" = yes; then
18976     case $archive_cmds_CXX in
18977     *'~'*)
18978       # FIXME: we may have to deal with multi-command sequences.
18979       ;;
18980     '$CC '*)
18981       # Test whether the compiler implicitly links with -lc since on some
18982       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18983       # to ld, don't add -lc before -lgcc.
18984       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18985 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18986       $rm conftest*
18987       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18988
18989       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18990   (eval $ac_compile) 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } 2>conftest.err; then
18994         soname=conftest
18995         lib=conftest
18996         libobjs=conftest.$ac_objext
18997         deplibs=
18998         wl=$lt_prog_compiler_wl_CXX
18999         pic_flag=$lt_prog_compiler_pic_CXX
19000         compiler_flags=-v
19001         linker_flags=-v
19002         verstring=
19003         output_objdir=.
19004         libname=conftest
19005         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19006         allow_undefined_flag_CXX=
19007         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19008   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }
19012         then
19013           archive_cmds_need_lc_CXX=no
19014         else
19015           archive_cmds_need_lc_CXX=yes
19016         fi
19017         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19018       else
19019         cat conftest.err 1>&5
19020       fi
19021       $rm conftest*
19022       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19023 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
19024       ;;
19025     esac
19026   fi
19027   ;;
19028 esac
19029
19030 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19031 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19032 library_names_spec=
19033 libname_spec='lib$name'
19034 soname_spec=
19035 shrext_cmds=".so"
19036 postinstall_cmds=
19037 postuninstall_cmds=
19038 finish_cmds=
19039 finish_eval=
19040 shlibpath_var=
19041 shlibpath_overrides_runpath=unknown
19042 version_type=none
19043 dynamic_linker="$host_os ld.so"
19044 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19045 if test "$GCC" = yes; then
19046   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19047   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19048     # if the path contains ";" then we assume it to be the separator
19049     # otherwise default to the standard path separator (i.e. ":") - it is
19050     # assumed that no part of a normal pathname contains ";" but that should
19051     # okay in the real world where ";" in dirpaths is itself problematic.
19052     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19053   else
19054     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19055   fi
19056 else
19057   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19058 fi
19059 need_lib_prefix=unknown
19060 hardcode_into_libs=no
19061
19062 # when you set need_version to no, make sure it does not cause -set_version
19063 # flags to be left without arguments
19064 need_version=unknown
19065
19066 case $host_os in
19067 aix3*)
19068   version_type=linux
19069   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19070   shlibpath_var=LIBPATH
19071
19072   # AIX 3 has no versioning support, so we append a major version to the name.
19073   soname_spec='${libname}${release}${shared_ext}$major'
19074   ;;
19075
19076 aix4* | aix5*)
19077   version_type=linux
19078   need_lib_prefix=no
19079   need_version=no
19080   hardcode_into_libs=yes
19081   if test "$host_cpu" = ia64; then
19082     # AIX 5 supports IA64
19083     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19084     shlibpath_var=LD_LIBRARY_PATH
19085   else
19086     # With GCC up to 2.95.x, collect2 would create an import file
19087     # for dependence libraries.  The import file would start with
19088     # the line `#! .'.  This would cause the generated library to
19089     # depend on `.', always an invalid library.  This was fixed in
19090     # development snapshots of GCC prior to 3.0.
19091     case $host_os in
19092       aix4 | aix4.[01] | aix4.[01].*)
19093       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19094            echo ' yes '
19095            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19096         :
19097       else
19098         can_build_shared=no
19099       fi
19100       ;;
19101     esac
19102     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19103     # soname into executable. Probably we can add versioning support to
19104     # collect2, so additional links can be useful in future.
19105     if test "$aix_use_runtimelinking" = yes; then
19106       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19107       # instead of lib<name>.a to let people know that these are not
19108       # typical AIX shared libraries.
19109       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110     else
19111       # We preserve .a as extension for shared libraries through AIX4.2
19112       # and later when we are not doing run time linking.
19113       library_names_spec='${libname}${release}.a $libname.a'
19114       soname_spec='${libname}${release}${shared_ext}$major'
19115     fi
19116     shlibpath_var=LIBPATH
19117   fi
19118   ;;
19119
19120 amigaos*)
19121   library_names_spec='$libname.ixlibrary $libname.a'
19122   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19123   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'
19124   ;;
19125
19126 beos*)
19127   library_names_spec='${libname}${shared_ext}'
19128   dynamic_linker="$host_os ld.so"
19129   shlibpath_var=LIBRARY_PATH
19130   ;;
19131
19132 bsdi[45]*)
19133   version_type=linux
19134   need_version=no
19135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136   soname_spec='${libname}${release}${shared_ext}$major'
19137   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19138   shlibpath_var=LD_LIBRARY_PATH
19139   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19140   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19141   # the default ld.so.conf also contains /usr/contrib/lib and
19142   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19143   # libtool to hard-code these into programs
19144   ;;
19145
19146 cygwin* | mingw* | pw32*)
19147   version_type=windows
19148   shrext_cmds=".dll"
19149   need_version=no
19150   need_lib_prefix=no
19151
19152   case $GCC,$host_os in
19153   yes,cygwin* | yes,mingw* | yes,pw32*)
19154     library_names_spec='$libname.dll.a'
19155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19156     postinstall_cmds='base_file=`basename \${file}`~
19157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19158       dldir=$destdir/`dirname \$dlpath`~
19159       test -d \$dldir || mkdir -p \$dldir~
19160       $install_prog $dir/$dlname \$dldir/$dlname~
19161       chmod a+x \$dldir/$dlname'
19162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19163       dlpath=$dir/\$dldll~
19164        $rm \$dlpath'
19165     shlibpath_overrides_runpath=yes
19166
19167     case $host_os in
19168     cygwin*)
19169       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19170       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19171       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19172       ;;
19173     mingw*)
19174       # MinGW DLLs use traditional 'lib' prefix
19175       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19176       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19177       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19178         # It is most probably a Windows format PATH printed by
19179         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19180         # path with ; separators, and with drive letters. We can handle the
19181         # drive letters (cygwin fileutils understands them), so leave them,
19182         # especially as we might pass files found there to a mingw objdump,
19183         # which wouldn't understand a cygwinified path. Ahh.
19184         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19185       else
19186         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19187       fi
19188       ;;
19189     pw32*)
19190       # pw32 DLLs use 'pw' prefix rather than 'lib'
19191       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19192       ;;
19193     esac
19194     ;;
19195
19196   *)
19197     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19198     ;;
19199   esac
19200   dynamic_linker='Win32 ld.exe'
19201   # FIXME: first we should search . and the directory the executable is in
19202   shlibpath_var=PATH
19203   ;;
19204
19205 darwin* | rhapsody*)
19206   dynamic_linker="$host_os dyld"
19207   version_type=darwin
19208   need_lib_prefix=no
19209   need_version=no
19210   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19211   soname_spec='${libname}${release}${major}$shared_ext'
19212   shlibpath_overrides_runpath=yes
19213   shlibpath_var=DYLD_LIBRARY_PATH
19214   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19215   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19216   if test "$GCC" = yes; then
19217     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"`
19218   else
19219     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19220   fi
19221   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19222   ;;
19223
19224 dgux*)
19225   version_type=linux
19226   need_lib_prefix=no
19227   need_version=no
19228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19229   soname_spec='${libname}${release}${shared_ext}$major'
19230   shlibpath_var=LD_LIBRARY_PATH
19231   ;;
19232
19233 freebsd1*)
19234   dynamic_linker=no
19235   ;;
19236
19237 kfreebsd*-gnu)
19238   version_type=linux
19239   need_lib_prefix=no
19240   need_version=no
19241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19242   soname_spec='${libname}${release}${shared_ext}$major'
19243   shlibpath_var=LD_LIBRARY_PATH
19244   shlibpath_overrides_runpath=no
19245   hardcode_into_libs=yes
19246   dynamic_linker='GNU ld.so'
19247   ;;
19248
19249 freebsd* | dragonfly*)
19250   # DragonFly does not have aout.  When/if they implement a new
19251   # versioning mechanism, adjust this.
19252   if test -x /usr/bin/objformat; then
19253     objformat=`/usr/bin/objformat`
19254   else
19255     case $host_os in
19256     freebsd[123]*) objformat=aout ;;
19257     *) objformat=elf ;;
19258     esac
19259   fi
19260   version_type=freebsd-$objformat
19261   case $version_type in
19262     freebsd-elf*)
19263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19264       need_version=no
19265       need_lib_prefix=no
19266       ;;
19267     freebsd-*)
19268       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19269       need_version=yes
19270       ;;
19271   esac
19272   shlibpath_var=LD_LIBRARY_PATH
19273   case $host_os in
19274   freebsd2*)
19275     shlibpath_overrides_runpath=yes
19276     ;;
19277   freebsd3.[01]* | freebsdelf3.[01]*)
19278     shlibpath_overrides_runpath=yes
19279     hardcode_into_libs=yes
19280     ;;
19281   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19282   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19283     shlibpath_overrides_runpath=no
19284     hardcode_into_libs=yes
19285     ;;
19286   freebsd*) # from 4.6 on
19287     shlibpath_overrides_runpath=yes
19288     hardcode_into_libs=yes
19289     ;;
19290   esac
19291   ;;
19292
19293 gnu*)
19294   version_type=linux
19295   need_lib_prefix=no
19296   need_version=no
19297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19298   soname_spec='${libname}${release}${shared_ext}$major'
19299   shlibpath_var=LD_LIBRARY_PATH
19300   hardcode_into_libs=yes
19301   ;;
19302
19303 hpux9* | hpux10* | hpux11*)
19304   # Give a soname corresponding to the major version so that dld.sl refuses to
19305   # link against other versions.
19306   version_type=sunos
19307   need_lib_prefix=no
19308   need_version=no
19309   case $host_cpu in
19310   ia64*)
19311     shrext_cmds='.so'
19312     hardcode_into_libs=yes
19313     dynamic_linker="$host_os dld.so"
19314     shlibpath_var=LD_LIBRARY_PATH
19315     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19317     soname_spec='${libname}${release}${shared_ext}$major'
19318     if test "X$HPUX_IA64_MODE" = X32; then
19319       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19320     else
19321       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19322     fi
19323     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19324     ;;
19325    hppa*64*)
19326      shrext_cmds='.sl'
19327      hardcode_into_libs=yes
19328      dynamic_linker="$host_os dld.sl"
19329      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19330      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19331      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19332      soname_spec='${libname}${release}${shared_ext}$major'
19333      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19334      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19335      ;;
19336    *)
19337     shrext_cmds='.sl'
19338     dynamic_linker="$host_os dld.sl"
19339     shlibpath_var=SHLIB_PATH
19340     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19342     soname_spec='${libname}${release}${shared_ext}$major'
19343     ;;
19344   esac
19345   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19346   postinstall_cmds='chmod 555 $lib'
19347   ;;
19348
19349 interix3*)
19350   version_type=linux
19351   need_lib_prefix=no
19352   need_version=no
19353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19354   soname_spec='${libname}${release}${shared_ext}$major'
19355   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19356   shlibpath_var=LD_LIBRARY_PATH
19357   shlibpath_overrides_runpath=no
19358   hardcode_into_libs=yes
19359   ;;
19360
19361 irix5* | irix6* | nonstopux*)
19362   case $host_os in
19363     nonstopux*) version_type=nonstopux ;;
19364     *)
19365         if test "$lt_cv_prog_gnu_ld" = yes; then
19366                 version_type=linux
19367         else
19368                 version_type=irix
19369         fi ;;
19370   esac
19371   need_lib_prefix=no
19372   need_version=no
19373   soname_spec='${libname}${release}${shared_ext}$major'
19374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19375   case $host_os in
19376   irix5* | nonstopux*)
19377     libsuff= shlibsuff=
19378     ;;
19379   *)
19380     case $LD in # libtool.m4 will add one of these switches to LD
19381     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19382       libsuff= shlibsuff= libmagic=32-bit;;
19383     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19384       libsuff=32 shlibsuff=N32 libmagic=N32;;
19385     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19386       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19387     *) libsuff= shlibsuff= libmagic=never-match;;
19388     esac
19389     ;;
19390   esac
19391   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19392   shlibpath_overrides_runpath=no
19393   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19394   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19395   hardcode_into_libs=yes
19396   ;;
19397
19398 # No shared lib support for Linux oldld, aout, or coff.
19399 linux*oldld* | linux*aout* | linux*coff*)
19400   dynamic_linker=no
19401   ;;
19402
19403 # This must be Linux ELF.
19404 linux*)
19405   version_type=linux
19406   need_lib_prefix=no
19407   need_version=no
19408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19409   soname_spec='${libname}${release}${shared_ext}$major'
19410   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19411   shlibpath_var=LD_LIBRARY_PATH
19412   shlibpath_overrides_runpath=no
19413   # This implies no fast_install, which is unacceptable.
19414   # Some rework will be needed to allow for fast_install
19415   # before this can be enabled.
19416   hardcode_into_libs=yes
19417
19418   # find out which ABI we are using
19419   libsuff=
19420   case "$host_cpu" in
19421   x86_64*|s390x*|powerpc64*)
19422     echo '#line 19422 "configure"' > conftest.$ac_ext
19423     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424   (eval $ac_compile) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; then
19428       case `/usr/bin/file conftest.$ac_objext` in
19429       *64-bit*)
19430         libsuff=64
19431         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19432         ;;
19433       esac
19434     fi
19435     rm -rf conftest*
19436     ;;
19437   esac
19438
19439   # Append ld.so.conf contents to the search path
19440   if test -f /etc/ld.so.conf; then
19441     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' ' '`
19442     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19443   fi
19444
19445   # We used to test for /lib/ld.so.1 and disable shared libraries on
19446   # powerpc, because MkLinux only supported shared libraries with the
19447   # GNU dynamic linker.  Since this was broken with cross compilers,
19448   # most powerpc-linux boxes support dynamic linking these days and
19449   # people can always --disable-shared, the test was removed, and we
19450   # assume the GNU/Linux dynamic linker is in use.
19451   dynamic_linker='GNU/Linux ld.so'
19452   ;;
19453
19454 knetbsd*-gnu)
19455   version_type=linux
19456   need_lib_prefix=no
19457   need_version=no
19458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19459   soname_spec='${libname}${release}${shared_ext}$major'
19460   shlibpath_var=LD_LIBRARY_PATH
19461   shlibpath_overrides_runpath=no
19462   hardcode_into_libs=yes
19463   dynamic_linker='GNU ld.so'
19464   ;;
19465
19466 netbsd*)
19467   version_type=sunos
19468   need_lib_prefix=no
19469   need_version=no
19470   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19472     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19473     dynamic_linker='NetBSD (a.out) ld.so'
19474   else
19475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19476     soname_spec='${libname}${release}${shared_ext}$major'
19477     dynamic_linker='NetBSD ld.elf_so'
19478   fi
19479   shlibpath_var=LD_LIBRARY_PATH
19480   shlibpath_overrides_runpath=yes
19481   hardcode_into_libs=yes
19482   ;;
19483
19484 newsos6)
19485   version_type=linux
19486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19487   shlibpath_var=LD_LIBRARY_PATH
19488   shlibpath_overrides_runpath=yes
19489   ;;
19490
19491 nto-qnx*)
19492   version_type=linux
19493   need_lib_prefix=no
19494   need_version=no
19495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19496   soname_spec='${libname}${release}${shared_ext}$major'
19497   shlibpath_var=LD_LIBRARY_PATH
19498   shlibpath_overrides_runpath=yes
19499   ;;
19500
19501 openbsd*)
19502   version_type=sunos
19503   sys_lib_dlsearch_path_spec="/usr/lib"
19504   need_lib_prefix=no
19505   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19506   case $host_os in
19507     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19508     *)                         need_version=no  ;;
19509   esac
19510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19511   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19512   shlibpath_var=LD_LIBRARY_PATH
19513   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19514     case $host_os in
19515       openbsd2.[89] | openbsd2.[89].*)
19516         shlibpath_overrides_runpath=no
19517         ;;
19518       *)
19519         shlibpath_overrides_runpath=yes
19520         ;;
19521       esac
19522   else
19523     shlibpath_overrides_runpath=yes
19524   fi
19525   ;;
19526
19527 os2*)
19528   libname_spec='$name'
19529   shrext_cmds=".dll"
19530   need_lib_prefix=no
19531   library_names_spec='$libname${shared_ext} $libname.a'
19532   dynamic_linker='OS/2 ld.exe'
19533   shlibpath_var=LIBPATH
19534   ;;
19535
19536 osf3* | osf4* | osf5*)
19537   version_type=osf
19538   need_lib_prefix=no
19539   need_version=no
19540   soname_spec='${libname}${release}${shared_ext}$major'
19541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19542   shlibpath_var=LD_LIBRARY_PATH
19543   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19544   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19545   ;;
19546
19547 solaris*)
19548   version_type=linux
19549   need_lib_prefix=no
19550   need_version=no
19551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19552   soname_spec='${libname}${release}${shared_ext}$major'
19553   shlibpath_var=LD_LIBRARY_PATH
19554   shlibpath_overrides_runpath=yes
19555   hardcode_into_libs=yes
19556   # ldd complains unless libraries are executable
19557   postinstall_cmds='chmod +x $lib'
19558   ;;
19559
19560 sunos4*)
19561   version_type=sunos
19562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19563   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19564   shlibpath_var=LD_LIBRARY_PATH
19565   shlibpath_overrides_runpath=yes
19566   if test "$with_gnu_ld" = yes; then
19567     need_lib_prefix=no
19568   fi
19569   need_version=yes
19570   ;;
19571
19572 sysv4 | sysv4.3*)
19573   version_type=linux
19574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19575   soname_spec='${libname}${release}${shared_ext}$major'
19576   shlibpath_var=LD_LIBRARY_PATH
19577   case $host_vendor in
19578     sni)
19579       shlibpath_overrides_runpath=no
19580       need_lib_prefix=no
19581       export_dynamic_flag_spec='${wl}-Blargedynsym'
19582       runpath_var=LD_RUN_PATH
19583       ;;
19584     siemens)
19585       need_lib_prefix=no
19586       ;;
19587     motorola)
19588       need_lib_prefix=no
19589       need_version=no
19590       shlibpath_overrides_runpath=no
19591       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19592       ;;
19593   esac
19594   ;;
19595
19596 sysv4*MP*)
19597   if test -d /usr/nec ;then
19598     version_type=linux
19599     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19600     soname_spec='$libname${shared_ext}.$major'
19601     shlibpath_var=LD_LIBRARY_PATH
19602   fi
19603   ;;
19604
19605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19606   version_type=freebsd-elf
19607   need_lib_prefix=no
19608   need_version=no
19609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19610   soname_spec='${libname}${release}${shared_ext}$major'
19611   shlibpath_var=LD_LIBRARY_PATH
19612   hardcode_into_libs=yes
19613   if test "$with_gnu_ld" = yes; then
19614     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19615     shlibpath_overrides_runpath=no
19616   else
19617     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19618     shlibpath_overrides_runpath=yes
19619     case $host_os in
19620       sco3.2v5*)
19621         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19622         ;;
19623     esac
19624   fi
19625   sys_lib_dlsearch_path_spec='/usr/lib'
19626   ;;
19627
19628 uts4*)
19629   version_type=linux
19630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19631   soname_spec='${libname}${release}${shared_ext}$major'
19632   shlibpath_var=LD_LIBRARY_PATH
19633   ;;
19634
19635 *)
19636   dynamic_linker=no
19637   ;;
19638 esac
19639 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19640 echo "${ECHO_T}$dynamic_linker" >&6
19641 test "$dynamic_linker" = no && can_build_shared=no
19642
19643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19644 if test "$GCC" = yes; then
19645   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19646 fi
19647
19648 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19649 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19650 hardcode_action_CXX=
19651 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19652    test -n "$runpath_var_CXX" || \
19653    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19654
19655   # We can hardcode non-existant directories.
19656   if test "$hardcode_direct_CXX" != no &&
19657      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19658      # have to relink, otherwise we might link with an installed library
19659      # when we should be linking with a yet-to-be-installed one
19660      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19661      test "$hardcode_minus_L_CXX" != no; then
19662     # Linking always hardcodes the temporary library directory.
19663     hardcode_action_CXX=relink
19664   else
19665     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19666     hardcode_action_CXX=immediate
19667   fi
19668 else
19669   # We cannot hardcode anything, or else we can only hardcode existing
19670   # directories.
19671   hardcode_action_CXX=unsupported
19672 fi
19673 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19674 echo "${ECHO_T}$hardcode_action_CXX" >&6
19675
19676 if test "$hardcode_action_CXX" = relink; then
19677   # Fast installation is not supported
19678   enable_fast_install=no
19679 elif test "$shlibpath_overrides_runpath" = yes ||
19680      test "$enable_shared" = no; then
19681   # Fast installation is not necessary
19682   enable_fast_install=needless
19683 fi
19684
19685
19686 # The else clause should only fire when bootstrapping the
19687 # libtool distribution, otherwise you forgot to ship ltmain.sh
19688 # with your package, and you will get complaints that there are
19689 # no rules to generate ltmain.sh.
19690 if test -f "$ltmain"; then
19691   # See if we are running on zsh, and set the options which allow our commands through
19692   # without removal of \ escapes.
19693   if test -n "${ZSH_VERSION+set}" ; then
19694     setopt NO_GLOB_SUBST
19695   fi
19696   # Now quote all the things that may contain metacharacters while being
19697   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19698   # variables and quote the copies for generation of the libtool script.
19699   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19700     SED SHELL STRIP \
19701     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19702     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19703     deplibs_check_method reload_flag reload_cmds need_locks \
19704     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19705     lt_cv_sys_global_symbol_to_c_name_address \
19706     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19707     old_postinstall_cmds old_postuninstall_cmds \
19708     compiler_CXX \
19709     CC_CXX \
19710     LD_CXX \
19711     lt_prog_compiler_wl_CXX \
19712     lt_prog_compiler_pic_CXX \
19713     lt_prog_compiler_static_CXX \
19714     lt_prog_compiler_no_builtin_flag_CXX \
19715     export_dynamic_flag_spec_CXX \
19716     thread_safe_flag_spec_CXX \
19717     whole_archive_flag_spec_CXX \
19718     enable_shared_with_static_runtimes_CXX \
19719     old_archive_cmds_CXX \
19720     old_archive_from_new_cmds_CXX \
19721     predep_objects_CXX \
19722     postdep_objects_CXX \
19723     predeps_CXX \
19724     postdeps_CXX \
19725     compiler_lib_search_path_CXX \
19726     archive_cmds_CXX \
19727     archive_expsym_cmds_CXX \
19728     postinstall_cmds_CXX \
19729     postuninstall_cmds_CXX \
19730     old_archive_from_expsyms_cmds_CXX \
19731     allow_undefined_flag_CXX \
19732     no_undefined_flag_CXX \
19733     export_symbols_cmds_CXX \
19734     hardcode_libdir_flag_spec_CXX \
19735     hardcode_libdir_flag_spec_ld_CXX \
19736     hardcode_libdir_separator_CXX \
19737     hardcode_automatic_CXX \
19738     module_cmds_CXX \
19739     module_expsym_cmds_CXX \
19740     lt_cv_prog_compiler_c_o_CXX \
19741     exclude_expsyms_CXX \
19742     include_expsyms_CXX; do
19743
19744     case $var in
19745     old_archive_cmds_CXX | \
19746     old_archive_from_new_cmds_CXX | \
19747     archive_cmds_CXX | \
19748     archive_expsym_cmds_CXX | \
19749     module_cmds_CXX | \
19750     module_expsym_cmds_CXX | \
19751     old_archive_from_expsyms_cmds_CXX | \
19752     export_symbols_cmds_CXX | \
19753     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19754     postinstall_cmds | postuninstall_cmds | \
19755     old_postinstall_cmds | old_postuninstall_cmds | \
19756     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19757       # Double-quote double-evaled strings.
19758       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19759       ;;
19760     *)
19761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19762       ;;
19763     esac
19764   done
19765
19766   case $lt_echo in
19767   *'\$0 --fallback-echo"')
19768     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19769     ;;
19770   esac
19771
19772 cfgfile="$ofile"
19773
19774   cat <<__EOF__ >> "$cfgfile"
19775 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19776
19777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19778
19779 # Shell to use when invoking shell scripts.
19780 SHELL=$lt_SHELL
19781
19782 # Whether or not to build shared libraries.
19783 build_libtool_libs=$enable_shared
19784
19785 # Whether or not to build static libraries.
19786 build_old_libs=$enable_static
19787
19788 # Whether or not to add -lc for building shared libraries.
19789 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19790
19791 # Whether or not to disallow shared libs when runtime libs are static
19792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19793
19794 # Whether or not to optimize for fast installation.
19795 fast_install=$enable_fast_install
19796
19797 # The host system.
19798 host_alias=$host_alias
19799 host=$host
19800 host_os=$host_os
19801
19802 # The build system.
19803 build_alias=$build_alias
19804 build=$build
19805 build_os=$build_os
19806
19807 # An echo program that does not interpret backslashes.
19808 echo=$lt_echo
19809
19810 # The archiver.
19811 AR=$lt_AR
19812 AR_FLAGS=$lt_AR_FLAGS
19813
19814 # A C compiler.
19815 LTCC=$lt_LTCC
19816
19817 # LTCC compiler flags.
19818 LTCFLAGS=$lt_LTCFLAGS
19819
19820 # A language-specific compiler.
19821 CC=$lt_compiler_CXX
19822
19823 # Is the compiler the GNU C compiler?
19824 with_gcc=$GCC_CXX
19825
19826 # An ERE matcher.
19827 EGREP=$lt_EGREP
19828
19829 # The linker used to build libraries.
19830 LD=$lt_LD_CXX
19831
19832 # Whether we need hard or soft links.
19833 LN_S=$lt_LN_S
19834
19835 # A BSD-compatible nm program.
19836 NM=$lt_NM
19837
19838 # A symbol stripping program
19839 STRIP=$lt_STRIP
19840
19841 # Used to examine libraries when file_magic_cmd begins "file"
19842 MAGIC_CMD=$MAGIC_CMD
19843
19844 # Used on cygwin: DLL creation program.
19845 DLLTOOL="$DLLTOOL"
19846
19847 # Used on cygwin: object dumper.
19848 OBJDUMP="$OBJDUMP"
19849
19850 # Used on cygwin: assembler.
19851 AS="$AS"
19852
19853 # The name of the directory that contains temporary libtool files.
19854 objdir=$objdir
19855
19856 # How to create reloadable object files.
19857 reload_flag=$lt_reload_flag
19858 reload_cmds=$lt_reload_cmds
19859
19860 # How to pass a linker flag through the compiler.
19861 wl=$lt_lt_prog_compiler_wl_CXX
19862
19863 # Object file suffix (normally "o").
19864 objext="$ac_objext"
19865
19866 # Old archive suffix (normally "a").
19867 libext="$libext"
19868
19869 # Shared library suffix (normally ".so").
19870 shrext_cmds='$shrext_cmds'
19871
19872 # Executable file suffix (normally "").
19873 exeext="$exeext"
19874
19875 # Additional compiler flags for building library objects.
19876 pic_flag=$lt_lt_prog_compiler_pic_CXX
19877 pic_mode=$pic_mode
19878
19879 # What is the maximum length of a command?
19880 max_cmd_len=$lt_cv_sys_max_cmd_len
19881
19882 # Does compiler simultaneously support -c and -o options?
19883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19884
19885 # Must we lock files when doing compilation?
19886 need_locks=$lt_need_locks
19887
19888 # Do we need the lib prefix for modules?
19889 need_lib_prefix=$need_lib_prefix
19890
19891 # Do we need a version for libraries?
19892 need_version=$need_version
19893
19894 # Whether dlopen is supported.
19895 dlopen_support=$enable_dlopen
19896
19897 # Whether dlopen of programs is supported.
19898 dlopen_self=$enable_dlopen_self
19899
19900 # Whether dlopen of statically linked programs is supported.
19901 dlopen_self_static=$enable_dlopen_self_static
19902
19903 # Compiler flag to prevent dynamic linking.
19904 link_static_flag=$lt_lt_prog_compiler_static_CXX
19905
19906 # Compiler flag to turn off builtin functions.
19907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19908
19909 # Compiler flag to allow reflexive dlopens.
19910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19911
19912 # Compiler flag to generate shared objects directly from archives.
19913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19914
19915 # Compiler flag to generate thread-safe objects.
19916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19917
19918 # Library versioning type.
19919 version_type=$version_type
19920
19921 # Format of library name prefix.
19922 libname_spec=$lt_libname_spec
19923
19924 # List of archive names.  First name is the real one, the rest are links.
19925 # The last name is the one that the linker finds with -lNAME.
19926 library_names_spec=$lt_library_names_spec
19927
19928 # The coded name of the library, if different from the real name.
19929 soname_spec=$lt_soname_spec
19930
19931 # Commands used to build and install an old-style archive.
19932 RANLIB=$lt_RANLIB
19933 old_archive_cmds=$lt_old_archive_cmds_CXX
19934 old_postinstall_cmds=$lt_old_postinstall_cmds
19935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19936
19937 # Create an old-style archive from a shared archive.
19938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19939
19940 # Create a temporary old-style archive to link instead of a shared archive.
19941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19942
19943 # Commands used to build and install a shared archive.
19944 archive_cmds=$lt_archive_cmds_CXX
19945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19946 postinstall_cmds=$lt_postinstall_cmds
19947 postuninstall_cmds=$lt_postuninstall_cmds
19948
19949 # Commands used to build a loadable module (assumed same as above if empty)
19950 module_cmds=$lt_module_cmds_CXX
19951 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19952
19953 # Commands to strip libraries.
19954 old_striplib=$lt_old_striplib
19955 striplib=$lt_striplib
19956
19957 # Dependencies to place before the objects being linked to create a
19958 # shared library.
19959 predep_objects=$lt_predep_objects_CXX
19960
19961 # Dependencies to place after the objects being linked to create a
19962 # shared library.
19963 postdep_objects=$lt_postdep_objects_CXX
19964
19965 # Dependencies to place before the objects being linked to create a
19966 # shared library.
19967 predeps=$lt_predeps_CXX
19968
19969 # Dependencies to place after the objects being linked to create a
19970 # shared library.
19971 postdeps=$lt_postdeps_CXX
19972
19973 # The library search path used internally by the compiler when linking
19974 # a shared library.
19975 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19976
19977 # Method to check whether dependent libraries are shared objects.
19978 deplibs_check_method=$lt_deplibs_check_method
19979
19980 # Command to use when deplibs_check_method == file_magic.
19981 file_magic_cmd=$lt_file_magic_cmd
19982
19983 # Flag that allows shared libraries with undefined symbols to be built.
19984 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19985
19986 # Flag that forces no undefined symbols.
19987 no_undefined_flag=$lt_no_undefined_flag_CXX
19988
19989 # Commands used to finish a libtool library installation in a directory.
19990 finish_cmds=$lt_finish_cmds
19991
19992 # Same as above, but a single script fragment to be evaled but not shown.
19993 finish_eval=$lt_finish_eval
19994
19995 # Take the output of nm and produce a listing of raw symbols and C names.
19996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19997
19998 # Transform the output of nm in a proper C declaration
19999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20000
20001 # Transform the output of nm in a C name address pair
20002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20003
20004 # This is the shared library runtime path variable.
20005 runpath_var=$runpath_var
20006
20007 # This is the shared library path variable.
20008 shlibpath_var=$shlibpath_var
20009
20010 # Is shlibpath searched before the hard-coded library search path?
20011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20012
20013 # How to hardcode a shared library path into an executable.
20014 hardcode_action=$hardcode_action_CXX
20015
20016 # Whether we should hardcode library paths into libraries.
20017 hardcode_into_libs=$hardcode_into_libs
20018
20019 # Flag to hardcode \$libdir into a binary during linking.
20020 # This must work even if \$libdir does not exist.
20021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20022
20023 # If ld is used when linking, flag to hardcode \$libdir into
20024 # a binary during linking. This must work even if \$libdir does
20025 # not exist.
20026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20027
20028 # Whether we need a single -rpath flag with a separated argument.
20029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20030
20031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20032 # resulting binary.
20033 hardcode_direct=$hardcode_direct_CXX
20034
20035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20036 # resulting binary.
20037 hardcode_minus_L=$hardcode_minus_L_CXX
20038
20039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20040 # the resulting binary.
20041 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20042
20043 # Set to yes if building a shared library automatically hardcodes DIR into the library
20044 # and all subsequent libraries and executables linked against it.
20045 hardcode_automatic=$hardcode_automatic_CXX
20046
20047 # Variables whose values should be saved in libtool wrapper scripts and
20048 # restored at relink time.
20049 variables_saved_for_relink="$variables_saved_for_relink"
20050
20051 # Whether libtool must link a program against all its dependency libraries.
20052 link_all_deplibs=$link_all_deplibs_CXX
20053
20054 # Compile-time system search path for libraries
20055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20056
20057 # Run-time system search path for libraries
20058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20059
20060 # Fix the shell variable \$srcfile for the compiler.
20061 fix_srcfile_path="$fix_srcfile_path_CXX"
20062
20063 # Set to yes if exported symbols are required.
20064 always_export_symbols=$always_export_symbols_CXX
20065
20066 # The commands to list exported symbols.
20067 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20068
20069 # The commands to extract the exported symbol list from a shared archive.
20070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20071
20072 # Symbols that should not be listed in the preloaded symbols.
20073 exclude_expsyms=$lt_exclude_expsyms_CXX
20074
20075 # Symbols that must always be exported.
20076 include_expsyms=$lt_include_expsyms_CXX
20077
20078 # ### END LIBTOOL TAG CONFIG: $tagname
20079
20080 __EOF__
20081
20082
20083 else
20084   # If there is no Makefile yet, we rely on a make rule to execute
20085   # `config.status --recheck' to rerun these tests and create the
20086   # libtool script then.
20087   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20088   if test -f "$ltmain_in"; then
20089     test -f Makefile && make "$ltmain"
20090   fi
20091 fi
20092
20093
20094 ac_ext=c
20095 ac_cpp='$CPP $CPPFLAGS'
20096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20099
20100 CC=$lt_save_CC
20101 LDCXX=$LD
20102 LD=$lt_save_LD
20103 GCC=$lt_save_GCC
20104 with_gnu_ldcxx=$with_gnu_ld
20105 with_gnu_ld=$lt_save_with_gnu_ld
20106 lt_cv_path_LDCXX=$lt_cv_path_LD
20107 lt_cv_path_LD=$lt_save_path_LD
20108 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20109 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20110
20111         else
20112           tagname=""
20113         fi
20114         ;;
20115
20116       F77)
20117         if test -n "$F77" && test "X$F77" != "Xno"; then
20118
20119 ac_ext=f
20120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20123
20124
20125 archive_cmds_need_lc_F77=no
20126 allow_undefined_flag_F77=
20127 always_export_symbols_F77=no
20128 archive_expsym_cmds_F77=
20129 export_dynamic_flag_spec_F77=
20130 hardcode_direct_F77=no
20131 hardcode_libdir_flag_spec_F77=
20132 hardcode_libdir_flag_spec_ld_F77=
20133 hardcode_libdir_separator_F77=
20134 hardcode_minus_L_F77=no
20135 hardcode_automatic_F77=no
20136 module_cmds_F77=
20137 module_expsym_cmds_F77=
20138 link_all_deplibs_F77=unknown
20139 old_archive_cmds_F77=$old_archive_cmds
20140 no_undefined_flag_F77=
20141 whole_archive_flag_spec_F77=
20142 enable_shared_with_static_runtimes_F77=no
20143
20144 # Source file extension for f77 test sources.
20145 ac_ext=f
20146
20147 # Object file extension for compiled f77 test sources.
20148 objext=o
20149 objext_F77=$objext
20150
20151 # Code to be used in simple compile tests
20152 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20153
20154 # Code to be used in simple link tests
20155 lt_simple_link_test_code="      program t\n      end\n"
20156
20157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20158
20159 # If no C compiler was specified, use CC.
20160 LTCC=${LTCC-"$CC"}
20161
20162 # If no C compiler flags were specified, use CFLAGS.
20163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20164
20165 # Allow CC to be a program name with arguments.
20166 compiler=$CC
20167
20168
20169 # save warnings/boilerplate of simple test code
20170 ac_outfile=conftest.$ac_objext
20171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20173 _lt_compiler_boilerplate=`cat conftest.err`
20174 $rm conftest*
20175
20176 ac_outfile=conftest.$ac_objext
20177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20179 _lt_linker_boilerplate=`cat conftest.err`
20180 $rm conftest*
20181
20182
20183 # Allow CC to be a program name with arguments.
20184 lt_save_CC="$CC"
20185 CC=${F77-"f77"}
20186 compiler=$CC
20187 compiler_F77=$CC
20188 for cc_temp in $compiler""; do
20189   case $cc_temp in
20190     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20191     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20192     \-*) ;;
20193     *) break;;
20194   esac
20195 done
20196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20197
20198
20199 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20200 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20201 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20202 echo "${ECHO_T}$can_build_shared" >&6
20203
20204 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20205 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20206 test "$can_build_shared" = "no" && enable_shared=no
20207
20208 # On AIX, shared libraries and static libraries use the same namespace, and
20209 # are all built from PIC.
20210 case $host_os in
20211 aix3*)
20212   test "$enable_shared" = yes && enable_static=no
20213   if test -n "$RANLIB"; then
20214     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20215     postinstall_cmds='$RANLIB $lib'
20216   fi
20217   ;;
20218 aix4* | aix5*)
20219   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20220     test "$enable_shared" = yes && enable_static=no
20221   fi
20222   ;;
20223 esac
20224 echo "$as_me:$LINENO: result: $enable_shared" >&5
20225 echo "${ECHO_T}$enable_shared" >&6
20226
20227 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20228 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20229 # Make sure either enable_shared or enable_static is yes.
20230 test "$enable_shared" = yes || enable_static=yes
20231 echo "$as_me:$LINENO: result: $enable_static" >&5
20232 echo "${ECHO_T}$enable_static" >&6
20233
20234 GCC_F77="$G77"
20235 LD_F77="$LD"
20236
20237 lt_prog_compiler_wl_F77=
20238 lt_prog_compiler_pic_F77=
20239 lt_prog_compiler_static_F77=
20240
20241 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20242 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20243
20244   if test "$GCC" = yes; then
20245     lt_prog_compiler_wl_F77='-Wl,'
20246     lt_prog_compiler_static_F77='-static'
20247
20248     case $host_os in
20249       aix*)
20250       # All AIX code is PIC.
20251       if test "$host_cpu" = ia64; then
20252         # AIX 5 now supports IA64 processor
20253         lt_prog_compiler_static_F77='-Bstatic'
20254       fi
20255       ;;
20256
20257     amigaos*)
20258       # FIXME: we need at least 68020 code to build shared libraries, but
20259       # adding the `-m68020' flag to GCC prevents building anything better,
20260       # like `-m68040'.
20261       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20262       ;;
20263
20264     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20265       # PIC is the default for these OSes.
20266       ;;
20267
20268     mingw* | pw32* | os2*)
20269       # This hack is so that the source file can tell whether it is being
20270       # built for inclusion in a dll (and should export symbols for example).
20271       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20272       ;;
20273
20274     darwin* | rhapsody*)
20275       # PIC is the default on this platform
20276       # Common symbols not allowed in MH_DYLIB files
20277       lt_prog_compiler_pic_F77='-fno-common'
20278       ;;
20279
20280     interix3*)
20281       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20282       # Instead, we relocate shared libraries at runtime.
20283       ;;
20284
20285     msdosdjgpp*)
20286       # Just because we use GCC doesn't mean we suddenly get shared libraries
20287       # on systems that don't support them.
20288       lt_prog_compiler_can_build_shared_F77=no
20289       enable_shared=no
20290       ;;
20291
20292     sysv4*MP*)
20293       if test -d /usr/nec; then
20294         lt_prog_compiler_pic_F77=-Kconform_pic
20295       fi
20296       ;;
20297
20298     hpux*)
20299       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20300       # not for PA HP-UX.
20301       case $host_cpu in
20302       hppa*64*|ia64*)
20303         # +Z the default
20304         ;;
20305       *)
20306         lt_prog_compiler_pic_F77='-fPIC'
20307         ;;
20308       esac
20309       ;;
20310
20311     *)
20312       lt_prog_compiler_pic_F77='-fPIC'
20313       ;;
20314     esac
20315   else
20316     # PORTME Check for flag to pass linker flags through the system compiler.
20317     case $host_os in
20318     aix*)
20319       lt_prog_compiler_wl_F77='-Wl,'
20320       if test "$host_cpu" = ia64; then
20321         # AIX 5 now supports IA64 processor
20322         lt_prog_compiler_static_F77='-Bstatic'
20323       else
20324         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20325       fi
20326       ;;
20327       darwin*)
20328         # PIC is the default on this platform
20329         # Common symbols not allowed in MH_DYLIB files
20330        case $cc_basename in
20331          xlc*)
20332          lt_prog_compiler_pic_F77='-qnocommon'
20333          lt_prog_compiler_wl_F77='-Wl,'
20334          ;;
20335        esac
20336        ;;
20337
20338     mingw* | pw32* | os2*)
20339       # This hack is so that the source file can tell whether it is being
20340       # built for inclusion in a dll (and should export symbols for example).
20341       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20342       ;;
20343
20344     hpux9* | hpux10* | hpux11*)
20345       lt_prog_compiler_wl_F77='-Wl,'
20346       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20347       # not for PA HP-UX.
20348       case $host_cpu in
20349       hppa*64*|ia64*)
20350         # +Z the default
20351         ;;
20352       *)
20353         lt_prog_compiler_pic_F77='+Z'
20354         ;;
20355       esac
20356       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20357       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20358       ;;
20359
20360     irix5* | irix6* | nonstopux*)
20361       lt_prog_compiler_wl_F77='-Wl,'
20362       # PIC (with -KPIC) is the default.
20363       lt_prog_compiler_static_F77='-non_shared'
20364       ;;
20365
20366     newsos6)
20367       lt_prog_compiler_pic_F77='-KPIC'
20368       lt_prog_compiler_static_F77='-Bstatic'
20369       ;;
20370
20371     linux*)
20372       case $cc_basename in
20373       icc* | ecc*)
20374         lt_prog_compiler_wl_F77='-Wl,'
20375         lt_prog_compiler_pic_F77='-KPIC'
20376         lt_prog_compiler_static_F77='-static'
20377         ;;
20378       pgcc* | pgf77* | pgf90* | pgf95*)
20379         # Portland Group compilers (*not* the Pentium gcc compiler,
20380         # which looks to be a dead project)
20381         lt_prog_compiler_wl_F77='-Wl,'
20382         lt_prog_compiler_pic_F77='-fpic'
20383         lt_prog_compiler_static_F77='-Bstatic'
20384         ;;
20385       ccc*)
20386         lt_prog_compiler_wl_F77='-Wl,'
20387         # All Alpha code is PIC.
20388         lt_prog_compiler_static_F77='-non_shared'
20389         ;;
20390       esac
20391       ;;
20392
20393     osf3* | osf4* | osf5*)
20394       lt_prog_compiler_wl_F77='-Wl,'
20395       # All OSF/1 code is PIC.
20396       lt_prog_compiler_static_F77='-non_shared'
20397       ;;
20398
20399     solaris*)
20400       lt_prog_compiler_pic_F77='-KPIC'
20401       lt_prog_compiler_static_F77='-Bstatic'
20402       case $cc_basename in
20403       f77* | f90* | f95*)
20404         lt_prog_compiler_wl_F77='-Qoption ld ';;
20405       *)
20406         lt_prog_compiler_wl_F77='-Wl,';;
20407       esac
20408       ;;
20409
20410     sunos4*)
20411       lt_prog_compiler_wl_F77='-Qoption ld '
20412       lt_prog_compiler_pic_F77='-PIC'
20413       lt_prog_compiler_static_F77='-Bstatic'
20414       ;;
20415
20416     sysv4 | sysv4.2uw2* | sysv4.3*)
20417       lt_prog_compiler_wl_F77='-Wl,'
20418       lt_prog_compiler_pic_F77='-KPIC'
20419       lt_prog_compiler_static_F77='-Bstatic'
20420       ;;
20421
20422     sysv4*MP*)
20423       if test -d /usr/nec ;then
20424         lt_prog_compiler_pic_F77='-Kconform_pic'
20425         lt_prog_compiler_static_F77='-Bstatic'
20426       fi
20427       ;;
20428
20429     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20430       lt_prog_compiler_wl_F77='-Wl,'
20431       lt_prog_compiler_pic_F77='-KPIC'
20432       lt_prog_compiler_static_F77='-Bstatic'
20433       ;;
20434
20435     unicos*)
20436       lt_prog_compiler_wl_F77='-Wl,'
20437       lt_prog_compiler_can_build_shared_F77=no
20438       ;;
20439
20440     uts4*)
20441       lt_prog_compiler_pic_F77='-pic'
20442       lt_prog_compiler_static_F77='-Bstatic'
20443       ;;
20444
20445     *)
20446       lt_prog_compiler_can_build_shared_F77=no
20447       ;;
20448     esac
20449   fi
20450
20451 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20452 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20453
20454 #
20455 # Check to make sure the PIC flag actually works.
20456 #
20457 if test -n "$lt_prog_compiler_pic_F77"; then
20458
20459 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20460 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20461 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20462   echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464   lt_prog_compiler_pic_works_F77=no
20465   ac_outfile=conftest.$ac_objext
20466    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20467    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20468    # Insert the option either (1) after the last *FLAGS variable, or
20469    # (2) before a word containing "conftest.", or (3) at the end.
20470    # Note that $ac_compile itself does not contain backslashes and begins
20471    # with a dollar sign (not a hyphen), so the echo should work correctly.
20472    # The option is referenced via a variable to avoid confusing sed.
20473    lt_compile=`echo "$ac_compile" | $SED \
20474    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20475    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20476    -e 's:$: $lt_compiler_flag:'`
20477    (eval echo "\"\$as_me:20477: $lt_compile\"" >&5)
20478    (eval "$lt_compile" 2>conftest.err)
20479    ac_status=$?
20480    cat conftest.err >&5
20481    echo "$as_me:20481: \$? = $ac_status" >&5
20482    if (exit $ac_status) && test -s "$ac_outfile"; then
20483      # The compiler can only warn and ignore the option if not recognized
20484      # So say no if there are warnings other than the usual output.
20485      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20486      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20487      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20488        lt_prog_compiler_pic_works_F77=yes
20489      fi
20490    fi
20491    $rm conftest*
20492
20493 fi
20494 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20495 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20496
20497 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20498     case $lt_prog_compiler_pic_F77 in
20499      "" | " "*) ;;
20500      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20501      esac
20502 else
20503     lt_prog_compiler_pic_F77=
20504      lt_prog_compiler_can_build_shared_F77=no
20505 fi
20506
20507 fi
20508 case $host_os in
20509   # For platforms which do not support PIC, -DPIC is meaningless:
20510   *djgpp*)
20511     lt_prog_compiler_pic_F77=
20512     ;;
20513   *)
20514     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20515     ;;
20516 esac
20517
20518 #
20519 # Check to make sure the static flag actually works.
20520 #
20521 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20522 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20523 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
20524 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   lt_prog_compiler_static_works_F77=no
20528    save_LDFLAGS="$LDFLAGS"
20529    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20530    printf "$lt_simple_link_test_code" > conftest.$ac_ext
20531    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20532      # The linker can only warn and ignore the option if not recognized
20533      # So say no if there are warnings
20534      if test -s conftest.err; then
20535        # Append any errors to the config.log.
20536        cat conftest.err 1>&5
20537        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20538        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20539        if diff conftest.exp conftest.er2 >/dev/null; then
20540          lt_prog_compiler_static_works_F77=yes
20541        fi
20542      else
20543        lt_prog_compiler_static_works_F77=yes
20544      fi
20545    fi
20546    $rm conftest*
20547    LDFLAGS="$save_LDFLAGS"
20548
20549 fi
20550 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20551 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
20552
20553 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20554     :
20555 else
20556     lt_prog_compiler_static_F77=
20557 fi
20558
20559
20560 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20561 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20562 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20563   echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565   lt_cv_prog_compiler_c_o_F77=no
20566    $rm -r conftest 2>/dev/null
20567    mkdir conftest
20568    cd conftest
20569    mkdir out
20570    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20571
20572    lt_compiler_flag="-o out/conftest2.$ac_objext"
20573    # Insert the option either (1) after the last *FLAGS variable, or
20574    # (2) before a word containing "conftest.", or (3) at the end.
20575    # Note that $ac_compile itself does not contain backslashes and begins
20576    # with a dollar sign (not a hyphen), so the echo should work correctly.
20577    lt_compile=`echo "$ac_compile" | $SED \
20578    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20580    -e 's:$: $lt_compiler_flag:'`
20581    (eval echo "\"\$as_me:20581: $lt_compile\"" >&5)
20582    (eval "$lt_compile" 2>out/conftest.err)
20583    ac_status=$?
20584    cat out/conftest.err >&5
20585    echo "$as_me:20585: \$? = $ac_status" >&5
20586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20587    then
20588      # The compiler can only warn and ignore the option if not recognized
20589      # So say no if there are warnings
20590      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20591      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20592      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20593        lt_cv_prog_compiler_c_o_F77=yes
20594      fi
20595    fi
20596    chmod u+w . 2>&5
20597    $rm conftest*
20598    # SGI C++ compiler will create directory out/ii_files/ for
20599    # template instantiation
20600    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20601    $rm out/* && rmdir out
20602    cd ..
20603    rmdir conftest
20604    $rm conftest*
20605
20606 fi
20607 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20608 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20609
20610
20611 hard_links="nottested"
20612 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20613   # do not overwrite the value of need_locks provided by the user
20614   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20615 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20616   hard_links=yes
20617   $rm conftest*
20618   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20619   touch conftest.a
20620   ln conftest.a conftest.b 2>&5 || hard_links=no
20621   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20622   echo "$as_me:$LINENO: result: $hard_links" >&5
20623 echo "${ECHO_T}$hard_links" >&6
20624   if test "$hard_links" = no; then
20625     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20626 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20627     need_locks=warn
20628   fi
20629 else
20630   need_locks=no
20631 fi
20632
20633 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20634 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20635
20636   runpath_var=
20637   allow_undefined_flag_F77=
20638   enable_shared_with_static_runtimes_F77=no
20639   archive_cmds_F77=
20640   archive_expsym_cmds_F77=
20641   old_archive_From_new_cmds_F77=
20642   old_archive_from_expsyms_cmds_F77=
20643   export_dynamic_flag_spec_F77=
20644   whole_archive_flag_spec_F77=
20645   thread_safe_flag_spec_F77=
20646   hardcode_libdir_flag_spec_F77=
20647   hardcode_libdir_flag_spec_ld_F77=
20648   hardcode_libdir_separator_F77=
20649   hardcode_direct_F77=no
20650   hardcode_minus_L_F77=no
20651   hardcode_shlibpath_var_F77=unsupported
20652   link_all_deplibs_F77=unknown
20653   hardcode_automatic_F77=no
20654   module_cmds_F77=
20655   module_expsym_cmds_F77=
20656   always_export_symbols_F77=no
20657   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20658   # include_expsyms should be a list of space-separated symbols to be *always*
20659   # included in the symbol list
20660   include_expsyms_F77=
20661   # exclude_expsyms can be an extended regexp of symbols to exclude
20662   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20663   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20664   # as well as any symbol that contains `d'.
20665   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20666   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20667   # platforms (ab)use it in PIC code, but their linkers get confused if
20668   # the symbol is explicitly referenced.  Since portable code cannot
20669   # rely on this symbol name, it's probably fine to never include it in
20670   # preloaded symbol tables.
20671   extract_expsyms_cmds=
20672   # Just being paranoid about ensuring that cc_basename is set.
20673   for cc_temp in $compiler""; do
20674   case $cc_temp in
20675     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20676     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20677     \-*) ;;
20678     *) break;;
20679   esac
20680 done
20681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20682
20683   case $host_os in
20684   cygwin* | mingw* | pw32*)
20685     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20686     # When not using gcc, we currently assume that we are using
20687     # Microsoft Visual C++.
20688     if test "$GCC" != yes; then
20689       with_gnu_ld=no
20690     fi
20691     ;;
20692   interix*)
20693     # we just hope/assume this is gcc and not c89 (= MSVC++)
20694     with_gnu_ld=yes
20695     ;;
20696   openbsd*)
20697     with_gnu_ld=no
20698     ;;
20699   esac
20700
20701   ld_shlibs_F77=yes
20702   if test "$with_gnu_ld" = yes; then
20703     # If archive_cmds runs LD, not CC, wlarc should be empty
20704     wlarc='${wl}'
20705
20706     # Set some defaults for GNU ld with shared library support. These
20707     # are reset later if shared libraries are not supported. Putting them
20708     # here allows them to be overridden if necessary.
20709     runpath_var=LD_RUN_PATH
20710     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20711     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20712     # ancient GNU ld didn't support --whole-archive et. al.
20713     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20714         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20715       else
20716         whole_archive_flag_spec_F77=
20717     fi
20718     supports_anon_versioning=no
20719     case `$LD -v 2>/dev/null` in
20720       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20721       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20722       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20723       *\ 2.11.*) ;; # other 2.11 versions
20724       *) supports_anon_versioning=yes ;;
20725     esac
20726
20727     # See if GNU ld supports shared libraries.
20728     case $host_os in
20729     aix3* | aix4* | aix5*)
20730       # On AIX/PPC, the GNU linker is very broken
20731       if test "$host_cpu" != ia64; then
20732         ld_shlibs_F77=no
20733         cat <<EOF 1>&2
20734
20735 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20736 *** to be unable to reliably create shared libraries on AIX.
20737 *** Therefore, libtool is disabling shared libraries support.  If you
20738 *** really care for shared libraries, you may want to modify your PATH
20739 *** so that a non-GNU linker is found, and then restart.
20740
20741 EOF
20742       fi
20743       ;;
20744
20745     amigaos*)
20746       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)'
20747       hardcode_libdir_flag_spec_F77='-L$libdir'
20748       hardcode_minus_L_F77=yes
20749
20750       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20751       # that the semantics of dynamic libraries on AmigaOS, at least up
20752       # to version 4, is to share data among multiple programs linked
20753       # with the same dynamic library.  Since this doesn't match the
20754       # behavior of shared libraries on other platforms, we can't use
20755       # them.
20756       ld_shlibs_F77=no
20757       ;;
20758
20759     beos*)
20760       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20761         allow_undefined_flag_F77=unsupported
20762         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20763         # support --undefined.  This deserves some investigation.  FIXME
20764         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20765       else
20766         ld_shlibs_F77=no
20767       fi
20768       ;;
20769
20770     cygwin* | mingw* | pw32*)
20771       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20772       # as there is no search path for DLLs.
20773       hardcode_libdir_flag_spec_F77='-L$libdir'
20774       allow_undefined_flag_F77=unsupported
20775       always_export_symbols_F77=no
20776       enable_shared_with_static_runtimes_F77=yes
20777       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20778
20779       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20780         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20781         # If the export-symbols file already is a .def file (1st line
20782         # is EXPORTS), use it as is; otherwise, prepend...
20783         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20784           cp $export_symbols $output_objdir/$soname.def;
20785         else
20786           echo EXPORTS > $output_objdir/$soname.def;
20787           cat $export_symbols >> $output_objdir/$soname.def;
20788         fi~
20789         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20790       else
20791         ld_shlibs_F77=no
20792       fi
20793       ;;
20794
20795     interix3*)
20796       hardcode_direct_F77=no
20797       hardcode_shlibpath_var_F77=no
20798       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20799       export_dynamic_flag_spec_F77='${wl}-E'
20800       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20801       # Instead, shared libraries are loaded at an image base (0x10000000 by
20802       # default) and relocated if they conflict, which is a slow very memory
20803       # consuming and fragmenting process.  To avoid this, we pick a random,
20804       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20805       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20806       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'
20807       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'
20808       ;;
20809
20810     linux*)
20811       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20812         tmp_addflag=
20813         case $cc_basename,$host_cpu in
20814         pgcc*)                          # Portland Group C compiler
20815           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'
20816           tmp_addflag=' $pic_flag'
20817           ;;
20818         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
20819           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'
20820           tmp_addflag=' $pic_flag -Mnomain' ;;
20821         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20822           tmp_addflag=' -i_dynamic' ;;
20823         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20824           tmp_addflag=' -i_dynamic -nofor_main' ;;
20825         ifc* | ifort*)                  # Intel Fortran compiler
20826           tmp_addflag=' -nofor_main' ;;
20827         esac
20828         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20829
20830         if test $supports_anon_versioning = yes; then
20831           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20832   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20833   $echo "local: *; };" >> $output_objdir/$libname.ver~
20834           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20835         fi
20836       else
20837         ld_shlibs_F77=no
20838       fi
20839       ;;
20840
20841     netbsd*)
20842       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20843         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20844         wlarc=
20845       else
20846         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20847         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20848       fi
20849       ;;
20850
20851     solaris*)
20852       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20853         ld_shlibs_F77=no
20854         cat <<EOF 1>&2
20855
20856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20857 *** create shared libraries on Solaris systems.  Therefore, libtool
20858 *** is disabling shared libraries support.  We urge you to upgrade GNU
20859 *** binutils to release 2.9.1 or newer.  Another option is to modify
20860 *** your PATH or compiler configuration so that the native linker is
20861 *** used, and then restart.
20862
20863 EOF
20864       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20865         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20866         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20867       else
20868         ld_shlibs_F77=no
20869       fi
20870       ;;
20871
20872     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20873       case `$LD -v 2>&1` in
20874         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20875         ld_shlibs_F77=no
20876         cat <<_LT_EOF 1>&2
20877
20878 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20879 *** reliably create shared libraries on SCO systems.  Therefore, libtool
20880 *** is disabling shared libraries support.  We urge you to upgrade GNU
20881 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20882 *** your PATH or compiler configuration so that the native linker is
20883 *** used, and then restart.
20884
20885 _LT_EOF
20886         ;;
20887         *)
20888           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20889             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20890             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20891             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20892           else
20893             ld_shlibs_F77=no
20894           fi
20895         ;;
20896       esac
20897       ;;
20898
20899     sunos4*)
20900       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20901       wlarc=
20902       hardcode_direct_F77=yes
20903       hardcode_shlibpath_var_F77=no
20904       ;;
20905
20906     *)
20907       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20908         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20909         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20910       else
20911         ld_shlibs_F77=no
20912       fi
20913       ;;
20914     esac
20915
20916     if test "$ld_shlibs_F77" = no; then
20917       runpath_var=
20918       hardcode_libdir_flag_spec_F77=
20919       export_dynamic_flag_spec_F77=
20920       whole_archive_flag_spec_F77=
20921     fi
20922   else
20923     # PORTME fill in a description of your system's linker (not GNU ld)
20924     case $host_os in
20925     aix3*)
20926       allow_undefined_flag_F77=unsupported
20927       always_export_symbols_F77=yes
20928       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'
20929       # Note: this linker hardcodes the directories in LIBPATH if there
20930       # are no directories specified by -L.
20931       hardcode_minus_L_F77=yes
20932       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20933         # Neither direct hardcoding nor static linking is supported with a
20934         # broken collect2.
20935         hardcode_direct_F77=unsupported
20936       fi
20937       ;;
20938
20939     aix4* | aix5*)
20940       if test "$host_cpu" = ia64; then
20941         # On IA64, the linker does run time linking by default, so we don't
20942         # have to do anything special.
20943         aix_use_runtimelinking=no
20944         exp_sym_flag='-Bexport'
20945         no_entry_flag=""
20946       else
20947         # If we're using GNU nm, then we don't want the "-C" option.
20948         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20949         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20950           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'
20951         else
20952           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'
20953         fi
20954         aix_use_runtimelinking=no
20955
20956         # Test if we are trying to use run time linking or normal
20957         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20958         # need to do runtime linking.
20959         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20960           for ld_flag in $LDFLAGS; do
20961           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20962             aix_use_runtimelinking=yes
20963             break
20964           fi
20965           done
20966           ;;
20967         esac
20968
20969         exp_sym_flag='-bexport'
20970         no_entry_flag='-bnoentry'
20971       fi
20972
20973       # When large executables or shared objects are built, AIX ld can
20974       # have problems creating the table of contents.  If linking a library
20975       # or program results in "error TOC overflow" add -mminimal-toc to
20976       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20977       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20978
20979       archive_cmds_F77=''
20980       hardcode_direct_F77=yes
20981       hardcode_libdir_separator_F77=':'
20982       link_all_deplibs_F77=yes
20983
20984       if test "$GCC" = yes; then
20985         case $host_os in aix4.[012]|aix4.[012].*)
20986         # We only want to do this on AIX 4.2 and lower, the check
20987         # below for broken collect2 doesn't work under 4.3+
20988           collect2name=`${CC} -print-prog-name=collect2`
20989           if test -f "$collect2name" && \
20990            strings "$collect2name" | grep resolve_lib_name >/dev/null
20991           then
20992           # We have reworked collect2
20993           hardcode_direct_F77=yes
20994           else
20995           # We have old collect2
20996           hardcode_direct_F77=unsupported
20997           # It fails to find uninstalled libraries when the uninstalled
20998           # path is not listed in the libpath.  Setting hardcode_minus_L
20999           # to unsupported forces relinking
21000           hardcode_minus_L_F77=yes
21001           hardcode_libdir_flag_spec_F77='-L$libdir'
21002           hardcode_libdir_separator_F77=
21003           fi
21004           ;;
21005         esac
21006         shared_flag='-shared'
21007         if test "$aix_use_runtimelinking" = yes; then
21008           shared_flag="$shared_flag "'${wl}-G'
21009         fi
21010       else
21011         # not using gcc
21012         if test "$host_cpu" = ia64; then
21013         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21014         # chokes on -Wl,-G. The following line is correct:
21015           shared_flag='-G'
21016         else
21017           if test "$aix_use_runtimelinking" = yes; then
21018             shared_flag='${wl}-G'
21019           else
21020             shared_flag='${wl}-bM:SRE'
21021           fi
21022         fi
21023       fi
21024
21025       # It seems that -bexpall does not export symbols beginning with
21026       # underscore (_), so it is better to generate a list of symbols to export.
21027       always_export_symbols_F77=yes
21028       if test "$aix_use_runtimelinking" = yes; then
21029         # Warning - without using the other runtime loading flags (-brtl),
21030         # -berok will link without error, but may produce a broken library.
21031         allow_undefined_flag_F77='-berok'
21032        # Determine the default libpath from the value encoded in an empty executable.
21033        cat >conftest.$ac_ext <<_ACEOF
21034       program main
21035
21036       end
21037 _ACEOF
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21040   (eval $ac_link) 2>conftest.er1
21041   ac_status=$?
21042   grep -v '^ *+' conftest.er1 >conftest.err
21043   rm -f conftest.er1
21044   cat conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } &&
21047          { ac_try='test -z "$ac_f77_werror_flag"
21048                          || test ! -s conftest.err'
21049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050   (eval $ac_try) 2>&5
21051   ac_status=$?
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); }; } &&
21054          { ac_try='test -s conftest$ac_exeext'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; }; then
21060
21061 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21062 }'`
21063 # Check for a 64-bit object if we didn't find anything.
21064 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; }
21065 }'`; fi
21066 else
21067   echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 fi
21071 rm -f conftest.err conftest.$ac_objext \
21072       conftest$ac_exeext conftest.$ac_ext
21073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21074
21075        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21076         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"
21077        else
21078         if test "$host_cpu" = ia64; then
21079           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21080           allow_undefined_flag_F77="-z nodefs"
21081           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"
21082         else
21083          # Determine the default libpath from the value encoded in an empty executable.
21084          cat >conftest.$ac_ext <<_ACEOF
21085       program main
21086
21087       end
21088 _ACEOF
21089 rm -f conftest.$ac_objext conftest$ac_exeext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21091   (eval $ac_link) 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } &&
21098          { ac_try='test -z "$ac_f77_werror_flag"
21099                          || test ! -s conftest.err'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; } &&
21105          { ac_try='test -s conftest$ac_exeext'
21106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107   (eval $ac_try) 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); }; }; then
21111
21112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21113 }'`
21114 # Check for a 64-bit object if we didn't find anything.
21115 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; }
21116 }'`; fi
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 fi
21122 rm -f conftest.err conftest.$ac_objext \
21123       conftest$ac_exeext conftest.$ac_ext
21124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21125
21126          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21127           # Warning - without using the other run time loading flags,
21128           # -berok will link without error, but may produce a broken library.
21129           no_undefined_flag_F77=' ${wl}-bernotok'
21130           allow_undefined_flag_F77=' ${wl}-berok'
21131           # Exported symbols can be pulled into shared objects from archives
21132           whole_archive_flag_spec_F77='$convenience'
21133           archive_cmds_need_lc_F77=yes
21134           # This is similar to how AIX traditionally builds its shared libraries.
21135           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'
21136         fi
21137       fi
21138       ;;
21139
21140     amigaos*)
21141       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)'
21142       hardcode_libdir_flag_spec_F77='-L$libdir'
21143       hardcode_minus_L_F77=yes
21144       # see comment about different semantics on the GNU ld section
21145       ld_shlibs_F77=no
21146       ;;
21147
21148     bsdi[45]*)
21149       export_dynamic_flag_spec_F77=-rdynamic
21150       ;;
21151
21152     cygwin* | mingw* | pw32*)
21153       # When not using gcc, we currently assume that we are using
21154       # Microsoft Visual C++.
21155       # hardcode_libdir_flag_spec is actually meaningless, as there is
21156       # no search path for DLLs.
21157       hardcode_libdir_flag_spec_F77=' '
21158       allow_undefined_flag_F77=unsupported
21159       # Tell ltmain to make .lib files, not .a files.
21160       libext=lib
21161       # Tell ltmain to make .dll files, not .so files.
21162       shrext_cmds=".dll"
21163       # FIXME: Setting linknames here is a bad hack.
21164       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21165       # The linker will automatically build a .lib file if we build a DLL.
21166       old_archive_From_new_cmds_F77='true'
21167       # FIXME: Should let the user specify the lib program.
21168       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21169       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21170       enable_shared_with_static_runtimes_F77=yes
21171       ;;
21172
21173     darwin* | rhapsody*)
21174       case $host_os in
21175         rhapsody* | darwin1.[012])
21176          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21177          ;;
21178        *) # Darwin 1.3 on
21179          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21180            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21181          else
21182            case ${MACOSX_DEPLOYMENT_TARGET} in
21183              10.[012])
21184                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21185                ;;
21186              10.*)
21187                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21188                ;;
21189            esac
21190          fi
21191          ;;
21192       esac
21193       archive_cmds_need_lc_F77=no
21194       hardcode_direct_F77=no
21195       hardcode_automatic_F77=yes
21196       hardcode_shlibpath_var_F77=unsupported
21197       whole_archive_flag_spec_F77=''
21198       link_all_deplibs_F77=yes
21199     if test "$GCC" = yes ; then
21200         output_verbose_link_cmd='echo'
21201         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21202       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21203       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21204       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}'
21205       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}'
21206     else
21207       case $cc_basename in
21208         xlc*)
21209          output_verbose_link_cmd='echo'
21210          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21211          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21212           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21213          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}'
21214           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}'
21215           ;;
21216        *)
21217          ld_shlibs_F77=no
21218           ;;
21219       esac
21220     fi
21221       ;;
21222
21223     dgux*)
21224       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21225       hardcode_libdir_flag_spec_F77='-L$libdir'
21226       hardcode_shlibpath_var_F77=no
21227       ;;
21228
21229     freebsd1*)
21230       ld_shlibs_F77=no
21231       ;;
21232
21233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21234     # support.  Future versions do this automatically, but an explicit c++rt0.o
21235     # does not break anything, and helps significantly (at the cost of a little
21236     # extra space).
21237     freebsd2.2*)
21238       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21239       hardcode_libdir_flag_spec_F77='-R$libdir'
21240       hardcode_direct_F77=yes
21241       hardcode_shlibpath_var_F77=no
21242       ;;
21243
21244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21245     freebsd2*)
21246       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21247       hardcode_direct_F77=yes
21248       hardcode_minus_L_F77=yes
21249       hardcode_shlibpath_var_F77=no
21250       ;;
21251
21252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21253     freebsd* | kfreebsd*-gnu | dragonfly*)
21254       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21255       hardcode_libdir_flag_spec_F77='-R$libdir'
21256       hardcode_direct_F77=yes
21257       hardcode_shlibpath_var_F77=no
21258       ;;
21259
21260     hpux9*)
21261       if test "$GCC" = yes; then
21262         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'
21263       else
21264         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'
21265       fi
21266       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21267       hardcode_libdir_separator_F77=:
21268       hardcode_direct_F77=yes
21269
21270       # hardcode_minus_L: Not really in the search PATH,
21271       # but as the default location of the library.
21272       hardcode_minus_L_F77=yes
21273       export_dynamic_flag_spec_F77='${wl}-E'
21274       ;;
21275
21276     hpux10*)
21277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21278         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21279       else
21280         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21281       fi
21282       if test "$with_gnu_ld" = no; then
21283         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21284         hardcode_libdir_separator_F77=:
21285
21286         hardcode_direct_F77=yes
21287         export_dynamic_flag_spec_F77='${wl}-E'
21288
21289         # hardcode_minus_L: Not really in the search PATH,
21290         # but as the default location of the library.
21291         hardcode_minus_L_F77=yes
21292       fi
21293       ;;
21294
21295     hpux11*)
21296       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21297         case $host_cpu in
21298         hppa*64*)
21299           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21300           ;;
21301         ia64*)
21302           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21303           ;;
21304         *)
21305           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21306           ;;
21307         esac
21308       else
21309         case $host_cpu in
21310         hppa*64*)
21311           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21312           ;;
21313         ia64*)
21314           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21315           ;;
21316         *)
21317           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21318           ;;
21319         esac
21320       fi
21321       if test "$with_gnu_ld" = no; then
21322         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21323         hardcode_libdir_separator_F77=:
21324
21325         case $host_cpu in
21326         hppa*64*|ia64*)
21327           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21328           hardcode_direct_F77=no
21329           hardcode_shlibpath_var_F77=no
21330           ;;
21331         *)
21332           hardcode_direct_F77=yes
21333           export_dynamic_flag_spec_F77='${wl}-E'
21334
21335           # hardcode_minus_L: Not really in the search PATH,
21336           # but as the default location of the library.
21337           hardcode_minus_L_F77=yes
21338           ;;
21339         esac
21340       fi
21341       ;;
21342
21343     irix5* | irix6* | nonstopux*)
21344       if test "$GCC" = yes; then
21345         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'
21346       else
21347         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'
21348         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21349       fi
21350       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21351       hardcode_libdir_separator_F77=:
21352       link_all_deplibs_F77=yes
21353       ;;
21354
21355     netbsd*)
21356       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21357         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21358       else
21359         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21360       fi
21361       hardcode_libdir_flag_spec_F77='-R$libdir'
21362       hardcode_direct_F77=yes
21363       hardcode_shlibpath_var_F77=no
21364       ;;
21365
21366     newsos6)
21367       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21368       hardcode_direct_F77=yes
21369       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21370       hardcode_libdir_separator_F77=:
21371       hardcode_shlibpath_var_F77=no
21372       ;;
21373
21374     openbsd*)
21375       hardcode_direct_F77=yes
21376       hardcode_shlibpath_var_F77=no
21377       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21378         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21379         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21380         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21381         export_dynamic_flag_spec_F77='${wl}-E'
21382       else
21383        case $host_os in
21384          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21385            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21386            hardcode_libdir_flag_spec_F77='-R$libdir'
21387            ;;
21388          *)
21389            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21390            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21391            ;;
21392        esac
21393       fi
21394       ;;
21395
21396     os2*)
21397       hardcode_libdir_flag_spec_F77='-L$libdir'
21398       hardcode_minus_L_F77=yes
21399       allow_undefined_flag_F77=unsupported
21400       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'
21401       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21402       ;;
21403
21404     osf3*)
21405       if test "$GCC" = yes; then
21406         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21407         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'
21408       else
21409         allow_undefined_flag_F77=' -expect_unresolved \*'
21410         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'
21411       fi
21412       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21413       hardcode_libdir_separator_F77=:
21414       ;;
21415
21416     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21417       if test "$GCC" = yes; then
21418         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21419         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'
21420         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21421       else
21422         allow_undefined_flag_F77=' -expect_unresolved \*'
21423         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'
21424         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~
21425         $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'
21426
21427         # Both c and cxx compiler support -rpath directly
21428         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21429       fi
21430       hardcode_libdir_separator_F77=:
21431       ;;
21432
21433     solaris*)
21434       no_undefined_flag_F77=' -z text'
21435       if test "$GCC" = yes; then
21436         wlarc='${wl}'
21437         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21438         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21439           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21440       else
21441         wlarc=''
21442         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21443         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21444         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21445       fi
21446       hardcode_libdir_flag_spec_F77='-R$libdir'
21447       hardcode_shlibpath_var_F77=no
21448       case $host_os in
21449       solaris2.[0-5] | solaris2.[0-5].*) ;;
21450       *)
21451         # The compiler driver will combine linker options so we
21452         # cannot just pass the convience library names through
21453         # without $wl, iff we do not link with $LD.
21454         # Luckily, gcc supports the same syntax we need for Sun Studio.
21455         # Supported since Solaris 2.6 (maybe 2.5.1?)
21456         case $wlarc in
21457         '')
21458           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21459         *)
21460           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' ;;
21461         esac ;;
21462       esac
21463       link_all_deplibs_F77=yes
21464       ;;
21465
21466     sunos4*)
21467       if test "x$host_vendor" = xsequent; then
21468         # Use $CC to link under sequent, because it throws in some extra .o
21469         # files that make .init and .fini sections work.
21470         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21471       else
21472         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21473       fi
21474       hardcode_libdir_flag_spec_F77='-L$libdir'
21475       hardcode_direct_F77=yes
21476       hardcode_minus_L_F77=yes
21477       hardcode_shlibpath_var_F77=no
21478       ;;
21479
21480     sysv4)
21481       case $host_vendor in
21482         sni)
21483           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21484           hardcode_direct_F77=yes # is this really true???
21485         ;;
21486         siemens)
21487           ## LD is ld it makes a PLAMLIB
21488           ## CC just makes a GrossModule.
21489           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21490           reload_cmds_F77='$CC -r -o $output$reload_objs'
21491           hardcode_direct_F77=no
21492         ;;
21493         motorola)
21494           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21495           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21496         ;;
21497       esac
21498       runpath_var='LD_RUN_PATH'
21499       hardcode_shlibpath_var_F77=no
21500       ;;
21501
21502     sysv4.3*)
21503       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21504       hardcode_shlibpath_var_F77=no
21505       export_dynamic_flag_spec_F77='-Bexport'
21506       ;;
21507
21508     sysv4*MP*)
21509       if test -d /usr/nec; then
21510         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21511         hardcode_shlibpath_var_F77=no
21512         runpath_var=LD_RUN_PATH
21513         hardcode_runpath_var=yes
21514         ld_shlibs_F77=yes
21515       fi
21516       ;;
21517
21518     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21519       no_undefined_flag_F77='${wl}-z,text'
21520       archive_cmds_need_lc_F77=no
21521       hardcode_shlibpath_var_F77=no
21522       runpath_var='LD_RUN_PATH'
21523
21524       if test "$GCC" = yes; then
21525         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21526         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21527       else
21528         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21529         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21530       fi
21531       ;;
21532
21533     sysv5* | sco3.2v5* | sco5v6*)
21534       # Note: We can NOT use -z defs as we might desire, because we do not
21535       # link with -lc, and that would cause any symbols used from libc to
21536       # always be unresolved, which means just about no library would
21537       # ever link correctly.  If we're not using GNU ld we use -z text
21538       # though, which does catch some bad symbols but isn't as heavy-handed
21539       # as -z defs.
21540       no_undefined_flag_F77='${wl}-z,text'
21541       allow_undefined_flag_F77='${wl}-z,nodefs'
21542       archive_cmds_need_lc_F77=no
21543       hardcode_shlibpath_var_F77=no
21544       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21545       hardcode_libdir_separator_F77=':'
21546       link_all_deplibs_F77=yes
21547       export_dynamic_flag_spec_F77='${wl}-Bexport'
21548       runpath_var='LD_RUN_PATH'
21549
21550       if test "$GCC" = yes; then
21551         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21552         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21553       else
21554         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21555         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21556       fi
21557       ;;
21558
21559     uts4*)
21560       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21561       hardcode_libdir_flag_spec_F77='-L$libdir'
21562       hardcode_shlibpath_var_F77=no
21563       ;;
21564
21565     *)
21566       ld_shlibs_F77=no
21567       ;;
21568     esac
21569   fi
21570
21571 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21572 echo "${ECHO_T}$ld_shlibs_F77" >&6
21573 test "$ld_shlibs_F77" = no && can_build_shared=no
21574
21575 #
21576 # Do we need to explicitly link libc?
21577 #
21578 case "x$archive_cmds_need_lc_F77" in
21579 x|xyes)
21580   # Assume -lc should be added
21581   archive_cmds_need_lc_F77=yes
21582
21583   if test "$enable_shared" = yes && test "$GCC" = yes; then
21584     case $archive_cmds_F77 in
21585     *'~'*)
21586       # FIXME: we may have to deal with multi-command sequences.
21587       ;;
21588     '$CC '*)
21589       # Test whether the compiler implicitly links with -lc since on some
21590       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21591       # to ld, don't add -lc before -lgcc.
21592       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21593 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21594       $rm conftest*
21595       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21596
21597       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598   (eval $ac_compile) 2>&5
21599   ac_status=$?
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } 2>conftest.err; then
21602         soname=conftest
21603         lib=conftest
21604         libobjs=conftest.$ac_objext
21605         deplibs=
21606         wl=$lt_prog_compiler_wl_F77
21607         pic_flag=$lt_prog_compiler_pic_F77
21608         compiler_flags=-v
21609         linker_flags=-v
21610         verstring=
21611         output_objdir=.
21612         libname=conftest
21613         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21614         allow_undefined_flag_F77=
21615         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21616   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }
21620         then
21621           archive_cmds_need_lc_F77=no
21622         else
21623           archive_cmds_need_lc_F77=yes
21624         fi
21625         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21626       else
21627         cat conftest.err 1>&5
21628       fi
21629       $rm conftest*
21630       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21631 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21632       ;;
21633     esac
21634   fi
21635   ;;
21636 esac
21637
21638 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21639 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21640 library_names_spec=
21641 libname_spec='lib$name'
21642 soname_spec=
21643 shrext_cmds=".so"
21644 postinstall_cmds=
21645 postuninstall_cmds=
21646 finish_cmds=
21647 finish_eval=
21648 shlibpath_var=
21649 shlibpath_overrides_runpath=unknown
21650 version_type=none
21651 dynamic_linker="$host_os ld.so"
21652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21653 if test "$GCC" = yes; then
21654   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21655   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21656     # if the path contains ";" then we assume it to be the separator
21657     # otherwise default to the standard path separator (i.e. ":") - it is
21658     # assumed that no part of a normal pathname contains ";" but that should
21659     # okay in the real world where ";" in dirpaths is itself problematic.
21660     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21661   else
21662     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21663   fi
21664 else
21665   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21666 fi
21667 need_lib_prefix=unknown
21668 hardcode_into_libs=no
21669
21670 # when you set need_version to no, make sure it does not cause -set_version
21671 # flags to be left without arguments
21672 need_version=unknown
21673
21674 case $host_os in
21675 aix3*)
21676   version_type=linux
21677   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21678   shlibpath_var=LIBPATH
21679
21680   # AIX 3 has no versioning support, so we append a major version to the name.
21681   soname_spec='${libname}${release}${shared_ext}$major'
21682   ;;
21683
21684 aix4* | aix5*)
21685   version_type=linux
21686   need_lib_prefix=no
21687   need_version=no
21688   hardcode_into_libs=yes
21689   if test "$host_cpu" = ia64; then
21690     # AIX 5 supports IA64
21691     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21692     shlibpath_var=LD_LIBRARY_PATH
21693   else
21694     # With GCC up to 2.95.x, collect2 would create an import file
21695     # for dependence libraries.  The import file would start with
21696     # the line `#! .'.  This would cause the generated library to
21697     # depend on `.', always an invalid library.  This was fixed in
21698     # development snapshots of GCC prior to 3.0.
21699     case $host_os in
21700       aix4 | aix4.[01] | aix4.[01].*)
21701       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21702            echo ' yes '
21703            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21704         :
21705       else
21706         can_build_shared=no
21707       fi
21708       ;;
21709     esac
21710     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21711     # soname into executable. Probably we can add versioning support to
21712     # collect2, so additional links can be useful in future.
21713     if test "$aix_use_runtimelinking" = yes; then
21714       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21715       # instead of lib<name>.a to let people know that these are not
21716       # typical AIX shared libraries.
21717       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21718     else
21719       # We preserve .a as extension for shared libraries through AIX4.2
21720       # and later when we are not doing run time linking.
21721       library_names_spec='${libname}${release}.a $libname.a'
21722       soname_spec='${libname}${release}${shared_ext}$major'
21723     fi
21724     shlibpath_var=LIBPATH
21725   fi
21726   ;;
21727
21728 amigaos*)
21729   library_names_spec='$libname.ixlibrary $libname.a'
21730   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21731   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'
21732   ;;
21733
21734 beos*)
21735   library_names_spec='${libname}${shared_ext}'
21736   dynamic_linker="$host_os ld.so"
21737   shlibpath_var=LIBRARY_PATH
21738   ;;
21739
21740 bsdi[45]*)
21741   version_type=linux
21742   need_version=no
21743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21744   soname_spec='${libname}${release}${shared_ext}$major'
21745   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21746   shlibpath_var=LD_LIBRARY_PATH
21747   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21748   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21749   # the default ld.so.conf also contains /usr/contrib/lib and
21750   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21751   # libtool to hard-code these into programs
21752   ;;
21753
21754 cygwin* | mingw* | pw32*)
21755   version_type=windows
21756   shrext_cmds=".dll"
21757   need_version=no
21758   need_lib_prefix=no
21759
21760   case $GCC,$host_os in
21761   yes,cygwin* | yes,mingw* | yes,pw32*)
21762     library_names_spec='$libname.dll.a'
21763     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21764     postinstall_cmds='base_file=`basename \${file}`~
21765       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21766       dldir=$destdir/`dirname \$dlpath`~
21767       test -d \$dldir || mkdir -p \$dldir~
21768       $install_prog $dir/$dlname \$dldir/$dlname~
21769       chmod a+x \$dldir/$dlname'
21770     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21771       dlpath=$dir/\$dldll~
21772        $rm \$dlpath'
21773     shlibpath_overrides_runpath=yes
21774
21775     case $host_os in
21776     cygwin*)
21777       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21778       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21779       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21780       ;;
21781     mingw*)
21782       # MinGW DLLs use traditional 'lib' prefix
21783       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21784       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21785       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21786         # It is most probably a Windows format PATH printed by
21787         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21788         # path with ; separators, and with drive letters. We can handle the
21789         # drive letters (cygwin fileutils understands them), so leave them,
21790         # especially as we might pass files found there to a mingw objdump,
21791         # which wouldn't understand a cygwinified path. Ahh.
21792         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21793       else
21794         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21795       fi
21796       ;;
21797     pw32*)
21798       # pw32 DLLs use 'pw' prefix rather than 'lib'
21799       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21800       ;;
21801     esac
21802     ;;
21803
21804   *)
21805     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21806     ;;
21807   esac
21808   dynamic_linker='Win32 ld.exe'
21809   # FIXME: first we should search . and the directory the executable is in
21810   shlibpath_var=PATH
21811   ;;
21812
21813 darwin* | rhapsody*)
21814   dynamic_linker="$host_os dyld"
21815   version_type=darwin
21816   need_lib_prefix=no
21817   need_version=no
21818   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21819   soname_spec='${libname}${release}${major}$shared_ext'
21820   shlibpath_overrides_runpath=yes
21821   shlibpath_var=DYLD_LIBRARY_PATH
21822   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21823   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21824   if test "$GCC" = yes; then
21825     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"`
21826   else
21827     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21828   fi
21829   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21830   ;;
21831
21832 dgux*)
21833   version_type=linux
21834   need_lib_prefix=no
21835   need_version=no
21836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21837   soname_spec='${libname}${release}${shared_ext}$major'
21838   shlibpath_var=LD_LIBRARY_PATH
21839   ;;
21840
21841 freebsd1*)
21842   dynamic_linker=no
21843   ;;
21844
21845 kfreebsd*-gnu)
21846   version_type=linux
21847   need_lib_prefix=no
21848   need_version=no
21849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21850   soname_spec='${libname}${release}${shared_ext}$major'
21851   shlibpath_var=LD_LIBRARY_PATH
21852   shlibpath_overrides_runpath=no
21853   hardcode_into_libs=yes
21854   dynamic_linker='GNU ld.so'
21855   ;;
21856
21857 freebsd* | dragonfly*)
21858   # DragonFly does not have aout.  When/if they implement a new
21859   # versioning mechanism, adjust this.
21860   if test -x /usr/bin/objformat; then
21861     objformat=`/usr/bin/objformat`
21862   else
21863     case $host_os in
21864     freebsd[123]*) objformat=aout ;;
21865     *) objformat=elf ;;
21866     esac
21867   fi
21868   version_type=freebsd-$objformat
21869   case $version_type in
21870     freebsd-elf*)
21871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21872       need_version=no
21873       need_lib_prefix=no
21874       ;;
21875     freebsd-*)
21876       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21877       need_version=yes
21878       ;;
21879   esac
21880   shlibpath_var=LD_LIBRARY_PATH
21881   case $host_os in
21882   freebsd2*)
21883     shlibpath_overrides_runpath=yes
21884     ;;
21885   freebsd3.[01]* | freebsdelf3.[01]*)
21886     shlibpath_overrides_runpath=yes
21887     hardcode_into_libs=yes
21888     ;;
21889   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21890   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21891     shlibpath_overrides_runpath=no
21892     hardcode_into_libs=yes
21893     ;;
21894   freebsd*) # from 4.6 on
21895     shlibpath_overrides_runpath=yes
21896     hardcode_into_libs=yes
21897     ;;
21898   esac
21899   ;;
21900
21901 gnu*)
21902   version_type=linux
21903   need_lib_prefix=no
21904   need_version=no
21905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21906   soname_spec='${libname}${release}${shared_ext}$major'
21907   shlibpath_var=LD_LIBRARY_PATH
21908   hardcode_into_libs=yes
21909   ;;
21910
21911 hpux9* | hpux10* | hpux11*)
21912   # Give a soname corresponding to the major version so that dld.sl refuses to
21913   # link against other versions.
21914   version_type=sunos
21915   need_lib_prefix=no
21916   need_version=no
21917   case $host_cpu in
21918   ia64*)
21919     shrext_cmds='.so'
21920     hardcode_into_libs=yes
21921     dynamic_linker="$host_os dld.so"
21922     shlibpath_var=LD_LIBRARY_PATH
21923     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21925     soname_spec='${libname}${release}${shared_ext}$major'
21926     if test "X$HPUX_IA64_MODE" = X32; then
21927       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21928     else
21929       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21930     fi
21931     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21932     ;;
21933    hppa*64*)
21934      shrext_cmds='.sl'
21935      hardcode_into_libs=yes
21936      dynamic_linker="$host_os dld.sl"
21937      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21938      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21939      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21940      soname_spec='${libname}${release}${shared_ext}$major'
21941      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21942      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21943      ;;
21944    *)
21945     shrext_cmds='.sl'
21946     dynamic_linker="$host_os dld.sl"
21947     shlibpath_var=SHLIB_PATH
21948     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21950     soname_spec='${libname}${release}${shared_ext}$major'
21951     ;;
21952   esac
21953   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21954   postinstall_cmds='chmod 555 $lib'
21955   ;;
21956
21957 interix3*)
21958   version_type=linux
21959   need_lib_prefix=no
21960   need_version=no
21961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21962   soname_spec='${libname}${release}${shared_ext}$major'
21963   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21964   shlibpath_var=LD_LIBRARY_PATH
21965   shlibpath_overrides_runpath=no
21966   hardcode_into_libs=yes
21967   ;;
21968
21969 irix5* | irix6* | nonstopux*)
21970   case $host_os in
21971     nonstopux*) version_type=nonstopux ;;
21972     *)
21973         if test "$lt_cv_prog_gnu_ld" = yes; then
21974                 version_type=linux
21975         else
21976                 version_type=irix
21977         fi ;;
21978   esac
21979   need_lib_prefix=no
21980   need_version=no
21981   soname_spec='${libname}${release}${shared_ext}$major'
21982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21983   case $host_os in
21984   irix5* | nonstopux*)
21985     libsuff= shlibsuff=
21986     ;;
21987   *)
21988     case $LD in # libtool.m4 will add one of these switches to LD
21989     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21990       libsuff= shlibsuff= libmagic=32-bit;;
21991     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21992       libsuff=32 shlibsuff=N32 libmagic=N32;;
21993     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21994       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21995     *) libsuff= shlibsuff= libmagic=never-match;;
21996     esac
21997     ;;
21998   esac
21999   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22000   shlibpath_overrides_runpath=no
22001   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22002   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22003   hardcode_into_libs=yes
22004   ;;
22005
22006 # No shared lib support for Linux oldld, aout, or coff.
22007 linux*oldld* | linux*aout* | linux*coff*)
22008   dynamic_linker=no
22009   ;;
22010
22011 # This must be Linux ELF.
22012 linux*)
22013   version_type=linux
22014   need_lib_prefix=no
22015   need_version=no
22016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22017   soname_spec='${libname}${release}${shared_ext}$major'
22018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22019   shlibpath_var=LD_LIBRARY_PATH
22020   shlibpath_overrides_runpath=no
22021   # This implies no fast_install, which is unacceptable.
22022   # Some rework will be needed to allow for fast_install
22023   # before this can be enabled.
22024   hardcode_into_libs=yes
22025
22026   # find out which ABI we are using
22027   libsuff=
22028   case "$host_cpu" in
22029   x86_64*|s390x*|powerpc64*)
22030     echo '#line 22030 "configure"' > conftest.$ac_ext
22031     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032   (eval $ac_compile) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; then
22036       case `/usr/bin/file conftest.$ac_objext` in
22037       *64-bit*)
22038         libsuff=64
22039         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22040         ;;
22041       esac
22042     fi
22043     rm -rf conftest*
22044     ;;
22045   esac
22046
22047   # Append ld.so.conf contents to the search path
22048   if test -f /etc/ld.so.conf; then
22049     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' ' '`
22050     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22051   fi
22052
22053   # We used to test for /lib/ld.so.1 and disable shared libraries on
22054   # powerpc, because MkLinux only supported shared libraries with the
22055   # GNU dynamic linker.  Since this was broken with cross compilers,
22056   # most powerpc-linux boxes support dynamic linking these days and
22057   # people can always --disable-shared, the test was removed, and we
22058   # assume the GNU/Linux dynamic linker is in use.
22059   dynamic_linker='GNU/Linux ld.so'
22060   ;;
22061
22062 knetbsd*-gnu)
22063   version_type=linux
22064   need_lib_prefix=no
22065   need_version=no
22066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22067   soname_spec='${libname}${release}${shared_ext}$major'
22068   shlibpath_var=LD_LIBRARY_PATH
22069   shlibpath_overrides_runpath=no
22070   hardcode_into_libs=yes
22071   dynamic_linker='GNU ld.so'
22072   ;;
22073
22074 netbsd*)
22075   version_type=sunos
22076   need_lib_prefix=no
22077   need_version=no
22078   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22080     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22081     dynamic_linker='NetBSD (a.out) ld.so'
22082   else
22083     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22084     soname_spec='${libname}${release}${shared_ext}$major'
22085     dynamic_linker='NetBSD ld.elf_so'
22086   fi
22087   shlibpath_var=LD_LIBRARY_PATH
22088   shlibpath_overrides_runpath=yes
22089   hardcode_into_libs=yes
22090   ;;
22091
22092 newsos6)
22093   version_type=linux
22094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095   shlibpath_var=LD_LIBRARY_PATH
22096   shlibpath_overrides_runpath=yes
22097   ;;
22098
22099 nto-qnx*)
22100   version_type=linux
22101   need_lib_prefix=no
22102   need_version=no
22103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22104   soname_spec='${libname}${release}${shared_ext}$major'
22105   shlibpath_var=LD_LIBRARY_PATH
22106   shlibpath_overrides_runpath=yes
22107   ;;
22108
22109 openbsd*)
22110   version_type=sunos
22111   sys_lib_dlsearch_path_spec="/usr/lib"
22112   need_lib_prefix=no
22113   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22114   case $host_os in
22115     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22116     *)                         need_version=no  ;;
22117   esac
22118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22119   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22120   shlibpath_var=LD_LIBRARY_PATH
22121   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22122     case $host_os in
22123       openbsd2.[89] | openbsd2.[89].*)
22124         shlibpath_overrides_runpath=no
22125         ;;
22126       *)
22127         shlibpath_overrides_runpath=yes
22128         ;;
22129       esac
22130   else
22131     shlibpath_overrides_runpath=yes
22132   fi
22133   ;;
22134
22135 os2*)
22136   libname_spec='$name'
22137   shrext_cmds=".dll"
22138   need_lib_prefix=no
22139   library_names_spec='$libname${shared_ext} $libname.a'
22140   dynamic_linker='OS/2 ld.exe'
22141   shlibpath_var=LIBPATH
22142   ;;
22143
22144 osf3* | osf4* | osf5*)
22145   version_type=osf
22146   need_lib_prefix=no
22147   need_version=no
22148   soname_spec='${libname}${release}${shared_ext}$major'
22149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22150   shlibpath_var=LD_LIBRARY_PATH
22151   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22152   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22153   ;;
22154
22155 solaris*)
22156   version_type=linux
22157   need_lib_prefix=no
22158   need_version=no
22159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22160   soname_spec='${libname}${release}${shared_ext}$major'
22161   shlibpath_var=LD_LIBRARY_PATH
22162   shlibpath_overrides_runpath=yes
22163   hardcode_into_libs=yes
22164   # ldd complains unless libraries are executable
22165   postinstall_cmds='chmod +x $lib'
22166   ;;
22167
22168 sunos4*)
22169   version_type=sunos
22170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22171   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22172   shlibpath_var=LD_LIBRARY_PATH
22173   shlibpath_overrides_runpath=yes
22174   if test "$with_gnu_ld" = yes; then
22175     need_lib_prefix=no
22176   fi
22177   need_version=yes
22178   ;;
22179
22180 sysv4 | sysv4.3*)
22181   version_type=linux
22182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22183   soname_spec='${libname}${release}${shared_ext}$major'
22184   shlibpath_var=LD_LIBRARY_PATH
22185   case $host_vendor in
22186     sni)
22187       shlibpath_overrides_runpath=no
22188       need_lib_prefix=no
22189       export_dynamic_flag_spec='${wl}-Blargedynsym'
22190       runpath_var=LD_RUN_PATH
22191       ;;
22192     siemens)
22193       need_lib_prefix=no
22194       ;;
22195     motorola)
22196       need_lib_prefix=no
22197       need_version=no
22198       shlibpath_overrides_runpath=no
22199       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22200       ;;
22201   esac
22202   ;;
22203
22204 sysv4*MP*)
22205   if test -d /usr/nec ;then
22206     version_type=linux
22207     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22208     soname_spec='$libname${shared_ext}.$major'
22209     shlibpath_var=LD_LIBRARY_PATH
22210   fi
22211   ;;
22212
22213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22214   version_type=freebsd-elf
22215   need_lib_prefix=no
22216   need_version=no
22217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22218   soname_spec='${libname}${release}${shared_ext}$major'
22219   shlibpath_var=LD_LIBRARY_PATH
22220   hardcode_into_libs=yes
22221   if test "$with_gnu_ld" = yes; then
22222     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22223     shlibpath_overrides_runpath=no
22224   else
22225     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22226     shlibpath_overrides_runpath=yes
22227     case $host_os in
22228       sco3.2v5*)
22229         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22230         ;;
22231     esac
22232   fi
22233   sys_lib_dlsearch_path_spec='/usr/lib'
22234   ;;
22235
22236 uts4*)
22237   version_type=linux
22238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22239   soname_spec='${libname}${release}${shared_ext}$major'
22240   shlibpath_var=LD_LIBRARY_PATH
22241   ;;
22242
22243 *)
22244   dynamic_linker=no
22245   ;;
22246 esac
22247 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22248 echo "${ECHO_T}$dynamic_linker" >&6
22249 test "$dynamic_linker" = no && can_build_shared=no
22250
22251 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22252 if test "$GCC" = yes; then
22253   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22254 fi
22255
22256 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22257 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22258 hardcode_action_F77=
22259 if test -n "$hardcode_libdir_flag_spec_F77" || \
22260    test -n "$runpath_var_F77" || \
22261    test "X$hardcode_automatic_F77" = "Xyes" ; then
22262
22263   # We can hardcode non-existant directories.
22264   if test "$hardcode_direct_F77" != no &&
22265      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22266      # have to relink, otherwise we might link with an installed library
22267      # when we should be linking with a yet-to-be-installed one
22268      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22269      test "$hardcode_minus_L_F77" != no; then
22270     # Linking always hardcodes the temporary library directory.
22271     hardcode_action_F77=relink
22272   else
22273     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22274     hardcode_action_F77=immediate
22275   fi
22276 else
22277   # We cannot hardcode anything, or else we can only hardcode existing
22278   # directories.
22279   hardcode_action_F77=unsupported
22280 fi
22281 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22282 echo "${ECHO_T}$hardcode_action_F77" >&6
22283
22284 if test "$hardcode_action_F77" = relink; then
22285   # Fast installation is not supported
22286   enable_fast_install=no
22287 elif test "$shlibpath_overrides_runpath" = yes ||
22288      test "$enable_shared" = no; then
22289   # Fast installation is not necessary
22290   enable_fast_install=needless
22291 fi
22292
22293
22294 # The else clause should only fire when bootstrapping the
22295 # libtool distribution, otherwise you forgot to ship ltmain.sh
22296 # with your package, and you will get complaints that there are
22297 # no rules to generate ltmain.sh.
22298 if test -f "$ltmain"; then
22299   # See if we are running on zsh, and set the options which allow our commands through
22300   # without removal of \ escapes.
22301   if test -n "${ZSH_VERSION+set}" ; then
22302     setopt NO_GLOB_SUBST
22303   fi
22304   # Now quote all the things that may contain metacharacters while being
22305   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22306   # variables and quote the copies for generation of the libtool script.
22307   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22308     SED SHELL STRIP \
22309     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22310     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22311     deplibs_check_method reload_flag reload_cmds need_locks \
22312     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22313     lt_cv_sys_global_symbol_to_c_name_address \
22314     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22315     old_postinstall_cmds old_postuninstall_cmds \
22316     compiler_F77 \
22317     CC_F77 \
22318     LD_F77 \
22319     lt_prog_compiler_wl_F77 \
22320     lt_prog_compiler_pic_F77 \
22321     lt_prog_compiler_static_F77 \
22322     lt_prog_compiler_no_builtin_flag_F77 \
22323     export_dynamic_flag_spec_F77 \
22324     thread_safe_flag_spec_F77 \
22325     whole_archive_flag_spec_F77 \
22326     enable_shared_with_static_runtimes_F77 \
22327     old_archive_cmds_F77 \
22328     old_archive_from_new_cmds_F77 \
22329     predep_objects_F77 \
22330     postdep_objects_F77 \
22331     predeps_F77 \
22332     postdeps_F77 \
22333     compiler_lib_search_path_F77 \
22334     archive_cmds_F77 \
22335     archive_expsym_cmds_F77 \
22336     postinstall_cmds_F77 \
22337     postuninstall_cmds_F77 \
22338     old_archive_from_expsyms_cmds_F77 \
22339     allow_undefined_flag_F77 \
22340     no_undefined_flag_F77 \
22341     export_symbols_cmds_F77 \
22342     hardcode_libdir_flag_spec_F77 \
22343     hardcode_libdir_flag_spec_ld_F77 \
22344     hardcode_libdir_separator_F77 \
22345     hardcode_automatic_F77 \
22346     module_cmds_F77 \
22347     module_expsym_cmds_F77 \
22348     lt_cv_prog_compiler_c_o_F77 \
22349     exclude_expsyms_F77 \
22350     include_expsyms_F77; do
22351
22352     case $var in
22353     old_archive_cmds_F77 | \
22354     old_archive_from_new_cmds_F77 | \
22355     archive_cmds_F77 | \
22356     archive_expsym_cmds_F77 | \
22357     module_cmds_F77 | \
22358     module_expsym_cmds_F77 | \
22359     old_archive_from_expsyms_cmds_F77 | \
22360     export_symbols_cmds_F77 | \
22361     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22362     postinstall_cmds | postuninstall_cmds | \
22363     old_postinstall_cmds | old_postuninstall_cmds | \
22364     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22365       # Double-quote double-evaled strings.
22366       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22367       ;;
22368     *)
22369       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22370       ;;
22371     esac
22372   done
22373
22374   case $lt_echo in
22375   *'\$0 --fallback-echo"')
22376     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22377     ;;
22378   esac
22379
22380 cfgfile="$ofile"
22381
22382   cat <<__EOF__ >> "$cfgfile"
22383 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22384
22385 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22386
22387 # Shell to use when invoking shell scripts.
22388 SHELL=$lt_SHELL
22389
22390 # Whether or not to build shared libraries.
22391 build_libtool_libs=$enable_shared
22392
22393 # Whether or not to build static libraries.
22394 build_old_libs=$enable_static
22395
22396 # Whether or not to add -lc for building shared libraries.
22397 build_libtool_need_lc=$archive_cmds_need_lc_F77
22398
22399 # Whether or not to disallow shared libs when runtime libs are static
22400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22401
22402 # Whether or not to optimize for fast installation.
22403 fast_install=$enable_fast_install
22404
22405 # The host system.
22406 host_alias=$host_alias
22407 host=$host
22408 host_os=$host_os
22409
22410 # The build system.
22411 build_alias=$build_alias
22412 build=$build
22413 build_os=$build_os
22414
22415 # An echo program that does not interpret backslashes.
22416 echo=$lt_echo
22417
22418 # The archiver.
22419 AR=$lt_AR
22420 AR_FLAGS=$lt_AR_FLAGS
22421
22422 # A C compiler.
22423 LTCC=$lt_LTCC
22424
22425 # LTCC compiler flags.
22426 LTCFLAGS=$lt_LTCFLAGS
22427
22428 # A language-specific compiler.
22429 CC=$lt_compiler_F77
22430
22431 # Is the compiler the GNU C compiler?
22432 with_gcc=$GCC_F77
22433
22434 # An ERE matcher.
22435 EGREP=$lt_EGREP
22436
22437 # The linker used to build libraries.
22438 LD=$lt_LD_F77
22439
22440 # Whether we need hard or soft links.
22441 LN_S=$lt_LN_S
22442
22443 # A BSD-compatible nm program.
22444 NM=$lt_NM
22445
22446 # A symbol stripping program
22447 STRIP=$lt_STRIP
22448
22449 # Used to examine libraries when file_magic_cmd begins "file"
22450 MAGIC_CMD=$MAGIC_CMD
22451
22452 # Used on cygwin: DLL creation program.
22453 DLLTOOL="$DLLTOOL"
22454
22455 # Used on cygwin: object dumper.
22456 OBJDUMP="$OBJDUMP"
22457
22458 # Used on cygwin: assembler.
22459 AS="$AS"
22460
22461 # The name of the directory that contains temporary libtool files.
22462 objdir=$objdir
22463
22464 # How to create reloadable object files.
22465 reload_flag=$lt_reload_flag
22466 reload_cmds=$lt_reload_cmds
22467
22468 # How to pass a linker flag through the compiler.
22469 wl=$lt_lt_prog_compiler_wl_F77
22470
22471 # Object file suffix (normally "o").
22472 objext="$ac_objext"
22473
22474 # Old archive suffix (normally "a").
22475 libext="$libext"
22476
22477 # Shared library suffix (normally ".so").
22478 shrext_cmds='$shrext_cmds'
22479
22480 # Executable file suffix (normally "").
22481 exeext="$exeext"
22482
22483 # Additional compiler flags for building library objects.
22484 pic_flag=$lt_lt_prog_compiler_pic_F77
22485 pic_mode=$pic_mode
22486
22487 # What is the maximum length of a command?
22488 max_cmd_len=$lt_cv_sys_max_cmd_len
22489
22490 # Does compiler simultaneously support -c and -o options?
22491 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22492
22493 # Must we lock files when doing compilation?
22494 need_locks=$lt_need_locks
22495
22496 # Do we need the lib prefix for modules?
22497 need_lib_prefix=$need_lib_prefix
22498
22499 # Do we need a version for libraries?
22500 need_version=$need_version
22501
22502 # Whether dlopen is supported.
22503 dlopen_support=$enable_dlopen
22504
22505 # Whether dlopen of programs is supported.
22506 dlopen_self=$enable_dlopen_self
22507
22508 # Whether dlopen of statically linked programs is supported.
22509 dlopen_self_static=$enable_dlopen_self_static
22510
22511 # Compiler flag to prevent dynamic linking.
22512 link_static_flag=$lt_lt_prog_compiler_static_F77
22513
22514 # Compiler flag to turn off builtin functions.
22515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22516
22517 # Compiler flag to allow reflexive dlopens.
22518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22519
22520 # Compiler flag to generate shared objects directly from archives.
22521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22522
22523 # Compiler flag to generate thread-safe objects.
22524 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22525
22526 # Library versioning type.
22527 version_type=$version_type
22528
22529 # Format of library name prefix.
22530 libname_spec=$lt_libname_spec
22531
22532 # List of archive names.  First name is the real one, the rest are links.
22533 # The last name is the one that the linker finds with -lNAME.
22534 library_names_spec=$lt_library_names_spec
22535
22536 # The coded name of the library, if different from the real name.
22537 soname_spec=$lt_soname_spec
22538
22539 # Commands used to build and install an old-style archive.
22540 RANLIB=$lt_RANLIB
22541 old_archive_cmds=$lt_old_archive_cmds_F77
22542 old_postinstall_cmds=$lt_old_postinstall_cmds
22543 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22544
22545 # Create an old-style archive from a shared archive.
22546 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22547
22548 # Create a temporary old-style archive to link instead of a shared archive.
22549 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22550
22551 # Commands used to build and install a shared archive.
22552 archive_cmds=$lt_archive_cmds_F77
22553 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22554 postinstall_cmds=$lt_postinstall_cmds
22555 postuninstall_cmds=$lt_postuninstall_cmds
22556
22557 # Commands used to build a loadable module (assumed same as above if empty)
22558 module_cmds=$lt_module_cmds_F77
22559 module_expsym_cmds=$lt_module_expsym_cmds_F77
22560
22561 # Commands to strip libraries.
22562 old_striplib=$lt_old_striplib
22563 striplib=$lt_striplib
22564
22565 # Dependencies to place before the objects being linked to create a
22566 # shared library.
22567 predep_objects=$lt_predep_objects_F77
22568
22569 # Dependencies to place after the objects being linked to create a
22570 # shared library.
22571 postdep_objects=$lt_postdep_objects_F77
22572
22573 # Dependencies to place before the objects being linked to create a
22574 # shared library.
22575 predeps=$lt_predeps_F77
22576
22577 # Dependencies to place after the objects being linked to create a
22578 # shared library.
22579 postdeps=$lt_postdeps_F77
22580
22581 # The library search path used internally by the compiler when linking
22582 # a shared library.
22583 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22584
22585 # Method to check whether dependent libraries are shared objects.
22586 deplibs_check_method=$lt_deplibs_check_method
22587
22588 # Command to use when deplibs_check_method == file_magic.
22589 file_magic_cmd=$lt_file_magic_cmd
22590
22591 # Flag that allows shared libraries with undefined symbols to be built.
22592 allow_undefined_flag=$lt_allow_undefined_flag_F77
22593
22594 # Flag that forces no undefined symbols.
22595 no_undefined_flag=$lt_no_undefined_flag_F77
22596
22597 # Commands used to finish a libtool library installation in a directory.
22598 finish_cmds=$lt_finish_cmds
22599
22600 # Same as above, but a single script fragment to be evaled but not shown.
22601 finish_eval=$lt_finish_eval
22602
22603 # Take the output of nm and produce a listing of raw symbols and C names.
22604 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22605
22606 # Transform the output of nm in a proper C declaration
22607 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22608
22609 # Transform the output of nm in a C name address pair
22610 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22611
22612 # This is the shared library runtime path variable.
22613 runpath_var=$runpath_var
22614
22615 # This is the shared library path variable.
22616 shlibpath_var=$shlibpath_var
22617
22618 # Is shlibpath searched before the hard-coded library search path?
22619 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22620
22621 # How to hardcode a shared library path into an executable.
22622 hardcode_action=$hardcode_action_F77
22623
22624 # Whether we should hardcode library paths into libraries.
22625 hardcode_into_libs=$hardcode_into_libs
22626
22627 # Flag to hardcode \$libdir into a binary during linking.
22628 # This must work even if \$libdir does not exist.
22629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22630
22631 # If ld is used when linking, flag to hardcode \$libdir into
22632 # a binary during linking. This must work even if \$libdir does
22633 # not exist.
22634 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22635
22636 # Whether we need a single -rpath flag with a separated argument.
22637 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22638
22639 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22640 # resulting binary.
22641 hardcode_direct=$hardcode_direct_F77
22642
22643 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22644 # resulting binary.
22645 hardcode_minus_L=$hardcode_minus_L_F77
22646
22647 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22648 # the resulting binary.
22649 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22650
22651 # Set to yes if building a shared library automatically hardcodes DIR into the library
22652 # and all subsequent libraries and executables linked against it.
22653 hardcode_automatic=$hardcode_automatic_F77
22654
22655 # Variables whose values should be saved in libtool wrapper scripts and
22656 # restored at relink time.
22657 variables_saved_for_relink="$variables_saved_for_relink"
22658
22659 # Whether libtool must link a program against all its dependency libraries.
22660 link_all_deplibs=$link_all_deplibs_F77
22661
22662 # Compile-time system search path for libraries
22663 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22664
22665 # Run-time system search path for libraries
22666 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22667
22668 # Fix the shell variable \$srcfile for the compiler.
22669 fix_srcfile_path="$fix_srcfile_path_F77"
22670
22671 # Set to yes if exported symbols are required.
22672 always_export_symbols=$always_export_symbols_F77
22673
22674 # The commands to list exported symbols.
22675 export_symbols_cmds=$lt_export_symbols_cmds_F77
22676
22677 # The commands to extract the exported symbol list from a shared archive.
22678 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22679
22680 # Symbols that should not be listed in the preloaded symbols.
22681 exclude_expsyms=$lt_exclude_expsyms_F77
22682
22683 # Symbols that must always be exported.
22684 include_expsyms=$lt_include_expsyms_F77
22685
22686 # ### END LIBTOOL TAG CONFIG: $tagname
22687
22688 __EOF__
22689
22690
22691 else
22692   # If there is no Makefile yet, we rely on a make rule to execute
22693   # `config.status --recheck' to rerun these tests and create the
22694   # libtool script then.
22695   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22696   if test -f "$ltmain_in"; then
22697     test -f Makefile && make "$ltmain"
22698   fi
22699 fi
22700
22701
22702 ac_ext=c
22703 ac_cpp='$CPP $CPPFLAGS'
22704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22707
22708 CC="$lt_save_CC"
22709
22710         else
22711           tagname=""
22712         fi
22713         ;;
22714
22715       GCJ)
22716         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22717
22718
22719
22720 # Source file extension for Java test sources.
22721 ac_ext=java
22722
22723 # Object file extension for compiled Java test sources.
22724 objext=o
22725 objext_GCJ=$objext
22726
22727 # Code to be used in simple compile tests
22728 lt_simple_compile_test_code="class foo {}\n"
22729
22730 # Code to be used in simple link tests
22731 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22732
22733 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22734
22735 # If no C compiler was specified, use CC.
22736 LTCC=${LTCC-"$CC"}
22737
22738 # If no C compiler flags were specified, use CFLAGS.
22739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22740
22741 # Allow CC to be a program name with arguments.
22742 compiler=$CC
22743
22744
22745 # save warnings/boilerplate of simple test code
22746 ac_outfile=conftest.$ac_objext
22747 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22749 _lt_compiler_boilerplate=`cat conftest.err`
22750 $rm conftest*
22751
22752 ac_outfile=conftest.$ac_objext
22753 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22755 _lt_linker_boilerplate=`cat conftest.err`
22756 $rm conftest*
22757
22758
22759 # Allow CC to be a program name with arguments.
22760 lt_save_CC="$CC"
22761 CC=${GCJ-"gcj"}
22762 compiler=$CC
22763 compiler_GCJ=$CC
22764 for cc_temp in $compiler""; do
22765   case $cc_temp in
22766     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22767     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22768     \-*) ;;
22769     *) break;;
22770   esac
22771 done
22772 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22773
22774
22775 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22776 archive_cmds_need_lc_GCJ=no
22777
22778 old_archive_cmds_GCJ=$old_archive_cmds
22779
22780
22781 lt_prog_compiler_no_builtin_flag_GCJ=
22782
22783 if test "$GCC" = yes; then
22784   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22785
22786
22787 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22788 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22789 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   lt_cv_prog_compiler_rtti_exceptions=no
22793   ac_outfile=conftest.$ac_objext
22794    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22795    lt_compiler_flag="-fno-rtti -fno-exceptions"
22796    # Insert the option either (1) after the last *FLAGS variable, or
22797    # (2) before a word containing "conftest.", or (3) at the end.
22798    # Note that $ac_compile itself does not contain backslashes and begins
22799    # with a dollar sign (not a hyphen), so the echo should work correctly.
22800    # The option is referenced via a variable to avoid confusing sed.
22801    lt_compile=`echo "$ac_compile" | $SED \
22802    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22804    -e 's:$: $lt_compiler_flag:'`
22805    (eval echo "\"\$as_me:22805: $lt_compile\"" >&5)
22806    (eval "$lt_compile" 2>conftest.err)
22807    ac_status=$?
22808    cat conftest.err >&5
22809    echo "$as_me:22809: \$? = $ac_status" >&5
22810    if (exit $ac_status) && test -s "$ac_outfile"; then
22811      # The compiler can only warn and ignore the option if not recognized
22812      # So say no if there are warnings other than the usual output.
22813      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22814      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22815      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22816        lt_cv_prog_compiler_rtti_exceptions=yes
22817      fi
22818    fi
22819    $rm conftest*
22820
22821 fi
22822 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22823 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22824
22825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22826     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22827 else
22828     :
22829 fi
22830
22831 fi
22832
22833 lt_prog_compiler_wl_GCJ=
22834 lt_prog_compiler_pic_GCJ=
22835 lt_prog_compiler_static_GCJ=
22836
22837 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22838 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22839
22840   if test "$GCC" = yes; then
22841     lt_prog_compiler_wl_GCJ='-Wl,'
22842     lt_prog_compiler_static_GCJ='-static'
22843
22844     case $host_os in
22845       aix*)
22846       # All AIX code is PIC.
22847       if test "$host_cpu" = ia64; then
22848         # AIX 5 now supports IA64 processor
22849         lt_prog_compiler_static_GCJ='-Bstatic'
22850       fi
22851       ;;
22852
22853     amigaos*)
22854       # FIXME: we need at least 68020 code to build shared libraries, but
22855       # adding the `-m68020' flag to GCC prevents building anything better,
22856       # like `-m68040'.
22857       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22858       ;;
22859
22860     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22861       # PIC is the default for these OSes.
22862       ;;
22863
22864     mingw* | pw32* | os2*)
22865       # This hack is so that the source file can tell whether it is being
22866       # built for inclusion in a dll (and should export symbols for example).
22867       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22868       ;;
22869
22870     darwin* | rhapsody*)
22871       # PIC is the default on this platform
22872       # Common symbols not allowed in MH_DYLIB files
22873       lt_prog_compiler_pic_GCJ='-fno-common'
22874       ;;
22875
22876     interix3*)
22877       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22878       # Instead, we relocate shared libraries at runtime.
22879       ;;
22880
22881     msdosdjgpp*)
22882       # Just because we use GCC doesn't mean we suddenly get shared libraries
22883       # on systems that don't support them.
22884       lt_prog_compiler_can_build_shared_GCJ=no
22885       enable_shared=no
22886       ;;
22887
22888     sysv4*MP*)
22889       if test -d /usr/nec; then
22890         lt_prog_compiler_pic_GCJ=-Kconform_pic
22891       fi
22892       ;;
22893
22894     hpux*)
22895       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22896       # not for PA HP-UX.
22897       case $host_cpu in
22898       hppa*64*|ia64*)
22899         # +Z the default
22900         ;;
22901       *)
22902         lt_prog_compiler_pic_GCJ='-fPIC'
22903         ;;
22904       esac
22905       ;;
22906
22907     *)
22908       lt_prog_compiler_pic_GCJ='-fPIC'
22909       ;;
22910     esac
22911   else
22912     # PORTME Check for flag to pass linker flags through the system compiler.
22913     case $host_os in
22914     aix*)
22915       lt_prog_compiler_wl_GCJ='-Wl,'
22916       if test "$host_cpu" = ia64; then
22917         # AIX 5 now supports IA64 processor
22918         lt_prog_compiler_static_GCJ='-Bstatic'
22919       else
22920         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22921       fi
22922       ;;
22923       darwin*)
22924         # PIC is the default on this platform
22925         # Common symbols not allowed in MH_DYLIB files
22926        case $cc_basename in
22927          xlc*)
22928          lt_prog_compiler_pic_GCJ='-qnocommon'
22929          lt_prog_compiler_wl_GCJ='-Wl,'
22930          ;;
22931        esac
22932        ;;
22933
22934     mingw* | pw32* | os2*)
22935       # This hack is so that the source file can tell whether it is being
22936       # built for inclusion in a dll (and should export symbols for example).
22937       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22938       ;;
22939
22940     hpux9* | hpux10* | hpux11*)
22941       lt_prog_compiler_wl_GCJ='-Wl,'
22942       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22943       # not for PA HP-UX.
22944       case $host_cpu in
22945       hppa*64*|ia64*)
22946         # +Z the default
22947         ;;
22948       *)
22949         lt_prog_compiler_pic_GCJ='+Z'
22950         ;;
22951       esac
22952       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22953       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22954       ;;
22955
22956     irix5* | irix6* | nonstopux*)
22957       lt_prog_compiler_wl_GCJ='-Wl,'
22958       # PIC (with -KPIC) is the default.
22959       lt_prog_compiler_static_GCJ='-non_shared'
22960       ;;
22961
22962     newsos6)
22963       lt_prog_compiler_pic_GCJ='-KPIC'
22964       lt_prog_compiler_static_GCJ='-Bstatic'
22965       ;;
22966
22967     linux*)
22968       case $cc_basename in
22969       icc* | ecc*)
22970         lt_prog_compiler_wl_GCJ='-Wl,'
22971         lt_prog_compiler_pic_GCJ='-KPIC'
22972         lt_prog_compiler_static_GCJ='-static'
22973         ;;
22974       pgcc* | pgf77* | pgf90* | pgf95*)
22975         # Portland Group compilers (*not* the Pentium gcc compiler,
22976         # which looks to be a dead project)
22977         lt_prog_compiler_wl_GCJ='-Wl,'
22978         lt_prog_compiler_pic_GCJ='-fpic'
22979         lt_prog_compiler_static_GCJ='-Bstatic'
22980         ;;
22981       ccc*)
22982         lt_prog_compiler_wl_GCJ='-Wl,'
22983         # All Alpha code is PIC.
22984         lt_prog_compiler_static_GCJ='-non_shared'
22985         ;;
22986       esac
22987       ;;
22988
22989     osf3* | osf4* | osf5*)
22990       lt_prog_compiler_wl_GCJ='-Wl,'
22991       # All OSF/1 code is PIC.
22992       lt_prog_compiler_static_GCJ='-non_shared'
22993       ;;
22994
22995     solaris*)
22996       lt_prog_compiler_pic_GCJ='-KPIC'
22997       lt_prog_compiler_static_GCJ='-Bstatic'
22998       case $cc_basename in
22999       f77* | f90* | f95*)
23000         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23001       *)
23002         lt_prog_compiler_wl_GCJ='-Wl,';;
23003       esac
23004       ;;
23005
23006     sunos4*)
23007       lt_prog_compiler_wl_GCJ='-Qoption ld '
23008       lt_prog_compiler_pic_GCJ='-PIC'
23009       lt_prog_compiler_static_GCJ='-Bstatic'
23010       ;;
23011
23012     sysv4 | sysv4.2uw2* | sysv4.3*)
23013       lt_prog_compiler_wl_GCJ='-Wl,'
23014       lt_prog_compiler_pic_GCJ='-KPIC'
23015       lt_prog_compiler_static_GCJ='-Bstatic'
23016       ;;
23017
23018     sysv4*MP*)
23019       if test -d /usr/nec ;then
23020         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23021         lt_prog_compiler_static_GCJ='-Bstatic'
23022       fi
23023       ;;
23024
23025     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23026       lt_prog_compiler_wl_GCJ='-Wl,'
23027       lt_prog_compiler_pic_GCJ='-KPIC'
23028       lt_prog_compiler_static_GCJ='-Bstatic'
23029       ;;
23030
23031     unicos*)
23032       lt_prog_compiler_wl_GCJ='-Wl,'
23033       lt_prog_compiler_can_build_shared_GCJ=no
23034       ;;
23035
23036     uts4*)
23037       lt_prog_compiler_pic_GCJ='-pic'
23038       lt_prog_compiler_static_GCJ='-Bstatic'
23039       ;;
23040
23041     *)
23042       lt_prog_compiler_can_build_shared_GCJ=no
23043       ;;
23044     esac
23045   fi
23046
23047 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23048 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
23049
23050 #
23051 # Check to make sure the PIC flag actually works.
23052 #
23053 if test -n "$lt_prog_compiler_pic_GCJ"; then
23054
23055 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23056 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
23057 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060   lt_prog_compiler_pic_works_GCJ=no
23061   ac_outfile=conftest.$ac_objext
23062    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23063    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23064    # Insert the option either (1) after the last *FLAGS variable, or
23065    # (2) before a word containing "conftest.", or (3) at the end.
23066    # Note that $ac_compile itself does not contain backslashes and begins
23067    # with a dollar sign (not a hyphen), so the echo should work correctly.
23068    # The option is referenced via a variable to avoid confusing sed.
23069    lt_compile=`echo "$ac_compile" | $SED \
23070    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23071    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23072    -e 's:$: $lt_compiler_flag:'`
23073    (eval echo "\"\$as_me:23073: $lt_compile\"" >&5)
23074    (eval "$lt_compile" 2>conftest.err)
23075    ac_status=$?
23076    cat conftest.err >&5
23077    echo "$as_me:23077: \$? = $ac_status" >&5
23078    if (exit $ac_status) && test -s "$ac_outfile"; then
23079      # The compiler can only warn and ignore the option if not recognized
23080      # So say no if there are warnings other than the usual output.
23081      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23082      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23083      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23084        lt_prog_compiler_pic_works_GCJ=yes
23085      fi
23086    fi
23087    $rm conftest*
23088
23089 fi
23090 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23091 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
23092
23093 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23094     case $lt_prog_compiler_pic_GCJ in
23095      "" | " "*) ;;
23096      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23097      esac
23098 else
23099     lt_prog_compiler_pic_GCJ=
23100      lt_prog_compiler_can_build_shared_GCJ=no
23101 fi
23102
23103 fi
23104 case $host_os in
23105   # For platforms which do not support PIC, -DPIC is meaningless:
23106   *djgpp*)
23107     lt_prog_compiler_pic_GCJ=
23108     ;;
23109   *)
23110     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23111     ;;
23112 esac
23113
23114 #
23115 # Check to make sure the static flag actually works.
23116 #
23117 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23118 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23119 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23120 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   lt_prog_compiler_static_works_GCJ=no
23124    save_LDFLAGS="$LDFLAGS"
23125    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23126    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23127    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23128      # The linker can only warn and ignore the option if not recognized
23129      # So say no if there are warnings
23130      if test -s conftest.err; then
23131        # Append any errors to the config.log.
23132        cat conftest.err 1>&5
23133        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23134        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23135        if diff conftest.exp conftest.er2 >/dev/null; then
23136          lt_prog_compiler_static_works_GCJ=yes
23137        fi
23138      else
23139        lt_prog_compiler_static_works_GCJ=yes
23140      fi
23141    fi
23142    $rm conftest*
23143    LDFLAGS="$save_LDFLAGS"
23144
23145 fi
23146 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23147 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
23148
23149 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23150     :
23151 else
23152     lt_prog_compiler_static_GCJ=
23153 fi
23154
23155
23156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23158 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   lt_cv_prog_compiler_c_o_GCJ=no
23162    $rm -r conftest 2>/dev/null
23163    mkdir conftest
23164    cd conftest
23165    mkdir out
23166    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23167
23168    lt_compiler_flag="-o out/conftest2.$ac_objext"
23169    # Insert the option either (1) after the last *FLAGS variable, or
23170    # (2) before a word containing "conftest.", or (3) at the end.
23171    # Note that $ac_compile itself does not contain backslashes and begins
23172    # with a dollar sign (not a hyphen), so the echo should work correctly.
23173    lt_compile=`echo "$ac_compile" | $SED \
23174    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23175    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23176    -e 's:$: $lt_compiler_flag:'`
23177    (eval echo "\"\$as_me:23177: $lt_compile\"" >&5)
23178    (eval "$lt_compile" 2>out/conftest.err)
23179    ac_status=$?
23180    cat out/conftest.err >&5
23181    echo "$as_me:23181: \$? = $ac_status" >&5
23182    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23183    then
23184      # The compiler can only warn and ignore the option if not recognized
23185      # So say no if there are warnings
23186      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23187      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23188      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23189        lt_cv_prog_compiler_c_o_GCJ=yes
23190      fi
23191    fi
23192    chmod u+w . 2>&5
23193    $rm conftest*
23194    # SGI C++ compiler will create directory out/ii_files/ for
23195    # template instantiation
23196    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23197    $rm out/* && rmdir out
23198    cd ..
23199    rmdir conftest
23200    $rm conftest*
23201
23202 fi
23203 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23204 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
23205
23206
23207 hard_links="nottested"
23208 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23209   # do not overwrite the value of need_locks provided by the user
23210   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23212   hard_links=yes
23213   $rm conftest*
23214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23215   touch conftest.a
23216   ln conftest.a conftest.b 2>&5 || hard_links=no
23217   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23218   echo "$as_me:$LINENO: result: $hard_links" >&5
23219 echo "${ECHO_T}$hard_links" >&6
23220   if test "$hard_links" = no; then
23221     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23223     need_locks=warn
23224   fi
23225 else
23226   need_locks=no
23227 fi
23228
23229 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23231
23232   runpath_var=
23233   allow_undefined_flag_GCJ=
23234   enable_shared_with_static_runtimes_GCJ=no
23235   archive_cmds_GCJ=
23236   archive_expsym_cmds_GCJ=
23237   old_archive_From_new_cmds_GCJ=
23238   old_archive_from_expsyms_cmds_GCJ=
23239   export_dynamic_flag_spec_GCJ=
23240   whole_archive_flag_spec_GCJ=
23241   thread_safe_flag_spec_GCJ=
23242   hardcode_libdir_flag_spec_GCJ=
23243   hardcode_libdir_flag_spec_ld_GCJ=
23244   hardcode_libdir_separator_GCJ=
23245   hardcode_direct_GCJ=no
23246   hardcode_minus_L_GCJ=no
23247   hardcode_shlibpath_var_GCJ=unsupported
23248   link_all_deplibs_GCJ=unknown
23249   hardcode_automatic_GCJ=no
23250   module_cmds_GCJ=
23251   module_expsym_cmds_GCJ=
23252   always_export_symbols_GCJ=no
23253   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23254   # include_expsyms should be a list of space-separated symbols to be *always*
23255   # included in the symbol list
23256   include_expsyms_GCJ=
23257   # exclude_expsyms can be an extended regexp of symbols to exclude
23258   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23259   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23260   # as well as any symbol that contains `d'.
23261   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23262   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23263   # platforms (ab)use it in PIC code, but their linkers get confused if
23264   # the symbol is explicitly referenced.  Since portable code cannot
23265   # rely on this symbol name, it's probably fine to never include it in
23266   # preloaded symbol tables.
23267   extract_expsyms_cmds=
23268   # Just being paranoid about ensuring that cc_basename is set.
23269   for cc_temp in $compiler""; do
23270   case $cc_temp in
23271     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23272     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23273     \-*) ;;
23274     *) break;;
23275   esac
23276 done
23277 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23278
23279   case $host_os in
23280   cygwin* | mingw* | pw32*)
23281     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23282     # When not using gcc, we currently assume that we are using
23283     # Microsoft Visual C++.
23284     if test "$GCC" != yes; then
23285       with_gnu_ld=no
23286     fi
23287     ;;
23288   interix*)
23289     # we just hope/assume this is gcc and not c89 (= MSVC++)
23290     with_gnu_ld=yes
23291     ;;
23292   openbsd*)
23293     with_gnu_ld=no
23294     ;;
23295   esac
23296
23297   ld_shlibs_GCJ=yes
23298   if test "$with_gnu_ld" = yes; then
23299     # If archive_cmds runs LD, not CC, wlarc should be empty
23300     wlarc='${wl}'
23301
23302     # Set some defaults for GNU ld with shared library support. These
23303     # are reset later if shared libraries are not supported. Putting them
23304     # here allows them to be overridden if necessary.
23305     runpath_var=LD_RUN_PATH
23306     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23307     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23308     # ancient GNU ld didn't support --whole-archive et. al.
23309     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23310         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23311       else
23312         whole_archive_flag_spec_GCJ=
23313     fi
23314     supports_anon_versioning=no
23315     case `$LD -v 2>/dev/null` in
23316       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23317       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23318       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23319       *\ 2.11.*) ;; # other 2.11 versions
23320       *) supports_anon_versioning=yes ;;
23321     esac
23322
23323     # See if GNU ld supports shared libraries.
23324     case $host_os in
23325     aix3* | aix4* | aix5*)
23326       # On AIX/PPC, the GNU linker is very broken
23327       if test "$host_cpu" != ia64; then
23328         ld_shlibs_GCJ=no
23329         cat <<EOF 1>&2
23330
23331 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23332 *** to be unable to reliably create shared libraries on AIX.
23333 *** Therefore, libtool is disabling shared libraries support.  If you
23334 *** really care for shared libraries, you may want to modify your PATH
23335 *** so that a non-GNU linker is found, and then restart.
23336
23337 EOF
23338       fi
23339       ;;
23340
23341     amigaos*)
23342       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)'
23343       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23344       hardcode_minus_L_GCJ=yes
23345
23346       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23347       # that the semantics of dynamic libraries on AmigaOS, at least up
23348       # to version 4, is to share data among multiple programs linked
23349       # with the same dynamic library.  Since this doesn't match the
23350       # behavior of shared libraries on other platforms, we can't use
23351       # them.
23352       ld_shlibs_GCJ=no
23353       ;;
23354
23355     beos*)
23356       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23357         allow_undefined_flag_GCJ=unsupported
23358         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23359         # support --undefined.  This deserves some investigation.  FIXME
23360         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23361       else
23362         ld_shlibs_GCJ=no
23363       fi
23364       ;;
23365
23366     cygwin* | mingw* | pw32*)
23367       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23368       # as there is no search path for DLLs.
23369       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23370       allow_undefined_flag_GCJ=unsupported
23371       always_export_symbols_GCJ=no
23372       enable_shared_with_static_runtimes_GCJ=yes
23373       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23374
23375       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23376         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23377         # If the export-symbols file already is a .def file (1st line
23378         # is EXPORTS), use it as is; otherwise, prepend...
23379         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23380           cp $export_symbols $output_objdir/$soname.def;
23381         else
23382           echo EXPORTS > $output_objdir/$soname.def;
23383           cat $export_symbols >> $output_objdir/$soname.def;
23384         fi~
23385         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23386       else
23387         ld_shlibs_GCJ=no
23388       fi
23389       ;;
23390
23391     interix3*)
23392       hardcode_direct_GCJ=no
23393       hardcode_shlibpath_var_GCJ=no
23394       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23395       export_dynamic_flag_spec_GCJ='${wl}-E'
23396       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23397       # Instead, shared libraries are loaded at an image base (0x10000000 by
23398       # default) and relocated if they conflict, which is a slow very memory
23399       # consuming and fragmenting process.  To avoid this, we pick a random,
23400       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23401       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23402       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'
23403       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'
23404       ;;
23405
23406     linux*)
23407       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23408         tmp_addflag=
23409         case $cc_basename,$host_cpu in
23410         pgcc*)                          # Portland Group C compiler
23411           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'
23412           tmp_addflag=' $pic_flag'
23413           ;;
23414         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23415           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'
23416           tmp_addflag=' $pic_flag -Mnomain' ;;
23417         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23418           tmp_addflag=' -i_dynamic' ;;
23419         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23420           tmp_addflag=' -i_dynamic -nofor_main' ;;
23421         ifc* | ifort*)                  # Intel Fortran compiler
23422           tmp_addflag=' -nofor_main' ;;
23423         esac
23424         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23425
23426         if test $supports_anon_versioning = yes; then
23427           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23428   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23429   $echo "local: *; };" >> $output_objdir/$libname.ver~
23430           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23431         fi
23432       else
23433         ld_shlibs_GCJ=no
23434       fi
23435       ;;
23436
23437     netbsd*)
23438       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23439         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23440         wlarc=
23441       else
23442         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23443         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23444       fi
23445       ;;
23446
23447     solaris*)
23448       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23449         ld_shlibs_GCJ=no
23450         cat <<EOF 1>&2
23451
23452 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23453 *** create shared libraries on Solaris systems.  Therefore, libtool
23454 *** is disabling shared libraries support.  We urge you to upgrade GNU
23455 *** binutils to release 2.9.1 or newer.  Another option is to modify
23456 *** your PATH or compiler configuration so that the native linker is
23457 *** used, and then restart.
23458
23459 EOF
23460       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23462         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23463       else
23464         ld_shlibs_GCJ=no
23465       fi
23466       ;;
23467
23468     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23469       case `$LD -v 2>&1` in
23470         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23471         ld_shlibs_GCJ=no
23472         cat <<_LT_EOF 1>&2
23473
23474 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23475 *** reliably create shared libraries on SCO systems.  Therefore, libtool
23476 *** is disabling shared libraries support.  We urge you to upgrade GNU
23477 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
23478 *** your PATH or compiler configuration so that the native linker is
23479 *** used, and then restart.
23480
23481 _LT_EOF
23482         ;;
23483         *)
23484           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23485             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23486             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23487             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23488           else
23489             ld_shlibs_GCJ=no
23490           fi
23491         ;;
23492       esac
23493       ;;
23494
23495     sunos4*)
23496       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23497       wlarc=
23498       hardcode_direct_GCJ=yes
23499       hardcode_shlibpath_var_GCJ=no
23500       ;;
23501
23502     *)
23503       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23504         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23505         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23506       else
23507         ld_shlibs_GCJ=no
23508       fi
23509       ;;
23510     esac
23511
23512     if test "$ld_shlibs_GCJ" = no; then
23513       runpath_var=
23514       hardcode_libdir_flag_spec_GCJ=
23515       export_dynamic_flag_spec_GCJ=
23516       whole_archive_flag_spec_GCJ=
23517     fi
23518   else
23519     # PORTME fill in a description of your system's linker (not GNU ld)
23520     case $host_os in
23521     aix3*)
23522       allow_undefined_flag_GCJ=unsupported
23523       always_export_symbols_GCJ=yes
23524       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'
23525       # Note: this linker hardcodes the directories in LIBPATH if there
23526       # are no directories specified by -L.
23527       hardcode_minus_L_GCJ=yes
23528       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23529         # Neither direct hardcoding nor static linking is supported with a
23530         # broken collect2.
23531         hardcode_direct_GCJ=unsupported
23532       fi
23533       ;;
23534
23535     aix4* | aix5*)
23536       if test "$host_cpu" = ia64; then
23537         # On IA64, the linker does run time linking by default, so we don't
23538         # have to do anything special.
23539         aix_use_runtimelinking=no
23540         exp_sym_flag='-Bexport'
23541         no_entry_flag=""
23542       else
23543         # If we're using GNU nm, then we don't want the "-C" option.
23544         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23545         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23546           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'
23547         else
23548           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'
23549         fi
23550         aix_use_runtimelinking=no
23551
23552         # Test if we are trying to use run time linking or normal
23553         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23554         # need to do runtime linking.
23555         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23556           for ld_flag in $LDFLAGS; do
23557           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23558             aix_use_runtimelinking=yes
23559             break
23560           fi
23561           done
23562           ;;
23563         esac
23564
23565         exp_sym_flag='-bexport'
23566         no_entry_flag='-bnoentry'
23567       fi
23568
23569       # When large executables or shared objects are built, AIX ld can
23570       # have problems creating the table of contents.  If linking a library
23571       # or program results in "error TOC overflow" add -mminimal-toc to
23572       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23573       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23574
23575       archive_cmds_GCJ=''
23576       hardcode_direct_GCJ=yes
23577       hardcode_libdir_separator_GCJ=':'
23578       link_all_deplibs_GCJ=yes
23579
23580       if test "$GCC" = yes; then
23581         case $host_os in aix4.[012]|aix4.[012].*)
23582         # We only want to do this on AIX 4.2 and lower, the check
23583         # below for broken collect2 doesn't work under 4.3+
23584           collect2name=`${CC} -print-prog-name=collect2`
23585           if test -f "$collect2name" && \
23586            strings "$collect2name" | grep resolve_lib_name >/dev/null
23587           then
23588           # We have reworked collect2
23589           hardcode_direct_GCJ=yes
23590           else
23591           # We have old collect2
23592           hardcode_direct_GCJ=unsupported
23593           # It fails to find uninstalled libraries when the uninstalled
23594           # path is not listed in the libpath.  Setting hardcode_minus_L
23595           # to unsupported forces relinking
23596           hardcode_minus_L_GCJ=yes
23597           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23598           hardcode_libdir_separator_GCJ=
23599           fi
23600           ;;
23601         esac
23602         shared_flag='-shared'
23603         if test "$aix_use_runtimelinking" = yes; then
23604           shared_flag="$shared_flag "'${wl}-G'
23605         fi
23606       else
23607         # not using gcc
23608         if test "$host_cpu" = ia64; then
23609         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23610         # chokes on -Wl,-G. The following line is correct:
23611           shared_flag='-G'
23612         else
23613           if test "$aix_use_runtimelinking" = yes; then
23614             shared_flag='${wl}-G'
23615           else
23616             shared_flag='${wl}-bM:SRE'
23617           fi
23618         fi
23619       fi
23620
23621       # It seems that -bexpall does not export symbols beginning with
23622       # underscore (_), so it is better to generate a list of symbols to export.
23623       always_export_symbols_GCJ=yes
23624       if test "$aix_use_runtimelinking" = yes; then
23625         # Warning - without using the other runtime loading flags (-brtl),
23626         # -berok will link without error, but may produce a broken library.
23627         allow_undefined_flag_GCJ='-berok'
23628        # Determine the default libpath from the value encoded in an empty executable.
23629        cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635
23636 int
23637 main ()
23638 {
23639
23640   ;
23641   return 0;
23642 }
23643 _ACEOF
23644 rm -f conftest.$ac_objext conftest$ac_exeext
23645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23646   (eval $ac_link) 2>conftest.er1
23647   ac_status=$?
23648   grep -v '^ *+' conftest.er1 >conftest.err
23649   rm -f conftest.er1
23650   cat conftest.err >&5
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); } &&
23653          { ac_try='test -z "$ac_c_werror_flag"
23654                          || test ! -s conftest.err'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; } &&
23660          { ac_try='test -s conftest$ac_exeext'
23661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23662   (eval $ac_try) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); }; }; then
23666
23667 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23668 }'`
23669 # Check for a 64-bit object if we didn't find anything.
23670 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; }
23671 }'`; fi
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676 fi
23677 rm -f conftest.err conftest.$ac_objext \
23678       conftest$ac_exeext conftest.$ac_ext
23679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23680
23681        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23682         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"
23683        else
23684         if test "$host_cpu" = ia64; then
23685           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23686           allow_undefined_flag_GCJ="-z nodefs"
23687           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"
23688         else
23689          # Determine the default libpath from the value encoded in an empty executable.
23690          cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h.  */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h.  */
23696
23697 int
23698 main ()
23699 {
23700
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23707   (eval $ac_link) 2>conftest.er1
23708   ac_status=$?
23709   grep -v '^ *+' conftest.er1 >conftest.err
23710   rm -f conftest.er1
23711   cat conftest.err >&5
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); } &&
23714          { ac_try='test -z "$ac_c_werror_flag"
23715                          || test ! -s conftest.err'
23716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717   (eval $ac_try) 2>&5
23718   ac_status=$?
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); }; } &&
23721          { ac_try='test -s conftest$ac_exeext'
23722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723   (eval $ac_try) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); }; }; then
23727
23728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23729 }'`
23730 # Check for a 64-bit object if we didn't find anything.
23731 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; }
23732 }'`; fi
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737 fi
23738 rm -f conftest.err conftest.$ac_objext \
23739       conftest$ac_exeext conftest.$ac_ext
23740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23741
23742          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23743           # Warning - without using the other run time loading flags,
23744           # -berok will link without error, but may produce a broken library.
23745           no_undefined_flag_GCJ=' ${wl}-bernotok'
23746           allow_undefined_flag_GCJ=' ${wl}-berok'
23747           # Exported symbols can be pulled into shared objects from archives
23748           whole_archive_flag_spec_GCJ='$convenience'
23749           archive_cmds_need_lc_GCJ=yes
23750           # This is similar to how AIX traditionally builds its shared libraries.
23751           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'
23752         fi
23753       fi
23754       ;;
23755
23756     amigaos*)
23757       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)'
23758       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23759       hardcode_minus_L_GCJ=yes
23760       # see comment about different semantics on the GNU ld section
23761       ld_shlibs_GCJ=no
23762       ;;
23763
23764     bsdi[45]*)
23765       export_dynamic_flag_spec_GCJ=-rdynamic
23766       ;;
23767
23768     cygwin* | mingw* | pw32*)
23769       # When not using gcc, we currently assume that we are using
23770       # Microsoft Visual C++.
23771       # hardcode_libdir_flag_spec is actually meaningless, as there is
23772       # no search path for DLLs.
23773       hardcode_libdir_flag_spec_GCJ=' '
23774       allow_undefined_flag_GCJ=unsupported
23775       # Tell ltmain to make .lib files, not .a files.
23776       libext=lib
23777       # Tell ltmain to make .dll files, not .so files.
23778       shrext_cmds=".dll"
23779       # FIXME: Setting linknames here is a bad hack.
23780       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23781       # The linker will automatically build a .lib file if we build a DLL.
23782       old_archive_From_new_cmds_GCJ='true'
23783       # FIXME: Should let the user specify the lib program.
23784       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23785       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23786       enable_shared_with_static_runtimes_GCJ=yes
23787       ;;
23788
23789     darwin* | rhapsody*)
23790       case $host_os in
23791         rhapsody* | darwin1.[012])
23792          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23793          ;;
23794        *) # Darwin 1.3 on
23795          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23796            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23797          else
23798            case ${MACOSX_DEPLOYMENT_TARGET} in
23799              10.[012])
23800                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23801                ;;
23802              10.*)
23803                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23804                ;;
23805            esac
23806          fi
23807          ;;
23808       esac
23809       archive_cmds_need_lc_GCJ=no
23810       hardcode_direct_GCJ=no
23811       hardcode_automatic_GCJ=yes
23812       hardcode_shlibpath_var_GCJ=unsupported
23813       whole_archive_flag_spec_GCJ=''
23814       link_all_deplibs_GCJ=yes
23815     if test "$GCC" = yes ; then
23816         output_verbose_link_cmd='echo'
23817         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23818       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23819       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23820       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}'
23821       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}'
23822     else
23823       case $cc_basename in
23824         xlc*)
23825          output_verbose_link_cmd='echo'
23826          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23827          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23828           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23829          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}'
23830           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}'
23831           ;;
23832        *)
23833          ld_shlibs_GCJ=no
23834           ;;
23835       esac
23836     fi
23837       ;;
23838
23839     dgux*)
23840       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23841       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23842       hardcode_shlibpath_var_GCJ=no
23843       ;;
23844
23845     freebsd1*)
23846       ld_shlibs_GCJ=no
23847       ;;
23848
23849     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23850     # support.  Future versions do this automatically, but an explicit c++rt0.o
23851     # does not break anything, and helps significantly (at the cost of a little
23852     # extra space).
23853     freebsd2.2*)
23854       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23855       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23856       hardcode_direct_GCJ=yes
23857       hardcode_shlibpath_var_GCJ=no
23858       ;;
23859
23860     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23861     freebsd2*)
23862       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23863       hardcode_direct_GCJ=yes
23864       hardcode_minus_L_GCJ=yes
23865       hardcode_shlibpath_var_GCJ=no
23866       ;;
23867
23868     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23869     freebsd* | kfreebsd*-gnu | dragonfly*)
23870       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23871       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23872       hardcode_direct_GCJ=yes
23873       hardcode_shlibpath_var_GCJ=no
23874       ;;
23875
23876     hpux9*)
23877       if test "$GCC" = yes; then
23878         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'
23879       else
23880         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'
23881       fi
23882       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23883       hardcode_libdir_separator_GCJ=:
23884       hardcode_direct_GCJ=yes
23885
23886       # hardcode_minus_L: Not really in the search PATH,
23887       # but as the default location of the library.
23888       hardcode_minus_L_GCJ=yes
23889       export_dynamic_flag_spec_GCJ='${wl}-E'
23890       ;;
23891
23892     hpux10*)
23893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23894         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23895       else
23896         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23897       fi
23898       if test "$with_gnu_ld" = no; then
23899         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23900         hardcode_libdir_separator_GCJ=:
23901
23902         hardcode_direct_GCJ=yes
23903         export_dynamic_flag_spec_GCJ='${wl}-E'
23904
23905         # hardcode_minus_L: Not really in the search PATH,
23906         # but as the default location of the library.
23907         hardcode_minus_L_GCJ=yes
23908       fi
23909       ;;
23910
23911     hpux11*)
23912       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23913         case $host_cpu in
23914         hppa*64*)
23915           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23916           ;;
23917         ia64*)
23918           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23919           ;;
23920         *)
23921           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23922           ;;
23923         esac
23924       else
23925         case $host_cpu in
23926         hppa*64*)
23927           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23928           ;;
23929         ia64*)
23930           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23931           ;;
23932         *)
23933           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23934           ;;
23935         esac
23936       fi
23937       if test "$with_gnu_ld" = no; then
23938         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23939         hardcode_libdir_separator_GCJ=:
23940
23941         case $host_cpu in
23942         hppa*64*|ia64*)
23943           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23944           hardcode_direct_GCJ=no
23945           hardcode_shlibpath_var_GCJ=no
23946           ;;
23947         *)
23948           hardcode_direct_GCJ=yes
23949           export_dynamic_flag_spec_GCJ='${wl}-E'
23950
23951           # hardcode_minus_L: Not really in the search PATH,
23952           # but as the default location of the library.
23953           hardcode_minus_L_GCJ=yes
23954           ;;
23955         esac
23956       fi
23957       ;;
23958
23959     irix5* | irix6* | nonstopux*)
23960       if test "$GCC" = yes; then
23961         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'
23962       else
23963         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'
23964         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23965       fi
23966       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23967       hardcode_libdir_separator_GCJ=:
23968       link_all_deplibs_GCJ=yes
23969       ;;
23970
23971     netbsd*)
23972       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23973         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23974       else
23975         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23976       fi
23977       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23978       hardcode_direct_GCJ=yes
23979       hardcode_shlibpath_var_GCJ=no
23980       ;;
23981
23982     newsos6)
23983       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23984       hardcode_direct_GCJ=yes
23985       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23986       hardcode_libdir_separator_GCJ=:
23987       hardcode_shlibpath_var_GCJ=no
23988       ;;
23989
23990     openbsd*)
23991       hardcode_direct_GCJ=yes
23992       hardcode_shlibpath_var_GCJ=no
23993       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23994         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23995         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23996         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23997         export_dynamic_flag_spec_GCJ='${wl}-E'
23998       else
23999        case $host_os in
24000          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24001            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24002            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24003            ;;
24004          *)
24005            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24006            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24007            ;;
24008        esac
24009       fi
24010       ;;
24011
24012     os2*)
24013       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24014       hardcode_minus_L_GCJ=yes
24015       allow_undefined_flag_GCJ=unsupported
24016       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'
24017       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24018       ;;
24019
24020     osf3*)
24021       if test "$GCC" = yes; then
24022         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24023         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'
24024       else
24025         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24026         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'
24027       fi
24028       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24029       hardcode_libdir_separator_GCJ=:
24030       ;;
24031
24032     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24033       if test "$GCC" = yes; then
24034         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24035         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'
24036         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24037       else
24038         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24039         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'
24040         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~
24041         $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'
24042
24043         # Both c and cxx compiler support -rpath directly
24044         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24045       fi
24046       hardcode_libdir_separator_GCJ=:
24047       ;;
24048
24049     solaris*)
24050       no_undefined_flag_GCJ=' -z text'
24051       if test "$GCC" = yes; then
24052         wlarc='${wl}'
24053         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24054         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24055           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24056       else
24057         wlarc=''
24058         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24059         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24060         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24061       fi
24062       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24063       hardcode_shlibpath_var_GCJ=no
24064       case $host_os in
24065       solaris2.[0-5] | solaris2.[0-5].*) ;;
24066       *)
24067         # The compiler driver will combine linker options so we
24068         # cannot just pass the convience library names through
24069         # without $wl, iff we do not link with $LD.
24070         # Luckily, gcc supports the same syntax we need for Sun Studio.
24071         # Supported since Solaris 2.6 (maybe 2.5.1?)
24072         case $wlarc in
24073         '')
24074           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24075         *)
24076           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' ;;
24077         esac ;;
24078       esac
24079       link_all_deplibs_GCJ=yes
24080       ;;
24081
24082     sunos4*)
24083       if test "x$host_vendor" = xsequent; then
24084         # Use $CC to link under sequent, because it throws in some extra .o
24085         # files that make .init and .fini sections work.
24086         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24087       else
24088         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24089       fi
24090       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24091       hardcode_direct_GCJ=yes
24092       hardcode_minus_L_GCJ=yes
24093       hardcode_shlibpath_var_GCJ=no
24094       ;;
24095
24096     sysv4)
24097       case $host_vendor in
24098         sni)
24099           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24100           hardcode_direct_GCJ=yes # is this really true???
24101         ;;
24102         siemens)
24103           ## LD is ld it makes a PLAMLIB
24104           ## CC just makes a GrossModule.
24105           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24106           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24107           hardcode_direct_GCJ=no
24108         ;;
24109         motorola)
24110           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24111           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24112         ;;
24113       esac
24114       runpath_var='LD_RUN_PATH'
24115       hardcode_shlibpath_var_GCJ=no
24116       ;;
24117
24118     sysv4.3*)
24119       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24120       hardcode_shlibpath_var_GCJ=no
24121       export_dynamic_flag_spec_GCJ='-Bexport'
24122       ;;
24123
24124     sysv4*MP*)
24125       if test -d /usr/nec; then
24126         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24127         hardcode_shlibpath_var_GCJ=no
24128         runpath_var=LD_RUN_PATH
24129         hardcode_runpath_var=yes
24130         ld_shlibs_GCJ=yes
24131       fi
24132       ;;
24133
24134     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24135       no_undefined_flag_GCJ='${wl}-z,text'
24136       archive_cmds_need_lc_GCJ=no
24137       hardcode_shlibpath_var_GCJ=no
24138       runpath_var='LD_RUN_PATH'
24139
24140       if test "$GCC" = yes; then
24141         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24142         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24143       else
24144         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24145         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24146       fi
24147       ;;
24148
24149     sysv5* | sco3.2v5* | sco5v6*)
24150       # Note: We can NOT use -z defs as we might desire, because we do not
24151       # link with -lc, and that would cause any symbols used from libc to
24152       # always be unresolved, which means just about no library would
24153       # ever link correctly.  If we're not using GNU ld we use -z text
24154       # though, which does catch some bad symbols but isn't as heavy-handed
24155       # as -z defs.
24156       no_undefined_flag_GCJ='${wl}-z,text'
24157       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24158       archive_cmds_need_lc_GCJ=no
24159       hardcode_shlibpath_var_GCJ=no
24160       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24161       hardcode_libdir_separator_GCJ=':'
24162       link_all_deplibs_GCJ=yes
24163       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24164       runpath_var='LD_RUN_PATH'
24165
24166       if test "$GCC" = yes; then
24167         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24168         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24169       else
24170         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24171         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24172       fi
24173       ;;
24174
24175     uts4*)
24176       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24177       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24178       hardcode_shlibpath_var_GCJ=no
24179       ;;
24180
24181     *)
24182       ld_shlibs_GCJ=no
24183       ;;
24184     esac
24185   fi
24186
24187 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24188 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
24189 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24190
24191 #
24192 # Do we need to explicitly link libc?
24193 #
24194 case "x$archive_cmds_need_lc_GCJ" in
24195 x|xyes)
24196   # Assume -lc should be added
24197   archive_cmds_need_lc_GCJ=yes
24198
24199   if test "$enable_shared" = yes && test "$GCC" = yes; then
24200     case $archive_cmds_GCJ in
24201     *'~'*)
24202       # FIXME: we may have to deal with multi-command sequences.
24203       ;;
24204     '$CC '*)
24205       # Test whether the compiler implicitly links with -lc since on some
24206       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24207       # to ld, don't add -lc before -lgcc.
24208       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24209 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24210       $rm conftest*
24211       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24212
24213       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24214   (eval $ac_compile) 2>&5
24215   ac_status=$?
24216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217   (exit $ac_status); } 2>conftest.err; then
24218         soname=conftest
24219         lib=conftest
24220         libobjs=conftest.$ac_objext
24221         deplibs=
24222         wl=$lt_prog_compiler_wl_GCJ
24223         pic_flag=$lt_prog_compiler_pic_GCJ
24224         compiler_flags=-v
24225         linker_flags=-v
24226         verstring=
24227         output_objdir=.
24228         libname=conftest
24229         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24230         allow_undefined_flag_GCJ=
24231         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24232   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24233   ac_status=$?
24234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235   (exit $ac_status); }
24236         then
24237           archive_cmds_need_lc_GCJ=no
24238         else
24239           archive_cmds_need_lc_GCJ=yes
24240         fi
24241         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24242       else
24243         cat conftest.err 1>&5
24244       fi
24245       $rm conftest*
24246       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24247 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
24248       ;;
24249     esac
24250   fi
24251   ;;
24252 esac
24253
24254 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24255 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
24256 library_names_spec=
24257 libname_spec='lib$name'
24258 soname_spec=
24259 shrext_cmds=".so"
24260 postinstall_cmds=
24261 postuninstall_cmds=
24262 finish_cmds=
24263 finish_eval=
24264 shlibpath_var=
24265 shlibpath_overrides_runpath=unknown
24266 version_type=none
24267 dynamic_linker="$host_os ld.so"
24268 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24269 if test "$GCC" = yes; then
24270   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24271   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24272     # if the path contains ";" then we assume it to be the separator
24273     # otherwise default to the standard path separator (i.e. ":") - it is
24274     # assumed that no part of a normal pathname contains ";" but that should
24275     # okay in the real world where ";" in dirpaths is itself problematic.
24276     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24277   else
24278     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24279   fi
24280 else
24281   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24282 fi
24283 need_lib_prefix=unknown
24284 hardcode_into_libs=no
24285
24286 # when you set need_version to no, make sure it does not cause -set_version
24287 # flags to be left without arguments
24288 need_version=unknown
24289
24290 case $host_os in
24291 aix3*)
24292   version_type=linux
24293   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24294   shlibpath_var=LIBPATH
24295
24296   # AIX 3 has no versioning support, so we append a major version to the name.
24297   soname_spec='${libname}${release}${shared_ext}$major'
24298   ;;
24299
24300 aix4* | aix5*)
24301   version_type=linux
24302   need_lib_prefix=no
24303   need_version=no
24304   hardcode_into_libs=yes
24305   if test "$host_cpu" = ia64; then
24306     # AIX 5 supports IA64
24307     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24308     shlibpath_var=LD_LIBRARY_PATH
24309   else
24310     # With GCC up to 2.95.x, collect2 would create an import file
24311     # for dependence libraries.  The import file would start with
24312     # the line `#! .'.  This would cause the generated library to
24313     # depend on `.', always an invalid library.  This was fixed in
24314     # development snapshots of GCC prior to 3.0.
24315     case $host_os in
24316       aix4 | aix4.[01] | aix4.[01].*)
24317       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24318            echo ' yes '
24319            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24320         :
24321       else
24322         can_build_shared=no
24323       fi
24324       ;;
24325     esac
24326     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24327     # soname into executable. Probably we can add versioning support to
24328     # collect2, so additional links can be useful in future.
24329     if test "$aix_use_runtimelinking" = yes; then
24330       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24331       # instead of lib<name>.a to let people know that these are not
24332       # typical AIX shared libraries.
24333       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24334     else
24335       # We preserve .a as extension for shared libraries through AIX4.2
24336       # and later when we are not doing run time linking.
24337       library_names_spec='${libname}${release}.a $libname.a'
24338       soname_spec='${libname}${release}${shared_ext}$major'
24339     fi
24340     shlibpath_var=LIBPATH
24341   fi
24342   ;;
24343
24344 amigaos*)
24345   library_names_spec='$libname.ixlibrary $libname.a'
24346   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24347   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'
24348   ;;
24349
24350 beos*)
24351   library_names_spec='${libname}${shared_ext}'
24352   dynamic_linker="$host_os ld.so"
24353   shlibpath_var=LIBRARY_PATH
24354   ;;
24355
24356 bsdi[45]*)
24357   version_type=linux
24358   need_version=no
24359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24360   soname_spec='${libname}${release}${shared_ext}$major'
24361   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24362   shlibpath_var=LD_LIBRARY_PATH
24363   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24364   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24365   # the default ld.so.conf also contains /usr/contrib/lib and
24366   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24367   # libtool to hard-code these into programs
24368   ;;
24369
24370 cygwin* | mingw* | pw32*)
24371   version_type=windows
24372   shrext_cmds=".dll"
24373   need_version=no
24374   need_lib_prefix=no
24375
24376   case $GCC,$host_os in
24377   yes,cygwin* | yes,mingw* | yes,pw32*)
24378     library_names_spec='$libname.dll.a'
24379     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24380     postinstall_cmds='base_file=`basename \${file}`~
24381       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24382       dldir=$destdir/`dirname \$dlpath`~
24383       test -d \$dldir || mkdir -p \$dldir~
24384       $install_prog $dir/$dlname \$dldir/$dlname~
24385       chmod a+x \$dldir/$dlname'
24386     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24387       dlpath=$dir/\$dldll~
24388        $rm \$dlpath'
24389     shlibpath_overrides_runpath=yes
24390
24391     case $host_os in
24392     cygwin*)
24393       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24394       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24395       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24396       ;;
24397     mingw*)
24398       # MinGW DLLs use traditional 'lib' prefix
24399       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24400       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24401       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24402         # It is most probably a Windows format PATH printed by
24403         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24404         # path with ; separators, and with drive letters. We can handle the
24405         # drive letters (cygwin fileutils understands them), so leave them,
24406         # especially as we might pass files found there to a mingw objdump,
24407         # which wouldn't understand a cygwinified path. Ahh.
24408         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24409       else
24410         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24411       fi
24412       ;;
24413     pw32*)
24414       # pw32 DLLs use 'pw' prefix rather than 'lib'
24415       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24416       ;;
24417     esac
24418     ;;
24419
24420   *)
24421     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24422     ;;
24423   esac
24424   dynamic_linker='Win32 ld.exe'
24425   # FIXME: first we should search . and the directory the executable is in
24426   shlibpath_var=PATH
24427   ;;
24428
24429 darwin* | rhapsody*)
24430   dynamic_linker="$host_os dyld"
24431   version_type=darwin
24432   need_lib_prefix=no
24433   need_version=no
24434   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24435   soname_spec='${libname}${release}${major}$shared_ext'
24436   shlibpath_overrides_runpath=yes
24437   shlibpath_var=DYLD_LIBRARY_PATH
24438   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24439   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24440   if test "$GCC" = yes; then
24441     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"`
24442   else
24443     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24444   fi
24445   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24446   ;;
24447
24448 dgux*)
24449   version_type=linux
24450   need_lib_prefix=no
24451   need_version=no
24452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24453   soname_spec='${libname}${release}${shared_ext}$major'
24454   shlibpath_var=LD_LIBRARY_PATH
24455   ;;
24456
24457 freebsd1*)
24458   dynamic_linker=no
24459   ;;
24460
24461 kfreebsd*-gnu)
24462   version_type=linux
24463   need_lib_prefix=no
24464   need_version=no
24465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24466   soname_spec='${libname}${release}${shared_ext}$major'
24467   shlibpath_var=LD_LIBRARY_PATH
24468   shlibpath_overrides_runpath=no
24469   hardcode_into_libs=yes
24470   dynamic_linker='GNU ld.so'
24471   ;;
24472
24473 freebsd* | dragonfly*)
24474   # DragonFly does not have aout.  When/if they implement a new
24475   # versioning mechanism, adjust this.
24476   if test -x /usr/bin/objformat; then
24477     objformat=`/usr/bin/objformat`
24478   else
24479     case $host_os in
24480     freebsd[123]*) objformat=aout ;;
24481     *) objformat=elf ;;
24482     esac
24483   fi
24484   version_type=freebsd-$objformat
24485   case $version_type in
24486     freebsd-elf*)
24487       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24488       need_version=no
24489       need_lib_prefix=no
24490       ;;
24491     freebsd-*)
24492       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24493       need_version=yes
24494       ;;
24495   esac
24496   shlibpath_var=LD_LIBRARY_PATH
24497   case $host_os in
24498   freebsd2*)
24499     shlibpath_overrides_runpath=yes
24500     ;;
24501   freebsd3.[01]* | freebsdelf3.[01]*)
24502     shlibpath_overrides_runpath=yes
24503     hardcode_into_libs=yes
24504     ;;
24505   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24506   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24507     shlibpath_overrides_runpath=no
24508     hardcode_into_libs=yes
24509     ;;
24510   freebsd*) # from 4.6 on
24511     shlibpath_overrides_runpath=yes
24512     hardcode_into_libs=yes
24513     ;;
24514   esac
24515   ;;
24516
24517 gnu*)
24518   version_type=linux
24519   need_lib_prefix=no
24520   need_version=no
24521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24522   soname_spec='${libname}${release}${shared_ext}$major'
24523   shlibpath_var=LD_LIBRARY_PATH
24524   hardcode_into_libs=yes
24525   ;;
24526
24527 hpux9* | hpux10* | hpux11*)
24528   # Give a soname corresponding to the major version so that dld.sl refuses to
24529   # link against other versions.
24530   version_type=sunos
24531   need_lib_prefix=no
24532   need_version=no
24533   case $host_cpu in
24534   ia64*)
24535     shrext_cmds='.so'
24536     hardcode_into_libs=yes
24537     dynamic_linker="$host_os dld.so"
24538     shlibpath_var=LD_LIBRARY_PATH
24539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24541     soname_spec='${libname}${release}${shared_ext}$major'
24542     if test "X$HPUX_IA64_MODE" = X32; then
24543       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24544     else
24545       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24546     fi
24547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24548     ;;
24549    hppa*64*)
24550      shrext_cmds='.sl'
24551      hardcode_into_libs=yes
24552      dynamic_linker="$host_os dld.sl"
24553      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24554      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24556      soname_spec='${libname}${release}${shared_ext}$major'
24557      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24558      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24559      ;;
24560    *)
24561     shrext_cmds='.sl'
24562     dynamic_linker="$host_os dld.sl"
24563     shlibpath_var=SHLIB_PATH
24564     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24566     soname_spec='${libname}${release}${shared_ext}$major'
24567     ;;
24568   esac
24569   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24570   postinstall_cmds='chmod 555 $lib'
24571   ;;
24572
24573 interix3*)
24574   version_type=linux
24575   need_lib_prefix=no
24576   need_version=no
24577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24578   soname_spec='${libname}${release}${shared_ext}$major'
24579   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24580   shlibpath_var=LD_LIBRARY_PATH
24581   shlibpath_overrides_runpath=no
24582   hardcode_into_libs=yes
24583   ;;
24584
24585 irix5* | irix6* | nonstopux*)
24586   case $host_os in
24587     nonstopux*) version_type=nonstopux ;;
24588     *)
24589         if test "$lt_cv_prog_gnu_ld" = yes; then
24590                 version_type=linux
24591         else
24592                 version_type=irix
24593         fi ;;
24594   esac
24595   need_lib_prefix=no
24596   need_version=no
24597   soname_spec='${libname}${release}${shared_ext}$major'
24598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24599   case $host_os in
24600   irix5* | nonstopux*)
24601     libsuff= shlibsuff=
24602     ;;
24603   *)
24604     case $LD in # libtool.m4 will add one of these switches to LD
24605     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24606       libsuff= shlibsuff= libmagic=32-bit;;
24607     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24608       libsuff=32 shlibsuff=N32 libmagic=N32;;
24609     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24610       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24611     *) libsuff= shlibsuff= libmagic=never-match;;
24612     esac
24613     ;;
24614   esac
24615   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24616   shlibpath_overrides_runpath=no
24617   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24618   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24619   hardcode_into_libs=yes
24620   ;;
24621
24622 # No shared lib support for Linux oldld, aout, or coff.
24623 linux*oldld* | linux*aout* | linux*coff*)
24624   dynamic_linker=no
24625   ;;
24626
24627 # This must be Linux ELF.
24628 linux*)
24629   version_type=linux
24630   need_lib_prefix=no
24631   need_version=no
24632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24633   soname_spec='${libname}${release}${shared_ext}$major'
24634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24635   shlibpath_var=LD_LIBRARY_PATH
24636   shlibpath_overrides_runpath=no
24637   # This implies no fast_install, which is unacceptable.
24638   # Some rework will be needed to allow for fast_install
24639   # before this can be enabled.
24640   hardcode_into_libs=yes
24641
24642   # find out which ABI we are using
24643   libsuff=
24644   case "$host_cpu" in
24645   x86_64*|s390x*|powerpc64*)
24646     echo '#line 24646 "configure"' > conftest.$ac_ext
24647     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24648   (eval $ac_compile) 2>&5
24649   ac_status=$?
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); }; then
24652       case `/usr/bin/file conftest.$ac_objext` in
24653       *64-bit*)
24654         libsuff=64
24655         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24656         ;;
24657       esac
24658     fi
24659     rm -rf conftest*
24660     ;;
24661   esac
24662
24663   # Append ld.so.conf contents to the search path
24664   if test -f /etc/ld.so.conf; then
24665     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' ' '`
24666     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24667   fi
24668
24669   # We used to test for /lib/ld.so.1 and disable shared libraries on
24670   # powerpc, because MkLinux only supported shared libraries with the
24671   # GNU dynamic linker.  Since this was broken with cross compilers,
24672   # most powerpc-linux boxes support dynamic linking these days and
24673   # people can always --disable-shared, the test was removed, and we
24674   # assume the GNU/Linux dynamic linker is in use.
24675   dynamic_linker='GNU/Linux ld.so'
24676   ;;
24677
24678 knetbsd*-gnu)
24679   version_type=linux
24680   need_lib_prefix=no
24681   need_version=no
24682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24683   soname_spec='${libname}${release}${shared_ext}$major'
24684   shlibpath_var=LD_LIBRARY_PATH
24685   shlibpath_overrides_runpath=no
24686   hardcode_into_libs=yes
24687   dynamic_linker='GNU ld.so'
24688   ;;
24689
24690 netbsd*)
24691   version_type=sunos
24692   need_lib_prefix=no
24693   need_version=no
24694   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24696     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24697     dynamic_linker='NetBSD (a.out) ld.so'
24698   else
24699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24700     soname_spec='${libname}${release}${shared_ext}$major'
24701     dynamic_linker='NetBSD ld.elf_so'
24702   fi
24703   shlibpath_var=LD_LIBRARY_PATH
24704   shlibpath_overrides_runpath=yes
24705   hardcode_into_libs=yes
24706   ;;
24707
24708 newsos6)
24709   version_type=linux
24710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24711   shlibpath_var=LD_LIBRARY_PATH
24712   shlibpath_overrides_runpath=yes
24713   ;;
24714
24715 nto-qnx*)
24716   version_type=linux
24717   need_lib_prefix=no
24718   need_version=no
24719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24720   soname_spec='${libname}${release}${shared_ext}$major'
24721   shlibpath_var=LD_LIBRARY_PATH
24722   shlibpath_overrides_runpath=yes
24723   ;;
24724
24725 openbsd*)
24726   version_type=sunos
24727   sys_lib_dlsearch_path_spec="/usr/lib"
24728   need_lib_prefix=no
24729   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24730   case $host_os in
24731     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24732     *)                         need_version=no  ;;
24733   esac
24734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24736   shlibpath_var=LD_LIBRARY_PATH
24737   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24738     case $host_os in
24739       openbsd2.[89] | openbsd2.[89].*)
24740         shlibpath_overrides_runpath=no
24741         ;;
24742       *)
24743         shlibpath_overrides_runpath=yes
24744         ;;
24745       esac
24746   else
24747     shlibpath_overrides_runpath=yes
24748   fi
24749   ;;
24750
24751 os2*)
24752   libname_spec='$name'
24753   shrext_cmds=".dll"
24754   need_lib_prefix=no
24755   library_names_spec='$libname${shared_ext} $libname.a'
24756   dynamic_linker='OS/2 ld.exe'
24757   shlibpath_var=LIBPATH
24758   ;;
24759
24760 osf3* | osf4* | osf5*)
24761   version_type=osf
24762   need_lib_prefix=no
24763   need_version=no
24764   soname_spec='${libname}${release}${shared_ext}$major'
24765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24766   shlibpath_var=LD_LIBRARY_PATH
24767   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24768   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24769   ;;
24770
24771 solaris*)
24772   version_type=linux
24773   need_lib_prefix=no
24774   need_version=no
24775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24776   soname_spec='${libname}${release}${shared_ext}$major'
24777   shlibpath_var=LD_LIBRARY_PATH
24778   shlibpath_overrides_runpath=yes
24779   hardcode_into_libs=yes
24780   # ldd complains unless libraries are executable
24781   postinstall_cmds='chmod +x $lib'
24782   ;;
24783
24784 sunos4*)
24785   version_type=sunos
24786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24787   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24788   shlibpath_var=LD_LIBRARY_PATH
24789   shlibpath_overrides_runpath=yes
24790   if test "$with_gnu_ld" = yes; then
24791     need_lib_prefix=no
24792   fi
24793   need_version=yes
24794   ;;
24795
24796 sysv4 | sysv4.3*)
24797   version_type=linux
24798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24799   soname_spec='${libname}${release}${shared_ext}$major'
24800   shlibpath_var=LD_LIBRARY_PATH
24801   case $host_vendor in
24802     sni)
24803       shlibpath_overrides_runpath=no
24804       need_lib_prefix=no
24805       export_dynamic_flag_spec='${wl}-Blargedynsym'
24806       runpath_var=LD_RUN_PATH
24807       ;;
24808     siemens)
24809       need_lib_prefix=no
24810       ;;
24811     motorola)
24812       need_lib_prefix=no
24813       need_version=no
24814       shlibpath_overrides_runpath=no
24815       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24816       ;;
24817   esac
24818   ;;
24819
24820 sysv4*MP*)
24821   if test -d /usr/nec ;then
24822     version_type=linux
24823     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24824     soname_spec='$libname${shared_ext}.$major'
24825     shlibpath_var=LD_LIBRARY_PATH
24826   fi
24827   ;;
24828
24829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24830   version_type=freebsd-elf
24831   need_lib_prefix=no
24832   need_version=no
24833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24834   soname_spec='${libname}${release}${shared_ext}$major'
24835   shlibpath_var=LD_LIBRARY_PATH
24836   hardcode_into_libs=yes
24837   if test "$with_gnu_ld" = yes; then
24838     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24839     shlibpath_overrides_runpath=no
24840   else
24841     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24842     shlibpath_overrides_runpath=yes
24843     case $host_os in
24844       sco3.2v5*)
24845         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24846         ;;
24847     esac
24848   fi
24849   sys_lib_dlsearch_path_spec='/usr/lib'
24850   ;;
24851
24852 uts4*)
24853   version_type=linux
24854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24855   soname_spec='${libname}${release}${shared_ext}$major'
24856   shlibpath_var=LD_LIBRARY_PATH
24857   ;;
24858
24859 *)
24860   dynamic_linker=no
24861   ;;
24862 esac
24863 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24864 echo "${ECHO_T}$dynamic_linker" >&6
24865 test "$dynamic_linker" = no && can_build_shared=no
24866
24867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24868 if test "$GCC" = yes; then
24869   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24870 fi
24871
24872 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24874 hardcode_action_GCJ=
24875 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24876    test -n "$runpath_var_GCJ" || \
24877    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24878
24879   # We can hardcode non-existant directories.
24880   if test "$hardcode_direct_GCJ" != no &&
24881      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24882      # have to relink, otherwise we might link with an installed library
24883      # when we should be linking with a yet-to-be-installed one
24884      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24885      test "$hardcode_minus_L_GCJ" != no; then
24886     # Linking always hardcodes the temporary library directory.
24887     hardcode_action_GCJ=relink
24888   else
24889     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24890     hardcode_action_GCJ=immediate
24891   fi
24892 else
24893   # We cannot hardcode anything, or else we can only hardcode existing
24894   # directories.
24895   hardcode_action_GCJ=unsupported
24896 fi
24897 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24898 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24899
24900 if test "$hardcode_action_GCJ" = relink; then
24901   # Fast installation is not supported
24902   enable_fast_install=no
24903 elif test "$shlibpath_overrides_runpath" = yes ||
24904      test "$enable_shared" = no; then
24905   # Fast installation is not necessary
24906   enable_fast_install=needless
24907 fi
24908
24909
24910 # The else clause should only fire when bootstrapping the
24911 # libtool distribution, otherwise you forgot to ship ltmain.sh
24912 # with your package, and you will get complaints that there are
24913 # no rules to generate ltmain.sh.
24914 if test -f "$ltmain"; then
24915   # See if we are running on zsh, and set the options which allow our commands through
24916   # without removal of \ escapes.
24917   if test -n "${ZSH_VERSION+set}" ; then
24918     setopt NO_GLOB_SUBST
24919   fi
24920   # Now quote all the things that may contain metacharacters while being
24921   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24922   # variables and quote the copies for generation of the libtool script.
24923   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24924     SED SHELL STRIP \
24925     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24926     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24927     deplibs_check_method reload_flag reload_cmds need_locks \
24928     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24929     lt_cv_sys_global_symbol_to_c_name_address \
24930     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24931     old_postinstall_cmds old_postuninstall_cmds \
24932     compiler_GCJ \
24933     CC_GCJ \
24934     LD_GCJ \
24935     lt_prog_compiler_wl_GCJ \
24936     lt_prog_compiler_pic_GCJ \
24937     lt_prog_compiler_static_GCJ \
24938     lt_prog_compiler_no_builtin_flag_GCJ \
24939     export_dynamic_flag_spec_GCJ \
24940     thread_safe_flag_spec_GCJ \
24941     whole_archive_flag_spec_GCJ \
24942     enable_shared_with_static_runtimes_GCJ \
24943     old_archive_cmds_GCJ \
24944     old_archive_from_new_cmds_GCJ \
24945     predep_objects_GCJ \
24946     postdep_objects_GCJ \
24947     predeps_GCJ \
24948     postdeps_GCJ \
24949     compiler_lib_search_path_GCJ \
24950     archive_cmds_GCJ \
24951     archive_expsym_cmds_GCJ \
24952     postinstall_cmds_GCJ \
24953     postuninstall_cmds_GCJ \
24954     old_archive_from_expsyms_cmds_GCJ \
24955     allow_undefined_flag_GCJ \
24956     no_undefined_flag_GCJ \
24957     export_symbols_cmds_GCJ \
24958     hardcode_libdir_flag_spec_GCJ \
24959     hardcode_libdir_flag_spec_ld_GCJ \
24960     hardcode_libdir_separator_GCJ \
24961     hardcode_automatic_GCJ \
24962     module_cmds_GCJ \
24963     module_expsym_cmds_GCJ \
24964     lt_cv_prog_compiler_c_o_GCJ \
24965     exclude_expsyms_GCJ \
24966     include_expsyms_GCJ; do
24967
24968     case $var in
24969     old_archive_cmds_GCJ | \
24970     old_archive_from_new_cmds_GCJ | \
24971     archive_cmds_GCJ | \
24972     archive_expsym_cmds_GCJ | \
24973     module_cmds_GCJ | \
24974     module_expsym_cmds_GCJ | \
24975     old_archive_from_expsyms_cmds_GCJ | \
24976     export_symbols_cmds_GCJ | \
24977     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24978     postinstall_cmds | postuninstall_cmds | \
24979     old_postinstall_cmds | old_postuninstall_cmds | \
24980     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24981       # Double-quote double-evaled strings.
24982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24983       ;;
24984     *)
24985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24986       ;;
24987     esac
24988   done
24989
24990   case $lt_echo in
24991   *'\$0 --fallback-echo"')
24992     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24993     ;;
24994   esac
24995
24996 cfgfile="$ofile"
24997
24998   cat <<__EOF__ >> "$cfgfile"
24999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25000
25001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25002
25003 # Shell to use when invoking shell scripts.
25004 SHELL=$lt_SHELL
25005
25006 # Whether or not to build shared libraries.
25007 build_libtool_libs=$enable_shared
25008
25009 # Whether or not to build static libraries.
25010 build_old_libs=$enable_static
25011
25012 # Whether or not to add -lc for building shared libraries.
25013 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25014
25015 # Whether or not to disallow shared libs when runtime libs are static
25016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25017
25018 # Whether or not to optimize for fast installation.
25019 fast_install=$enable_fast_install
25020
25021 # The host system.
25022 host_alias=$host_alias
25023 host=$host
25024 host_os=$host_os
25025
25026 # The build system.
25027 build_alias=$build_alias
25028 build=$build
25029 build_os=$build_os
25030
25031 # An echo program that does not interpret backslashes.
25032 echo=$lt_echo
25033
25034 # The archiver.
25035 AR=$lt_AR
25036 AR_FLAGS=$lt_AR_FLAGS
25037
25038 # A C compiler.
25039 LTCC=$lt_LTCC
25040
25041 # LTCC compiler flags.
25042 LTCFLAGS=$lt_LTCFLAGS
25043
25044 # A language-specific compiler.
25045 CC=$lt_compiler_GCJ
25046
25047 # Is the compiler the GNU C compiler?
25048 with_gcc=$GCC_GCJ
25049
25050 # An ERE matcher.
25051 EGREP=$lt_EGREP
25052
25053 # The linker used to build libraries.
25054 LD=$lt_LD_GCJ
25055
25056 # Whether we need hard or soft links.
25057 LN_S=$lt_LN_S
25058
25059 # A BSD-compatible nm program.
25060 NM=$lt_NM
25061
25062 # A symbol stripping program
25063 STRIP=$lt_STRIP
25064
25065 # Used to examine libraries when file_magic_cmd begins "file"
25066 MAGIC_CMD=$MAGIC_CMD
25067
25068 # Used on cygwin: DLL creation program.
25069 DLLTOOL="$DLLTOOL"
25070
25071 # Used on cygwin: object dumper.
25072 OBJDUMP="$OBJDUMP"
25073
25074 # Used on cygwin: assembler.
25075 AS="$AS"
25076
25077 # The name of the directory that contains temporary libtool files.
25078 objdir=$objdir
25079
25080 # How to create reloadable object files.
25081 reload_flag=$lt_reload_flag
25082 reload_cmds=$lt_reload_cmds
25083
25084 # How to pass a linker flag through the compiler.
25085 wl=$lt_lt_prog_compiler_wl_GCJ
25086
25087 # Object file suffix (normally "o").
25088 objext="$ac_objext"
25089
25090 # Old archive suffix (normally "a").
25091 libext="$libext"
25092
25093 # Shared library suffix (normally ".so").
25094 shrext_cmds='$shrext_cmds'
25095
25096 # Executable file suffix (normally "").
25097 exeext="$exeext"
25098
25099 # Additional compiler flags for building library objects.
25100 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25101 pic_mode=$pic_mode
25102
25103 # What is the maximum length of a command?
25104 max_cmd_len=$lt_cv_sys_max_cmd_len
25105
25106 # Does compiler simultaneously support -c and -o options?
25107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25108
25109 # Must we lock files when doing compilation?
25110 need_locks=$lt_need_locks
25111
25112 # Do we need the lib prefix for modules?
25113 need_lib_prefix=$need_lib_prefix
25114
25115 # Do we need a version for libraries?
25116 need_version=$need_version
25117
25118 # Whether dlopen is supported.
25119 dlopen_support=$enable_dlopen
25120
25121 # Whether dlopen of programs is supported.
25122 dlopen_self=$enable_dlopen_self
25123
25124 # Whether dlopen of statically linked programs is supported.
25125 dlopen_self_static=$enable_dlopen_self_static
25126
25127 # Compiler flag to prevent dynamic linking.
25128 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25129
25130 # Compiler flag to turn off builtin functions.
25131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25132
25133 # Compiler flag to allow reflexive dlopens.
25134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25135
25136 # Compiler flag to generate shared objects directly from archives.
25137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25138
25139 # Compiler flag to generate thread-safe objects.
25140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25141
25142 # Library versioning type.
25143 version_type=$version_type
25144
25145 # Format of library name prefix.
25146 libname_spec=$lt_libname_spec
25147
25148 # List of archive names.  First name is the real one, the rest are links.
25149 # The last name is the one that the linker finds with -lNAME.
25150 library_names_spec=$lt_library_names_spec
25151
25152 # The coded name of the library, if different from the real name.
25153 soname_spec=$lt_soname_spec
25154
25155 # Commands used to build and install an old-style archive.
25156 RANLIB=$lt_RANLIB
25157 old_archive_cmds=$lt_old_archive_cmds_GCJ
25158 old_postinstall_cmds=$lt_old_postinstall_cmds
25159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25160
25161 # Create an old-style archive from a shared archive.
25162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25163
25164 # Create a temporary old-style archive to link instead of a shared archive.
25165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25166
25167 # Commands used to build and install a shared archive.
25168 archive_cmds=$lt_archive_cmds_GCJ
25169 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25170 postinstall_cmds=$lt_postinstall_cmds
25171 postuninstall_cmds=$lt_postuninstall_cmds
25172
25173 # Commands used to build a loadable module (assumed same as above if empty)
25174 module_cmds=$lt_module_cmds_GCJ
25175 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25176
25177 # Commands to strip libraries.
25178 old_striplib=$lt_old_striplib
25179 striplib=$lt_striplib
25180
25181 # Dependencies to place before the objects being linked to create a
25182 # shared library.
25183 predep_objects=$lt_predep_objects_GCJ
25184
25185 # Dependencies to place after the objects being linked to create a
25186 # shared library.
25187 postdep_objects=$lt_postdep_objects_GCJ
25188
25189 # Dependencies to place before the objects being linked to create a
25190 # shared library.
25191 predeps=$lt_predeps_GCJ
25192
25193 # Dependencies to place after the objects being linked to create a
25194 # shared library.
25195 postdeps=$lt_postdeps_GCJ
25196
25197 # The library search path used internally by the compiler when linking
25198 # a shared library.
25199 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25200
25201 # Method to check whether dependent libraries are shared objects.
25202 deplibs_check_method=$lt_deplibs_check_method
25203
25204 # Command to use when deplibs_check_method == file_magic.
25205 file_magic_cmd=$lt_file_magic_cmd
25206
25207 # Flag that allows shared libraries with undefined symbols to be built.
25208 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25209
25210 # Flag that forces no undefined symbols.
25211 no_undefined_flag=$lt_no_undefined_flag_GCJ
25212
25213 # Commands used to finish a libtool library installation in a directory.
25214 finish_cmds=$lt_finish_cmds
25215
25216 # Same as above, but a single script fragment to be evaled but not shown.
25217 finish_eval=$lt_finish_eval
25218
25219 # Take the output of nm and produce a listing of raw symbols and C names.
25220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25221
25222 # Transform the output of nm in a proper C declaration
25223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25224
25225 # Transform the output of nm in a C name address pair
25226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25227
25228 # This is the shared library runtime path variable.
25229 runpath_var=$runpath_var
25230
25231 # This is the shared library path variable.
25232 shlibpath_var=$shlibpath_var
25233
25234 # Is shlibpath searched before the hard-coded library search path?
25235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25236
25237 # How to hardcode a shared library path into an executable.
25238 hardcode_action=$hardcode_action_GCJ
25239
25240 # Whether we should hardcode library paths into libraries.
25241 hardcode_into_libs=$hardcode_into_libs
25242
25243 # Flag to hardcode \$libdir into a binary during linking.
25244 # This must work even if \$libdir does not exist.
25245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25246
25247 # If ld is used when linking, flag to hardcode \$libdir into
25248 # a binary during linking. This must work even if \$libdir does
25249 # not exist.
25250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25251
25252 # Whether we need a single -rpath flag with a separated argument.
25253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25254
25255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25256 # resulting binary.
25257 hardcode_direct=$hardcode_direct_GCJ
25258
25259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25260 # resulting binary.
25261 hardcode_minus_L=$hardcode_minus_L_GCJ
25262
25263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25264 # the resulting binary.
25265 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25266
25267 # Set to yes if building a shared library automatically hardcodes DIR into the library
25268 # and all subsequent libraries and executables linked against it.
25269 hardcode_automatic=$hardcode_automatic_GCJ
25270
25271 # Variables whose values should be saved in libtool wrapper scripts and
25272 # restored at relink time.
25273 variables_saved_for_relink="$variables_saved_for_relink"
25274
25275 # Whether libtool must link a program against all its dependency libraries.
25276 link_all_deplibs=$link_all_deplibs_GCJ
25277
25278 # Compile-time system search path for libraries
25279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25280
25281 # Run-time system search path for libraries
25282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25283
25284 # Fix the shell variable \$srcfile for the compiler.
25285 fix_srcfile_path="$fix_srcfile_path_GCJ"
25286
25287 # Set to yes if exported symbols are required.
25288 always_export_symbols=$always_export_symbols_GCJ
25289
25290 # The commands to list exported symbols.
25291 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25292
25293 # The commands to extract the exported symbol list from a shared archive.
25294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25295
25296 # Symbols that should not be listed in the preloaded symbols.
25297 exclude_expsyms=$lt_exclude_expsyms_GCJ
25298
25299 # Symbols that must always be exported.
25300 include_expsyms=$lt_include_expsyms_GCJ
25301
25302 # ### END LIBTOOL TAG CONFIG: $tagname
25303
25304 __EOF__
25305
25306
25307 else
25308   # If there is no Makefile yet, we rely on a make rule to execute
25309   # `config.status --recheck' to rerun these tests and create the
25310   # libtool script then.
25311   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25312   if test -f "$ltmain_in"; then
25313     test -f Makefile && make "$ltmain"
25314   fi
25315 fi
25316
25317
25318 ac_ext=c
25319 ac_cpp='$CPP $CPPFLAGS'
25320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25323
25324 CC="$lt_save_CC"
25325
25326         else
25327           tagname=""
25328         fi
25329         ;;
25330
25331       RC)
25332
25333
25334
25335 # Source file extension for RC test sources.
25336 ac_ext=rc
25337
25338 # Object file extension for compiled RC test sources.
25339 objext=o
25340 objext_RC=$objext
25341
25342 # Code to be used in simple compile tests
25343 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25344
25345 # Code to be used in simple link tests
25346 lt_simple_link_test_code="$lt_simple_compile_test_code"
25347
25348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25349
25350 # If no C compiler was specified, use CC.
25351 LTCC=${LTCC-"$CC"}
25352
25353 # If no C compiler flags were specified, use CFLAGS.
25354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25355
25356 # Allow CC to be a program name with arguments.
25357 compiler=$CC
25358
25359
25360 # save warnings/boilerplate of simple test code
25361 ac_outfile=conftest.$ac_objext
25362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25364 _lt_compiler_boilerplate=`cat conftest.err`
25365 $rm conftest*
25366
25367 ac_outfile=conftest.$ac_objext
25368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25370 _lt_linker_boilerplate=`cat conftest.err`
25371 $rm conftest*
25372
25373
25374 # Allow CC to be a program name with arguments.
25375 lt_save_CC="$CC"
25376 CC=${RC-"windres"}
25377 compiler=$CC
25378 compiler_RC=$CC
25379 for cc_temp in $compiler""; do
25380   case $cc_temp in
25381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25383     \-*) ;;
25384     *) break;;
25385   esac
25386 done
25387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25388
25389 lt_cv_prog_compiler_c_o_RC=yes
25390
25391 # The else clause should only fire when bootstrapping the
25392 # libtool distribution, otherwise you forgot to ship ltmain.sh
25393 # with your package, and you will get complaints that there are
25394 # no rules to generate ltmain.sh.
25395 if test -f "$ltmain"; then
25396   # See if we are running on zsh, and set the options which allow our commands through
25397   # without removal of \ escapes.
25398   if test -n "${ZSH_VERSION+set}" ; then
25399     setopt NO_GLOB_SUBST
25400   fi
25401   # Now quote all the things that may contain metacharacters while being
25402   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25403   # variables and quote the copies for generation of the libtool script.
25404   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25405     SED SHELL STRIP \
25406     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25407     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25408     deplibs_check_method reload_flag reload_cmds need_locks \
25409     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25410     lt_cv_sys_global_symbol_to_c_name_address \
25411     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25412     old_postinstall_cmds old_postuninstall_cmds \
25413     compiler_RC \
25414     CC_RC \
25415     LD_RC \
25416     lt_prog_compiler_wl_RC \
25417     lt_prog_compiler_pic_RC \
25418     lt_prog_compiler_static_RC \
25419     lt_prog_compiler_no_builtin_flag_RC \
25420     export_dynamic_flag_spec_RC \
25421     thread_safe_flag_spec_RC \
25422     whole_archive_flag_spec_RC \
25423     enable_shared_with_static_runtimes_RC \
25424     old_archive_cmds_RC \
25425     old_archive_from_new_cmds_RC \
25426     predep_objects_RC \
25427     postdep_objects_RC \
25428     predeps_RC \
25429     postdeps_RC \
25430     compiler_lib_search_path_RC \
25431     archive_cmds_RC \
25432     archive_expsym_cmds_RC \
25433     postinstall_cmds_RC \
25434     postuninstall_cmds_RC \
25435     old_archive_from_expsyms_cmds_RC \
25436     allow_undefined_flag_RC \
25437     no_undefined_flag_RC \
25438     export_symbols_cmds_RC \
25439     hardcode_libdir_flag_spec_RC \
25440     hardcode_libdir_flag_spec_ld_RC \
25441     hardcode_libdir_separator_RC \
25442     hardcode_automatic_RC \
25443     module_cmds_RC \
25444     module_expsym_cmds_RC \
25445     lt_cv_prog_compiler_c_o_RC \
25446     exclude_expsyms_RC \
25447     include_expsyms_RC; do
25448
25449     case $var in
25450     old_archive_cmds_RC | \
25451     old_archive_from_new_cmds_RC | \
25452     archive_cmds_RC | \
25453     archive_expsym_cmds_RC | \
25454     module_cmds_RC | \
25455     module_expsym_cmds_RC | \
25456     old_archive_from_expsyms_cmds_RC | \
25457     export_symbols_cmds_RC | \
25458     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25459     postinstall_cmds | postuninstall_cmds | \
25460     old_postinstall_cmds | old_postuninstall_cmds | \
25461     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25462       # Double-quote double-evaled strings.
25463       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25464       ;;
25465     *)
25466       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25467       ;;
25468     esac
25469   done
25470
25471   case $lt_echo in
25472   *'\$0 --fallback-echo"')
25473     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25474     ;;
25475   esac
25476
25477 cfgfile="$ofile"
25478
25479   cat <<__EOF__ >> "$cfgfile"
25480 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25481
25482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25483
25484 # Shell to use when invoking shell scripts.
25485 SHELL=$lt_SHELL
25486
25487 # Whether or not to build shared libraries.
25488 build_libtool_libs=$enable_shared
25489
25490 # Whether or not to build static libraries.
25491 build_old_libs=$enable_static
25492
25493 # Whether or not to add -lc for building shared libraries.
25494 build_libtool_need_lc=$archive_cmds_need_lc_RC
25495
25496 # Whether or not to disallow shared libs when runtime libs are static
25497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25498
25499 # Whether or not to optimize for fast installation.
25500 fast_install=$enable_fast_install
25501
25502 # The host system.
25503 host_alias=$host_alias
25504 host=$host
25505 host_os=$host_os
25506
25507 # The build system.
25508 build_alias=$build_alias
25509 build=$build
25510 build_os=$build_os
25511
25512 # An echo program that does not interpret backslashes.
25513 echo=$lt_echo
25514
25515 # The archiver.
25516 AR=$lt_AR
25517 AR_FLAGS=$lt_AR_FLAGS
25518
25519 # A C compiler.
25520 LTCC=$lt_LTCC
25521
25522 # LTCC compiler flags.
25523 LTCFLAGS=$lt_LTCFLAGS
25524
25525 # A language-specific compiler.
25526 CC=$lt_compiler_RC
25527
25528 # Is the compiler the GNU C compiler?
25529 with_gcc=$GCC_RC
25530
25531 # An ERE matcher.
25532 EGREP=$lt_EGREP
25533
25534 # The linker used to build libraries.
25535 LD=$lt_LD_RC
25536
25537 # Whether we need hard or soft links.
25538 LN_S=$lt_LN_S
25539
25540 # A BSD-compatible nm program.
25541 NM=$lt_NM
25542
25543 # A symbol stripping program
25544 STRIP=$lt_STRIP
25545
25546 # Used to examine libraries when file_magic_cmd begins "file"
25547 MAGIC_CMD=$MAGIC_CMD
25548
25549 # Used on cygwin: DLL creation program.
25550 DLLTOOL="$DLLTOOL"
25551
25552 # Used on cygwin: object dumper.
25553 OBJDUMP="$OBJDUMP"
25554
25555 # Used on cygwin: assembler.
25556 AS="$AS"
25557
25558 # The name of the directory that contains temporary libtool files.
25559 objdir=$objdir
25560
25561 # How to create reloadable object files.
25562 reload_flag=$lt_reload_flag
25563 reload_cmds=$lt_reload_cmds
25564
25565 # How to pass a linker flag through the compiler.
25566 wl=$lt_lt_prog_compiler_wl_RC
25567
25568 # Object file suffix (normally "o").
25569 objext="$ac_objext"
25570
25571 # Old archive suffix (normally "a").
25572 libext="$libext"
25573
25574 # Shared library suffix (normally ".so").
25575 shrext_cmds='$shrext_cmds'
25576
25577 # Executable file suffix (normally "").
25578 exeext="$exeext"
25579
25580 # Additional compiler flags for building library objects.
25581 pic_flag=$lt_lt_prog_compiler_pic_RC
25582 pic_mode=$pic_mode
25583
25584 # What is the maximum length of a command?
25585 max_cmd_len=$lt_cv_sys_max_cmd_len
25586
25587 # Does compiler simultaneously support -c and -o options?
25588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25589
25590 # Must we lock files when doing compilation?
25591 need_locks=$lt_need_locks
25592
25593 # Do we need the lib prefix for modules?
25594 need_lib_prefix=$need_lib_prefix
25595
25596 # Do we need a version for libraries?
25597 need_version=$need_version
25598
25599 # Whether dlopen is supported.
25600 dlopen_support=$enable_dlopen
25601
25602 # Whether dlopen of programs is supported.
25603 dlopen_self=$enable_dlopen_self
25604
25605 # Whether dlopen of statically linked programs is supported.
25606 dlopen_self_static=$enable_dlopen_self_static
25607
25608 # Compiler flag to prevent dynamic linking.
25609 link_static_flag=$lt_lt_prog_compiler_static_RC
25610
25611 # Compiler flag to turn off builtin functions.
25612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25613
25614 # Compiler flag to allow reflexive dlopens.
25615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25616
25617 # Compiler flag to generate shared objects directly from archives.
25618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25619
25620 # Compiler flag to generate thread-safe objects.
25621 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25622
25623 # Library versioning type.
25624 version_type=$version_type
25625
25626 # Format of library name prefix.
25627 libname_spec=$lt_libname_spec
25628
25629 # List of archive names.  First name is the real one, the rest are links.
25630 # The last name is the one that the linker finds with -lNAME.
25631 library_names_spec=$lt_library_names_spec
25632
25633 # The coded name of the library, if different from the real name.
25634 soname_spec=$lt_soname_spec
25635
25636 # Commands used to build and install an old-style archive.
25637 RANLIB=$lt_RANLIB
25638 old_archive_cmds=$lt_old_archive_cmds_RC
25639 old_postinstall_cmds=$lt_old_postinstall_cmds
25640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25641
25642 # Create an old-style archive from a shared archive.
25643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25644
25645 # Create a temporary old-style archive to link instead of a shared archive.
25646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25647
25648 # Commands used to build and install a shared archive.
25649 archive_cmds=$lt_archive_cmds_RC
25650 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25651 postinstall_cmds=$lt_postinstall_cmds
25652 postuninstall_cmds=$lt_postuninstall_cmds
25653
25654 # Commands used to build a loadable module (assumed same as above if empty)
25655 module_cmds=$lt_module_cmds_RC
25656 module_expsym_cmds=$lt_module_expsym_cmds_RC
25657
25658 # Commands to strip libraries.
25659 old_striplib=$lt_old_striplib
25660 striplib=$lt_striplib
25661
25662 # Dependencies to place before the objects being linked to create a
25663 # shared library.
25664 predep_objects=$lt_predep_objects_RC
25665
25666 # Dependencies to place after the objects being linked to create a
25667 # shared library.
25668 postdep_objects=$lt_postdep_objects_RC
25669
25670 # Dependencies to place before the objects being linked to create a
25671 # shared library.
25672 predeps=$lt_predeps_RC
25673
25674 # Dependencies to place after the objects being linked to create a
25675 # shared library.
25676 postdeps=$lt_postdeps_RC
25677
25678 # The library search path used internally by the compiler when linking
25679 # a shared library.
25680 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25681
25682 # Method to check whether dependent libraries are shared objects.
25683 deplibs_check_method=$lt_deplibs_check_method
25684
25685 # Command to use when deplibs_check_method == file_magic.
25686 file_magic_cmd=$lt_file_magic_cmd
25687
25688 # Flag that allows shared libraries with undefined symbols to be built.
25689 allow_undefined_flag=$lt_allow_undefined_flag_RC
25690
25691 # Flag that forces no undefined symbols.
25692 no_undefined_flag=$lt_no_undefined_flag_RC
25693
25694 # Commands used to finish a libtool library installation in a directory.
25695 finish_cmds=$lt_finish_cmds
25696
25697 # Same as above, but a single script fragment to be evaled but not shown.
25698 finish_eval=$lt_finish_eval
25699
25700 # Take the output of nm and produce a listing of raw symbols and C names.
25701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25702
25703 # Transform the output of nm in a proper C declaration
25704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25705
25706 # Transform the output of nm in a C name address pair
25707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25708
25709 # This is the shared library runtime path variable.
25710 runpath_var=$runpath_var
25711
25712 # This is the shared library path variable.
25713 shlibpath_var=$shlibpath_var
25714
25715 # Is shlibpath searched before the hard-coded library search path?
25716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25717
25718 # How to hardcode a shared library path into an executable.
25719 hardcode_action=$hardcode_action_RC
25720
25721 # Whether we should hardcode library paths into libraries.
25722 hardcode_into_libs=$hardcode_into_libs
25723
25724 # Flag to hardcode \$libdir into a binary during linking.
25725 # This must work even if \$libdir does not exist.
25726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25727
25728 # If ld is used when linking, flag to hardcode \$libdir into
25729 # a binary during linking. This must work even if \$libdir does
25730 # not exist.
25731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25732
25733 # Whether we need a single -rpath flag with a separated argument.
25734 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25735
25736 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25737 # resulting binary.
25738 hardcode_direct=$hardcode_direct_RC
25739
25740 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25741 # resulting binary.
25742 hardcode_minus_L=$hardcode_minus_L_RC
25743
25744 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25745 # the resulting binary.
25746 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25747
25748 # Set to yes if building a shared library automatically hardcodes DIR into the library
25749 # and all subsequent libraries and executables linked against it.
25750 hardcode_automatic=$hardcode_automatic_RC
25751
25752 # Variables whose values should be saved in libtool wrapper scripts and
25753 # restored at relink time.
25754 variables_saved_for_relink="$variables_saved_for_relink"
25755
25756 # Whether libtool must link a program against all its dependency libraries.
25757 link_all_deplibs=$link_all_deplibs_RC
25758
25759 # Compile-time system search path for libraries
25760 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25761
25762 # Run-time system search path for libraries
25763 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25764
25765 # Fix the shell variable \$srcfile for the compiler.
25766 fix_srcfile_path="$fix_srcfile_path_RC"
25767
25768 # Set to yes if exported symbols are required.
25769 always_export_symbols=$always_export_symbols_RC
25770
25771 # The commands to list exported symbols.
25772 export_symbols_cmds=$lt_export_symbols_cmds_RC
25773
25774 # The commands to extract the exported symbol list from a shared archive.
25775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25776
25777 # Symbols that should not be listed in the preloaded symbols.
25778 exclude_expsyms=$lt_exclude_expsyms_RC
25779
25780 # Symbols that must always be exported.
25781 include_expsyms=$lt_include_expsyms_RC
25782
25783 # ### END LIBTOOL TAG CONFIG: $tagname
25784
25785 __EOF__
25786
25787
25788 else
25789   # If there is no Makefile yet, we rely on a make rule to execute
25790   # `config.status --recheck' to rerun these tests and create the
25791   # libtool script then.
25792   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25793   if test -f "$ltmain_in"; then
25794     test -f Makefile && make "$ltmain"
25795   fi
25796 fi
25797
25798
25799 ac_ext=c
25800 ac_cpp='$CPP $CPPFLAGS'
25801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25804
25805 CC="$lt_save_CC"
25806
25807         ;;
25808
25809       *)
25810         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25811 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25812    { (exit 1); exit 1; }; }
25813         ;;
25814       esac
25815
25816       # Append the new tag name to the list of available tags.
25817       if test -n "$tagname" ; then
25818       available_tags="$available_tags $tagname"
25819     fi
25820     fi
25821   done
25822   IFS="$lt_save_ifs"
25823
25824   # Now substitute the updated list of available tags.
25825   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25826     mv "${ofile}T" "$ofile"
25827     chmod +x "$ofile"
25828   else
25829     rm -f "${ofile}T"
25830     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25831 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25832    { (exit 1); exit 1; }; }
25833   fi
25834 fi
25835
25836
25837
25838 # This can be used to rebuild libtool when needed
25839 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25840
25841 # Always use our own libtool.
25842 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
25843
25844 # Prevent multiple expansion
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
25869 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
25870
25871 # Check whether --with-vrootdir or --without-vrootdir was given.
25872 if test "${with_vrootdir+set}" = set; then
25873   withval="$with_vrootdir"
25874   case "$withval" in
25875                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
25876 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
25877    { (exit 1); exit 1; }; };;
25878                         *)      ensc_uv_path_vrootdir=$withval;;
25879                      esac
25880 else
25881   ensc_uv_path_vrootdir=/vservers
25882 fi;
25883         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
25884 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
25885
25886         if test x"vserverdir" != x; then
25887                 vserverdir=$ensc_uv_path_vrootdir
25888
25889         fi
25890
25891
25892         for ac_prog in svn2cl
25893 do
25894   # Extract the first word of "$ac_prog", so it can be a program name with args.
25895 set dummy $ac_prog; ac_word=$2
25896 echo "$as_me:$LINENO: checking for $ac_word" >&5
25897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25898 if test "${ac_cv_prog_SVN2CL+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   if test -n "$SVN2CL"; then
25902   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
25903 else
25904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25905 for as_dir in $PATH
25906 do
25907   IFS=$as_save_IFS
25908   test -z "$as_dir" && as_dir=.
25909   for ac_exec_ext in '' $ac_executable_extensions; do
25910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25911     ac_cv_prog_SVN2CL="$ac_prog"
25912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25913     break 2
25914   fi
25915 done
25916 done
25917
25918 fi
25919 fi
25920 SVN2CL=$ac_cv_prog_SVN2CL
25921 if test -n "$SVN2CL"; then
25922   echo "$as_me:$LINENO: result: $SVN2CL" >&5
25923 echo "${ECHO_T}$SVN2CL" >&6
25924 else
25925   echo "$as_me:$LINENO: result: no" >&5
25926 echo "${ECHO_T}no" >&6
25927 fi
25928
25929   test -n "$SVN2CL" && break
25930 done
25931
25932
25933
25934 if test x"$SVN2CL" != x; then
25935   HAVE_SVN2CL_TRUE=
25936   HAVE_SVN2CL_FALSE='#'
25937 else
25938   HAVE_SVN2CL_TRUE='#'
25939   HAVE_SVN2CL_FALSE=
25940 fi
25941
25942
25943
25944
25945 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
25946 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
25947 # Check whether --enable-internal-headers or --disable-internal-headers was given.
25948 if test "${enable_internal_headers+set}" = set; then
25949   enableval="$enable_internal_headers"
25950   case "$enableval" in
25951                   (yes|no) ;;
25952                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
25953 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
25954    { (exit 1); exit 1; }; };;
25955                esac
25956 else
25957   enable_internal_headers=yes
25958 fi;
25959
25960
25961
25962 if test x"$enable_internal_headers" = xyes; then
25963   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
25964   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
25965 else
25966   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
25967   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
25968 fi
25969
25970 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
25971 echo "${ECHO_T}$enable_internal_headers" >&6
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994 echo "$as_me:$LINENO: checking for supported APIs" >&5
25995 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
25996 # Check whether --enable-apis or --disable-apis was given.
25997 if test "${enable_apis+set}" = set; then
25998   enableval="$enable_apis"
25999
26000 else
26001   enable_apis=v13,net,v21
26002 fi;
26003
26004 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21'
26005 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21'
26006 enable_api_oldproc=
26007 enable_api_olduts=
26008 old_IFS=$IFS
26009 IFS=,;
26010
26011 for i in $enable_apis; do
26012         case "$i" in
26013                 (compat)        cat >>confdefs.h <<\_ACEOF
26014 #define VC_ENABLE_API_COMPAT 1
26015 _ACEOF
26016
26017                                 enable_api_oldproc=${enable_api_oldproc:-1}
26018                                 enable_api_olduts=${enable_api_olduts:-1}
26019                                 ;;
26020                 (legacy)        cat >>confdefs.h <<\_ACEOF
26021 #define VC_ENABLE_API_LEGACY 1
26022 _ACEOF
26023
26024                                 enable_api_oldproc=${enable_api_oldproc:-1}
26025                                 enable_api_olduts=${enable_api_olduts:-1}
26026                                 ;;
26027                 (v11)           cat >>confdefs.h <<\_ACEOF
26028 #define VC_ENABLE_API_V11 1
26029 _ACEOF
26030
26031                                 enable_api_oldproc=${enable_api_oldproc:-1}
26032                                 enable_api_olduts=${enable_api_olduts:-1}
26033                                 ;;
26034                 (fscompat)      cat >>confdefs.h <<\_ACEOF
26035 #define VC_ENABLE_API_FSCOMPAT 1
26036 _ACEOF
26037 ;;
26038                 (v13obs)        cat >>confdefs.h <<\_ACEOF
26039 #define VC_ENABLE_API_V13OBS 1
26040 _ACEOF
26041
26042                                 cat >>confdefs.h <<\_ACEOF
26043 #define VC_ENABLE_API_V13 1
26044 _ACEOF
26045 ;;
26046                 (v13)           cat >>confdefs.h <<\_ACEOF
26047 #define VC_ENABLE_API_V13 1
26048 _ACEOF
26049 ;;
26050                 (net)           cat >>confdefs.h <<\_ACEOF
26051 #define VC_ENABLE_API_NET 1
26052 _ACEOF
26053 ;;
26054                 (v21)           cat >>confdefs.h <<\_ACEOF
26055 #define VC_ENABLE_API_V21 1
26056 _ACEOF
26057 ;;
26058                 (oldproc)       enable_api_oldproc=2;;
26059                 (olduts)        enable_api_olduts=2;;
26060                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26061 echo "$as_me: error: '$i' is not a supported API" >&2;}
26062    { (exit 1); exit 1; }; };;
26063         esac
26064 done
26065 IFS=$old_IFS
26066 if test x"$enable_api_oldproc" != x; then
26067         cat >>confdefs.h <<\_ACEOF
26068 #define VC_ENABLE_API_OLDPROC 1
26069 _ACEOF
26070
26071         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
26072 fi
26073 if test x"$enable_api_olduts" != x; then
26074         cat >>confdefs.h <<\_ACEOF
26075 #define VC_ENABLE_API_OLDUTS 1
26076 _ACEOF
26077
26078         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
26079 fi
26080 echo "$as_me:$LINENO: result: $enable_apis" >&5
26081 echo "${ECHO_T}$enable_apis" >&6
26082
26083
26084
26085
26086     ac_ext=cc
26087 ac_cpp='$CXXCPP $CPPFLAGS'
26088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26091
26092     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26093 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26094 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26095   echo $ECHO_N "(cached) $ECHO_C" >&6
26096 else
26097
26098         cat >conftest.$ac_ext <<_ACEOF
26099 /* confdefs.h.  */
26100 _ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h.  */
26104 #include <ext2fs/ext2_fs.h>
26105                                           int main() { return 0; }
26106 _ACEOF
26107 rm -f conftest.$ac_objext
26108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26109   (eval $ac_compile) 2>conftest.er1
26110   ac_status=$?
26111   grep -v '^ *+' conftest.er1 >conftest.err
26112   rm -f conftest.er1
26113   cat conftest.err >&5
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); } &&
26116          { ac_try='test -z "$ac_cxx_werror_flag"
26117                          || test ! -s conftest.err'
26118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119   (eval $ac_try) 2>&5
26120   ac_status=$?
26121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122   (exit $ac_status); }; } &&
26123          { ac_try='test -s conftest.$ac_objext'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; }; then
26129   ensc_cv_test_ext2fs_header=e2fsprogs
26130 else
26131   echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26133
26134
26135         cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141 #include <linux/ext2_fs.h>
26142                                           int main() { return 0; }
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26146   (eval $ac_compile) 2>conftest.er1
26147   ac_status=$?
26148   grep -v '^ *+' conftest.er1 >conftest.err
26149   rm -f conftest.er1
26150   cat conftest.err >&5
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); } &&
26153          { ac_try='test -z "$ac_cxx_werror_flag"
26154                          || test ! -s conftest.err'
26155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156   (eval $ac_try) 2>&5
26157   ac_status=$?
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); }; } &&
26160          { ac_try='test -s conftest.$ac_objext'
26161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162   (eval $ac_try) 2>&5
26163   ac_status=$?
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); }; }; then
26166   ensc_cv_test_ext2fs_header=kernel
26167 else
26168   echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171
26172         ensc_cv_test_ext2fs_header=none
26173 fi
26174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26175 fi
26176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26177 fi
26178 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26179 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26180
26181     case x"$ensc_cv_test_ext2fs_header" in
26182         (xe2fsprogs)
26183                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26184   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26185 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26186 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26187   echo $ECHO_N "(cached) $ECHO_C" >&6
26188 fi
26189 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26190 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26191 else
26192   # Is the header compilable?
26193 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26194 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 $ac_includes_default
26202 #include <ext2fs/ext2_fs.h>
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206   (eval $ac_compile) 2>conftest.er1
26207   ac_status=$?
26208   grep -v '^ *+' conftest.er1 >conftest.err
26209   rm -f conftest.er1
26210   cat conftest.err >&5
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); } &&
26213          { ac_try='test -z "$ac_cxx_werror_flag"
26214                          || test ! -s conftest.err'
26215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216   (eval $ac_try) 2>&5
26217   ac_status=$?
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); }; } &&
26220          { ac_try='test -s conftest.$ac_objext'
26221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222   (eval $ac_try) 2>&5
26223   ac_status=$?
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); }; }; then
26226   ac_header_compiler=yes
26227 else
26228   echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26230
26231 ac_header_compiler=no
26232 fi
26233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26235 echo "${ECHO_T}$ac_header_compiler" >&6
26236
26237 # Is the header present?
26238 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26239 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 #include <ext2fs/ext2_fs.h>
26247 _ACEOF
26248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } >/dev/null; then
26256   if test -s conftest.err; then
26257     ac_cpp_err=$ac_cxx_preproc_warn_flag
26258     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26259   else
26260     ac_cpp_err=
26261   fi
26262 else
26263   ac_cpp_err=yes
26264 fi
26265 if test -z "$ac_cpp_err"; then
26266   ac_header_preproc=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271   ac_header_preproc=no
26272 fi
26273 rm -f conftest.err conftest.$ac_ext
26274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26275 echo "${ECHO_T}$ac_header_preproc" >&6
26276
26277 # So?  What about this header?
26278 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26279   yes:no: )
26280     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26281 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26282     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26283 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26284     ac_header_preproc=yes
26285     ;;
26286   no:yes:* )
26287     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26288 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26289     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26290 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26291     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26292 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26293     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26294 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26295     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26296 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26297     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26298 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26299     (
26300       cat <<\_ASBOX
26301 ## --------------------------------------------- ##
26302 ## Report this to vserver@list.linux-vserver.org ##
26303 ## --------------------------------------------- ##
26304 _ASBOX
26305     ) |
26306       sed "s/^/$as_me: WARNING:     /" >&2
26307     ;;
26308 esac
26309 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26310 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26311 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26312   echo $ECHO_N "(cached) $ECHO_C" >&6
26313 else
26314   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26315 fi
26316 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26317 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26318
26319 fi
26320 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26321
26322 cat >>confdefs.h <<\_ACEOF
26323 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26324 _ACEOF
26325
26326 else
26327   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26328 See \`config.log' for more details." >&5
26329 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26330 See \`config.log' for more details." >&2;}
26331    { (exit 1); exit 1; }; }
26332 fi
26333
26334
26335                 ;;
26336         (xkernel)
26337                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26338   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26339 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26340 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26341   echo $ECHO_N "(cached) $ECHO_C" >&6
26342 fi
26343 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26344 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26345 else
26346   # Is the header compilable?
26347 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26348 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26349 cat >conftest.$ac_ext <<_ACEOF
26350 /* confdefs.h.  */
26351 _ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h.  */
26355 $ac_includes_default
26356 #include <linux/ext2_fs.h>
26357 _ACEOF
26358 rm -f conftest.$ac_objext
26359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26360   (eval $ac_compile) 2>conftest.er1
26361   ac_status=$?
26362   grep -v '^ *+' conftest.er1 >conftest.err
26363   rm -f conftest.er1
26364   cat conftest.err >&5
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); } &&
26367          { ac_try='test -z "$ac_cxx_werror_flag"
26368                          || test ! -s conftest.err'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; } &&
26374          { ac_try='test -s conftest.$ac_objext'
26375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26376   (eval $ac_try) 2>&5
26377   ac_status=$?
26378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379   (exit $ac_status); }; }; then
26380   ac_header_compiler=yes
26381 else
26382   echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26384
26385 ac_header_compiler=no
26386 fi
26387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26389 echo "${ECHO_T}$ac_header_compiler" >&6
26390
26391 # Is the header present?
26392 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26393 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26394 cat >conftest.$ac_ext <<_ACEOF
26395 /* confdefs.h.  */
26396 _ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h.  */
26400 #include <linux/ext2_fs.h>
26401 _ACEOF
26402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26404   ac_status=$?
26405   grep -v '^ *+' conftest.er1 >conftest.err
26406   rm -f conftest.er1
26407   cat conftest.err >&5
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); } >/dev/null; then
26410   if test -s conftest.err; then
26411     ac_cpp_err=$ac_cxx_preproc_warn_flag
26412     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26413   else
26414     ac_cpp_err=
26415   fi
26416 else
26417   ac_cpp_err=yes
26418 fi
26419 if test -z "$ac_cpp_err"; then
26420   ac_header_preproc=yes
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425   ac_header_preproc=no
26426 fi
26427 rm -f conftest.err conftest.$ac_ext
26428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26429 echo "${ECHO_T}$ac_header_preproc" >&6
26430
26431 # So?  What about this header?
26432 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26433   yes:no: )
26434     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26435 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26436     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26437 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26438     ac_header_preproc=yes
26439     ;;
26440   no:yes:* )
26441     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26442 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26443     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26444 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26445     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26446 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26447     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26448 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26449     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26450 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26451     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26452 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26453     (
26454       cat <<\_ASBOX
26455 ## --------------------------------------------- ##
26456 ## Report this to vserver@list.linux-vserver.org ##
26457 ## --------------------------------------------- ##
26458 _ASBOX
26459     ) |
26460       sed "s/^/$as_me: WARNING:     /" >&2
26461     ;;
26462 esac
26463 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26464 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26465 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 else
26468   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26469 fi
26470 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26471 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26472
26473 fi
26474 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26475
26476 cat >>confdefs.h <<\_ACEOF
26477 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26478 _ACEOF
26479
26480 else
26481   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26482 See \`config.log' for more details." >&5
26483 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26484 See \`config.log' for more details." >&2;}
26485    { (exit 1); exit 1; }; }
26486 fi
26487
26488
26489                 ;;
26490         (*)
26491                 { { echo "$as_me:$LINENO: error:
26492 ext2fs headers were not found, or they are not usable. This can have
26493 the following reasons:
26494
26495 * you have neither the e2fsprogs nor the kernel headers installed
26496
26497 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26498   and you do not have e2fsprogs headers installed; please try to install
26499   - e2fsprogs-devel (for Red Hat), or
26500   - lib*ext2fs2-devel (for Mandriva), or
26501   - e2fslibs-dev (for Debian)
26502   in this case.
26503
26504 * kernel headers are broken and your e2fsprogs headers are too old;
26505   until version 1.27 (inclusive), they are using reserved C++ keywords
26506
26507 * kernel headers are broken and your e2fsprogs headers are too new;
26508   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26509   C++, for details and a solution see
26510   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26511
26512
26513 In the latter two cases you have the following options:
26514 * fix the headers manually, or
26515 * install a stable version of e2fsprogs (e.g. 1.34), or
26516 * use good kernel headers (from linux 2.4.x)
26517
26518 See \`config.log' for more details." >&5
26519 echo "$as_me: error:
26520 ext2fs headers were not found, or they are not usable. This can have
26521 the following reasons:
26522
26523 * you have neither the e2fsprogs nor the kernel headers installed
26524
26525 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26526   and you do not have e2fsprogs headers installed; please try to install
26527   - e2fsprogs-devel (for Red Hat), or
26528   - lib*ext2fs2-devel (for Mandriva), or
26529   - e2fslibs-dev (for Debian)
26530   in this case.
26531
26532 * kernel headers are broken and your e2fsprogs headers are too old;
26533   until version 1.27 (inclusive), they are using reserved C++ keywords
26534
26535 * kernel headers are broken and your e2fsprogs headers are too new;
26536   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26537   C++, for details and a solution see
26538   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26539
26540
26541 In the latter two cases you have the following options:
26542 * fix the headers manually, or
26543 * install a stable version of e2fsprogs (e.g. 1.34), or
26544 * use good kernel headers (from linux 2.4.x)
26545
26546 See \`config.log' for more details." >&2;}
26547    { (exit 1); exit 1; }; }
26548                 ;;
26549     esac
26550     ac_ext=c
26551 ac_cpp='$CPP $CPPFLAGS'
26552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26555
26556
26557
26558 for ac_func in vserver
26559 do
26560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26561 echo "$as_me:$LINENO: checking for $ac_func" >&5
26562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26563 if eval "test \"\${$as_ac_var+set}\" = set"; then
26564   echo $ECHO_N "(cached) $ECHO_C" >&6
26565 else
26566   cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h.  */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h.  */
26572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26574 #define $ac_func innocuous_$ac_func
26575
26576 /* System header to define __stub macros and hopefully few prototypes,
26577     which can conflict with char $ac_func (); below.
26578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26579     <limits.h> exists even on freestanding compilers.  */
26580
26581 #ifdef __STDC__
26582 # include <limits.h>
26583 #else
26584 # include <assert.h>
26585 #endif
26586
26587 #undef $ac_func
26588
26589 /* Override any gcc2 internal prototype to avoid an error.  */
26590 #ifdef __cplusplus
26591 extern "C"
26592 {
26593 #endif
26594 /* We use char because int might match the return type of a gcc2
26595    builtin and then its argument prototype would still apply.  */
26596 char $ac_func ();
26597 /* The GNU C library defines this for functions which it implements
26598     to always fail with ENOSYS.  Some functions are actually named
26599     something starting with __ and the normal name is an alias.  */
26600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26601 choke me
26602 #else
26603 char (*f) () = $ac_func;
26604 #endif
26605 #ifdef __cplusplus
26606 }
26607 #endif
26608
26609 int
26610 main ()
26611 {
26612 return f != $ac_func;
26613   ;
26614   return 0;
26615 }
26616 _ACEOF
26617 rm -f conftest.$ac_objext conftest$ac_exeext
26618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26619   (eval $ac_link) 2>conftest.er1
26620   ac_status=$?
26621   grep -v '^ *+' conftest.er1 >conftest.err
26622   rm -f conftest.er1
26623   cat conftest.err >&5
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); } &&
26626          { ac_try='test -z "$ac_c_werror_flag"
26627                          || test ! -s conftest.err'
26628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629   (eval $ac_try) 2>&5
26630   ac_status=$?
26631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632   (exit $ac_status); }; } &&
26633          { ac_try='test -s conftest$ac_exeext'
26634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26635   (eval $ac_try) 2>&5
26636   ac_status=$?
26637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638   (exit $ac_status); }; }; then
26639   eval "$as_ac_var=yes"
26640 else
26641   echo "$as_me: failed program was:" >&5
26642 sed 's/^/| /' conftest.$ac_ext >&5
26643
26644 eval "$as_ac_var=no"
26645 fi
26646 rm -f conftest.err conftest.$ac_objext \
26647       conftest$ac_exeext conftest.$ac_ext
26648 fi
26649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26651 if test `eval echo '${'$as_ac_var'}'` = yes; then
26652   cat >>confdefs.h <<_ACEOF
26653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26654 _ACEOF
26655
26656 fi
26657 done
26658
26659 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
26660 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
26661 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
26662   echo $ECHO_N "(cached) $ECHO_C" >&6
26663 else
26664   cat >conftest.$ac_ext <<_ACEOF
26665 /* confdefs.h.  */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h.  */
26670 #include <linux/fs.h>
26671
26672 int
26673 main ()
26674 {
26675 #ifndef MS_MOVE
26676   char *p = (char *) MS_MOVE;
26677 #endif
26678
26679   ;
26680   return 0;
26681 }
26682 _ACEOF
26683 rm -f conftest.$ac_objext
26684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26685   (eval $ac_compile) 2>conftest.er1
26686   ac_status=$?
26687   grep -v '^ *+' conftest.er1 >conftest.err
26688   rm -f conftest.er1
26689   cat conftest.err >&5
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); } &&
26692          { ac_try='test -z "$ac_c_werror_flag"
26693                          || test ! -s conftest.err'
26694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26695   (eval $ac_try) 2>&5
26696   ac_status=$?
26697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698   (exit $ac_status); }; } &&
26699          { ac_try='test -s conftest.$ac_objext'
26700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701   (eval $ac_try) 2>&5
26702   ac_status=$?
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); }; }; then
26705   ac_cv_have_decl_MS_MOVE=yes
26706 else
26707   echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26709
26710 ac_cv_have_decl_MS_MOVE=no
26711 fi
26712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26713 fi
26714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
26715 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
26716 if test $ac_cv_have_decl_MS_MOVE = yes; then
26717
26718 cat >>confdefs.h <<_ACEOF
26719 #define HAVE_DECL_MS_MOVE 1
26720 _ACEOF
26721
26722
26723 else
26724   cat >>confdefs.h <<_ACEOF
26725 #define HAVE_DECL_MS_MOVE 0
26726 _ACEOF
26727
26728
26729 fi
26730
26731
26732 echo "$as_me:$LINENO: checking for xid_t" >&5
26733 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
26734 if test "${ac_cv_type_xid_t+set}" = set; then
26735   echo $ECHO_N "(cached) $ECHO_C" >&6
26736 else
26737   cat >conftest.$ac_ext <<_ACEOF
26738 /* confdefs.h.  */
26739 _ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h.  */
26743 #include <sys/types.h>
26744
26745 int
26746 main ()
26747 {
26748 if ((xid_t *) 0)
26749   return 0;
26750 if (sizeof (xid_t))
26751   return 0;
26752   ;
26753   return 0;
26754 }
26755 _ACEOF
26756 rm -f conftest.$ac_objext
26757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26758   (eval $ac_compile) 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } &&
26765          { ac_try='test -z "$ac_c_werror_flag"
26766                          || test ! -s conftest.err'
26767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768   (eval $ac_try) 2>&5
26769   ac_status=$?
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); }; } &&
26772          { ac_try='test -s conftest.$ac_objext'
26773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26774   (eval $ac_try) 2>&5
26775   ac_status=$?
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); }; }; then
26778   ac_cv_type_xid_t=yes
26779 else
26780   echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783 ac_cv_type_xid_t=no
26784 fi
26785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26786 fi
26787 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
26788 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
26789 if test $ac_cv_type_xid_t = yes; then
26790
26791 cat >>confdefs.h <<_ACEOF
26792 #define HAVE_XID_T 1
26793 _ACEOF
26794
26795
26796 fi
26797
26798 echo "$as_me:$LINENO: checking for nid_t" >&5
26799 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
26800 if test "${ac_cv_type_nid_t+set}" = set; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803   cat >conftest.$ac_ext <<_ACEOF
26804 /* confdefs.h.  */
26805 _ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h.  */
26809 #include <sys/types.h>
26810
26811 int
26812 main ()
26813 {
26814 if ((nid_t *) 0)
26815   return 0;
26816 if (sizeof (nid_t))
26817   return 0;
26818   ;
26819   return 0;
26820 }
26821 _ACEOF
26822 rm -f conftest.$ac_objext
26823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26824   (eval $ac_compile) 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } &&
26831          { ac_try='test -z "$ac_c_werror_flag"
26832                          || test ! -s conftest.err'
26833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834   (eval $ac_try) 2>&5
26835   ac_status=$?
26836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837   (exit $ac_status); }; } &&
26838          { ac_try='test -s conftest.$ac_objext'
26839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840   (eval $ac_try) 2>&5
26841   ac_status=$?
26842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); }; }; then
26844   ac_cv_type_nid_t=yes
26845 else
26846   echo "$as_me: failed program was:" >&5
26847 sed 's/^/| /' conftest.$ac_ext >&5
26848
26849 ac_cv_type_nid_t=no
26850 fi
26851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26852 fi
26853 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
26854 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
26855 if test $ac_cv_type_nid_t = yes; then
26856
26857 cat >>confdefs.h <<_ACEOF
26858 #define HAVE_NID_T 1
26859 _ACEOF
26860
26861
26862 fi
26863
26864
26865
26866 for ac_header in sys/capability.h
26867 do
26868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26870   echo "$as_me:$LINENO: checking for $ac_header" >&5
26871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26873   echo $ECHO_N "(cached) $ECHO_C" >&6
26874 fi
26875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26877 else
26878   # Is the header compilable?
26879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26881 cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887 $ac_includes_default
26888 #include <$ac_header>
26889 _ACEOF
26890 rm -f conftest.$ac_objext
26891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26892   (eval $ac_compile) 2>conftest.er1
26893   ac_status=$?
26894   grep -v '^ *+' conftest.er1 >conftest.err
26895   rm -f conftest.er1
26896   cat conftest.err >&5
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); } &&
26899          { ac_try='test -z "$ac_c_werror_flag"
26900                          || test ! -s conftest.err'
26901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902   (eval $ac_try) 2>&5
26903   ac_status=$?
26904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905   (exit $ac_status); }; } &&
26906          { ac_try='test -s conftest.$ac_objext'
26907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908   (eval $ac_try) 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; }; then
26912   ac_header_compiler=yes
26913 else
26914   echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.$ac_ext >&5
26916
26917 ac_header_compiler=no
26918 fi
26919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26921 echo "${ECHO_T}$ac_header_compiler" >&6
26922
26923 # Is the header present?
26924 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26926 cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932 #include <$ac_header>
26933 _ACEOF
26934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26936   ac_status=$?
26937   grep -v '^ *+' conftest.er1 >conftest.err
26938   rm -f conftest.er1
26939   cat conftest.err >&5
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); } >/dev/null; then
26942   if test -s conftest.err; then
26943     ac_cpp_err=$ac_c_preproc_warn_flag
26944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26945   else
26946     ac_cpp_err=
26947   fi
26948 else
26949   ac_cpp_err=yes
26950 fi
26951 if test -z "$ac_cpp_err"; then
26952   ac_header_preproc=yes
26953 else
26954   echo "$as_me: failed program was:" >&5
26955 sed 's/^/| /' conftest.$ac_ext >&5
26956
26957   ac_header_preproc=no
26958 fi
26959 rm -f conftest.err conftest.$ac_ext
26960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26961 echo "${ECHO_T}$ac_header_preproc" >&6
26962
26963 # So?  What about this header?
26964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26965   yes:no: )
26966     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26970     ac_header_preproc=yes
26971     ;;
26972   no:yes:* )
26973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26975     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26976 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26977     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26979     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26980 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26983     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26985     (
26986       cat <<\_ASBOX
26987 ## --------------------------------------------- ##
26988 ## Report this to vserver@list.linux-vserver.org ##
26989 ## --------------------------------------------- ##
26990 _ASBOX
26991     ) |
26992       sed "s/^/$as_me: WARNING:     /" >&2
26993     ;;
26994 esac
26995 echo "$as_me:$LINENO: checking for $ac_header" >&5
26996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26998   echo $ECHO_N "(cached) $ECHO_C" >&6
26999 else
27000   eval "$as_ac_Header=\$ac_header_preproc"
27001 fi
27002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27004
27005 fi
27006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27007   cat >>confdefs.h <<_ACEOF
27008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27009 _ACEOF
27010
27011 fi
27012
27013 done
27014
27015
27016 if test x"$ensc_have_dietlibc" = xno; then
27017         echo "$as_me:$LINENO: checking for openpty" >&5
27018 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
27019 if test "${ac_cv_func_openpty+set}" = set; then
27020   echo $ECHO_N "(cached) $ECHO_C" >&6
27021 else
27022   cat >conftest.$ac_ext <<_ACEOF
27023 /* confdefs.h.  */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h.  */
27028 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27030 #define openpty innocuous_openpty
27031
27032 /* System header to define __stub macros and hopefully few prototypes,
27033     which can conflict with char openpty (); below.
27034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27035     <limits.h> exists even on freestanding compilers.  */
27036
27037 #ifdef __STDC__
27038 # include <limits.h>
27039 #else
27040 # include <assert.h>
27041 #endif
27042
27043 #undef openpty
27044
27045 /* Override any gcc2 internal prototype to avoid an error.  */
27046 #ifdef __cplusplus
27047 extern "C"
27048 {
27049 #endif
27050 /* We use char because int might match the return type of a gcc2
27051    builtin and then its argument prototype would still apply.  */
27052 char openpty ();
27053 /* The GNU C library defines this for functions which it implements
27054     to always fail with ENOSYS.  Some functions are actually named
27055     something starting with __ and the normal name is an alias.  */
27056 #if defined (__stub_openpty) || defined (__stub___openpty)
27057 choke me
27058 #else
27059 char (*f) () = openpty;
27060 #endif
27061 #ifdef __cplusplus
27062 }
27063 #endif
27064
27065 int
27066 main ()
27067 {
27068 return f != openpty;
27069   ;
27070   return 0;
27071 }
27072 _ACEOF
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27075   (eval $ac_link) 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } &&
27082          { ac_try='test -z "$ac_c_werror_flag"
27083                          || test ! -s conftest.err'
27084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085   (eval $ac_try) 2>&5
27086   ac_status=$?
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); }; } &&
27089          { ac_try='test -s conftest$ac_exeext'
27090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091   (eval $ac_try) 2>&5
27092   ac_status=$?
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); }; }; then
27095   ac_cv_func_openpty=yes
27096 else
27097   echo "$as_me: failed program was:" >&5
27098 sed 's/^/| /' conftest.$ac_ext >&5
27099
27100 ac_cv_func_openpty=no
27101 fi
27102 rm -f conftest.err conftest.$ac_objext \
27103       conftest$ac_exeext conftest.$ac_ext
27104 fi
27105 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
27106 echo "${ECHO_T}$ac_cv_func_openpty" >&6
27107 if test $ac_cv_func_openpty = yes; then
27108   :
27109 else
27110
27111 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27112 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
27113 if test "${ac_cv_lib_util_openpty+set}" = set; then
27114   echo $ECHO_N "(cached) $ECHO_C" >&6
27115 else
27116   ac_check_lib_save_LIBS=$LIBS
27117 LIBS="-lutil  $LIBS"
27118 cat >conftest.$ac_ext <<_ACEOF
27119 /* confdefs.h.  */
27120 _ACEOF
27121 cat confdefs.h >>conftest.$ac_ext
27122 cat >>conftest.$ac_ext <<_ACEOF
27123 /* end confdefs.h.  */
27124
27125 /* Override any gcc2 internal prototype to avoid an error.  */
27126 #ifdef __cplusplus
27127 extern "C"
27128 #endif
27129 /* We use char because int might match the return type of a gcc2
27130    builtin and then its argument prototype would still apply.  */
27131 char openpty ();
27132 int
27133 main ()
27134 {
27135 openpty ();
27136   ;
27137   return 0;
27138 }
27139 _ACEOF
27140 rm -f conftest.$ac_objext conftest$ac_exeext
27141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27142   (eval $ac_link) 2>conftest.er1
27143   ac_status=$?
27144   grep -v '^ *+' conftest.er1 >conftest.err
27145   rm -f conftest.er1
27146   cat conftest.err >&5
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } &&
27149          { ac_try='test -z "$ac_c_werror_flag"
27150                          || test ! -s conftest.err'
27151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152   (eval $ac_try) 2>&5
27153   ac_status=$?
27154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); }; } &&
27156          { ac_try='test -s conftest$ac_exeext'
27157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158   (eval $ac_try) 2>&5
27159   ac_status=$?
27160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161   (exit $ac_status); }; }; then
27162   ac_cv_lib_util_openpty=yes
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167 ac_cv_lib_util_openpty=no
27168 fi
27169 rm -f conftest.err conftest.$ac_objext \
27170       conftest$ac_exeext conftest.$ac_ext
27171 LIBS=$ac_check_lib_save_LIBS
27172 fi
27173 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27174 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
27175 if test $ac_cv_lib_util_openpty = yes; then
27176   cat >>confdefs.h <<_ACEOF
27177 #define HAVE_LIBUTIL 1
27178 _ACEOF
27179
27180   LIBS="-lutil $LIBS"
27181
27182 else
27183   { { echo "$as_me:$LINENO: error:
27184 ****
27185 **** openpty could not be found
27186 ****" >&5
27187 echo "$as_me: error:
27188 ****
27189 **** openpty could not be found
27190 ****" >&2;}
27191    { (exit 1); exit 1; }; }
27192 fi
27193
27194 fi
27195
27196 fi
27197
27198
27199 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27200         ensc_have_beecrypt=yes
27201
27202         if test x"$ensc_have_beecrypt" = xyes; then
27203                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27204   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27205 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27206 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27207   echo $ECHO_N "(cached) $ECHO_C" >&6
27208 fi
27209 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27210 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27211 else
27212   # Is the header compilable?
27213 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27214 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27215 cat >conftest.$ac_ext <<_ACEOF
27216 /* confdefs.h.  */
27217 _ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h.  */
27221 $ac_includes_default
27222 #include <beecrypt/beecrypt.h>
27223 _ACEOF
27224 rm -f conftest.$ac_objext
27225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27226   (eval $ac_compile) 2>conftest.er1
27227   ac_status=$?
27228   grep -v '^ *+' conftest.er1 >conftest.err
27229   rm -f conftest.er1
27230   cat conftest.err >&5
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); } &&
27233          { ac_try='test -z "$ac_c_werror_flag"
27234                          || test ! -s conftest.err'
27235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236   (eval $ac_try) 2>&5
27237   ac_status=$?
27238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239   (exit $ac_status); }; } &&
27240          { ac_try='test -s conftest.$ac_objext'
27241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242   (eval $ac_try) 2>&5
27243   ac_status=$?
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); }; }; then
27246   ac_header_compiler=yes
27247 else
27248   echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251 ac_header_compiler=no
27252 fi
27253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27255 echo "${ECHO_T}$ac_header_compiler" >&6
27256
27257 # Is the header present?
27258 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27259 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27260 cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h.  */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h.  */
27266 #include <beecrypt/beecrypt.h>
27267 _ACEOF
27268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27270   ac_status=$?
27271   grep -v '^ *+' conftest.er1 >conftest.err
27272   rm -f conftest.er1
27273   cat conftest.err >&5
27274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275   (exit $ac_status); } >/dev/null; then
27276   if test -s conftest.err; then
27277     ac_cpp_err=$ac_c_preproc_warn_flag
27278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27279   else
27280     ac_cpp_err=
27281   fi
27282 else
27283   ac_cpp_err=yes
27284 fi
27285 if test -z "$ac_cpp_err"; then
27286   ac_header_preproc=yes
27287 else
27288   echo "$as_me: failed program was:" >&5
27289 sed 's/^/| /' conftest.$ac_ext >&5
27290
27291   ac_header_preproc=no
27292 fi
27293 rm -f conftest.err conftest.$ac_ext
27294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27295 echo "${ECHO_T}$ac_header_preproc" >&6
27296
27297 # So?  What about this header?
27298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27299   yes:no: )
27300     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27301 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27302     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27303 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27304     ac_header_preproc=yes
27305     ;;
27306   no:yes:* )
27307     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27308 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27309     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27310 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27311     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27312 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27313     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27314 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27315     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27316 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27317     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27318 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27319     (
27320       cat <<\_ASBOX
27321 ## --------------------------------------------- ##
27322 ## Report this to vserver@list.linux-vserver.org ##
27323 ## --------------------------------------------- ##
27324 _ASBOX
27325     ) |
27326       sed "s/^/$as_me: WARNING:     /" >&2
27327     ;;
27328 esac
27329 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27330 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27331 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27332   echo $ECHO_N "(cached) $ECHO_C" >&6
27333 else
27334   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27335 fi
27336 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27337 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27338
27339 fi
27340 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27341    :
27342 else
27343    ensc_have_beecrypt=no
27344 fi
27345
27346
27347         fi
27348
27349         if test x"$ensc_have_beecrypt" = xyes; then
27350                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27351 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27352 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27353   echo $ECHO_N "(cached) $ECHO_C" >&6
27354 else
27355   ac_check_lib_save_LIBS=$LIBS
27356 LIBS="-lbeecrypt  $LIBS"
27357 cat >conftest.$ac_ext <<_ACEOF
27358 /* confdefs.h.  */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h.  */
27363
27364 /* Override any gcc2 internal prototype to avoid an error.  */
27365 #ifdef __cplusplus
27366 extern "C"
27367 #endif
27368 /* We use char because int might match the return type of a gcc2
27369    builtin and then its argument prototype would still apply.  */
27370 char hashFunctionContextInit ();
27371 int
27372 main ()
27373 {
27374 hashFunctionContextInit ();
27375   ;
27376   return 0;
27377 }
27378 _ACEOF
27379 rm -f conftest.$ac_objext conftest$ac_exeext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27381   (eval $ac_link) 2>conftest.er1
27382   ac_status=$?
27383   grep -v '^ *+' conftest.er1 >conftest.err
27384   rm -f conftest.er1
27385   cat conftest.err >&5
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); } &&
27388          { ac_try='test -z "$ac_c_werror_flag"
27389                          || test ! -s conftest.err'
27390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391   (eval $ac_try) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; } &&
27395          { ac_try='test -s conftest$ac_exeext'
27396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397   (eval $ac_try) 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; }; then
27401   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27402 else
27403   echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27405
27406 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27407 fi
27408 rm -f conftest.err conftest.$ac_objext \
27409       conftest$ac_exeext conftest.$ac_ext
27410 LIBS=$ac_check_lib_save_LIBS
27411 fi
27412 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27413 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27414 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27415    :
27416 else
27417    ensc_have_beecrypt=no
27418 fi
27419
27420         fi
27421
27422         if test x"$ensc_have_beecrypt" != xyes; then
27423                 { echo "$as_me:$LINENO: WARNING:
27424 ****
27425 **** 'beecrypt' could not be found;
27426 **** this will disable the build of 'vhashify'
27427 ****" >&5
27428 echo "$as_me: WARNING:
27429 ****
27430 **** 'beecrypt' could not be found;
27431 **** this will disable the build of 'vhashify'
27432 ****" >&2;}
27433         fi
27434 else
27435         ensc_have_beecrypt=no
27436 fi
27437
27438
27439
27440 if test x"$ensc_have_beecrypt" = xyes; then
27441   ENSC_HAVE_BEECRYPT_TRUE=
27442   ENSC_HAVE_BEECRYPT_FALSE='#'
27443 else
27444   ENSC_HAVE_BEECRYPT_TRUE='#'
27445   ENSC_HAVE_BEECRYPT_FALSE=
27446 fi
27447
27448
27449
27450 if false; then
27451   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27452   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27453 else
27454   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27455   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27456 fi
27457
27458
27459
27460 echo "$as_me:$LINENO: checking for host initscripts" >&5
27461 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6
27462
27463 # Check whether --with-initscripts or --without-initscripts was given.
27464 if test "${with_initscripts+set}" = set; then
27465   withval="$with_initscripts"
27466
27467         case "$withval" in
27468         gentoo) ensc_with_init=gentoo;;
27469         sysv)   ensc_with_init=sysv;;
27470         *)      { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
27471 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
27472    { (exit 1); exit 1; }; };;
27473         esac
27474
27475 else
27476
27477         if test -e /etc/gentoo-release; then
27478                 ensc_with_init=gentoo
27479         else
27480                 ensc_with_init=sysv
27481         fi
27482
27483 fi;
27484 echo "$as_me:$LINENO: result: $ensc_with_init" >&5
27485 echo "${ECHO_T}$ensc_with_init" >&6
27486
27487
27488 if test x"$ensc_with_init" = xgentoo; then
27489   HAVE_GENTOO_INIT_TRUE=
27490   HAVE_GENTOO_INIT_FALSE='#'
27491 else
27492   HAVE_GENTOO_INIT_TRUE='#'
27493   HAVE_GENTOO_INIT_FALSE=
27494 fi
27495
27496
27497
27498 if test x"$ensc_with_init" = xsysv; then
27499   HAVE_SYSV_INIT_TRUE=
27500   HAVE_SYSV_INIT_FALSE='#'
27501 else
27502   HAVE_SYSV_INIT_TRUE='#'
27503   HAVE_SYSV_INIT_FALSE=
27504 fi
27505
27506
27507
27508
27509 cat >>confdefs.h <<\_ACEOF
27510 #define UTMP_GID 22
27511 _ACEOF
27512
27513
27514 if false; then
27515
27516 cat >>confdefs.h <<\_ACEOF
27517 #define HAVE_GROWING_STACK 1
27518 _ACEOF
27519
27520 fi
27521
27522
27523 cat >>confdefs.h <<\_ACEOF
27524 #define _FILE_OFFSET_BITS 64
27525 _ACEOF
27526
27527
27528 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27529 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27530 ensc_diet_msg=" (you have been warned)"
27531 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27532 ensc_diet_compat_msg=" (using -lcompat)"
27533 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27534 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27535 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27536 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27537 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27538
27539
27540
27541
27542
27543                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27544
27545 cat >confcache <<\_ACEOF
27546 # This file is a shell script that caches the results of configure
27547 # tests run on this system so they can be shared between configure
27548 # scripts and configure runs, see configure's option --config-cache.
27549 # It is not useful on other systems.  If it contains results you don't
27550 # want to keep, you may remove or edit it.
27551 #
27552 # config.status only pays attention to the cache file if you give it
27553 # the --recheck option to rerun configure.
27554 #
27555 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27556 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27557 # following values.
27558
27559 _ACEOF
27560
27561 # The following way of writing the cache mishandles newlines in values,
27562 # but we know of no workaround that is simple, portable, and efficient.
27563 # So, don't put newlines in cache variables' values.
27564 # Ultrix sh set writes to stderr and can't be redirected directly,
27565 # and sets the high bit in the cache file unless we assign to the vars.
27566 {
27567   (set) 2>&1 |
27568     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27569     *ac_space=\ *)
27570       # `set' does not quote correctly, so add quotes (double-quote
27571       # substitution turns \\\\ into \\, and sed turns \\ into \).
27572       sed -n \
27573         "s/'/'\\\\''/g;
27574           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27575       ;;
27576     *)
27577       # `set' quotes correctly as required by POSIX, so do not add quotes.
27578       sed -n \
27579         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27580       ;;
27581     esac;
27582 } |
27583   sed '
27584      t clear
27585      : clear
27586      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27587      t end
27588      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27589      : end' >>confcache
27590 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27591   if test -w $cache_file; then
27592     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27593     cat confcache >$cache_file
27594   else
27595     echo "not updating unwritable cache $cache_file"
27596   fi
27597 fi
27598 rm -f confcache
27599
27600 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27601 # Let make expand exec_prefix.
27602 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27603
27604 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27605 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27606 # trailing colons and then remove the whole line if VPATH becomes empty
27607 # (actually we leave an empty line to preserve line numbers).
27608 if test "x$srcdir" = x.; then
27609   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27610 s/:*\$(srcdir):*/:/;
27611 s/:*\${srcdir}:*/:/;
27612 s/:*@srcdir@:*/:/;
27613 s/^\([^=]*=[     ]*\):*/\1/;
27614 s/:*$//;
27615 s/^[^=]*=[       ]*$//;
27616 }'
27617 fi
27618
27619 DEFS=-DHAVE_CONFIG_H
27620
27621 ac_libobjs=
27622 ac_ltlibobjs=
27623 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27624   # 1. Remove the extension, and $U if already installed.
27625   ac_i=`echo "$ac_i" |
27626          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27627   # 2. Add them.
27628   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27629   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27630 done
27631 LIBOBJS=$ac_libobjs
27632
27633 LTLIBOBJS=$ac_ltlibobjs
27634
27635
27636 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27637   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27638 Usually this means the macro was only invoked conditionally." >&5
27639 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27640 Usually this means the macro was only invoked conditionally." >&2;}
27641    { (exit 1); exit 1; }; }
27642 fi
27643 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27644   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27645 Usually this means the macro was only invoked conditionally." >&5
27646 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27647 Usually this means the macro was only invoked conditionally." >&2;}
27648    { (exit 1); exit 1; }; }
27649 fi
27650 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27651   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27652 Usually this means the macro was only invoked conditionally." >&5
27653 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27654 Usually this means the macro was only invoked conditionally." >&2;}
27655    { (exit 1); exit 1; }; }
27656 fi
27657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27658   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27659 Usually this means the macro was only invoked conditionally." >&5
27660 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27661 Usually this means the macro was only invoked conditionally." >&2;}
27662    { (exit 1); exit 1; }; }
27663 fi
27664 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
27665   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27666 Usually this means the macro was only invoked conditionally." >&5
27667 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
27668 Usually this means the macro was only invoked conditionally." >&2;}
27669    { (exit 1); exit 1; }; }
27670 fi
27671 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
27672   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27673 Usually this means the macro was only invoked conditionally." >&5
27674 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
27675 Usually this means the macro was only invoked conditionally." >&2;}
27676    { (exit 1); exit 1; }; }
27677 fi
27678 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
27679   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
27680 Usually this means the macro was only invoked conditionally." >&5
27681 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
27682 Usually this means the macro was only invoked conditionally." >&2;}
27683    { (exit 1); exit 1; }; }
27684 fi
27685 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
27686   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
27687 Usually this means the macro was only invoked conditionally." >&5
27688 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
27689 Usually this means the macro was only invoked conditionally." >&2;}
27690    { (exit 1); exit 1; }; }
27691 fi
27692 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27693   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27694 Usually this means the macro was only invoked conditionally." >&5
27695 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27696 Usually this means the macro was only invoked conditionally." >&2;}
27697    { (exit 1); exit 1; }; }
27698 fi
27699 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27700   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27701 Usually this means the macro was only invoked conditionally." >&5
27702 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27703 Usually this means the macro was only invoked conditionally." >&2;}
27704    { (exit 1); exit 1; }; }
27705 fi
27706 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27707   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27708 Usually this means the macro was only invoked conditionally." >&5
27709 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27710 Usually this means the macro was only invoked conditionally." >&2;}
27711    { (exit 1); exit 1; }; }
27712 fi
27713 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27714   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27715 Usually this means the macro was only invoked conditionally." >&5
27716 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27717 Usually this means the macro was only invoked conditionally." >&2;}
27718    { (exit 1); exit 1; }; }
27719 fi
27720 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
27721   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
27722 Usually this means the macro was only invoked conditionally." >&5
27723 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
27724 Usually this means the macro was only invoked conditionally." >&2;}
27725    { (exit 1); exit 1; }; }
27726 fi
27727 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27728   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27729 Usually this means the macro was only invoked conditionally." >&5
27730 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27731 Usually this means the macro was only invoked conditionally." >&2;}
27732    { (exit 1); exit 1; }; }
27733 fi
27734 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
27735   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27736 Usually this means the macro was only invoked conditionally." >&5
27737 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
27738 Usually this means the macro was only invoked conditionally." >&2;}
27739    { (exit 1); exit 1; }; }
27740 fi
27741 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
27742   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27743 Usually this means the macro was only invoked conditionally." >&5
27744 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
27745 Usually this means the macro was only invoked conditionally." >&2;}
27746    { (exit 1); exit 1; }; }
27747 fi
27748 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
27749   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27750 Usually this means the macro was only invoked conditionally." >&5
27751 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
27752 Usually this means the macro was only invoked conditionally." >&2;}
27753    { (exit 1); exit 1; }; }
27754 fi
27755 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
27756   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
27757 Usually this means the macro was only invoked conditionally." >&5
27758 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
27759 Usually this means the macro was only invoked conditionally." >&2;}
27760    { (exit 1); exit 1; }; }
27761 fi
27762 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
27763   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27764 Usually this means the macro was only invoked conditionally." >&5
27765 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
27766 Usually this means the macro was only invoked conditionally." >&2;}
27767    { (exit 1); exit 1; }; }
27768 fi
27769 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
27770   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27771 Usually this means the macro was only invoked conditionally." >&5
27772 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
27773 Usually this means the macro was only invoked conditionally." >&2;}
27774    { (exit 1); exit 1; }; }
27775 fi
27776 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
27777   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27778 Usually this means the macro was only invoked conditionally." >&5
27779 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
27780 Usually this means the macro was only invoked conditionally." >&2;}
27781    { (exit 1); exit 1; }; }
27782 fi
27783 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
27784   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
27785 Usually this means the macro was only invoked conditionally." >&5
27786 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
27787 Usually this means the macro was only invoked conditionally." >&2;}
27788    { (exit 1); exit 1; }; }
27789 fi
27790 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
27791   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
27792 Usually this means the macro was only invoked conditionally." >&5
27793 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
27794 Usually this means the macro was only invoked conditionally." >&2;}
27795    { (exit 1); exit 1; }; }
27796 fi
27797
27798                         FEATURES_TXT="\
27799 Features:
27800                        CC: $CC, $($CC   --version | sed -e '1p;d')
27801                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
27802                  CPPFLAGS: '$CPPFLAGS'
27803                    CFLAGS: '$CFLAGS'
27804                  CXXFLAGS: '$CXXFLAGS'
27805                build/host: $build/$host
27806              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
27807        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
27808        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
27809            Available APIs: $enable_apis
27810             ext2fs Source: $ensc_cv_test_ext2fs_header
27811     syscall(2) invocation: $with_syscall
27812       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
27813
27814 Paths:
27815                    prefix: $prefix
27816         sysconf-Directory: $sysconfdir
27817             cfg-Directory: $sysconfdir/vservers
27818          initrd-Directory: $initrddir
27819        pkgstate-Directory: $localstatedir/run/vservers
27820           vserver-Rootdir: $vserverdir
27821 "
27822                         echo "$FEATURES_TXT" >FEATURES.txt
27823
27824
27825 : ${CONFIG_STATUS=./config.status}
27826 ac_clean_files_save=$ac_clean_files
27827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27828 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27829 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27830 cat >$CONFIG_STATUS <<_ACEOF
27831 #! $SHELL
27832 # Generated by $as_me.
27833 # Run this file to recreate the current configuration.
27834 # Compiler output produced by configure, useful for debugging
27835 # configure, is in config.log if it exists.
27836
27837 debug=false
27838 ac_cs_recheck=false
27839 ac_cs_silent=false
27840 SHELL=\${CONFIG_SHELL-$SHELL}
27841 _ACEOF
27842
27843 cat >>$CONFIG_STATUS <<\_ACEOF
27844 ## --------------------- ##
27845 ## M4sh Initialization.  ##
27846 ## --------------------- ##
27847
27848 # Be Bourne compatible
27849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27850   emulate sh
27851   NULLCMD=:
27852   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27853   # is contrary to our usage.  Disable this feature.
27854   alias -g '${1+"$@"}'='"$@"'
27855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27856   set -o posix
27857 fi
27858 DUALCASE=1; export DUALCASE # for MKS sh
27859
27860 # Support unset when possible.
27861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27862   as_unset=unset
27863 else
27864   as_unset=false
27865 fi
27866
27867
27868 # Work around bugs in pre-3.0 UWIN ksh.
27869 $as_unset ENV MAIL MAILPATH
27870 PS1='$ '
27871 PS2='> '
27872 PS4='+ '
27873
27874 # NLS nuisances.
27875 for as_var in \
27876   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27877   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27878   LC_TELEPHONE LC_TIME
27879 do
27880   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27881     eval $as_var=C; export $as_var
27882   else
27883     $as_unset $as_var
27884   fi
27885 done
27886
27887 # Required to use basename.
27888 if expr a : '\(a\)' >/dev/null 2>&1; then
27889   as_expr=expr
27890 else
27891   as_expr=false
27892 fi
27893
27894 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27895   as_basename=basename
27896 else
27897   as_basename=false
27898 fi
27899
27900
27901 # Name of the executable.
27902 as_me=`$as_basename "$0" ||
27903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27904          X"$0" : 'X\(//\)$' \| \
27905          X"$0" : 'X\(/\)$' \| \
27906          .     : '\(.\)' 2>/dev/null ||
27907 echo X/"$0" |
27908     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27909           /^X\/\(\/\/\)$/{ s//\1/; q; }
27910           /^X\/\(\/\).*/{ s//\1/; q; }
27911           s/.*/./; q'`
27912
27913
27914 # PATH needs CR, and LINENO needs CR and PATH.
27915 # Avoid depending upon Character Ranges.
27916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27919 as_cr_digits='0123456789'
27920 as_cr_alnum=$as_cr_Letters$as_cr_digits
27921
27922 # The user is always right.
27923 if test "${PATH_SEPARATOR+set}" != set; then
27924   echo "#! /bin/sh" >conf$$.sh
27925   echo  "exit 0"   >>conf$$.sh
27926   chmod +x conf$$.sh
27927   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27928     PATH_SEPARATOR=';'
27929   else
27930     PATH_SEPARATOR=:
27931   fi
27932   rm -f conf$$.sh
27933 fi
27934
27935
27936   as_lineno_1=$LINENO
27937   as_lineno_2=$LINENO
27938   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27939   test "x$as_lineno_1" != "x$as_lineno_2" &&
27940   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
27941   # Find who we are.  Look in the path if we contain no path at all
27942   # relative or not.
27943   case $0 in
27944     *[\\/]* ) as_myself=$0 ;;
27945     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27946 for as_dir in $PATH
27947 do
27948   IFS=$as_save_IFS
27949   test -z "$as_dir" && as_dir=.
27950   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27951 done
27952
27953        ;;
27954   esac
27955   # We did not find ourselves, most probably we were run as `sh COMMAND'
27956   # in which case we are not to be found in the path.
27957   if test "x$as_myself" = x; then
27958     as_myself=$0
27959   fi
27960   if test ! -f "$as_myself"; then
27961     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27962 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27963    { (exit 1); exit 1; }; }
27964   fi
27965   case $CONFIG_SHELL in
27966   '')
27967     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27968 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27969 do
27970   IFS=$as_save_IFS
27971   test -z "$as_dir" && as_dir=.
27972   for as_base in sh bash ksh sh5; do
27973          case $as_dir in
27974          /*)
27975            if ("$as_dir/$as_base" -c '
27976   as_lineno_1=$LINENO
27977   as_lineno_2=$LINENO
27978   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27979   test "x$as_lineno_1" != "x$as_lineno_2" &&
27980   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
27981              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27982              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27983              CONFIG_SHELL=$as_dir/$as_base
27984              export CONFIG_SHELL
27985              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27986            fi;;
27987          esac
27988        done
27989 done
27990 ;;
27991   esac
27992
27993   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27994   # uniformly replaced by the line number.  The first 'sed' inserts a
27995   # line-number line before each line; the second 'sed' does the real
27996   # work.  The second script uses 'N' to pair each line-number line
27997   # with the numbered line, and appends trailing '-' during
27998   # substitution so that $LINENO is not a special case at line end.
27999   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28000   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28001   sed '=' <$as_myself |
28002     sed '
28003       N
28004       s,$,-,
28005       : loop
28006       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28007       t loop
28008       s,-$,,
28009       s,^['$as_cr_digits']*\n,,
28010     ' >$as_me.lineno &&
28011   chmod +x $as_me.lineno ||
28012     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28013 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28014    { (exit 1); exit 1; }; }
28015
28016   # Don't try to exec as it changes $[0], causing all sort of problems
28017   # (the dirname of $[0] is not the place where we might find the
28018   # original and so on.  Autoconf is especially sensible to this).
28019   . ./$as_me.lineno
28020   # Exit status is that of the last command.
28021   exit
28022 }
28023
28024
28025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28026   *c*,-n*) ECHO_N= ECHO_C='
28027 ' ECHO_T='      ' ;;
28028   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28029   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28030 esac
28031
28032 if expr a : '\(a\)' >/dev/null 2>&1; then
28033   as_expr=expr
28034 else
28035   as_expr=false
28036 fi
28037
28038 rm -f conf$$ conf$$.exe conf$$.file
28039 echo >conf$$.file
28040 if ln -s conf$$.file conf$$ 2>/dev/null; then
28041   # We could just check for DJGPP; but this test a) works b) is more generic
28042   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28043   if test -f conf$$.exe; then
28044     # Don't use ln at all; we don't have any links
28045     as_ln_s='cp -p'
28046   else
28047     as_ln_s='ln -s'
28048   fi
28049 elif ln conf$$.file conf$$ 2>/dev/null; then
28050   as_ln_s=ln
28051 else
28052   as_ln_s='cp -p'
28053 fi
28054 rm -f conf$$ conf$$.exe conf$$.file
28055
28056 if mkdir -p . 2>/dev/null; then
28057   as_mkdir_p=:
28058 else
28059   test -d ./-p && rmdir ./-p
28060   as_mkdir_p=false
28061 fi
28062
28063 as_executable_p="test -f"
28064
28065 # Sed expression to map a string onto a valid CPP name.
28066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28067
28068 # Sed expression to map a string onto a valid variable name.
28069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28070
28071
28072 # IFS
28073 # We need space, tab and new line, in precisely that order.
28074 as_nl='
28075 '
28076 IFS="   $as_nl"
28077
28078 # CDPATH.
28079 $as_unset CDPATH
28080
28081 exec 6>&1
28082
28083 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28084 # report actual input values of CONFIG_FILES etc. instead of their
28085 # values after options handling.  Logging --version etc. is OK.
28086 exec 5>>config.log
28087 {
28088   echo
28089   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28090 ## Running $as_me. ##
28091 _ASBOX
28092 } >&5
28093 cat >&5 <<_CSEOF
28094
28095 This file was extended by util-vserver $as_me 0.30.213, which was
28096 generated by GNU Autoconf 2.59.  Invocation command line was
28097
28098   CONFIG_FILES    = $CONFIG_FILES
28099   CONFIG_HEADERS  = $CONFIG_HEADERS
28100   CONFIG_LINKS    = $CONFIG_LINKS
28101   CONFIG_COMMANDS = $CONFIG_COMMANDS
28102   $ $0 $@
28103
28104 _CSEOF
28105 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28106 echo >&5
28107 _ACEOF
28108
28109 # Files that config.status was made for.
28110 if test -n "$ac_config_files"; then
28111   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28112 fi
28113
28114 if test -n "$ac_config_headers"; then
28115   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28116 fi
28117
28118 if test -n "$ac_config_links"; then
28119   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28120 fi
28121
28122 if test -n "$ac_config_commands"; then
28123   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28124 fi
28125
28126 cat >>$CONFIG_STATUS <<\_ACEOF
28127
28128 ac_cs_usage="\
28129 \`$as_me' instantiates files from templates according to the
28130 current configuration.
28131
28132 Usage: $0 [OPTIONS] [FILE]...
28133
28134   -h, --help       print this help, then exit
28135   -V, --version    print version number, then exit
28136   -q, --quiet      do not print progress messages
28137   -d, --debug      don't remove temporary files
28138       --recheck    update $as_me by reconfiguring in the same conditions
28139   --file=FILE[:TEMPLATE]
28140                    instantiate the configuration file FILE
28141   --header=FILE[:TEMPLATE]
28142                    instantiate the configuration header FILE
28143
28144 Configuration files:
28145 $config_files
28146
28147 Configuration headers:
28148 $config_headers
28149
28150 Configuration commands:
28151 $config_commands
28152
28153 Report bugs to <bug-autoconf@gnu.org>."
28154 _ACEOF
28155
28156 cat >>$CONFIG_STATUS <<_ACEOF
28157 ac_cs_version="\\
28158 util-vserver config.status 0.30.213
28159 configured by $0, generated by GNU Autoconf 2.59,
28160   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28161
28162 Copyright (C) 2003 Free Software Foundation, Inc.
28163 This config.status script is free software; the Free Software Foundation
28164 gives unlimited permission to copy, distribute and modify it."
28165 srcdir=$srcdir
28166 INSTALL="$INSTALL"
28167 _ACEOF
28168
28169 cat >>$CONFIG_STATUS <<\_ACEOF
28170 # If no file are specified by the user, then we need to provide default
28171 # value.  By we need to know if files were specified by the user.
28172 ac_need_defaults=:
28173 while test $# != 0
28174 do
28175   case $1 in
28176   --*=*)
28177     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28178     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28179     ac_shift=:
28180     ;;
28181   -*)
28182     ac_option=$1
28183     ac_optarg=$2
28184     ac_shift=shift
28185     ;;
28186   *) # This is not an option, so the user has probably given explicit
28187      # arguments.
28188      ac_option=$1
28189      ac_need_defaults=false;;
28190   esac
28191
28192   case $ac_option in
28193   # Handling of the options.
28194 _ACEOF
28195 cat >>$CONFIG_STATUS <<\_ACEOF
28196   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28197     ac_cs_recheck=: ;;
28198   --version | --vers* | -V )
28199     echo "$ac_cs_version"; exit 0 ;;
28200   --he | --h)
28201     # Conflict between --help and --header
28202     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28203 Try \`$0 --help' for more information." >&5
28204 echo "$as_me: error: ambiguous option: $1
28205 Try \`$0 --help' for more information." >&2;}
28206    { (exit 1); exit 1; }; };;
28207   --help | --hel | -h )
28208     echo "$ac_cs_usage"; exit 0 ;;
28209   --debug | --d* | -d )
28210     debug=: ;;
28211   --file | --fil | --fi | --f )
28212     $ac_shift
28213     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28214     ac_need_defaults=false;;
28215   --header | --heade | --head | --hea )
28216     $ac_shift
28217     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28218     ac_need_defaults=false;;
28219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28220   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28221     ac_cs_silent=: ;;
28222
28223   # This is an error.
28224   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28225 Try \`$0 --help' for more information." >&5
28226 echo "$as_me: error: unrecognized option: $1
28227 Try \`$0 --help' for more information." >&2;}
28228    { (exit 1); exit 1; }; } ;;
28229
28230   *) ac_config_targets="$ac_config_targets $1" ;;
28231
28232   esac
28233   shift
28234 done
28235
28236 ac_configure_extra_args=
28237
28238 if $ac_cs_silent; then
28239   exec 6>/dev/null
28240   ac_configure_extra_args="$ac_configure_extra_args --silent"
28241 fi
28242
28243 _ACEOF
28244 cat >>$CONFIG_STATUS <<_ACEOF
28245 if \$ac_cs_recheck; then
28246   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28247   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28248 fi
28249
28250 _ACEOF
28251
28252 cat >>$CONFIG_STATUS <<_ACEOF
28253 #
28254 # INIT-COMMANDS section.
28255 #
28256
28257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28258
28259 _ACEOF
28260
28261
28262
28263 cat >>$CONFIG_STATUS <<\_ACEOF
28264 for ac_config_target in $ac_config_targets
28265 do
28266   case "$ac_config_target" in
28267   # Handling of arguments.
28268   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28269   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28270   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28271   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28272   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28273   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28274   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28275 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28276    { (exit 1); exit 1; }; };;
28277   esac
28278 done
28279
28280 # If the user did not use the arguments to specify the items to instantiate,
28281 # then the envvar interface is used.  Set only those that are not.
28282 # We use the long form for the default assignment because of an extremely
28283 # bizarre bug on SunOS 4.1.3.
28284 if $ac_need_defaults; then
28285   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28286   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28287   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28288 fi
28289
28290 # Have a temporary directory for convenience.  Make it in the build tree
28291 # simply because there is no reason to put it here, and in addition,
28292 # creating and moving files from /tmp can sometimes cause problems.
28293 # Create a temporary directory, and hook for its removal unless debugging.
28294 $debug ||
28295 {
28296   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28297   trap '{ (exit 1); exit 1; }' 1 2 13 15
28298 }
28299
28300 # Create a (secure) tmp directory for tmp files.
28301
28302 {
28303   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28304   test -n "$tmp" && test -d "$tmp"
28305 }  ||
28306 {
28307   tmp=./confstat$$-$RANDOM
28308   (umask 077 && mkdir $tmp)
28309 } ||
28310 {
28311    echo "$me: cannot create a temporary directory in ." >&2
28312    { (exit 1); exit 1; }
28313 }
28314
28315 _ACEOF
28316
28317 cat >>$CONFIG_STATUS <<_ACEOF
28318
28319 #
28320 # CONFIG_FILES section.
28321 #
28322
28323 # No need to generate the scripts if there are no CONFIG_FILES.
28324 # This happens for instance when ./config.status config.h
28325 if test -n "\$CONFIG_FILES"; then
28326   # Protect against being on the right side of a sed subst in config.status.
28327   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28328    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28329 s,@SHELL@,$SHELL,;t t
28330 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28331 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28332 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28333 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28334 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28335 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28336 s,@exec_prefix@,$exec_prefix,;t t
28337 s,@prefix@,$prefix,;t t
28338 s,@program_transform_name@,$program_transform_name,;t t
28339 s,@bindir@,$bindir,;t t
28340 s,@sbindir@,$sbindir,;t t
28341 s,@libexecdir@,$libexecdir,;t t
28342 s,@datadir@,$datadir,;t t
28343 s,@sysconfdir@,$sysconfdir,;t t
28344 s,@sharedstatedir@,$sharedstatedir,;t t
28345 s,@localstatedir@,$localstatedir,;t t
28346 s,@libdir@,$libdir,;t t
28347 s,@includedir@,$includedir,;t t
28348 s,@oldincludedir@,$oldincludedir,;t t
28349 s,@infodir@,$infodir,;t t
28350 s,@mandir@,$mandir,;t t
28351 s,@build_alias@,$build_alias,;t t
28352 s,@host_alias@,$host_alias,;t t
28353 s,@target_alias@,$target_alias,;t t
28354 s,@DEFS@,$DEFS,;t t
28355 s,@ECHO_C@,$ECHO_C,;t t
28356 s,@ECHO_N@,$ECHO_N,;t t
28357 s,@ECHO_T@,$ECHO_T,;t t
28358 s,@LIBS@,$LIBS,;t t
28359 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28360 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28361 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28362 s,@CYGPATH_W@,$CYGPATH_W,;t t
28363 s,@PACKAGE@,$PACKAGE,;t t
28364 s,@VERSION@,$VERSION,;t t
28365 s,@ACLOCAL@,$ACLOCAL,;t t
28366 s,@AUTOCONF@,$AUTOCONF,;t t
28367 s,@AUTOMAKE@,$AUTOMAKE,;t t
28368 s,@AUTOHEADER@,$AUTOHEADER,;t t
28369 s,@MAKEINFO@,$MAKEINFO,;t t
28370 s,@install_sh@,$install_sh,;t t
28371 s,@STRIP@,$STRIP,;t t
28372 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28373 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28374 s,@mkdir_p@,$mkdir_p,;t t
28375 s,@AWK@,$AWK,;t t
28376 s,@SET_MAKE@,$SET_MAKE,;t t
28377 s,@am__leading_dot@,$am__leading_dot,;t t
28378 s,@AMTAR@,$AMTAR,;t t
28379 s,@am__tar@,$am__tar,;t t
28380 s,@am__untar@,$am__untar,;t t
28381 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28382 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28383 s,@MAINT@,$MAINT,;t t
28384 s,@build@,$build,;t t
28385 s,@build_cpu@,$build_cpu,;t t
28386 s,@build_vendor@,$build_vendor,;t t
28387 s,@build_os@,$build_os,;t t
28388 s,@host@,$host,;t t
28389 s,@host_cpu@,$host_cpu,;t t
28390 s,@host_vendor@,$host_vendor,;t t
28391 s,@host_os@,$host_os,;t t
28392 s,@GPG_KEY@,$GPG_KEY,;t t
28393 s,@CXX@,$CXX,;t t
28394 s,@CXXFLAGS@,$CXXFLAGS,;t t
28395 s,@LDFLAGS@,$LDFLAGS,;t t
28396 s,@CPPFLAGS@,$CPPFLAGS,;t t
28397 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28398 s,@EXEEXT@,$EXEEXT,;t t
28399 s,@OBJEXT@,$OBJEXT,;t t
28400 s,@DEPDIR@,$DEPDIR,;t t
28401 s,@am__include@,$am__include,;t t
28402 s,@am__quote@,$am__quote,;t t
28403 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28404 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28405 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28406 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28407 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28408 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28409 s,@CC@,$CC,;t t
28410 s,@CFLAGS@,$CFLAGS,;t t
28411 s,@ac_ct_CC@,$ac_ct_CC,;t t
28412 s,@CCDEPMODE@,$CCDEPMODE,;t t
28413 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28414 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28415 s,@LN_S@,$LN_S,;t t
28416 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28417 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28418 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28419 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28420 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28421 s,@CAT@,$CAT,;t t
28422 s,@CHOWN@,$CHOWN,;t t
28423 s,@CMP@,$CMP,;t t
28424 s,@CP@,$CP,;t t
28425 s,@DIRNAME@,$DIRNAME,;t t
28426 s,@EGREP@,$EGREP,;t t
28427 s,@ENV@,$ENV,;t t
28428 s,@GREP@,$GREP,;t t
28429 s,@LN@,$LN,;t t
28430 s,@MKDIR@,$MKDIR,;t t
28431 s,@MKFIFO@,$MKFIFO,;t t
28432 s,@MKTEMP@,$MKTEMP,;t t
28433 s,@MOUNT@,$MOUNT,;t t
28434 s,@MV@,$MV,;t t
28435 s,@NICE@,$NICE,;t t
28436 s,@PS@,$PS,;t t
28437 s,@RM@,$RM,;t t
28438 s,@RMDIR@,$RMDIR,;t t
28439 s,@SED@,$SED,;t t
28440 s,@SH@,$SH,;t t
28441 s,@TAC@,$TAC,;t t
28442 s,@TAR@,$TAR,;t t
28443 s,@TOUCH@,$TOUCH,;t t
28444 s,@TTY@,$TTY,;t t
28445 s,@UMOUNT@,$UMOUNT,;t t
28446 s,@WC@,$WC,;t t
28447 s,@IP@,$IP,;t t
28448 s,@IPTABLES@,$IPTABLES,;t t
28449 s,@MODPROBE@,$MODPROBE,;t t
28450 s,@NAMEIF@,$NAMEIF,;t t
28451 s,@NOHUP@,$NOHUP,;t t
28452 s,@RMMOD@,$RMMOD,;t t
28453 s,@VCONFIG@,$VCONFIG,;t t
28454 s,@WGET@,$WGET,;t t
28455 s,@FILE@,$FILE,;t t
28456 s,@GZIP@,$GZIP,;t t
28457 s,@BZIP2@,$BZIP2,;t t
28458 s,@CPIO@,$CPIO,;t t
28459 s,@RESTORE@,$RESTORE,;t t
28460 s,@RSYNC@,$RSYNC,;t t
28461 s,@DOXYGEN@,$DOXYGEN,;t t
28462 s,@XSLTP@,$XSLTP,;t t
28463 s,@XSLTPROC@,$XSLTPROC,;t t
28464 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28465 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28466 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28467 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28468 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28469 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28470 s,@initrddir@,$initrddir,;t t
28471 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28472 s,@CPP@,$CPP,;t t
28473 s,@DIET@,$DIET,;t t
28474 s,@DIETFLAGS@,$DIETFLAGS,;t t
28475 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28476 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28477 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28478 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28479 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28480 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28481 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28482 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28483 s,@ECHO@,$ECHO,;t t
28484 s,@AR@,$AR,;t t
28485 s,@ac_ct_AR@,$ac_ct_AR,;t t
28486 s,@RANLIB@,$RANLIB,;t t
28487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28488 s,@CXXCPP@,$CXXCPP,;t t
28489 s,@F77@,$F77,;t t
28490 s,@FFLAGS@,$FFLAGS,;t t
28491 s,@ac_ct_F77@,$ac_ct_F77,;t t
28492 s,@LIBTOOL@,$LIBTOOL,;t t
28493 s,@vserverdir@,$vserverdir,;t t
28494 s,@SVN2CL@,$SVN2CL,;t t
28495 s,@HAVE_SVN2CL_TRUE@,$HAVE_SVN2CL_TRUE,;t t
28496 s,@HAVE_SVN2CL_FALSE@,$HAVE_SVN2CL_FALSE,;t t
28497 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28498 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28499 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28500 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28501 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28502 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28503 s,@HAVE_GENTOO_INIT_TRUE@,$HAVE_GENTOO_INIT_TRUE,;t t
28504 s,@HAVE_GENTOO_INIT_FALSE@,$HAVE_GENTOO_INIT_FALSE,;t t
28505 s,@HAVE_SYSV_INIT_TRUE@,$HAVE_SYSV_INIT_TRUE,;t t
28506 s,@HAVE_SYSV_INIT_FALSE@,$HAVE_SYSV_INIT_FALSE,;t t
28507 s,@LIBOBJS@,$LIBOBJS,;t t
28508 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28509 CEOF
28510
28511 _ACEOF
28512
28513   cat >>$CONFIG_STATUS <<\_ACEOF
28514   # Split the substitutions into bite-sized pieces for seds with
28515   # small command number limits, like on Digital OSF/1 and HP-UX.
28516   ac_max_sed_lines=48
28517   ac_sed_frag=1 # Number of current file.
28518   ac_beg=1 # First line for current file.
28519   ac_end=$ac_max_sed_lines # Line after last line for current file.
28520   ac_more_lines=:
28521   ac_sed_cmds=
28522   while $ac_more_lines; do
28523     if test $ac_beg -gt 1; then
28524       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28525     else
28526       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28527     fi
28528     if test ! -s $tmp/subs.frag; then
28529       ac_more_lines=false
28530     else
28531       # The purpose of the label and of the branching condition is to
28532       # speed up the sed processing (if there are no `@' at all, there
28533       # is no need to browse any of the substitutions).
28534       # These are the two extra sed commands mentioned above.
28535       (echo ':t
28536   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28537       if test -z "$ac_sed_cmds"; then
28538         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28539       else
28540         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28541       fi
28542       ac_sed_frag=`expr $ac_sed_frag + 1`
28543       ac_beg=$ac_end
28544       ac_end=`expr $ac_end + $ac_max_sed_lines`
28545     fi
28546   done
28547   if test -z "$ac_sed_cmds"; then
28548     ac_sed_cmds=cat
28549   fi
28550 fi # test -n "$CONFIG_FILES"
28551
28552 _ACEOF
28553 cat >>$CONFIG_STATUS <<\_ACEOF
28554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28555   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28556   case $ac_file in
28557   - | *:- | *:-:* ) # input from stdin
28558         cat >$tmp/stdin
28559         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28561   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28563   * )   ac_file_in=$ac_file.in ;;
28564   esac
28565
28566   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28567   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28569          X"$ac_file" : 'X\(//\)[^/]' \| \
28570          X"$ac_file" : 'X\(//\)$' \| \
28571          X"$ac_file" : 'X\(/\)' \| \
28572          .     : '\(.\)' 2>/dev/null ||
28573 echo X"$ac_file" |
28574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28576           /^X\(\/\/\)$/{ s//\1/; q; }
28577           /^X\(\/\).*/{ s//\1/; q; }
28578           s/.*/./; q'`
28579   { if $as_mkdir_p; then
28580     mkdir -p "$ac_dir"
28581   else
28582     as_dir="$ac_dir"
28583     as_dirs=
28584     while test ! -d "$as_dir"; do
28585       as_dirs="$as_dir $as_dirs"
28586       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28588          X"$as_dir" : 'X\(//\)[^/]' \| \
28589          X"$as_dir" : 'X\(//\)$' \| \
28590          X"$as_dir" : 'X\(/\)' \| \
28591          .     : '\(.\)' 2>/dev/null ||
28592 echo X"$as_dir" |
28593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28595           /^X\(\/\/\)$/{ s//\1/; q; }
28596           /^X\(\/\).*/{ s//\1/; q; }
28597           s/.*/./; q'`
28598     done
28599     test ! -n "$as_dirs" || mkdir $as_dirs
28600   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28602    { (exit 1); exit 1; }; }; }
28603
28604   ac_builddir=.
28605
28606 if test "$ac_dir" != .; then
28607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28608   # A "../" for each directory in $ac_dir_suffix.
28609   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28610 else
28611   ac_dir_suffix= ac_top_builddir=
28612 fi
28613
28614 case $srcdir in
28615   .)  # No --srcdir option.  We are building in place.
28616     ac_srcdir=.
28617     if test -z "$ac_top_builddir"; then
28618        ac_top_srcdir=.
28619     else
28620        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28621     fi ;;
28622   [\\/]* | ?:[\\/]* )  # Absolute path.
28623     ac_srcdir=$srcdir$ac_dir_suffix;
28624     ac_top_srcdir=$srcdir ;;
28625   *) # Relative path.
28626     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28627     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28628 esac
28629
28630 # Do not use `cd foo && pwd` to compute absolute paths, because
28631 # the directories may not exist.
28632 case `pwd` in
28633 .) ac_abs_builddir="$ac_dir";;
28634 *)
28635   case "$ac_dir" in
28636   .) ac_abs_builddir=`pwd`;;
28637   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28638   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28639   esac;;
28640 esac
28641 case $ac_abs_builddir in
28642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28643 *)
28644   case ${ac_top_builddir}. in
28645   .) ac_abs_top_builddir=$ac_abs_builddir;;
28646   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28647   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28648   esac;;
28649 esac
28650 case $ac_abs_builddir in
28651 .) ac_abs_srcdir=$ac_srcdir;;
28652 *)
28653   case $ac_srcdir in
28654   .) ac_abs_srcdir=$ac_abs_builddir;;
28655   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28656   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28657   esac;;
28658 esac
28659 case $ac_abs_builddir in
28660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28661 *)
28662   case $ac_top_srcdir in
28663   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28664   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28665   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28666   esac;;
28667 esac
28668
28669
28670   case $INSTALL in
28671   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28672   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28673   esac
28674
28675   if test x"$ac_file" != x-; then
28676     { echo "$as_me:$LINENO: creating $ac_file" >&5
28677 echo "$as_me: creating $ac_file" >&6;}
28678     rm -f "$ac_file"
28679   fi
28680   # Let's still pretend it is `configure' which instantiates (i.e., don't
28681   # use $as_me), people would be surprised to read:
28682   #    /* config.h.  Generated by config.status.  */
28683   if test x"$ac_file" = x-; then
28684     configure_input=
28685   else
28686     configure_input="$ac_file.  "
28687   fi
28688   configure_input=$configure_input"Generated from `echo $ac_file_in |
28689                                      sed 's,.*/,,'` by configure."
28690
28691   # First look for the input files in the build tree, otherwise in the
28692   # src tree.
28693   ac_file_inputs=`IFS=:
28694     for f in $ac_file_in; do
28695       case $f in
28696       -) echo $tmp/stdin ;;
28697       [\\/$]*)
28698          # Absolute (can't be DOS-style, as IFS=:)
28699          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28700 echo "$as_me: error: cannot find input file: $f" >&2;}
28701    { (exit 1); exit 1; }; }
28702          echo "$f";;
28703       *) # Relative
28704          if test -f "$f"; then
28705            # Build tree
28706            echo "$f"
28707          elif test -f "$srcdir/$f"; then
28708            # Source tree
28709            echo "$srcdir/$f"
28710          else
28711            # /dev/null tree
28712            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28713 echo "$as_me: error: cannot find input file: $f" >&2;}
28714    { (exit 1); exit 1; }; }
28715          fi;;
28716       esac
28717     done` || { (exit 1); exit 1; }
28718 _ACEOF
28719 cat >>$CONFIG_STATUS <<_ACEOF
28720   sed "$ac_vpsub
28721 $extrasub
28722 _ACEOF
28723 cat >>$CONFIG_STATUS <<\_ACEOF
28724 :t
28725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28726 s,@configure_input@,$configure_input,;t t
28727 s,@srcdir@,$ac_srcdir,;t t
28728 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28729 s,@top_srcdir@,$ac_top_srcdir,;t t
28730 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28731 s,@builddir@,$ac_builddir,;t t
28732 s,@abs_builddir@,$ac_abs_builddir,;t t
28733 s,@top_builddir@,$ac_top_builddir,;t t
28734 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28735 s,@INSTALL@,$ac_INSTALL,;t t
28736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28737   rm -f $tmp/stdin
28738   if test x"$ac_file" != x-; then
28739     mv $tmp/out $ac_file
28740   else
28741     cat $tmp/out
28742     rm -f $tmp/out
28743   fi
28744
28745 done
28746 _ACEOF
28747 cat >>$CONFIG_STATUS <<\_ACEOF
28748
28749 #
28750 # CONFIG_HEADER section.
28751 #
28752
28753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28755 #
28756 # ac_d sets the value in "#define NAME VALUE" lines.
28757 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
28758 ac_dB='[         ].*$,\1#\2'
28759 ac_dC=' '
28760 ac_dD=',;t'
28761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28762 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
28763 ac_uB='$,\1#\2define\3'
28764 ac_uC=' '
28765 ac_uD=',;t'
28766
28767 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28769   case $ac_file in
28770   - | *:- | *:-:* ) # input from stdin
28771         cat >$tmp/stdin
28772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28776   * )   ac_file_in=$ac_file.in ;;
28777   esac
28778
28779   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28780 echo "$as_me: creating $ac_file" >&6;}
28781
28782   # First look for the input files in the build tree, otherwise in the
28783   # src tree.
28784   ac_file_inputs=`IFS=:
28785     for f in $ac_file_in; do
28786       case $f in
28787       -) echo $tmp/stdin ;;
28788       [\\/$]*)
28789          # Absolute (can't be DOS-style, as IFS=:)
28790          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28791 echo "$as_me: error: cannot find input file: $f" >&2;}
28792    { (exit 1); exit 1; }; }
28793          # Do quote $f, to prevent DOS paths from being IFS'd.
28794          echo "$f";;
28795       *) # Relative
28796          if test -f "$f"; then
28797            # Build tree
28798            echo "$f"
28799          elif test -f "$srcdir/$f"; then
28800            # Source tree
28801            echo "$srcdir/$f"
28802          else
28803            # /dev/null tree
28804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28805 echo "$as_me: error: cannot find input file: $f" >&2;}
28806    { (exit 1); exit 1; }; }
28807          fi;;
28808       esac
28809     done` || { (exit 1); exit 1; }
28810   # Remove the trailing spaces.
28811   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
28812
28813 _ACEOF
28814
28815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28816 # `conftest.undefs', that substitutes the proper values into
28817 # config.h.in to produce config.h.  The first handles `#define'
28818 # templates, and the second `#undef' templates.
28819 # And first: Protect against being on the right side of a sed subst in
28820 # config.status.  Protect against being in an unquoted here document
28821 # in config.status.
28822 rm -f conftest.defines conftest.undefs
28823 # Using a here document instead of a string reduces the quoting nightmare.
28824 # Putting comments in sed scripts is not portable.
28825 #
28826 # `end' is used to avoid that the second main sed command (meant for
28827 # 0-ary CPP macros) applies to n-ary macro definitions.
28828 # See the Autoconf documentation for `clear'.
28829 cat >confdef2sed.sed <<\_ACEOF
28830 s/[\\&,]/\\&/g
28831 s,[\\$`],\\&,g
28832 t clear
28833 : clear
28834 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28835 t end
28836 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28837 : end
28838 _ACEOF
28839 # If some macros were called several times there might be several times
28840 # the same #defines, which is useless.  Nevertheless, we may not want to
28841 # sort them, since we want the *last* AC-DEFINE to be honored.
28842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28844 rm -f confdef2sed.sed
28845
28846 # This sed command replaces #undef with comments.  This is necessary, for
28847 # example, in the case of _POSIX_SOURCE, which is predefined and required
28848 # on some systems where configure will not decide to define it.
28849 cat >>conftest.undefs <<\_ACEOF
28850 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28851 _ACEOF
28852
28853 # Break up conftest.defines because some shells have a limit on the size
28854 # of here documents, and old seds have small limits too (100 cmds).
28855 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28856 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28857 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28858 echo '  :' >>$CONFIG_STATUS
28859 rm -f conftest.tail
28860 while grep . conftest.defines >/dev/null
28861 do
28862   # Write a limited-size here document to $tmp/defines.sed.
28863   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28864   # Speed up: don't consider the non `#define' lines.
28865   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28866   # Work around the forget-to-reset-the-flag bug.
28867   echo 't clr' >>$CONFIG_STATUS
28868   echo ': clr' >>$CONFIG_STATUS
28869   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28870   echo 'CEOF
28871   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28872   rm -f $tmp/in
28873   mv $tmp/out $tmp/in
28874 ' >>$CONFIG_STATUS
28875   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28876   rm -f conftest.defines
28877   mv conftest.tail conftest.defines
28878 done
28879 rm -f conftest.defines
28880 echo '  fi # grep' >>$CONFIG_STATUS
28881 echo >>$CONFIG_STATUS
28882
28883 # Break up conftest.undefs because some shells have a limit on the size
28884 # of here documents, and old seds have small limits too (100 cmds).
28885 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28886 rm -f conftest.tail
28887 while grep . conftest.undefs >/dev/null
28888 do
28889   # Write a limited-size here document to $tmp/undefs.sed.
28890   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28891   # Speed up: don't consider the non `#undef'
28892   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28893   # Work around the forget-to-reset-the-flag bug.
28894   echo 't clr' >>$CONFIG_STATUS
28895   echo ': clr' >>$CONFIG_STATUS
28896   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28897   echo 'CEOF
28898   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28899   rm -f $tmp/in
28900   mv $tmp/out $tmp/in
28901 ' >>$CONFIG_STATUS
28902   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28903   rm -f conftest.undefs
28904   mv conftest.tail conftest.undefs
28905 done
28906 rm -f conftest.undefs
28907
28908 cat >>$CONFIG_STATUS <<\_ACEOF
28909   # Let's still pretend it is `configure' which instantiates (i.e., don't
28910   # use $as_me), people would be surprised to read:
28911   #    /* config.h.  Generated by config.status.  */
28912   if test x"$ac_file" = x-; then
28913     echo "/* Generated by configure.  */" >$tmp/config.h
28914   else
28915     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28916   fi
28917   cat $tmp/in >>$tmp/config.h
28918   rm -f $tmp/in
28919   if test x"$ac_file" != x-; then
28920     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28921       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28922 echo "$as_me: $ac_file is unchanged" >&6;}
28923     else
28924       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28926          X"$ac_file" : 'X\(//\)[^/]' \| \
28927          X"$ac_file" : 'X\(//\)$' \| \
28928          X"$ac_file" : 'X\(/\)' \| \
28929          .     : '\(.\)' 2>/dev/null ||
28930 echo X"$ac_file" |
28931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28933           /^X\(\/\/\)$/{ s//\1/; q; }
28934           /^X\(\/\).*/{ s//\1/; q; }
28935           s/.*/./; q'`
28936       { if $as_mkdir_p; then
28937     mkdir -p "$ac_dir"
28938   else
28939     as_dir="$ac_dir"
28940     as_dirs=
28941     while test ! -d "$as_dir"; do
28942       as_dirs="$as_dir $as_dirs"
28943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28945          X"$as_dir" : 'X\(//\)[^/]' \| \
28946          X"$as_dir" : 'X\(//\)$' \| \
28947          X"$as_dir" : 'X\(/\)' \| \
28948          .     : '\(.\)' 2>/dev/null ||
28949 echo X"$as_dir" |
28950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28952           /^X\(\/\/\)$/{ s//\1/; q; }
28953           /^X\(\/\).*/{ s//\1/; q; }
28954           s/.*/./; q'`
28955     done
28956     test ! -n "$as_dirs" || mkdir $as_dirs
28957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28959    { (exit 1); exit 1; }; }; }
28960
28961       rm -f $ac_file
28962       mv $tmp/config.h $ac_file
28963     fi
28964   else
28965     cat $tmp/config.h
28966     rm -f $tmp/config.h
28967   fi
28968 # Compute $ac_file's index in $config_headers.
28969 _am_stamp_count=1
28970 for _am_header in $config_headers :; do
28971   case $_am_header in
28972     $ac_file | $ac_file:* )
28973       break ;;
28974     * )
28975       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28976   esac
28977 done
28978 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28979 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28980          X$ac_file : 'X\(//\)[^/]' \| \
28981          X$ac_file : 'X\(//\)$' \| \
28982          X$ac_file : 'X\(/\)' \| \
28983          .     : '\(.\)' 2>/dev/null ||
28984 echo X$ac_file |
28985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28987           /^X\(\/\/\)$/{ s//\1/; q; }
28988           /^X\(\/\).*/{ s//\1/; q; }
28989           s/.*/./; q'`/stamp-h$_am_stamp_count
28990 done
28991 _ACEOF
28992 cat >>$CONFIG_STATUS <<\_ACEOF
28993
28994 #
28995 # CONFIG_COMMANDS section.
28996 #
28997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28998   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28999   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29000   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29002          X"$ac_dest" : 'X\(//\)[^/]' \| \
29003          X"$ac_dest" : 'X\(//\)$' \| \
29004          X"$ac_dest" : 'X\(/\)' \| \
29005          .     : '\(.\)' 2>/dev/null ||
29006 echo X"$ac_dest" |
29007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29008           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29009           /^X\(\/\/\)$/{ s//\1/; q; }
29010           /^X\(\/\).*/{ s//\1/; q; }
29011           s/.*/./; q'`
29012   { if $as_mkdir_p; then
29013     mkdir -p "$ac_dir"
29014   else
29015     as_dir="$ac_dir"
29016     as_dirs=
29017     while test ! -d "$as_dir"; do
29018       as_dirs="$as_dir $as_dirs"
29019       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29021          X"$as_dir" : 'X\(//\)[^/]' \| \
29022          X"$as_dir" : 'X\(//\)$' \| \
29023          X"$as_dir" : 'X\(/\)' \| \
29024          .     : '\(.\)' 2>/dev/null ||
29025 echo X"$as_dir" |
29026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29028           /^X\(\/\/\)$/{ s//\1/; q; }
29029           /^X\(\/\).*/{ s//\1/; q; }
29030           s/.*/./; q'`
29031     done
29032     test ! -n "$as_dirs" || mkdir $as_dirs
29033   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29035    { (exit 1); exit 1; }; }; }
29036
29037   ac_builddir=.
29038
29039 if test "$ac_dir" != .; then
29040   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29041   # A "../" for each directory in $ac_dir_suffix.
29042   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29043 else
29044   ac_dir_suffix= ac_top_builddir=
29045 fi
29046
29047 case $srcdir in
29048   .)  # No --srcdir option.  We are building in place.
29049     ac_srcdir=.
29050     if test -z "$ac_top_builddir"; then
29051        ac_top_srcdir=.
29052     else
29053        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29054     fi ;;
29055   [\\/]* | ?:[\\/]* )  # Absolute path.
29056     ac_srcdir=$srcdir$ac_dir_suffix;
29057     ac_top_srcdir=$srcdir ;;
29058   *) # Relative path.
29059     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29060     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29061 esac
29062
29063 # Do not use `cd foo && pwd` to compute absolute paths, because
29064 # the directories may not exist.
29065 case `pwd` in
29066 .) ac_abs_builddir="$ac_dir";;
29067 *)
29068   case "$ac_dir" in
29069   .) ac_abs_builddir=`pwd`;;
29070   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29071   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29072   esac;;
29073 esac
29074 case $ac_abs_builddir in
29075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29076 *)
29077   case ${ac_top_builddir}. in
29078   .) ac_abs_top_builddir=$ac_abs_builddir;;
29079   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29080   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29081   esac;;
29082 esac
29083 case $ac_abs_builddir in
29084 .) ac_abs_srcdir=$ac_srcdir;;
29085 *)
29086   case $ac_srcdir in
29087   .) ac_abs_srcdir=$ac_abs_builddir;;
29088   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29089   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29090   esac;;
29091 esac
29092 case $ac_abs_builddir in
29093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29094 *)
29095   case $ac_top_srcdir in
29096   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29097   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29098   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29099   esac;;
29100 esac
29101
29102
29103   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29104 echo "$as_me: executing $ac_dest commands" >&6;}
29105   case $ac_dest in
29106     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29107   # Strip MF so we end up with the name of the file.
29108   mf=`echo "$mf" | sed -e 's/:.*$//'`
29109   # Check whether this is an Automake generated Makefile or not.
29110   # We used to match only the files named `Makefile.in', but
29111   # some people rename them; so instead we look at the file content.
29112   # Grep'ing the first line is not enough: some people post-process
29113   # each Makefile.in and add a new line on top of each file to say so.
29114   # So let's grep whole file.
29115   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29116     dirpart=`(dirname "$mf") 2>/dev/null ||
29117 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29118          X"$mf" : 'X\(//\)[^/]' \| \
29119          X"$mf" : 'X\(//\)$' \| \
29120          X"$mf" : 'X\(/\)' \| \
29121          .     : '\(.\)' 2>/dev/null ||
29122 echo X"$mf" |
29123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29125           /^X\(\/\/\)$/{ s//\1/; q; }
29126           /^X\(\/\).*/{ s//\1/; q; }
29127           s/.*/./; q'`
29128   else
29129     continue
29130   fi
29131   # Extract the definition of DEPDIR, am__include, and am__quote
29132   # from the Makefile without running `make'.
29133   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29134   test -z "$DEPDIR" && continue
29135   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29136   test -z "am__include" && continue
29137   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29138   # When using ansi2knr, U may be empty or an underscore; expand it
29139   U=`sed -n 's/^U = //p' < "$mf"`
29140   # Find all dependency output files, they are included files with
29141   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29142   # simplest approach to changing $(DEPDIR) to its actual value in the
29143   # expansion.
29144   for file in `sed -n "
29145     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29146        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29147     # Make sure the directory exists.
29148     test -f "$dirpart/$file" && continue
29149     fdir=`(dirname "$file") 2>/dev/null ||
29150 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29151          X"$file" : 'X\(//\)[^/]' \| \
29152          X"$file" : 'X\(//\)$' \| \
29153          X"$file" : 'X\(/\)' \| \
29154          .     : '\(.\)' 2>/dev/null ||
29155 echo X"$file" |
29156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29157           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29158           /^X\(\/\/\)$/{ s//\1/; q; }
29159           /^X\(\/\).*/{ s//\1/; q; }
29160           s/.*/./; q'`
29161     { if $as_mkdir_p; then
29162     mkdir -p $dirpart/$fdir
29163   else
29164     as_dir=$dirpart/$fdir
29165     as_dirs=
29166     while test ! -d "$as_dir"; do
29167       as_dirs="$as_dir $as_dirs"
29168       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29170          X"$as_dir" : 'X\(//\)[^/]' \| \
29171          X"$as_dir" : 'X\(//\)$' \| \
29172          X"$as_dir" : 'X\(/\)' \| \
29173          .     : '\(.\)' 2>/dev/null ||
29174 echo X"$as_dir" |
29175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29176           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29177           /^X\(\/\/\)$/{ s//\1/; q; }
29178           /^X\(\/\).*/{ s//\1/; q; }
29179           s/.*/./; q'`
29180     done
29181     test ! -n "$as_dirs" || mkdir $as_dirs
29182   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29183 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29184    { (exit 1); exit 1; }; }; }
29185
29186     # echo "creating $dirpart/$file"
29187     echo '# dummy' > "$dirpart/$file"
29188   done
29189 done
29190  ;;
29191   esac
29192 done
29193 _ACEOF
29194
29195 cat >>$CONFIG_STATUS <<\_ACEOF
29196
29197 { (exit 0); exit 0; }
29198 _ACEOF
29199 chmod +x $CONFIG_STATUS
29200 ac_clean_files=$ac_clean_files_save
29201
29202
29203 # configure is writing to config.log, and then calls config.status.
29204 # config.status does its own redirection, appending to config.log.
29205 # Unfortunately, on DOS this fails, as config.log is still kept open
29206 # by configure, so config.status won't be able to write to it; its
29207 # output is simply discarded.  So we exec the FD to /dev/null,
29208 # effectively closing config.log, so it can be properly (re)opened and
29209 # appended to by config.status.  When coming back to configure, we
29210 # need to make the FD available again.
29211 if test "$no_create" != yes; then
29212   ac_cs_success=:
29213   ac_config_status_args=
29214   test "$silent" = yes &&
29215     ac_config_status_args="$ac_config_status_args --quiet"
29216   exec 5>/dev/null
29217   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29218   exec 5>>config.log
29219   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29220   # would make configure fail if this is the last instruction.
29221   $ac_cs_success || { (exit 1); exit 1; }
29222 fi
29223
29224
29225 { echo "$as_me:$LINENO:
29226
29227 $PACKAGE_STRING
29228
29229 $FEATURES_TXT" >&5
29230 echo "$as_me:
29231
29232 $PACKAGE_STRING
29233
29234 $FEATURES_TXT" >&6;}