e493b5e90f1a2d8af9c0b297db1a708f488db1e4
[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.212.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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.212'
427 PACKAGE_STRING='util-vserver 0.30.212'
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir 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 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 CPP 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 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_DIET_set=${DIET+set}
934 ac_env_DIET_value=$DIET
935 ac_cv_env_DIET_set=${DIET+set}
936 ac_cv_env_DIET_value=$DIET
937 ac_env_DIETFLAGS_set=${DIETFLAGS+set}
938 ac_env_DIETFLAGS_value=$DIETFLAGS
939 ac_cv_env_DIETFLAGS_set=${DIETFLAGS+set}
940 ac_cv_env_DIETFLAGS_value=$DIETFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
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.212 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.212:";;
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-dietlibc      do not use dietlibc resp. enforce its usage (with
1051                           --enable-dietlibc) (default: autodetect dietlibc)
1052   --disable-alternative-syscalls
1053                           do not use the alternative _syscallX macros provided
1054                           by Herbert Poetzl (default: use them)
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-gnu-ld           assume the C compiler uses GNU ld [default=no]
1075   --with-pic              try to use only PIC/non-PIC objects [default=use
1076                           both]
1077   --with-tags[=TAGS]
1078                           include additional configurations [automatic]
1079   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1080   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1081                           values are 'fast', 'traditional' and 'auto'
1082                           (default: auto)
1083
1084 Some influential environment variables:
1085   CXX         C++ compiler command
1086   CXXFLAGS    C++ compiler flags
1087   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1088               nonstandard directory <lib dir>
1089   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090               headers in a nonstandard directory <include dir>
1091   CC          C compiler command
1092   CFLAGS      C compiler flags
1093   DIET        The 'diet' wrapper (default: diet)
1094   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1095   CPP         C preprocessor
1096   CXXCPP      C++ preprocessor
1097   F77         Fortran 77 compiler command
1098   FFLAGS      Fortran 77 compiler flags
1099
1100 Use these variables to override the choices made by `configure' or to help
1101 it to find libraries and programs with nonstandard names/locations.
1102
1103 Report bugs to <vserver@list.linux-vserver.org>.
1104 _ACEOF
1105 fi
1106
1107 if test "$ac_init_help" = "recursive"; then
1108   # If there are subdirs, report their specific --help.
1109   ac_popdir=`pwd`
1110   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111     test -d $ac_dir || continue
1112     ac_builddir=.
1113
1114 if test "$ac_dir" != .; then
1115   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116   # A "../" for each directory in $ac_dir_suffix.
1117   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118 else
1119   ac_dir_suffix= ac_top_builddir=
1120 fi
1121
1122 case $srcdir in
1123   .)  # No --srcdir option.  We are building in place.
1124     ac_srcdir=.
1125     if test -z "$ac_top_builddir"; then
1126        ac_top_srcdir=.
1127     else
1128        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129     fi ;;
1130   [\\/]* | ?:[\\/]* )  # Absolute path.
1131     ac_srcdir=$srcdir$ac_dir_suffix;
1132     ac_top_srcdir=$srcdir ;;
1133   *) # Relative path.
1134     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136 esac
1137
1138 # Do not use `cd foo && pwd` to compute absolute paths, because
1139 # the directories may not exist.
1140 case `pwd` in
1141 .) ac_abs_builddir="$ac_dir";;
1142 *)
1143   case "$ac_dir" in
1144   .) ac_abs_builddir=`pwd`;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *)
1152   case ${ac_top_builddir}. in
1153   .) ac_abs_top_builddir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_srcdir=$ac_srcdir;;
1160 *)
1161   case $ac_srcdir in
1162   .) ac_abs_srcdir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *)
1170   case $ac_top_srcdir in
1171   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174   esac;;
1175 esac
1176
1177     cd $ac_dir
1178     # Check for guested configure; otherwise get Cygnus style configure.
1179     if test -f $ac_srcdir/configure.gnu; then
1180       echo
1181       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1182     elif test -f $ac_srcdir/configure; then
1183       echo
1184       $SHELL $ac_srcdir/configure  --help=recursive
1185     elif test -f $ac_srcdir/configure.ac ||
1186            test -f $ac_srcdir/configure.in; then
1187       echo
1188       $ac_configure --help
1189     else
1190       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191     fi
1192     cd $ac_popdir
1193   done
1194 fi
1195
1196 test -n "$ac_init_help" && exit 0
1197 if $ac_init_version; then
1198   cat <<\_ACEOF
1199 util-vserver configure 0.30.212
1200 generated by GNU Autoconf 2.59
1201
1202 Copyright (C) 2003 Free Software Foundation, Inc.
1203 This configure script is free software; the Free Software Foundation
1204 gives unlimited permission to copy, distribute and modify it.
1205 _ACEOF
1206   exit 0
1207 fi
1208 exec 5>config.log
1209 cat >&5 <<_ACEOF
1210 This file contains any messages produced by compilers while
1211 running configure, to aid debugging if configure makes a mistake.
1212
1213 It was created by util-vserver $as_me 0.30.212, which was
1214 generated by GNU Autoconf 2.59.  Invocation command line was
1215
1216   $ $0 $@
1217
1218 _ACEOF
1219 {
1220 cat <<_ASUNAME
1221 ## --------- ##
1222 ## Platform. ##
1223 ## --------- ##
1224
1225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1230
1231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1232 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1233
1234 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1235 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1237 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1238 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1239 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1240 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1241
1242 _ASUNAME
1243
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245 for as_dir in $PATH
1246 do
1247   IFS=$as_save_IFS
1248   test -z "$as_dir" && as_dir=.
1249   echo "PATH: $as_dir"
1250 done
1251
1252 } >&5
1253
1254 cat >&5 <<_ACEOF
1255
1256
1257 ## ----------- ##
1258 ## Core tests. ##
1259 ## ----------- ##
1260
1261 _ACEOF
1262
1263
1264 # Keep a trace of the command line.
1265 # Strip out --no-create and --no-recursion so they do not pile up.
1266 # Strip out --silent because we don't want to record it for future runs.
1267 # Also quote any args containing shell meta-characters.
1268 # Make two passes to allow for proper duplicate-argument suppression.
1269 ac_configure_args=
1270 ac_configure_args0=
1271 ac_configure_args1=
1272 ac_sep=
1273 ac_must_keep_next=false
1274 for ac_pass in 1 2
1275 do
1276   for ac_arg
1277   do
1278     case $ac_arg in
1279     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1280     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281     | -silent | --silent | --silen | --sile | --sil)
1282       continue ;;
1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1285     esac
1286     case $ac_pass in
1287     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1288     2)
1289       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1290       if test $ac_must_keep_next = true; then
1291         ac_must_keep_next=false # Got value, back to normal.
1292       else
1293         case $ac_arg in
1294           *=* | --config-cache | -C | -disable-* | --disable-* \
1295           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1296           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1297           | -with-* | --with-* | -without-* | --without-* | --x)
1298             case "$ac_configure_args0 " in
1299               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1300             esac
1301             ;;
1302           -* ) ac_must_keep_next=true ;;
1303         esac
1304       fi
1305       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1306       # Get rid of the leading space.
1307       ac_sep=" "
1308       ;;
1309     esac
1310   done
1311 done
1312 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1313 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1314
1315 # When interrupted or exit'd, cleanup temporary files, and complete
1316 # config.log.  We remove comments because anyway the quotes in there
1317 # would cause problems or look ugly.
1318 # WARNING: Be sure not to use single quotes in there, as some shells,
1319 # such as our DU 5.0 friend, will then `close' the trap.
1320 trap 'exit_status=$?
1321   # Save into config.log some information that might help in debugging.
1322   {
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ---------------- ##
1327 ## Cache variables. ##
1328 ## ---------------- ##
1329 _ASBOX
1330     echo
1331     # The following way of writing the cache mishandles newlines in values,
1332 {
1333   (set) 2>&1 |
1334     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1335     *ac_space=\ *)
1336       sed -n \
1337         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1339       ;;
1340     *)
1341       sed -n \
1342         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1343       ;;
1344     esac;
1345 }
1346     echo
1347
1348     cat <<\_ASBOX
1349 ## ----------------- ##
1350 ## Output variables. ##
1351 ## ----------------- ##
1352 _ASBOX
1353     echo
1354     for ac_var in $ac_subst_vars
1355     do
1356       eval ac_val=$`echo $ac_var`
1357       echo "$ac_var='"'"'$ac_val'"'"'"
1358     done | sort
1359     echo
1360
1361     if test -n "$ac_subst_files"; then
1362       cat <<\_ASBOX
1363 ## ------------- ##
1364 ## Output files. ##
1365 ## ------------- ##
1366 _ASBOX
1367       echo
1368       for ac_var in $ac_subst_files
1369       do
1370         eval ac_val=$`echo $ac_var`
1371         echo "$ac_var='"'"'$ac_val'"'"'"
1372       done | sort
1373       echo
1374     fi
1375
1376     if test -s confdefs.h; then
1377       cat <<\_ASBOX
1378 ## ----------- ##
1379 ## confdefs.h. ##
1380 ## ----------- ##
1381 _ASBOX
1382       echo
1383       sed "/^$/d" confdefs.h | sort
1384       echo
1385     fi
1386     test "$ac_signal" != 0 &&
1387       echo "$as_me: caught signal $ac_signal"
1388     echo "$as_me: exit $exit_status"
1389   } >&5
1390   rm -f core *.core &&
1391   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1392     exit $exit_status
1393      ' 0
1394 for ac_signal in 1 2 13 15; do
1395   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1396 done
1397 ac_signal=0
1398
1399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1400 rm -rf conftest* confdefs.h
1401 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1402 echo >confdefs.h
1403
1404 # Predefined preprocessor variables.
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_NAME "$PACKAGE_NAME"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_STRING "$PACKAGE_STRING"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1428 _ACEOF
1429
1430
1431 # Let the site file select an alternate cache file if it wants to.
1432 # Prefer explicitly selected file to automatically selected ones.
1433 if test -z "$CONFIG_SITE"; then
1434   if test "x$prefix" != xNONE; then
1435     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1436   else
1437     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1438   fi
1439 fi
1440 for ac_site_file in $CONFIG_SITE; do
1441   if test -r "$ac_site_file"; then
1442     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1443 echo "$as_me: loading site script $ac_site_file" >&6;}
1444     sed 's/^/| /' "$ac_site_file" >&5
1445     . "$ac_site_file"
1446   fi
1447 done
1448
1449 if test -r "$cache_file"; then
1450   # Some versions of bash will fail to source /dev/null (special
1451   # files actually), so we avoid doing that.
1452   if test -f "$cache_file"; then
1453     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1454 echo "$as_me: loading cache $cache_file" >&6;}
1455     case $cache_file in
1456       [\\/]* | ?:[\\/]* ) . $cache_file;;
1457       *)                      . ./$cache_file;;
1458     esac
1459   fi
1460 else
1461   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1462 echo "$as_me: creating cache $cache_file" >&6;}
1463   >$cache_file
1464 fi
1465
1466 # Check that the precious variables saved in the cache have kept the same
1467 # value.
1468 ac_cache_corrupted=false
1469 for ac_var in `(set) 2>&1 |
1470                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1471   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1472   eval ac_new_set=\$ac_env_${ac_var}_set
1473   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1474   eval ac_new_val="\$ac_env_${ac_var}_value"
1475   case $ac_old_set,$ac_new_set in
1476     set,)
1477       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1479       ac_cache_corrupted=: ;;
1480     ,set)
1481       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1482 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1483       ac_cache_corrupted=: ;;
1484     ,);;
1485     *)
1486       if test "x$ac_old_val" != "x$ac_new_val"; then
1487         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1488 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1489         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1490 echo "$as_me:   former value:  $ac_old_val" >&2;}
1491         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1492 echo "$as_me:   current value: $ac_new_val" >&2;}
1493         ac_cache_corrupted=:
1494       fi;;
1495   esac
1496   # Pass precious variables to config.status.
1497   if test "$ac_new_set" = set; then
1498     case $ac_new_val in
1499     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1500       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1501     *) ac_arg=$ac_var=$ac_new_val ;;
1502     esac
1503     case " $ac_configure_args " in
1504       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1505       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1506     esac
1507   fi
1508 done
1509 if $ac_cache_corrupted; then
1510   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1511 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1512   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1513 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1514    { (exit 1); exit 1; }; }
1515 fi
1516
1517 ac_ext=c
1518 ac_cpp='$CPP $CPPFLAGS'
1519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522
1523
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           ac_config_headers="$ac_config_headers config.h"
1551
1552
1553 am__api_version="1.8"
1554 ac_aux_dir=
1555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556   if test -f $ac_dir/install-sh; then
1557     ac_aux_dir=$ac_dir
1558     ac_install_sh="$ac_aux_dir/install-sh -c"
1559     break
1560   elif test -f $ac_dir/install.sh; then
1561     ac_aux_dir=$ac_dir
1562     ac_install_sh="$ac_aux_dir/install.sh -c"
1563     break
1564   elif test -f $ac_dir/shtool; then
1565     ac_aux_dir=$ac_dir
1566     ac_install_sh="$ac_aux_dir/shtool install -c"
1567     break
1568   fi
1569 done
1570 if test -z "$ac_aux_dir"; then
1571   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573    { (exit 1); exit 1; }; }
1574 fi
1575 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579 # Find a good install program.  We prefer a C program (faster),
1580 # so one script is as good as another.  But avoid the broken or
1581 # incompatible versions:
1582 # SysV /etc/install, /usr/sbin/install
1583 # SunOS /usr/etc/install
1584 # IRIX /sbin/install
1585 # AIX /bin/install
1586 # AmigaOS /C/install, which installs bootblocks on floppy discs
1587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1590 # OS/2's system install, which has a completely different semantic
1591 # ./install, which can be erroneously created by make from ./install.sh.
1592 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1594 if test -z "$INSTALL"; then
1595 if test "${ac_cv_path_install+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   # Account for people who put trailing slashes in PATH elements.
1604 case $as_dir/ in
1605   ./ | .// | /cC/* | \
1606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1607   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1608   /usr/ucb/* ) ;;
1609   *)
1610     # OSF1 and SCO ODT 3.0 have their own names for install.
1611     # Don't use installbsd from OSF since it installs stuff as root
1612     # by default.
1613     for ac_prog in ginstall scoinst install; do
1614       for ac_exec_ext in '' $ac_executable_extensions; do
1615         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1616           if test $ac_prog = install &&
1617             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618             # AIX install.  It has an incompatible calling convention.
1619             :
1620           elif test $ac_prog = install &&
1621             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1622             # program-specific install script used by HP pwplus--don't use.
1623             :
1624           else
1625             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1626             break 3
1627           fi
1628         fi
1629       done
1630     done
1631     ;;
1632 esac
1633 done
1634
1635
1636 fi
1637   if test "${ac_cv_path_install+set}" = set; then
1638     INSTALL=$ac_cv_path_install
1639   else
1640     # As a last resort, use the slow shell script.  We don't cache a
1641     # path for INSTALL within a source directory, because that will
1642     # break other packages using the cache if that directory is
1643     # removed, or if the path is relative.
1644     INSTALL=$ac_install_sh
1645   fi
1646 fi
1647 echo "$as_me:$LINENO: result: $INSTALL" >&5
1648 echo "${ECHO_T}$INSTALL" >&6
1649
1650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1651 # It thinks the first close brace ends the variable substitution.
1652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1653
1654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1655
1656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1657
1658 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1659 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1660 # Just in case
1661 sleep 1
1662 echo timestamp > conftest.file
1663 # Do `set' in a subshell so we don't clobber the current shell's
1664 # arguments.  Must try -L first in case configure is actually a
1665 # symlink; some systems play weird games with the mod time of symlinks
1666 # (eg FreeBSD returns the mod time of the symlink's containing
1667 # directory).
1668 if (
1669    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1670    if test "$*" = "X"; then
1671       # -L didn't work.
1672       set X `ls -t $srcdir/configure conftest.file`
1673    fi
1674    rm -f conftest.file
1675    if test "$*" != "X $srcdir/configure conftest.file" \
1676       && test "$*" != "X conftest.file $srcdir/configure"; then
1677
1678       # If neither matched, then we have a broken ls.  This can happen
1679       # if, for instance, CONFIG_SHELL is bash and it inherits a
1680       # broken ls alias from the environment.  This has actually
1681       # happened.  Such a system could not be considered "sane".
1682       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1683 alias in your environment" >&5
1684 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&2;}
1686    { (exit 1); exit 1; }; }
1687    fi
1688
1689    test "$2" = conftest.file
1690    )
1691 then
1692    # Ok.
1693    :
1694 else
1695    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1696 Check your system clock" >&5
1697 echo "$as_me: error: newly created file is older than distributed files!
1698 Check your system clock" >&2;}
1699    { (exit 1); exit 1; }; }
1700 fi
1701 echo "$as_me:$LINENO: result: yes" >&5
1702 echo "${ECHO_T}yes" >&6
1703 test "$program_prefix" != NONE &&
1704   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1705 # Use a double $ so make ignores it.
1706 test "$program_suffix" != NONE &&
1707   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1708 # Double any \ or $.  echo might interpret backslashes.
1709 # By default was `s,x,x', remove it if useless.
1710 cat <<\_ACEOF >conftest.sed
1711 s/[\\$]/&&/g;s/;s,x,x,$//
1712 _ACEOF
1713 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1714 rm conftest.sed
1715
1716 # expand $ac_aux_dir to an absolute path
1717 am_aux_dir=`cd $ac_aux_dir && pwd`
1718
1719 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1720 # Use eval to expand $SHELL
1721 if eval "$MISSING --run true"; then
1722   am_missing_run="$MISSING --run "
1723 else
1724   am_missing_run=
1725   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1726 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1727 fi
1728
1729 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1730   # Keeping the `.' argument allows $(mkdir_p) to be used without
1731   # argument.  Indeed, we sometimes output rules like
1732   #   $(mkdir_p) $(somedir)
1733   # where $(somedir) is conditionally defined.
1734   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1735   # expensive solution, as it forces Make to start a sub-shell.)
1736   mkdir_p='mkdir -p -- .'
1737 else
1738   # On NextStep and OpenStep, the `mkdir' command does not
1739   # recognize any option.  It will interpret all options as
1740   # directories to create, and then abort because `.' already
1741   # exists.
1742   for d in ./-p ./--version;
1743   do
1744     test -d $d && rmdir $d
1745   done
1746   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1747   if test -f "$ac_aux_dir/mkinstalldirs"; then
1748     mkdir_p='$(mkinstalldirs)'
1749   else
1750     mkdir_p='$(install_sh) -d'
1751   fi
1752 fi
1753
1754 for ac_prog in gawk mawk nawk awk
1755 do
1756   # Extract the first word of "$ac_prog", so it can be a program name with args.
1757 set dummy $ac_prog; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_AWK+set}" = set; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   if test -n "$AWK"; then
1764   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769   IFS=$as_save_IFS
1770   test -z "$as_dir" && as_dir=.
1771   for ac_exec_ext in '' $ac_executable_extensions; do
1772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773     ac_cv_prog_AWK="$ac_prog"
1774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775     break 2
1776   fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 AWK=$ac_cv_prog_AWK
1783 if test -n "$AWK"; then
1784   echo "$as_me:$LINENO: result: $AWK" >&5
1785 echo "${ECHO_T}$AWK" >&6
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791   test -n "$AWK" && break
1792 done
1793
1794 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1795 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1796 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1797 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   cat >conftest.make <<\_ACEOF
1801 all:
1802         @echo 'ac_maketemp="$(MAKE)"'
1803 _ACEOF
1804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1805 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1806 if test -n "$ac_maketemp"; then
1807   eval ac_cv_prog_make_${ac_make}_set=yes
1808 else
1809   eval ac_cv_prog_make_${ac_make}_set=no
1810 fi
1811 rm -f conftest.make
1812 fi
1813 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1814   echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816   SET_MAKE=
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820   SET_MAKE="MAKE=${MAKE-make}"
1821 fi
1822
1823 rm -rf .tst 2>/dev/null
1824 mkdir .tst 2>/dev/null
1825 if test -d .tst; then
1826   am__leading_dot=.
1827 else
1828   am__leading_dot=_
1829 fi
1830 rmdir .tst 2>/dev/null
1831
1832 # test to see if srcdir already configured
1833 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1834    test -f $srcdir/config.status; then
1835   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1836 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1837    { (exit 1); exit 1; }; }
1838 fi
1839
1840 # test whether we have cygpath
1841 if test -z "$CYGPATH_W"; then
1842   if (cygpath --version) >/dev/null 2>/dev/null; then
1843     CYGPATH_W='cygpath -w'
1844   else
1845     CYGPATH_W=echo
1846   fi
1847 fi
1848
1849
1850 # Define the identity of the package.
1851  PACKAGE='util-vserver'
1852  VERSION='0.30.212'
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE "$PACKAGE"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define VERSION "$VERSION"
1862 _ACEOF
1863
1864 # Some tools Automake needs.
1865
1866 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1867
1868
1869 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1870
1871
1872 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1873
1874
1875 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1876
1877
1878 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1879
1880
1881 AMTAR=${AMTAR-"${am_missing_run}tar"}
1882
1883 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1884
1885 # Installed binaries are usually stripped using `strip' when the user
1886 # run `make install-strip'.  However `strip' might not be the right
1887 # tool to use in cross-compilation environments, therefore Automake
1888 # will honor the `STRIP' environment variable to overrule this program.
1889 if test "$cross_compiling" != no; then
1890   if test -n "$ac_tool_prefix"; then
1891   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1892 set dummy ${ac_tool_prefix}strip; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_STRIP+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   if test -n "$STRIP"; then
1899   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910     break 2
1911   fi
1912 done
1913 done
1914
1915 fi
1916 fi
1917 STRIP=$ac_cv_prog_STRIP
1918 if test -n "$STRIP"; then
1919   echo "$as_me:$LINENO: result: $STRIP" >&5
1920 echo "${ECHO_T}$STRIP" >&6
1921 else
1922   echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 fi
1925
1926 fi
1927 if test -z "$ac_cv_prog_STRIP"; then
1928   ac_ct_STRIP=$STRIP
1929   # Extract the first word of "strip", so it can be a program name with args.
1930 set dummy strip; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1934   echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936   if test -n "$ac_ct_STRIP"; then
1937   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944   for ac_exec_ext in '' $ac_executable_extensions; do
1945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946     ac_cv_prog_ac_ct_STRIP="strip"
1947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948     break 2
1949   fi
1950 done
1951 done
1952
1953   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1954 fi
1955 fi
1956 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1957 if test -n "$ac_ct_STRIP"; then
1958   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1959 echo "${ECHO_T}$ac_ct_STRIP" >&6
1960 else
1961   echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965   STRIP=$ac_ct_STRIP
1966 else
1967   STRIP="$ac_cv_prog_STRIP"
1968 fi
1969
1970 fi
1971 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1972
1973 # We need awk for the "check" target.  The system "awk" is bad on
1974 # some platforms.
1975
1976
1977
1978 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1979 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1980     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1981 if test "${enable_maintainer_mode+set}" = set; then
1982   enableval="$enable_maintainer_mode"
1983   USE_MAINTAINER_MODE=$enableval
1984 else
1985   USE_MAINTAINER_MODE=no
1986 fi;
1987   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1988 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1989
1990
1991 if test $USE_MAINTAINER_MODE = yes; then
1992   MAINTAINER_MODE_TRUE=
1993   MAINTAINER_MODE_FALSE='#'
1994 else
1995   MAINTAINER_MODE_TRUE='#'
1996   MAINTAINER_MODE_FALSE=
1997 fi
1998
1999   MAINT=$MAINTAINER_MODE_TRUE
2000
2001
2002
2003 # Make sure we can run config.sub.
2004 $ac_config_sub sun4 >/dev/null 2>&1 ||
2005   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2006 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2007    { (exit 1); exit 1; }; }
2008
2009 echo "$as_me:$LINENO: checking build system type" >&5
2010 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2011 if test "${ac_cv_build+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   ac_cv_build_alias=$build_alias
2015 test -z "$ac_cv_build_alias" &&
2016   ac_cv_build_alias=`$ac_config_guess`
2017 test -z "$ac_cv_build_alias" &&
2018   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2020    { (exit 1); exit 1; }; }
2021 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2022   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2023 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 fi
2027 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2028 echo "${ECHO_T}$ac_cv_build" >&6
2029 build=$ac_cv_build
2030 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2031 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2032 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2033
2034
2035 echo "$as_me:$LINENO: checking host system type" >&5
2036 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2037 if test "${ac_cv_host+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   ac_cv_host_alias=$host_alias
2041 test -z "$ac_cv_host_alias" &&
2042   ac_cv_host_alias=$ac_cv_build_alias
2043 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2044   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2045 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2046    { (exit 1); exit 1; }; }
2047
2048 fi
2049 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050 echo "${ECHO_T}$ac_cv_host" >&6
2051 host=$ac_cv_host
2052 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2053 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2054 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2055
2056
2057
2058 GPG_KEY="0xFFD316AC53ACA43A!"
2059
2060
2061 # Checks for programs.
2062 ac_ext=cc
2063 ac_cpp='$CXXCPP $CPPFLAGS'
2064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2069   do
2070     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_CXX+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$CXX"; then
2078   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093
2094 fi
2095 fi
2096 CXX=$ac_cv_prog_CXX
2097 if test -n "$CXX"; then
2098   echo "$as_me:$LINENO: result: $CXX" >&5
2099 echo "${ECHO_T}$CXX" >&6
2100 else
2101   echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2103 fi
2104
2105     test -n "$CXX" && break
2106   done
2107 fi
2108 if test -z "$CXX"; then
2109   ac_ct_CXX=$CXX
2110   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2111 do
2112   # Extract the first word of "$ac_prog", so it can be a program name with args.
2113 set dummy $ac_prog; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   if test -n "$ac_ct_CXX"; then
2120   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_exec_ext in '' $ac_executable_extensions; do
2128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129     ac_cv_prog_ac_ct_CXX="$ac_prog"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135
2136 fi
2137 fi
2138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2139 if test -n "$ac_ct_CXX"; then
2140   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2141 echo "${ECHO_T}$ac_ct_CXX" >&6
2142 else
2143   echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2145 fi
2146
2147   test -n "$ac_ct_CXX" && break
2148 done
2149 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2150
2151   CXX=$ac_ct_CXX
2152 fi
2153
2154
2155 # Provide some information about the compiler.
2156 echo "$as_me:$LINENO:" \
2157      "checking for C++ compiler version" >&5
2158 ac_compiler=`set X $ac_compile; echo $2`
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2160   (eval $ac_compiler --version </dev/null >&5) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2165   (eval $ac_compiler -v </dev/null >&5) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }
2169 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2170   (eval $ac_compiler -V </dev/null >&5) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }
2174
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h.  */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h.  */
2181
2182 int
2183 main ()
2184 {
2185
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 ac_clean_files_save=$ac_clean_files
2191 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2192 # Try to create an executable without -o first, disregard a.out.
2193 # It will help us diagnose broken compilers, and finding out an intuition
2194 # of exeext.
2195 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2196 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2199   (eval $ac_link_default) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; then
2203   # Find the output, starting from the most likely.  This scheme is
2204 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2205 # resort.
2206
2207 # Be careful to initialize this variable, since it used to be cached.
2208 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2209 ac_cv_exeext=
2210 # b.out is created by i960 compilers.
2211 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2212 do
2213   test -f "$ac_file" || continue
2214   case $ac_file in
2215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2216         ;;
2217     conftest.$ac_ext )
2218         # This is the source file.
2219         ;;
2220     [ab].out )
2221         # We found the default executable, but exeext='' is most
2222         # certainly right.
2223         break;;
2224     *.* )
2225         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226         # FIXME: I believe we export ac_cv_exeext for Libtool,
2227         # but it would be cool to find out if it's true.  Does anybody
2228         # maintain Libtool? --akim.
2229         export ac_cv_exeext
2230         break;;
2231     * )
2232         break;;
2233   esac
2234 done
2235 else
2236   echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238
2239 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: C++ compiler cannot create executables
2242 See \`config.log' for more details." >&2;}
2243    { (exit 77); exit 77; }; }
2244 fi
2245
2246 ac_exeext=$ac_cv_exeext
2247 echo "$as_me:$LINENO: result: $ac_file" >&5
2248 echo "${ECHO_T}$ac_file" >&6
2249
2250 # Check the compiler produces executables we can run.  If not, either
2251 # the compiler is broken, or we cross compile.
2252 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2253 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2254 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2255 # If not cross compiling, check that we can run a simple program.
2256 if test "$cross_compiling" != yes; then
2257   if { ac_try='./$ac_file'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263     cross_compiling=no
2264   else
2265     if test "$cross_compiling" = maybe; then
2266         cross_compiling=yes
2267     else
2268         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot run C++ compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275     fi
2276   fi
2277 fi
2278 echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6
2280
2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282 ac_clean_files=$ac_clean_files_save
2283 # Check the compiler produces executables we can run.  If not, either
2284 # the compiler is broken, or we cross compile.
2285 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2287 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288 echo "${ECHO_T}$cross_compiling" >&6
2289
2290 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2293   (eval $ac_link) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; then
2297   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2298 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2299 # work properly (i.e., refer to `conftest.exe'), while it won't with
2300 # `rm'.
2301 for ac_file in conftest.exe conftest conftest.*; do
2302   test -f "$ac_file" || continue
2303   case $ac_file in
2304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2305     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306           export ac_cv_exeext
2307           break;;
2308     * ) break;;
2309   esac
2310 done
2311 else
2312   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317 fi
2318
2319 rm -f conftest$ac_cv_exeext
2320 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6
2322
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2325 ac_exeext=$EXEEXT
2326 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2328 if test "${ac_cv_objext+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   cat >conftest.$ac_ext <<_ACEOF
2332 /* confdefs.h.  */
2333 _ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h.  */
2337
2338 int
2339 main ()
2340 {
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.o conftest.obj
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348   (eval $ac_compile) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }; then
2352   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2353   case $ac_file in
2354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2355     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356        break;;
2357   esac
2358 done
2359 else
2360   echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details." >&2;}
2367    { (exit 1); exit 1; }; }
2368 fi
2369
2370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371 fi
2372 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373 echo "${ECHO_T}$ac_cv_objext" >&6
2374 OBJEXT=$ac_cv_objext
2375 ac_objext=$OBJEXT
2376 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2377 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2378 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387
2388 int
2389 main ()
2390 {
2391 #ifndef __GNUC__
2392        choke me
2393 #endif
2394
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_cxx_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_compiler_gnu=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_compiler_gnu=no
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2430
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2434 GXX=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CXXFLAGS=${CXXFLAGS+set}
2436 ac_save_CXXFLAGS=$CXXFLAGS
2437 CXXFLAGS="-g"
2438 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2440 if test "${ac_cv_prog_cxx_g+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449
2450 int
2451 main ()
2452 {
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460   (eval $ac_compile) 2>conftest.er1
2461   ac_status=$?
2462   grep -v '^ *+' conftest.er1 >conftest.err
2463   rm -f conftest.er1
2464   cat conftest.err >&5
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -z "$ac_cxx_werror_flag"
2468                          || test ! -s conftest.err'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; } &&
2474          { ac_try='test -s conftest.$ac_objext'
2475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476   (eval $ac_try) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   ac_cv_prog_cxx_g=yes
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 ac_cv_prog_cxx_g=no
2486 fi
2487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2490 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2491 if test "$ac_test_CXXFLAGS" = set; then
2492   CXXFLAGS=$ac_save_CXXFLAGS
2493 elif test $ac_cv_prog_cxx_g = yes; then
2494   if test "$GXX" = yes; then
2495     CXXFLAGS="-g -O2"
2496   else
2497     CXXFLAGS="-g"
2498   fi
2499 else
2500   if test "$GXX" = yes; then
2501     CXXFLAGS="-O2"
2502   else
2503     CXXFLAGS=
2504   fi
2505 fi
2506 for ac_declaration in \
2507    '' \
2508    'extern "C" void std::exit (int) throw (); using std::exit;' \
2509    'extern "C" void std::exit (int); using std::exit;' \
2510    'extern "C" void exit (int) throw ();' \
2511    'extern "C" void exit (int);' \
2512    'void exit (int);'
2513 do
2514   cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h.  */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h.  */
2520 $ac_declaration
2521 #include <stdlib.h>
2522 int
2523 main ()
2524 {
2525 exit (42);
2526   ;
2527   return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532   (eval $ac_compile) 2>conftest.er1
2533   ac_status=$?
2534   grep -v '^ *+' conftest.er1 >conftest.err
2535   rm -f conftest.er1
2536   cat conftest.err >&5
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -z "$ac_cxx_werror_flag"
2540                          || test ! -s conftest.err'
2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; } &&
2546          { ac_try='test -s conftest.$ac_objext'
2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548   (eval $ac_try) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   :
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 continue
2558 fi
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560   cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566 $ac_declaration
2567 int
2568 main ()
2569 {
2570 exit (42);
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577   (eval $ac_compile) 2>conftest.er1
2578   ac_status=$?
2579   grep -v '^ *+' conftest.er1 >conftest.err
2580   rm -f conftest.er1
2581   cat conftest.err >&5
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); } &&
2584          { ac_try='test -z "$ac_cxx_werror_flag"
2585                          || test ! -s conftest.err'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597   break
2598 else
2599   echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 fi
2603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604 done
2605 rm -f conftest*
2606 if test -n "$ac_declaration"; then
2607   echo '#ifdef __cplusplus' >>confdefs.h
2608   echo $ac_declaration      >>confdefs.h
2609   echo '#endif'             >>confdefs.h
2610 fi
2611
2612 ac_ext=c
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617 DEPDIR="${am__leading_dot}deps"
2618
2619           ac_config_commands="$ac_config_commands depfiles"
2620
2621
2622 am_make=${MAKE-make}
2623 cat > confinc << 'END'
2624 am__doit:
2625         @echo done
2626 .PHONY: am__doit
2627 END
2628 # If we don't find an include directive, just comment out the code.
2629 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2630 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2631 am__include="#"
2632 am__quote=
2633 _am_result=none
2634 # First try GNU make style include.
2635 echo "include confinc" > confmf
2636 # We grep out `Entering directory' and `Leaving directory'
2637 # messages which can occur if `w' ends up in MAKEFLAGS.
2638 # In particular we don't look at `^make:' because GNU make might
2639 # be invoked under some other name (usually "gmake"), in which
2640 # case it prints its new name instead of `make'.
2641 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2642    am__include=include
2643    am__quote=
2644    _am_result=GNU
2645 fi
2646 # Now try BSD make style include.
2647 if test "$am__include" = "#"; then
2648    echo '.include "confinc"' > confmf
2649    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2650       am__include=.include
2651       am__quote="\""
2652       _am_result=BSD
2653    fi
2654 fi
2655
2656
2657 echo "$as_me:$LINENO: result: $_am_result" >&5
2658 echo "${ECHO_T}$_am_result" >&6
2659 rm -f confinc confmf
2660
2661 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2662 if test "${enable_dependency_tracking+set}" = set; then
2663   enableval="$enable_dependency_tracking"
2664
2665 fi;
2666 if test "x$enable_dependency_tracking" != xno; then
2667   am_depcomp="$ac_aux_dir/depcomp"
2668   AMDEPBACKSLASH='\'
2669 fi
2670
2671
2672 if test "x$enable_dependency_tracking" != xno; then
2673   AMDEP_TRUE=
2674   AMDEP_FALSE='#'
2675 else
2676   AMDEP_TRUE='#'
2677   AMDEP_FALSE=
2678 fi
2679
2680
2681
2682
2683 depcc="$CXX"  am_compiler_list=
2684
2685 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2686 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2687 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2691   # We make a subdir and do the tests there.  Otherwise we can end up
2692   # making bogus files that we don't know about and never remove.  For
2693   # instance it was reported that on HP-UX the gcc test will end up
2694   # making a dummy file named `D' -- because `-MD' means `put the output
2695   # in D'.
2696   mkdir conftest.dir
2697   # Copy depcomp to subdir because otherwise we won't find it if we're
2698   # using a relative directory.
2699   cp "$am_depcomp" conftest.dir
2700   cd conftest.dir
2701   # We will build objects and dependencies in a subdirectory because
2702   # it helps to detect inapplicable dependency modes.  For instance
2703   # both Tru64's cc and ICC support -MD to output dependencies as a
2704   # side effect of compilation, but ICC will put the dependencies in
2705   # the current directory while Tru64 will put them in the object
2706   # directory.
2707   mkdir sub
2708
2709   am_cv_CXX_dependencies_compiler_type=none
2710   if test "$am_compiler_list" = ""; then
2711      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2712   fi
2713   for depmode in $am_compiler_list; do
2714     # Setup a source with many dependencies, because some compilers
2715     # like to wrap large dependency lists on column 80 (with \), and
2716     # we should not choose a depcomp mode which is confused by this.
2717     #
2718     # We need to recreate these files for each test, as the compiler may
2719     # overwrite some of them when testing with obscure command lines.
2720     # This happens at least with the AIX C compiler.
2721     : > sub/conftest.c
2722     for i in 1 2 3 4 5 6; do
2723       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2724       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2725       # Solaris 8's {/usr,}/bin/sh.
2726       touch sub/conftst$i.h
2727     done
2728     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2729
2730     case $depmode in
2731     nosideeffect)
2732       # after this tag, mechanisms are not by side-effect, so they'll
2733       # only be used when explicitly requested
2734       if test "x$enable_dependency_tracking" = xyes; then
2735         continue
2736       else
2737         break
2738       fi
2739       ;;
2740     none) break ;;
2741     esac
2742     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2743     # mode.  It turns out that the SunPro C++ compiler does not properly
2744     # handle `-M -o', and we need to detect this.
2745     if depmode=$depmode \
2746        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2747        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2748        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2749          >/dev/null 2>conftest.err &&
2750        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2751        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2752        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2753       # icc doesn't choke on unknown options, it will just issue warnings
2754       # (even with -Werror).  So we grep stderr for any message
2755       # that says an option was ignored.
2756       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2757         am_cv_CXX_dependencies_compiler_type=$depmode
2758         break
2759       fi
2760     fi
2761   done
2762
2763   cd ..
2764   rm -rf conftest.dir
2765 else
2766   am_cv_CXX_dependencies_compiler_type=none
2767 fi
2768
2769 fi
2770 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2771 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2772 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2773
2774
2775
2776 if
2777   test "x$enable_dependency_tracking" != xno \
2778   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2779   am__fastdepCXX_TRUE=
2780   am__fastdepCXX_FALSE='#'
2781 else
2782   am__fastdepCXX_TRUE='#'
2783   am__fastdepCXX_FALSE=
2784 fi
2785
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 if test -n "$ac_tool_prefix"; then
2793   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_prog_CC+set}" = set; then
2798   echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800   if test -n "$CC"; then
2801   ac_cv_prog_CC="$CC" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806   IFS=$as_save_IFS
2807   test -z "$as_dir" && as_dir=.
2808   for ac_exec_ext in '' $ac_executable_extensions; do
2809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812     break 2
2813   fi
2814 done
2815 done
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821   echo "$as_me:$LINENO: result: $CC" >&5
2822 echo "${ECHO_T}$CC" >&6
2823 else
2824   echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2826 fi
2827
2828 fi
2829 if test -z "$ac_cv_prog_CC"; then
2830   ac_ct_CC=$CC
2831   # Extract the first word of "gcc", so it can be a program name with args.
2832 set dummy gcc; ac_word=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   if test -n "$ac_ct_CC"; then
2839   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846   for ac_exec_ext in '' $ac_executable_extensions; do
2847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848     ac_cv_prog_ac_ct_CC="gcc"
2849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853 done
2854
2855 fi
2856 fi
2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2858 if test -n "$ac_ct_CC"; then
2859   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2860 echo "${ECHO_T}$ac_ct_CC" >&6
2861 else
2862   echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2864 fi
2865
2866   CC=$ac_ct_CC
2867 else
2868   CC="$ac_cv_prog_CC"
2869 fi
2870
2871 if test -z "$CC"; then
2872   if test -n "$ac_tool_prefix"; then
2873   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}cc; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$CC"; then
2881   ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890     ac_cv_prog_CC="${ac_tool_prefix}cc"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901   echo "$as_me:$LINENO: result: $CC" >&5
2902 echo "${ECHO_T}$CC" >&6
2903 else
2904   echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908 fi
2909 if test -z "$ac_cv_prog_CC"; then
2910   ac_ct_CC=$CC
2911   # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   if test -n "$ac_ct_CC"; then
2919   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926   for ac_exec_ext in '' $ac_executable_extensions; do
2927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928     ac_cv_prog_ac_ct_CC="cc"
2929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933 done
2934
2935 fi
2936 fi
2937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938 if test -n "$ac_ct_CC"; then
2939   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2940 echo "${ECHO_T}$ac_ct_CC" >&6
2941 else
2942   echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944 fi
2945
2946   CC=$ac_ct_CC
2947 else
2948   CC="$ac_cv_prog_CC"
2949 fi
2950
2951 fi
2952 if test -z "$CC"; then
2953   # Extract the first word of "cc", so it can be a program name with args.
2954 set dummy cc; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   if test -n "$CC"; then
2961   ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963   ac_prog_rejected=no
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967   IFS=$as_save_IFS
2968   test -z "$as_dir" && as_dir=.
2969   for ac_exec_ext in '' $ac_executable_extensions; do
2970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2972        ac_prog_rejected=yes
2973        continue
2974      fi
2975     ac_cv_prog_CC="cc"
2976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977     break 2
2978   fi
2979 done
2980 done
2981
2982 if test $ac_prog_rejected = yes; then
2983   # We found a bogon in the path, so make sure we never use it.
2984   set dummy $ac_cv_prog_CC
2985   shift
2986   if test $# != 0; then
2987     # We chose a different compiler from the bogus one.
2988     # However, it has the same basename, so the bogon will be chosen
2989     # first if we set CC to just the basename; use the full file name.
2990     shift
2991     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2992   fi
2993 fi
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998   echo "$as_me:$LINENO: result: $CC" >&5
2999 echo "${ECHO_T}$CC" >&6
3000 else
3001   echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3003 fi
3004
3005 fi
3006 if test -z "$CC"; then
3007   if test -n "$ac_tool_prefix"; then
3008   for ac_prog in cl
3009   do
3010     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_CC+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   if test -n "$CC"; then
3018   ac_cv_prog_CC="$CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025   for ac_exec_ext in '' $ac_executable_extensions; do
3026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029     break 2
3030   fi
3031 done
3032 done
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038   echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6
3040 else
3041   echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3043 fi
3044
3045     test -n "$CC" && break
3046   done
3047 fi
3048 if test -z "$CC"; then
3049   ac_ct_CC=$CC
3050   for ac_prog in cl
3051 do
3052   # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   if test -n "$ac_ct_CC"; then
3060   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065   IFS=$as_save_IFS
3066   test -z "$as_dir" && as_dir=.
3067   for ac_exec_ext in '' $ac_executable_extensions; do
3068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069     ac_cv_prog_ac_ct_CC="$ac_prog"
3070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071     break 2
3072   fi
3073 done
3074 done
3075
3076 fi
3077 fi
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3081 echo "${ECHO_T}$ac_ct_CC" >&6
3082 else
3083   echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3085 fi
3086
3087   test -n "$ac_ct_CC" && break
3088 done
3089
3090   CC=$ac_ct_CC
3091 fi
3092
3093 fi
3094
3095
3096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details." >&2;}
3100    { (exit 1); exit 1; }; }
3101
3102 # Provide some information about the compiler.
3103 echo "$as_me:$LINENO:" \
3104      "checking for C compiler version" >&5
3105 ac_compiler=`set X $ac_compile; echo $2`
3106 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3107   (eval $ac_compiler --version </dev/null >&5) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }
3111 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3112   (eval $ac_compiler -v </dev/null >&5) 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }
3116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3117   (eval $ac_compiler -V </dev/null >&5) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }
3121
3122 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3123 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3124 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133
3134 int
3135 main ()
3136 {
3137 #ifndef __GNUC__
3138        choke me
3139 #endif
3140
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147   (eval $ac_compile) 2>conftest.er1
3148   ac_status=$?
3149   grep -v '^ *+' conftest.er1 >conftest.err
3150   rm -f conftest.er1
3151   cat conftest.err >&5
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); } &&
3154          { ac_try='test -z "$ac_c_werror_flag"
3155                          || test ! -s conftest.err'
3156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157   (eval $ac_try) 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; } &&
3161          { ac_try='test -s conftest.$ac_objext'
3162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163   (eval $ac_try) 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; }; then
3167   ac_compiler_gnu=yes
3168 else
3169   echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 ac_compiler_gnu=no
3173 fi
3174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3176
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3179 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3180 GCC=`test $ac_compiler_gnu = yes && echo yes`
3181 ac_test_CFLAGS=${CFLAGS+set}
3182 ac_save_CFLAGS=$CFLAGS
3183 CFLAGS="-g"
3184 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3185 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3186 if test "${ac_cv_prog_cc_g+set}" = set; then
3187   echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189   cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206   (eval $ac_compile) 2>conftest.er1
3207   ac_status=$?
3208   grep -v '^ *+' conftest.er1 >conftest.err
3209   rm -f conftest.er1
3210   cat conftest.err >&5
3211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212   (exit $ac_status); } &&
3213          { ac_try='test -z "$ac_c_werror_flag"
3214                          || test ! -s conftest.err'
3215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216   (eval $ac_try) 2>&5
3217   ac_status=$?
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; } &&
3220          { ac_try='test -s conftest.$ac_objext'
3221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222   (eval $ac_try) 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; }; then
3226   ac_cv_prog_cc_g=yes
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 ac_cv_prog_cc_g=no
3232 fi
3233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3237 if test "$ac_test_CFLAGS" = set; then
3238   CFLAGS=$ac_save_CFLAGS
3239 elif test $ac_cv_prog_cc_g = yes; then
3240   if test "$GCC" = yes; then
3241     CFLAGS="-g -O2"
3242   else
3243     CFLAGS="-g"
3244   fi
3245 else
3246   if test "$GCC" = yes; then
3247     CFLAGS="-O2"
3248   else
3249     CFLAGS=
3250   fi
3251 fi
3252 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3253 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3254 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   ac_cv_prog_cc_stdc=no
3258 ac_save_CC=$CC
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #include <stdarg.h>
3266 #include <stdio.h>
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3273      char **p;
3274      int i;
3275 {
3276   return p[i];
3277 }
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3279 {
3280   char *s;
3281   va_list v;
3282   va_start (v,p);
3283   s = g (p, va_arg (v,int));
3284   va_end (v);
3285   return s;
3286 }
3287
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3289    function prototypes and stuff, but not '\xHH' hex character constants.
3290    These don't provoke an error unfortunately, instead are silently treated
3291    as 'x'.  The following induces an error, until -std1 is added to get
3292    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3293    array size at least.  It's necessary to write '\x00'==0 to get something
3294    that's true only with -std1.  */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301 int argc;
3302 char **argv;
3303 int
3304 main ()
3305 {
3306 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 # Don't try gcc -ansi; that turns off useful extensions and
3312 # breaks some systems' header files.
3313 # AIX                   -qlanglvl=ansi
3314 # Ultrix and OSF/1      -std1
3315 # HP-UX 10.20 and later -Ae
3316 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3317 # SVR4                  -Xc -D__EXTENSIONS__
3318 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 do
3320   CC="$ac_save_CC $ac_arg"
3321   rm -f conftest.$ac_objext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323   (eval $ac_compile) 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -z "$ac_c_werror_flag"
3331                          || test ! -s conftest.err'
3332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333   (eval $ac_try) 2>&5
3334   ac_status=$?
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); }; } &&
3337          { ac_try='test -s conftest.$ac_objext'
3338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339   (eval $ac_try) 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; }; then
3343   ac_cv_prog_cc_stdc=$ac_arg
3344 break
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 fi
3350 rm -f conftest.err conftest.$ac_objext
3351 done
3352 rm -f conftest.$ac_ext conftest.$ac_objext
3353 CC=$ac_save_CC
3354
3355 fi
3356
3357 case "x$ac_cv_prog_cc_stdc" in
3358   x|xno)
3359     echo "$as_me:$LINENO: result: none needed" >&5
3360 echo "${ECHO_T}none needed" >&6 ;;
3361   *)
3362     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3364     CC="$CC $ac_cv_prog_cc_stdc" ;;
3365 esac
3366
3367 # Some people use a C++ compiler to compile C.  Since we use `exit',
3368 # in C++ we need to declare it.  In case someone uses the same compiler
3369 # for both compiling C and C++ we need to have the C++ compiler decide
3370 # the declaration of exit, since it's the most demanding environment.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #ifndef __cplusplus
3373   choke me
3374 #endif
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378   (eval $ac_compile) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } &&
3385          { ac_try='test -z "$ac_c_werror_flag"
3386                          || test ! -s conftest.err'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; } &&
3392          { ac_try='test -s conftest.$ac_objext'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   for ac_declaration in \
3399    '' \
3400    'extern "C" void std::exit (int) throw (); using std::exit;' \
3401    'extern "C" void std::exit (int); using std::exit;' \
3402    'extern "C" void exit (int) throw ();' \
3403    'extern "C" void exit (int);' \
3404    'void exit (int);'
3405 do
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 $ac_declaration
3413 #include <stdlib.h>
3414 int
3415 main ()
3416 {
3417 exit (42);
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424   (eval $ac_compile) 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } &&
3431          { ac_try='test -z "$ac_c_werror_flag"
3432                          || test ! -s conftest.err'
3433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434   (eval $ac_try) 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; } &&
3438          { ac_try='test -s conftest.$ac_objext'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; }; then
3444   :
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 continue
3450 fi
3451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 $ac_declaration
3459 int
3460 main ()
3461 {
3462 exit (42);
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469   (eval $ac_compile) 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } &&
3476          { ac_try='test -z "$ac_c_werror_flag"
3477                          || test ! -s conftest.err'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; } &&
3483          { ac_try='test -s conftest.$ac_objext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   break
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 fi
3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496 done
3497 rm -f conftest*
3498 if test -n "$ac_declaration"; then
3499   echo '#ifdef __cplusplus' >>confdefs.h
3500   echo $ac_declaration      >>confdefs.h
3501   echo '#endif'             >>confdefs.h
3502 fi
3503
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 fi
3509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515
3516 depcc="$CC"   am_compiler_list=
3517
3518 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3519 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3520 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3524   # We make a subdir and do the tests there.  Otherwise we can end up
3525   # making bogus files that we don't know about and never remove.  For
3526   # instance it was reported that on HP-UX the gcc test will end up
3527   # making a dummy file named `D' -- because `-MD' means `put the output
3528   # in D'.
3529   mkdir conftest.dir
3530   # Copy depcomp to subdir because otherwise we won't find it if we're
3531   # using a relative directory.
3532   cp "$am_depcomp" conftest.dir
3533   cd conftest.dir
3534   # We will build objects and dependencies in a subdirectory because
3535   # it helps to detect inapplicable dependency modes.  For instance
3536   # both Tru64's cc and ICC support -MD to output dependencies as a
3537   # side effect of compilation, but ICC will put the dependencies in
3538   # the current directory while Tru64 will put them in the object
3539   # directory.
3540   mkdir sub
3541
3542   am_cv_CC_dependencies_compiler_type=none
3543   if test "$am_compiler_list" = ""; then
3544      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545   fi
3546   for depmode in $am_compiler_list; do
3547     # Setup a source with many dependencies, because some compilers
3548     # like to wrap large dependency lists on column 80 (with \), and
3549     # we should not choose a depcomp mode which is confused by this.
3550     #
3551     # We need to recreate these files for each test, as the compiler may
3552     # overwrite some of them when testing with obscure command lines.
3553     # This happens at least with the AIX C compiler.
3554     : > sub/conftest.c
3555     for i in 1 2 3 4 5 6; do
3556       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3557       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3558       # Solaris 8's {/usr,}/bin/sh.
3559       touch sub/conftst$i.h
3560     done
3561     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3562
3563     case $depmode in
3564     nosideeffect)
3565       # after this tag, mechanisms are not by side-effect, so they'll
3566       # only be used when explicitly requested
3567       if test "x$enable_dependency_tracking" = xyes; then
3568         continue
3569       else
3570         break
3571       fi
3572       ;;
3573     none) break ;;
3574     esac
3575     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3576     # mode.  It turns out that the SunPro C++ compiler does not properly
3577     # handle `-M -o', and we need to detect this.
3578     if depmode=$depmode \
3579        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3580        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3581        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3582          >/dev/null 2>conftest.err &&
3583        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3584        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3585        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3586       # icc doesn't choke on unknown options, it will just issue warnings
3587       # (even with -Werror).  So we grep stderr for any message
3588       # that says an option was ignored.
3589       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3590         am_cv_CC_dependencies_compiler_type=$depmode
3591         break
3592       fi
3593     fi
3594   done
3595
3596   cd ..
3597   rm -rf conftest.dir
3598 else
3599   am_cv_CC_dependencies_compiler_type=none
3600 fi
3601
3602 fi
3603 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3604 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3605 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3606
3607
3608
3609 if
3610   test "x$enable_dependency_tracking" != xno \
3611   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3612   am__fastdepCC_TRUE=
3613   am__fastdepCC_FALSE='#'
3614 else
3615   am__fastdepCC_TRUE='#'
3616   am__fastdepCC_FALSE=
3617 fi
3618
3619
3620 # Find a good install program.  We prefer a C program (faster),
3621 # so one script is as good as another.  But avoid the broken or
3622 # incompatible versions:
3623 # SysV /etc/install, /usr/sbin/install
3624 # SunOS /usr/etc/install
3625 # IRIX /sbin/install
3626 # AIX /bin/install
3627 # AmigaOS /C/install, which installs bootblocks on floppy discs
3628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3631 # OS/2's system install, which has a completely different semantic
3632 # ./install, which can be erroneously created by make from ./install.sh.
3633 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3634 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3635 if test -z "$INSTALL"; then
3636 if test "${ac_cv_path_install+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644   # Account for people who put trailing slashes in PATH elements.
3645 case $as_dir/ in
3646   ./ | .// | /cC/* | \
3647   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3648   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3649   /usr/ucb/* ) ;;
3650   *)
3651     # OSF1 and SCO ODT 3.0 have their own names for install.
3652     # Don't use installbsd from OSF since it installs stuff as root
3653     # by default.
3654     for ac_prog in ginstall scoinst install; do
3655       for ac_exec_ext in '' $ac_executable_extensions; do
3656         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3657           if test $ac_prog = install &&
3658             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3659             # AIX install.  It has an incompatible calling convention.
3660             :
3661           elif test $ac_prog = install &&
3662             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663             # program-specific install script used by HP pwplus--don't use.
3664             :
3665           else
3666             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3667             break 3
3668           fi
3669         fi
3670       done
3671     done
3672     ;;
3673 esac
3674 done
3675
3676
3677 fi
3678   if test "${ac_cv_path_install+set}" = set; then
3679     INSTALL=$ac_cv_path_install
3680   else
3681     # As a last resort, use the slow shell script.  We don't cache a
3682     # path for INSTALL within a source directory, because that will
3683     # break other packages using the cache if that directory is
3684     # removed, or if the path is relative.
3685     INSTALL=$ac_install_sh
3686   fi
3687 fi
3688 echo "$as_me:$LINENO: result: $INSTALL" >&5
3689 echo "${ECHO_T}$INSTALL" >&6
3690
3691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3692 # It thinks the first close brace ends the variable substitution.
3693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3694
3695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3696
3697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3698
3699 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3701 LN_S=$as_ln_s
3702 if test "$LN_S" = "ln -s"; then
3703   echo "$as_me:$LINENO: result: yes" >&5
3704 echo "${ECHO_T}yes" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3707 echo "${ECHO_T}no, using $LN_S" >&6
3708 fi
3709
3710 if test "x$CC" != xcc; then
3711   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3713 else
3714   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3716 fi
3717 set dummy $CC; ac_cc=`echo $2 |
3718                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h.  */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h.  */
3728
3729 int
3730 main ()
3731 {
3732
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 # Make sure it works both with $CC and with simple cc.
3738 # We do the test twice because some compilers refuse to overwrite an
3739 # existing .o file with -o, though they will create one.
3740 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742   (eval $ac_try) 2>&5
3743   ac_status=$?
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } &&
3746    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); };
3751 then
3752   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3753   if test "x$CC" != xcc; then
3754     # Test first that cc exists at all.
3755     if { ac_try='cc -c conftest.$ac_ext >&5'
3756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3762       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763   (eval $ac_try) 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); } &&
3767          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768   (eval $ac_try) 2>&5
3769   ac_status=$?
3770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771   (exit $ac_status); };
3772       then
3773         # cc works too.
3774         :
3775       else
3776         # cc exists but doesn't like -o.
3777         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3778       fi
3779     fi
3780   fi
3781 else
3782   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3783 fi
3784 rm -f conftest*
3785
3786 fi
3787 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3788   echo "$as_me:$LINENO: result: yes" >&5
3789 echo "${ECHO_T}yes" >&6
3790 else
3791   echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793
3794 cat >>confdefs.h <<\_ACEOF
3795 #define NO_MINUS_C_MINUS_O 1
3796 _ACEOF
3797
3798 fi
3799
3800 # FIXME: we rely on the cache variable name because
3801 # there is no other way.
3802 set dummy $CC
3803 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3804 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3805    # Losing compiler, so override with the script.
3806    # FIXME: It is wrong to rewrite CC.
3807    # But if we don't then we get into trouble of one sort or another.
3808    # A longer-term fix would be to have automake use am__CC in this case,
3809    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3810    CC="$am_aux_dir/compile $CC"
3811 fi
3812
3813
3814
3815
3816
3817         if test -n "$PYTHON"; then
3818       # If the user set $PYTHON, use it and don't search something else.
3819       echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
3820 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6
3821       prog="import sys, string
3822 # split strings by '.' and convert to numeric.  Append some zeros
3823 # because we need at least 4 digits for the hex conversion.
3824 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3825 minverhex = 0
3826 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3827 sys.exit(sys.hexversion < minverhex)"
3828   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3829    ($PYTHON -c "$prog") >&5 2>&5
3830    ac_status=$?
3831    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832    (exit $ac_status); }; then
3833   echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6
3835 else
3836   { { echo "$as_me:$LINENO: error: too old" >&5
3837 echo "$as_me: error: too old" >&2;}
3838    { (exit 1); exit 1; }; }
3839 fi
3840
3841     else
3842       # Otherwise, try each interpreter until we find one that satisfies
3843       # VERSION.
3844       echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
3845 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6
3846 if test "${am_cv_pathless_PYTHON+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849
3850         for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3851           test "$am_cv_pathless_PYTHON" = none && break
3852           prog="import sys, string
3853 # split strings by '.' and convert to numeric.  Append some zeros
3854 # because we need at least 4 digits for the hex conversion.
3855 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
3856 minverhex = 0
3857 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3858 sys.exit(sys.hexversion < minverhex)"
3859   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3860    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3861    ac_status=$?
3862    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863    (exit $ac_status); }; then
3864   break
3865 fi
3866
3867         done
3868 fi
3869 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3870 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3871       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3872       if test "$am_cv_pathless_PYTHON" = none; then
3873         PYTHON=:
3874       else
3875         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3876 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3877 echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879 if test "${ac_cv_path_PYTHON+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   case $PYTHON in
3883   [\\/]* | ?:[\\/]*)
3884   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3885   ;;
3886   *)
3887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892   for ac_exec_ext in '' $ac_executable_extensions; do
3893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899 done
3900
3901   ;;
3902 esac
3903 fi
3904 PYTHON=$ac_cv_path_PYTHON
3905
3906 if test -n "$PYTHON"; then
3907   echo "$as_me:$LINENO: result: $PYTHON" >&5
3908 echo "${ECHO_T}$PYTHON" >&6
3909 else
3910   echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 fi
3913
3914       fi
3915       am_display_PYTHON=$am_cv_pathless_PYTHON
3916     fi
3917
3918
3919   if test "$PYTHON" = :; then
3920       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3921 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3922    { (exit 1); exit 1; }; }
3923   else
3924
3925
3926   echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3927 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3928 if test "${am_cv_python_version+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
3932 fi
3933 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3934 echo "${ECHO_T}$am_cv_python_version" >&6
3935   PYTHON_VERSION=$am_cv_python_version
3936
3937
3938
3939   PYTHON_PREFIX='${prefix}'
3940
3941   PYTHON_EXEC_PREFIX='${exec_prefix}'
3942
3943
3944
3945   echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3946 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3947 if test "${am_cv_python_platform+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
3951 fi
3952 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3953 echo "${ECHO_T}$am_cv_python_platform" >&6
3954   PYTHON_PLATFORM=$am_cv_python_platform
3955
3956
3957
3958
3959                 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3960 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3961 if test "${am_cv_python_pythondir+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3965      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3966 fi
3967 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3968 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3969   pythondir=$am_cv_python_pythondir
3970
3971
3972
3973   pkgpythondir=\${pythondir}/$PACKAGE
3974
3975
3976             echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
3977 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
3978 if test "${am_cv_python_pyexecdir+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
3982      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
3983 fi
3984 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
3985 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
3986   pyexecdir=$am_cv_python_pyexecdir
3987
3988
3989
3990   pkgpyexecdir=\${pyexecdir}/$PACKAGE
3991
3992
3993
3994   fi
3995
3996
3997
3998
3999
4000
4001         echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4002 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6
4003 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006
4007                 ac_ext=cc
4008 ac_cpp='$CXXCPP $CPPFLAGS'
4009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4012
4013                 cat >conftest.$ac_ext <<_ACEOF
4014
4015                     #include <ostream>
4016
4017 _ACEOF
4018 rm -f conftest.$ac_objext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020   (eval $ac_compile) 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } &&
4027          { ac_try='test -z "$ac_cxx_werror_flag"
4028                          || test ! -s conftest.err'
4029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030   (eval $ac_try) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; } &&
4034          { ac_try='test -s conftest.$ac_objext'
4035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; }; then
4040   ensc_cv_cxx_cxxcompiler=yes
4041 else
4042   echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 ensc_cv_cxx_cxxcompiler=no
4046 fi
4047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048                 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054
4055 fi
4056 echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4057 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6
4058
4059
4060
4061 if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4062   ENSC_HAVE_CXX_COMPILER_TRUE=
4063   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4064 else
4065   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4066   ENSC_HAVE_CXX_COMPILER_FALSE=
4067 fi
4068
4069
4070         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4071                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4072 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4073         fi
4074
4075
4076
4077
4078
4079         echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4080 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6
4081 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084
4085                 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091                 cat >conftest.$ac_ext <<_ACEOF
4092
4093 int main(int argc, char *argv) {
4094   struct { int x; }   a = { .x = argc };
4095   if (0) return 0;
4096   int b;
4097 }
4098
4099 _ACEOF
4100 rm -f conftest.$ac_objext
4101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102   (eval $ac_compile) 2>conftest.er1
4103   ac_status=$?
4104   grep -v '^ *+' conftest.er1 >conftest.err
4105   rm -f conftest.er1
4106   cat conftest.err >&5
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); } &&
4109          { ac_try='test -z "$ac_c_werror_flag"
4110                          || test ! -s conftest.err'
4111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112   (eval $ac_try) 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); }; } &&
4116          { ac_try='test -s conftest.$ac_objext'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; }; then
4122   ensc_cv_c99_c99compiler=yes
4123 else
4124   echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127 ensc_cv_c99_c99compiler=no
4128 fi
4129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130                 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136
4137 fi
4138 echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4139 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6
4140
4141
4142
4143 if test x"$ensc_cv_c99_c99compiler" = xyes; then
4144   ENSC_HAVE_C99_COMPILER_TRUE=
4145   ENSC_HAVE_C99_COMPILER_FALSE='#'
4146 else
4147   ENSC_HAVE_C99_COMPILER_TRUE='#'
4148   ENSC_HAVE_C99_COMPILER_FALSE=
4149 fi
4150
4151
4152         if test x"$ensc_cv_c99_c99compiler" = xno; then
4153                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4154 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4155         fi
4156
4157
4158
4159         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4160
4161
4162         ENSC_PATHPROG_SED=
4163
4164
4165
4166
4167
4168
4169
4170         if test -z ""; then
4171                 rq=true
4172         else
4173                 rq=false
4174         fi
4175
4176         if $rq; then
4177                 ensc_dflt=
4178         else
4179                 ensc_dflt=""
4180         fi
4181
4182         for ac_prog in awk
4183 do
4184   # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_path_AWK+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   case $AWK in
4192   [\\/]* | ?:[\\/]*)
4193   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4194   ;;
4195   *)
4196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $ensc_searchpath
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201   for ac_exec_ext in '' $ac_executable_extensions; do
4202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208 done
4209
4210   ;;
4211 esac
4212 fi
4213 AWK=$ac_cv_path_AWK
4214
4215 if test -n "$AWK"; then
4216   echo "$as_me:$LINENO: result: $AWK" >&5
4217 echo "${ECHO_T}$AWK" >&6
4218 else
4219   echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6
4221 fi
4222
4223   test -n "$AWK" && break
4224 done
4225 test -n "$AWK" || AWK="$ensc_dflt"
4226
4227
4228         if test -z "${AWK}" && $rq; then
4229                 if test -z ""; then
4230                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4231 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4232    { (exit 1); exit 1; }; }
4233                 else
4234                         { { echo "$as_me:$LINENO: error:
4235 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4236 " >&5
4237 echo "$as_me: error:
4238 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4239 " >&2;}
4240    { (exit 1); exit 1; }; }
4241                 fi
4242         fi
4243
4244         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4245
4246         test "${AWK}"
4247
4248
4249
4250
4251         if test -z ""; then
4252                 rq=true
4253         else
4254                 rq=false
4255         fi
4256
4257         if $rq; then
4258                 ensc_dflt=
4259         else
4260                 ensc_dflt=""
4261         fi
4262
4263         for ac_prog in cat
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_CAT+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   case $CAT in
4273   [\\/]* | ?:[\\/]*)
4274   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4275   ;;
4276   *)
4277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $ensc_searchpath
4279 do
4280   IFS=$as_save_IFS
4281   test -z "$as_dir" && as_dir=.
4282   for ac_exec_ext in '' $ac_executable_extensions; do
4283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286     break 2
4287   fi
4288 done
4289 done
4290
4291   ;;
4292 esac
4293 fi
4294 CAT=$ac_cv_path_CAT
4295
4296 if test -n "$CAT"; then
4297   echo "$as_me:$LINENO: result: $CAT" >&5
4298 echo "${ECHO_T}$CAT" >&6
4299 else
4300   echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304   test -n "$CAT" && break
4305 done
4306 test -n "$CAT" || CAT="$ensc_dflt"
4307
4308
4309         if test -z "${CAT}" && $rq; then
4310                 if test -z ""; then
4311                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4312 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4313    { (exit 1); exit 1; }; }
4314                 else
4315                         { { echo "$as_me:$LINENO: error:
4316 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4317 " >&5
4318 echo "$as_me: error:
4319 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4320 " >&2;}
4321    { (exit 1); exit 1; }; }
4322                 fi
4323         fi
4324
4325         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4326
4327         test "${CAT}"
4328
4329
4330
4331
4332         if test -z ""; then
4333                 rq=true
4334         else
4335                 rq=false
4336         fi
4337
4338         if $rq; then
4339                 ensc_dflt=
4340         else
4341                 ensc_dflt=""
4342         fi
4343
4344         for ac_prog in chown
4345 do
4346   # Extract the first word of "$ac_prog", so it can be a program name with args.
4347 set dummy $ac_prog; ac_word=$2
4348 echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350 if test "${ac_cv_path_CHOWN+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $CHOWN in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $ensc_searchpath
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371
4372   ;;
4373 esac
4374 fi
4375 CHOWN=$ac_cv_path_CHOWN
4376
4377 if test -n "$CHOWN"; then
4378   echo "$as_me:$LINENO: result: $CHOWN" >&5
4379 echo "${ECHO_T}$CHOWN" >&6
4380 else
4381   echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4383 fi
4384
4385   test -n "$CHOWN" && break
4386 done
4387 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4388
4389
4390         if test -z "${CHOWN}" && $rq; then
4391                 if test -z ""; then
4392                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4393 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4394    { (exit 1); exit 1; }; }
4395                 else
4396                         { { echo "$as_me:$LINENO: error:
4397 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4398 " >&5
4399 echo "$as_me: error:
4400 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4401 " >&2;}
4402    { (exit 1); exit 1; }; }
4403                 fi
4404         fi
4405
4406         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4407
4408         test "${CHOWN}"
4409
4410
4411
4412
4413         if test -z ""; then
4414                 rq=true
4415         else
4416                 rq=false
4417         fi
4418
4419         if $rq; then
4420                 ensc_dflt=
4421         else
4422                 ensc_dflt=""
4423         fi
4424
4425         for ac_prog in cmp
4426 do
4427   # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431 if test "${ac_cv_path_CMP+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   case $CMP in
4435   [\\/]* | ?:[\\/]*)
4436   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4437   ;;
4438   *)
4439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $ensc_searchpath
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452
4453   ;;
4454 esac
4455 fi
4456 CMP=$ac_cv_path_CMP
4457
4458 if test -n "$CMP"; then
4459   echo "$as_me:$LINENO: result: $CMP" >&5
4460 echo "${ECHO_T}$CMP" >&6
4461 else
4462   echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4464 fi
4465
4466   test -n "$CMP" && break
4467 done
4468 test -n "$CMP" || CMP="$ensc_dflt"
4469
4470
4471         if test -z "${CMP}" && $rq; then
4472                 if test -z ""; then
4473                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4474 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4475    { (exit 1); exit 1; }; }
4476                 else
4477                         { { echo "$as_me:$LINENO: error:
4478 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4479 " >&5
4480 echo "$as_me: error:
4481 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4482 " >&2;}
4483    { (exit 1); exit 1; }; }
4484                 fi
4485         fi
4486
4487         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4488
4489         test "${CMP}"
4490
4491
4492
4493
4494         if test -z ""; then
4495                 rq=true
4496         else
4497                 rq=false
4498         fi
4499
4500         if $rq; then
4501                 ensc_dflt=
4502         else
4503                 ensc_dflt=""
4504         fi
4505
4506         for ac_prog in cp
4507 do
4508   # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy $ac_prog; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_CP+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $CP in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $ensc_searchpath
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   ;;
4535 esac
4536 fi
4537 CP=$ac_cv_path_CP
4538
4539 if test -n "$CP"; then
4540   echo "$as_me:$LINENO: result: $CP" >&5
4541 echo "${ECHO_T}$CP" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547   test -n "$CP" && break
4548 done
4549 test -n "$CP" || CP="$ensc_dflt"
4550
4551
4552         if test -z "${CP}" && $rq; then
4553                 if test -z ""; then
4554                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4555 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4556    { (exit 1); exit 1; }; }
4557                 else
4558                         { { echo "$as_me:$LINENO: error:
4559 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4560 " >&5
4561 echo "$as_me: error:
4562 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4563 " >&2;}
4564    { (exit 1); exit 1; }; }
4565                 fi
4566         fi
4567
4568         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
4569
4570         test "${CP}"
4571
4572
4573
4574
4575         if test -z ""; then
4576                 rq=true
4577         else
4578                 rq=false
4579         fi
4580
4581         if $rq; then
4582                 ensc_dflt=
4583         else
4584                 ensc_dflt=""
4585         fi
4586
4587         for ac_prog in dirname
4588 do
4589   # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_path_DIRNAME+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   case $DIRNAME in
4597   [\\/]* | ?:[\\/]*)
4598   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4599   ;;
4600   *)
4601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $ensc_searchpath
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614
4615   ;;
4616 esac
4617 fi
4618 DIRNAME=$ac_cv_path_DIRNAME
4619
4620 if test -n "$DIRNAME"; then
4621   echo "$as_me:$LINENO: result: $DIRNAME" >&5
4622 echo "${ECHO_T}$DIRNAME" >&6
4623 else
4624   echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4626 fi
4627
4628   test -n "$DIRNAME" && break
4629 done
4630 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
4631
4632
4633         if test -z "${DIRNAME}" && $rq; then
4634                 if test -z ""; then
4635                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
4636 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4637    { (exit 1); exit 1; }; }
4638                 else
4639                         { { echo "$as_me:$LINENO: error:
4640 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4641 " >&5
4642 echo "$as_me: error:
4643 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
4644 " >&2;}
4645    { (exit 1); exit 1; }; }
4646                 fi
4647         fi
4648
4649         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
4650
4651         test "${DIRNAME}"
4652
4653
4654
4655
4656         if test -z ""; then
4657                 rq=true
4658         else
4659                 rq=false
4660         fi
4661
4662         if $rq; then
4663                 ensc_dflt=
4664         else
4665                 ensc_dflt=""
4666         fi
4667
4668         for ac_prog in egrep
4669 do
4670   # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_path_EGREP+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   case $EGREP in
4678   [\\/]* | ?:[\\/]*)
4679   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
4680   ;;
4681   *)
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $ensc_searchpath
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695
4696   ;;
4697 esac
4698 fi
4699 EGREP=$ac_cv_path_EGREP
4700
4701 if test -n "$EGREP"; then
4702   echo "$as_me:$LINENO: result: $EGREP" >&5
4703 echo "${ECHO_T}$EGREP" >&6
4704 else
4705   echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4707 fi
4708
4709   test -n "$EGREP" && break
4710 done
4711 test -n "$EGREP" || EGREP="$ensc_dflt"
4712
4713
4714         if test -z "${EGREP}" && $rq; then
4715                 if test -z ""; then
4716                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
4717 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4718    { (exit 1); exit 1; }; }
4719                 else
4720                         { { echo "$as_me:$LINENO: error:
4721 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4722 " >&5
4723 echo "$as_me: error:
4724 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
4725 " >&2;}
4726    { (exit 1); exit 1; }; }
4727                 fi
4728         fi
4729
4730         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
4731
4732         test "${EGREP}"
4733         env_old_searchpath="${ensc_searchpath}"
4734         ensc_searchpath="/bin:${ensc_searchpath:-$PATH}"
4735
4736
4737
4738
4739         if test -z ""; then
4740                 rq=true
4741         else
4742                 rq=false
4743         fi
4744
4745         if $rq; then
4746                 ensc_dflt=
4747         else
4748                 ensc_dflt=""
4749         fi
4750
4751         for ac_prog in env
4752 do
4753   # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757 if test "${ac_cv_path_ENV+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   case $ENV in
4761   [\\/]* | ?:[\\/]*)
4762   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
4763   ;;
4764   *)
4765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $ensc_searchpath
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770   for ac_exec_ext in '' $ac_executable_extensions; do
4771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
4773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777 done
4778
4779   ;;
4780 esac
4781 fi
4782 ENV=$ac_cv_path_ENV
4783
4784 if test -n "$ENV"; then
4785   echo "$as_me:$LINENO: result: $ENV" >&5
4786 echo "${ECHO_T}$ENV" >&6
4787 else
4788   echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4790 fi
4791
4792   test -n "$ENV" && break
4793 done
4794 test -n "$ENV" || ENV="$ensc_dflt"
4795
4796
4797         if test -z "${ENV}" && $rq; then
4798                 if test -z ""; then
4799                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
4800 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4801    { (exit 1); exit 1; }; }
4802                 else
4803                         { { echo "$as_me:$LINENO: error:
4804 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4805 " >&5
4806 echo "$as_me: error:
4807 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
4808 " >&2;}
4809    { (exit 1); exit 1; }; }
4810                 fi
4811         fi
4812
4813         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
4814
4815         test "${ENV}"
4816         ensc_searchpath="${env_old_searchpath}"
4817
4818
4819
4820
4821         if test -z ""; then
4822                 rq=true
4823         else
4824                 rq=false
4825         fi
4826
4827         if $rq; then
4828                 ensc_dflt=
4829         else
4830                 ensc_dflt=""
4831         fi
4832
4833         for ac_prog in grep
4834 do
4835   # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839 if test "${ac_cv_path_GREP+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   case $GREP in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $ensc_searchpath
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860
4861   ;;
4862 esac
4863 fi
4864 GREP=$ac_cv_path_GREP
4865
4866 if test -n "$GREP"; then
4867   echo "$as_me:$LINENO: result: $GREP" >&5
4868 echo "${ECHO_T}$GREP" >&6
4869 else
4870   echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 fi
4873
4874   test -n "$GREP" && break
4875 done
4876 test -n "$GREP" || GREP="$ensc_dflt"
4877
4878
4879         if test -z "${GREP}" && $rq; then
4880                 if test -z ""; then
4881                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
4882 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4883    { (exit 1); exit 1; }; }
4884                 else
4885                         { { echo "$as_me:$LINENO: error:
4886 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4887 " >&5
4888 echo "$as_me: error:
4889 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
4890 " >&2;}
4891    { (exit 1); exit 1; }; }
4892                 fi
4893         fi
4894
4895         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
4896
4897         test "${GREP}"
4898
4899
4900
4901
4902         if test -z ""; then
4903                 rq=true
4904         else
4905                 rq=false
4906         fi
4907
4908         if $rq; then
4909                 ensc_dflt=
4910         else
4911                 ensc_dflt=""
4912         fi
4913
4914         for ac_prog in ln
4915 do
4916   # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_path_LN+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   case $LN in
4924   [\\/]* | ?:[\\/]*)
4925   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4926   ;;
4927   *)
4928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $ensc_searchpath
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933   for ac_exec_ext in '' $ac_executable_extensions; do
4934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940 done
4941
4942   ;;
4943 esac
4944 fi
4945 LN=$ac_cv_path_LN
4946
4947 if test -n "$LN"; then
4948   echo "$as_me:$LINENO: result: $LN" >&5
4949 echo "${ECHO_T}$LN" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954
4955   test -n "$LN" && break
4956 done
4957 test -n "$LN" || LN="$ensc_dflt"
4958
4959
4960         if test -z "${LN}" && $rq; then
4961                 if test -z ""; then
4962                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
4963 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4964    { (exit 1); exit 1; }; }
4965                 else
4966                         { { echo "$as_me:$LINENO: error:
4967 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4968 " >&5
4969 echo "$as_me: error:
4970 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
4971 " >&2;}
4972    { (exit 1); exit 1; }; }
4973                 fi
4974         fi
4975
4976         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
4977
4978         test "${LN}"
4979
4980
4981
4982
4983         if test -z ""; then
4984                 rq=true
4985         else
4986                 rq=false
4987         fi
4988
4989         if $rq; then
4990                 ensc_dflt=
4991         else
4992                 ensc_dflt=""
4993         fi
4994
4995         for ac_prog in mkdir
4996 do
4997   # Extract the first word of "$ac_prog", so it can be a program name with args.
4998 set dummy $ac_prog; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_path_MKDIR+set}" = set; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   case $MKDIR in
5005   [\\/]* | ?:[\\/]*)
5006   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5007   ;;
5008   *)
5009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $ensc_searchpath
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014   for ac_exec_ext in '' $ac_executable_extensions; do
5015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021 done
5022
5023   ;;
5024 esac
5025 fi
5026 MKDIR=$ac_cv_path_MKDIR
5027
5028 if test -n "$MKDIR"; then
5029   echo "$as_me:$LINENO: result: $MKDIR" >&5
5030 echo "${ECHO_T}$MKDIR" >&6
5031 else
5032   echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034 fi
5035
5036   test -n "$MKDIR" && break
5037 done
5038 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5039
5040
5041         if test -z "${MKDIR}" && $rq; then
5042                 if test -z ""; then
5043                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5044 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5045    { (exit 1); exit 1; }; }
5046                 else
5047                         { { echo "$as_me:$LINENO: error:
5048 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5049 " >&5
5050 echo "$as_me: error:
5051 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5052 " >&2;}
5053    { (exit 1); exit 1; }; }
5054                 fi
5055         fi
5056
5057         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5058
5059         test "${MKDIR}"
5060
5061
5062
5063
5064         if test -z ""; then
5065                 rq=true
5066         else
5067                 rq=false
5068         fi
5069
5070         if $rq; then
5071                 ensc_dflt=
5072         else
5073                 ensc_dflt=""
5074         fi
5075
5076         for ac_prog in mkfifo
5077 do
5078   # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5082 if test "${ac_cv_path_MKFIFO+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   case $MKFIFO in
5086   [\\/]* | ?:[\\/]*)
5087   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5088   ;;
5089   *)
5090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $ensc_searchpath
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103
5104   ;;
5105 esac
5106 fi
5107 MKFIFO=$ac_cv_path_MKFIFO
5108
5109 if test -n "$MKFIFO"; then
5110   echo "$as_me:$LINENO: result: $MKFIFO" >&5
5111 echo "${ECHO_T}$MKFIFO" >&6
5112 else
5113   echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 fi
5116
5117   test -n "$MKFIFO" && break
5118 done
5119 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5120
5121
5122         if test -z "${MKFIFO}" && $rq; then
5123                 if test -z ""; then
5124                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5125 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5126    { (exit 1); exit 1; }; }
5127                 else
5128                         { { echo "$as_me:$LINENO: error:
5129 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5130 " >&5
5131 echo "$as_me: error:
5132 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5133 " >&2;}
5134    { (exit 1); exit 1; }; }
5135                 fi
5136         fi
5137
5138         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5139
5140         test "${MKFIFO}"
5141
5142
5143
5144
5145         if test -z ""; then
5146                 rq=true
5147         else
5148                 rq=false
5149         fi
5150
5151         if $rq; then
5152                 ensc_dflt=
5153         else
5154                 ensc_dflt=""
5155         fi
5156
5157         for ac_prog in mktemp
5158 do
5159   # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_path_MKTEMP+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   case $MKTEMP in
5167   [\\/]* | ?:[\\/]*)
5168   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5169   ;;
5170   *)
5171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $ensc_searchpath
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184
5185   ;;
5186 esac
5187 fi
5188 MKTEMP=$ac_cv_path_MKTEMP
5189
5190 if test -n "$MKTEMP"; then
5191   echo "$as_me:$LINENO: result: $MKTEMP" >&5
5192 echo "${ECHO_T}$MKTEMP" >&6
5193 else
5194   echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 fi
5197
5198   test -n "$MKTEMP" && break
5199 done
5200 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5201
5202
5203         if test -z "${MKTEMP}" && $rq; then
5204                 if test -z ""; then
5205                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5206 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5207    { (exit 1); exit 1; }; }
5208                 else
5209                         { { echo "$as_me:$LINENO: error:
5210 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5211 " >&5
5212 echo "$as_me: error:
5213 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5214 " >&2;}
5215    { (exit 1); exit 1; }; }
5216                 fi
5217         fi
5218
5219         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5220
5221         test "${MKTEMP}"
5222
5223
5224
5225
5226         if test -z ""; then
5227                 rq=true
5228         else
5229                 rq=false
5230         fi
5231
5232         if $rq; then
5233                 ensc_dflt=
5234         else
5235                 ensc_dflt=""
5236         fi
5237
5238         for ac_prog in mount
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_path_MOUNT+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   case $MOUNT in
5248   [\\/]* | ?:[\\/]*)
5249   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5250   ;;
5251   *)
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $ensc_searchpath
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257   for ac_exec_ext in '' $ac_executable_extensions; do
5258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264 done
5265
5266   ;;
5267 esac
5268 fi
5269 MOUNT=$ac_cv_path_MOUNT
5270
5271 if test -n "$MOUNT"; then
5272   echo "$as_me:$LINENO: result: $MOUNT" >&5
5273 echo "${ECHO_T}$MOUNT" >&6
5274 else
5275   echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278
5279   test -n "$MOUNT" && break
5280 done
5281 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5282
5283
5284         if test -z "${MOUNT}" && $rq; then
5285                 if test -z ""; then
5286                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5287 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5288    { (exit 1); exit 1; }; }
5289                 else
5290                         { { echo "$as_me:$LINENO: error:
5291 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5292 " >&5
5293 echo "$as_me: error:
5294 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5295 " >&2;}
5296    { (exit 1); exit 1; }; }
5297                 fi
5298         fi
5299
5300         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5301
5302         test "${MOUNT}"
5303
5304
5305
5306
5307         if test -z ""; then
5308                 rq=true
5309         else
5310                 rq=false
5311         fi
5312
5313         if $rq; then
5314                 ensc_dflt=
5315         else
5316                 ensc_dflt=""
5317         fi
5318
5319         for ac_prog in mv
5320 do
5321   # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_path_MV+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   case $MV in
5329   [\\/]* | ?:[\\/]*)
5330   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5331   ;;
5332   *)
5333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $ensc_searchpath
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338   for ac_exec_ext in '' $ac_executable_extensions; do
5339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345 done
5346
5347   ;;
5348 esac
5349 fi
5350 MV=$ac_cv_path_MV
5351
5352 if test -n "$MV"; then
5353   echo "$as_me:$LINENO: result: $MV" >&5
5354 echo "${ECHO_T}$MV" >&6
5355 else
5356   echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6
5358 fi
5359
5360   test -n "$MV" && break
5361 done
5362 test -n "$MV" || MV="$ensc_dflt"
5363
5364
5365         if test -z "${MV}" && $rq; then
5366                 if test -z ""; then
5367                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5368 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5369    { (exit 1); exit 1; }; }
5370                 else
5371                         { { echo "$as_me:$LINENO: error:
5372 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5373 " >&5
5374 echo "$as_me: error:
5375 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5376 " >&2;}
5377    { (exit 1); exit 1; }; }
5378                 fi
5379         fi
5380
5381         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5382
5383         test "${MV}"
5384
5385
5386
5387
5388         if test -z ""; then
5389                 rq=true
5390         else
5391                 rq=false
5392         fi
5393
5394         if $rq; then
5395                 ensc_dflt=
5396         else
5397                 ensc_dflt=""
5398         fi
5399
5400         for ac_prog in nice
5401 do
5402   # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_path_NICE+set}" = set; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   case $NICE in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $ensc_searchpath
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419   for ac_exec_ext in '' $ac_executable_extensions; do
5420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426 done
5427
5428   ;;
5429 esac
5430 fi
5431 NICE=$ac_cv_path_NICE
5432
5433 if test -n "$NICE"; then
5434   echo "$as_me:$LINENO: result: $NICE" >&5
5435 echo "${ECHO_T}$NICE" >&6
5436 else
5437   echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5439 fi
5440
5441   test -n "$NICE" && break
5442 done
5443 test -n "$NICE" || NICE="$ensc_dflt"
5444
5445
5446         if test -z "${NICE}" && $rq; then
5447                 if test -z ""; then
5448                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5449 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5450    { (exit 1); exit 1; }; }
5451                 else
5452                         { { echo "$as_me:$LINENO: error:
5453 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5454 " >&5
5455 echo "$as_me: error:
5456 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5457 " >&2;}
5458    { (exit 1); exit 1; }; }
5459                 fi
5460         fi
5461
5462         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5463
5464         test "${NICE}"
5465
5466
5467
5468
5469         if test -z ""; then
5470                 rq=true
5471         else
5472                 rq=false
5473         fi
5474
5475         if $rq; then
5476                 ensc_dflt=
5477         else
5478                 ensc_dflt=""
5479         fi
5480
5481         for ac_prog in ps
5482 do
5483   # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_path_PS+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   case $PS in
5491   [\\/]* | ?:[\\/]*)
5492   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5493   ;;
5494   *)
5495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $ensc_searchpath
5497 do
5498   IFS=$as_save_IFS
5499   test -z "$as_dir" && as_dir=.
5500   for ac_exec_ext in '' $ac_executable_extensions; do
5501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504     break 2
5505   fi
5506 done
5507 done
5508
5509   ;;
5510 esac
5511 fi
5512 PS=$ac_cv_path_PS
5513
5514 if test -n "$PS"; then
5515   echo "$as_me:$LINENO: result: $PS" >&5
5516 echo "${ECHO_T}$PS" >&6
5517 else
5518   echo "$as_me:$LINENO: result: no" >&5
5519 echo "${ECHO_T}no" >&6
5520 fi
5521
5522   test -n "$PS" && break
5523 done
5524 test -n "$PS" || PS="$ensc_dflt"
5525
5526
5527         if test -z "${PS}" && $rq; then
5528                 if test -z ""; then
5529                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
5530 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5531    { (exit 1); exit 1; }; }
5532                 else
5533                         { { echo "$as_me:$LINENO: error:
5534 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5535 " >&5
5536 echo "$as_me: error:
5537 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
5538 " >&2;}
5539    { (exit 1); exit 1; }; }
5540                 fi
5541         fi
5542
5543         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
5544
5545         test "${PS}"
5546
5547
5548
5549
5550         if test -z ""; then
5551                 rq=true
5552         else
5553                 rq=false
5554         fi
5555
5556         if $rq; then
5557                 ensc_dflt=
5558         else
5559                 ensc_dflt=""
5560         fi
5561
5562         for ac_prog in rm
5563 do
5564   # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if test "${ac_cv_path_RM+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   case $RM in
5572   [\\/]* | ?:[\\/]*)
5573   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5574   ;;
5575   *)
5576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $ensc_searchpath
5578 do
5579   IFS=$as_save_IFS
5580   test -z "$as_dir" && as_dir=.
5581   for ac_exec_ext in '' $ac_executable_extensions; do
5582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585     break 2
5586   fi
5587 done
5588 done
5589
5590   ;;
5591 esac
5592 fi
5593 RM=$ac_cv_path_RM
5594
5595 if test -n "$RM"; then
5596   echo "$as_me:$LINENO: result: $RM" >&5
5597 echo "${ECHO_T}$RM" >&6
5598 else
5599   echo "$as_me:$LINENO: result: no" >&5
5600 echo "${ECHO_T}no" >&6
5601 fi
5602
5603   test -n "$RM" && break
5604 done
5605 test -n "$RM" || RM="$ensc_dflt"
5606
5607
5608         if test -z "${RM}" && $rq; then
5609                 if test -z ""; then
5610                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
5611 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5612    { (exit 1); exit 1; }; }
5613                 else
5614                         { { echo "$as_me:$LINENO: error:
5615 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5616 " >&5
5617 echo "$as_me: error:
5618 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
5619 " >&2;}
5620    { (exit 1); exit 1; }; }
5621                 fi
5622         fi
5623
5624         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
5625
5626         test "${RM}"
5627
5628
5629
5630
5631         if test -z ""; then
5632                 rq=true
5633         else
5634                 rq=false
5635         fi
5636
5637         if $rq; then
5638                 ensc_dflt=
5639         else
5640                 ensc_dflt=""
5641         fi
5642
5643         for ac_prog in rmdir
5644 do
5645   # Extract the first word of "$ac_prog", so it can be a program name with args.
5646 set dummy $ac_prog; ac_word=$2
5647 echo "$as_me:$LINENO: checking for $ac_word" >&5
5648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5649 if test "${ac_cv_path_RMDIR+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   case $RMDIR in
5653   [\\/]* | ?:[\\/]*)
5654   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5655   ;;
5656   *)
5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $ensc_searchpath
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662   for ac_exec_ext in '' $ac_executable_extensions; do
5663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
5665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669 done
5670
5671   ;;
5672 esac
5673 fi
5674 RMDIR=$ac_cv_path_RMDIR
5675
5676 if test -n "$RMDIR"; then
5677   echo "$as_me:$LINENO: result: $RMDIR" >&5
5678 echo "${ECHO_T}$RMDIR" >&6
5679 else
5680   echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5682 fi
5683
5684   test -n "$RMDIR" && break
5685 done
5686 test -n "$RMDIR" || RMDIR="$ensc_dflt"
5687
5688
5689         if test -z "${RMDIR}" && $rq; then
5690                 if test -z ""; then
5691                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5692 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5693    { (exit 1); exit 1; }; }
5694                 else
5695                         { { echo "$as_me:$LINENO: error:
5696 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5697 " >&5
5698 echo "$as_me: error:
5699 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
5700 " >&2;}
5701    { (exit 1); exit 1; }; }
5702                 fi
5703         fi
5704
5705         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
5706
5707         test "${RMDIR}"
5708
5709
5710
5711
5712         if test -z ""; then
5713                 rq=true
5714         else
5715                 rq=false
5716         fi
5717
5718         if $rq; then
5719                 ensc_dflt=
5720         else
5721                 ensc_dflt=""
5722         fi
5723
5724         for ac_prog in sed
5725 do
5726   # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5730 if test "${ac_cv_path_SED+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   case $SED in
5734   [\\/]* | ?:[\\/]*)
5735   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5736   ;;
5737   *)
5738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $ensc_searchpath
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752   ;;
5753 esac
5754 fi
5755 SED=$ac_cv_path_SED
5756
5757 if test -n "$SED"; then
5758   echo "$as_me:$LINENO: result: $SED" >&5
5759 echo "${ECHO_T}$SED" >&6
5760 else
5761   echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5763 fi
5764
5765   test -n "$SED" && break
5766 done
5767 test -n "$SED" || SED="$ensc_dflt"
5768
5769
5770         if test -z "${SED}" && $rq; then
5771                 if test -z ""; then
5772                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
5773 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5774    { (exit 1); exit 1; }; }
5775                 else
5776                         { { echo "$as_me:$LINENO: error:
5777 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5778 " >&5
5779 echo "$as_me: error:
5780 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
5781 " >&2;}
5782    { (exit 1); exit 1; }; }
5783                 fi
5784         fi
5785
5786         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
5787
5788         test "${SED}"
5789
5790
5791
5792
5793         if test -z ""; then
5794                 rq=true
5795         else
5796                 rq=false
5797         fi
5798
5799         if $rq; then
5800                 ensc_dflt=
5801         else
5802                 ensc_dflt=""
5803         fi
5804
5805         for ac_prog in sh
5806 do
5807   # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811 if test "${ac_cv_path_SH+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   case $SH in
5815   [\\/]* | ?:[\\/]*)
5816   ac_cv_path_SH="$SH" # Let the user override the test with a path.
5817   ;;
5818   *)
5819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $ensc_searchpath
5821 do
5822   IFS=$as_save_IFS
5823   test -z "$as_dir" && as_dir=.
5824   for ac_exec_ext in '' $ac_executable_extensions; do
5825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828     break 2
5829   fi
5830 done
5831 done
5832
5833   ;;
5834 esac
5835 fi
5836 SH=$ac_cv_path_SH
5837
5838 if test -n "$SH"; then
5839   echo "$as_me:$LINENO: result: $SH" >&5
5840 echo "${ECHO_T}$SH" >&6
5841 else
5842   echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6
5844 fi
5845
5846   test -n "$SH" && break
5847 done
5848 test -n "$SH" || SH="$ensc_dflt"
5849
5850
5851         if test -z "${SH}" && $rq; then
5852                 if test -z ""; then
5853                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
5854 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5855    { (exit 1); exit 1; }; }
5856                 else
5857                         { { echo "$as_me:$LINENO: error:
5858 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5859 " >&5
5860 echo "$as_me: error:
5861 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
5862 " >&2;}
5863    { (exit 1); exit 1; }; }
5864                 fi
5865         fi
5866
5867         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
5868
5869         test "${SH}"
5870
5871
5872
5873
5874         if test -z ""; then
5875                 rq=true
5876         else
5877                 rq=false
5878         fi
5879
5880         if $rq; then
5881                 ensc_dflt=
5882         else
5883                 ensc_dflt=""
5884         fi
5885
5886         for ac_prog in tac
5887 do
5888   # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy $ac_prog; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_path_TAC+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   case $TAC in
5896   [\\/]* | ?:[\\/]*)
5897   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
5898   ;;
5899   *)
5900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $ensc_searchpath
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913
5914   ;;
5915 esac
5916 fi
5917 TAC=$ac_cv_path_TAC
5918
5919 if test -n "$TAC"; then
5920   echo "$as_me:$LINENO: result: $TAC" >&5
5921 echo "${ECHO_T}$TAC" >&6
5922 else
5923   echo "$as_me:$LINENO: result: no" >&5
5924 echo "${ECHO_T}no" >&6
5925 fi
5926
5927   test -n "$TAC" && break
5928 done
5929 test -n "$TAC" || TAC="$ensc_dflt"
5930
5931
5932         if test -z "${TAC}" && $rq; then
5933                 if test -z ""; then
5934                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
5935 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5936    { (exit 1); exit 1; }; }
5937                 else
5938                         { { echo "$as_me:$LINENO: error:
5939 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5940 " >&5
5941 echo "$as_me: error:
5942 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
5943 " >&2;}
5944    { (exit 1); exit 1; }; }
5945                 fi
5946         fi
5947
5948         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
5949
5950         test "${TAC}"
5951
5952
5953
5954
5955         if test -z ""; then
5956                 rq=true
5957         else
5958                 rq=false
5959         fi
5960
5961         if $rq; then
5962                 ensc_dflt=
5963         else
5964                 ensc_dflt=""
5965         fi
5966
5967         for ac_prog in tar
5968 do
5969   # Extract the first word of "$ac_prog", so it can be a program name with args.
5970 set dummy $ac_prog; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_path_TAR+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   case $TAR in
5977   [\\/]* | ?:[\\/]*)
5978   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5979   ;;
5980   *)
5981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $ensc_searchpath
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986   for ac_exec_ext in '' $ac_executable_extensions; do
5987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993 done
5994
5995   ;;
5996 esac
5997 fi
5998 TAR=$ac_cv_path_TAR
5999
6000 if test -n "$TAR"; then
6001   echo "$as_me:$LINENO: result: $TAR" >&5
6002 echo "${ECHO_T}$TAR" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   test -n "$TAR" && break
6009 done
6010 test -n "$TAR" || TAR="$ensc_dflt"
6011
6012
6013         if test -z "${TAR}" && $rq; then
6014                 if test -z ""; then
6015                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6016 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6017    { (exit 1); exit 1; }; }
6018                 else
6019                         { { echo "$as_me:$LINENO: error:
6020 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6021 " >&5
6022 echo "$as_me: error:
6023 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6024 " >&2;}
6025    { (exit 1); exit 1; }; }
6026                 fi
6027         fi
6028
6029         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6030
6031         test "${TAR}"
6032
6033
6034
6035
6036         if test -z ""; then
6037                 rq=true
6038         else
6039                 rq=false
6040         fi
6041
6042         if $rq; then
6043                 ensc_dflt=
6044         else
6045                 ensc_dflt=""
6046         fi
6047
6048         for ac_prog in touch
6049 do
6050   # Extract the first word of "$ac_prog", so it can be a program name with args.
6051 set dummy $ac_prog; ac_word=$2
6052 echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054 if test "${ac_cv_path_TOUCH+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case $TOUCH in
6058   [\\/]* | ?:[\\/]*)
6059   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6060   ;;
6061   *)
6062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $ensc_searchpath
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067   for ac_exec_ext in '' $ac_executable_extensions; do
6068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074 done
6075
6076   ;;
6077 esac
6078 fi
6079 TOUCH=$ac_cv_path_TOUCH
6080
6081 if test -n "$TOUCH"; then
6082   echo "$as_me:$LINENO: result: $TOUCH" >&5
6083 echo "${ECHO_T}$TOUCH" >&6
6084 else
6085   echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6
6087 fi
6088
6089   test -n "$TOUCH" && break
6090 done
6091 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6092
6093
6094         if test -z "${TOUCH}" && $rq; then
6095                 if test -z ""; then
6096                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6097 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6098    { (exit 1); exit 1; }; }
6099                 else
6100                         { { echo "$as_me:$LINENO: error:
6101 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6102 " >&5
6103 echo "$as_me: error:
6104 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6105 " >&2;}
6106    { (exit 1); exit 1; }; }
6107                 fi
6108         fi
6109
6110         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6111
6112         test "${TOUCH}"
6113
6114
6115
6116
6117         if test -z ""; then
6118                 rq=true
6119         else
6120                 rq=false
6121         fi
6122
6123         if $rq; then
6124                 ensc_dflt=
6125         else
6126                 ensc_dflt=""
6127         fi
6128
6129         for ac_prog in tty
6130 do
6131   # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135 if test "${ac_cv_path_TTY+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   case $TTY in
6139   [\\/]* | ?:[\\/]*)
6140   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6141   ;;
6142   *)
6143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $ensc_searchpath
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148   for ac_exec_ext in '' $ac_executable_extensions; do
6149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155 done
6156
6157   ;;
6158 esac
6159 fi
6160 TTY=$ac_cv_path_TTY
6161
6162 if test -n "$TTY"; then
6163   echo "$as_me:$LINENO: result: $TTY" >&5
6164 echo "${ECHO_T}$TTY" >&6
6165 else
6166   echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6168 fi
6169
6170   test -n "$TTY" && break
6171 done
6172 test -n "$TTY" || TTY="$ensc_dflt"
6173
6174
6175         if test -z "${TTY}" && $rq; then
6176                 if test -z ""; then
6177                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6178 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6179    { (exit 1); exit 1; }; }
6180                 else
6181                         { { echo "$as_me:$LINENO: error:
6182 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6183 " >&5
6184 echo "$as_me: error:
6185 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6186 " >&2;}
6187    { (exit 1); exit 1; }; }
6188                 fi
6189         fi
6190
6191         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6192
6193         test "${TTY}"
6194
6195
6196
6197
6198         if test -z ""; then
6199                 rq=true
6200         else
6201                 rq=false
6202         fi
6203
6204         if $rq; then
6205                 ensc_dflt=
6206         else
6207                 ensc_dflt=""
6208         fi
6209
6210         for ac_prog in umount
6211 do
6212   # Extract the first word of "$ac_prog", so it can be a program name with args.
6213 set dummy $ac_prog; ac_word=$2
6214 echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6216 if test "${ac_cv_path_UMOUNT+set}" = set; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   case $UMOUNT in
6220   [\\/]* | ?:[\\/]*)
6221   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6222   ;;
6223   *)
6224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $ensc_searchpath
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229   for ac_exec_ext in '' $ac_executable_extensions; do
6230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236 done
6237
6238   ;;
6239 esac
6240 fi
6241 UMOUNT=$ac_cv_path_UMOUNT
6242
6243 if test -n "$UMOUNT"; then
6244   echo "$as_me:$LINENO: result: $UMOUNT" >&5
6245 echo "${ECHO_T}$UMOUNT" >&6
6246 else
6247   echo "$as_me:$LINENO: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6249 fi
6250
6251   test -n "$UMOUNT" && break
6252 done
6253 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6254
6255
6256         if test -z "${UMOUNT}" && $rq; then
6257                 if test -z ""; then
6258                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6259 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6260    { (exit 1); exit 1; }; }
6261                 else
6262                         { { echo "$as_me:$LINENO: error:
6263 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6264 " >&5
6265 echo "$as_me: error:
6266 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6267 " >&2;}
6268    { (exit 1); exit 1; }; }
6269                 fi
6270         fi
6271
6272         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6273
6274         test "${UMOUNT}"
6275
6276
6277
6278
6279         if test -z ""; then
6280                 rq=true
6281         else
6282                 rq=false
6283         fi
6284
6285         if $rq; then
6286                 ensc_dflt=
6287         else
6288                 ensc_dflt=""
6289         fi
6290
6291         for ac_prog in wc
6292 do
6293   # Extract the first word of "$ac_prog", so it can be a program name with args.
6294 set dummy $ac_prog; ac_word=$2
6295 echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297 if test "${ac_cv_path_WC+set}" = set; then
6298   echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300   case $WC in
6301   [\\/]* | ?:[\\/]*)
6302   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6303   ;;
6304   *)
6305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $ensc_searchpath
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310   for ac_exec_ext in '' $ac_executable_extensions; do
6311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317 done
6318
6319   ;;
6320 esac
6321 fi
6322 WC=$ac_cv_path_WC
6323
6324 if test -n "$WC"; then
6325   echo "$as_me:$LINENO: result: $WC" >&5
6326 echo "${ECHO_T}$WC" >&6
6327 else
6328   echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6
6330 fi
6331
6332   test -n "$WC" && break
6333 done
6334 test -n "$WC" || WC="$ensc_dflt"
6335
6336
6337         if test -z "${WC}" && $rq; then
6338                 if test -z ""; then
6339                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6340 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6341    { (exit 1); exit 1; }; }
6342                 else
6343                         { { echo "$as_me:$LINENO: error:
6344 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6345 " >&5
6346 echo "$as_me: error:
6347 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6348 " >&2;}
6349    { (exit 1); exit 1; }; }
6350                 fi
6351         fi
6352
6353         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6354
6355         test "${WC}"
6356
6357
6358
6359
6360
6361
6362         if test -z ""; then
6363                 rq=true
6364         else
6365                 rq=false
6366         fi
6367
6368         if $rq; then
6369                 ensc_dflt=
6370         else
6371                 ensc_dflt=""
6372         fi
6373
6374         for ac_prog in ip
6375 do
6376   # Extract the first word of "$ac_prog", so it can be a program name with args.
6377 set dummy $ac_prog; ac_word=$2
6378 echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380 if test "${ac_cv_path_IP+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   case $IP in
6384   [\\/]* | ?:[\\/]*)
6385   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6386   ;;
6387   *)
6388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $ensc_searchpath
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393   for ac_exec_ext in '' $ac_executable_extensions; do
6394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400 done
6401
6402   ;;
6403 esac
6404 fi
6405 IP=$ac_cv_path_IP
6406
6407 if test -n "$IP"; then
6408   echo "$as_me:$LINENO: result: $IP" >&5
6409 echo "${ECHO_T}$IP" >&6
6410 else
6411   echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6
6413 fi
6414
6415   test -n "$IP" && break
6416 done
6417 test -n "$IP" || IP="$ensc_dflt"
6418
6419
6420         if test -z "${IP}" && $rq; then
6421                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6422                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6423 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6424    { (exit 1); exit 1; }; }
6425                 else
6426                         { { echo "$as_me:$LINENO: error:
6427 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6428 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6429 echo "$as_me: error:
6430 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6431 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6432    { (exit 1); exit 1; }; }
6433                 fi
6434         fi
6435
6436         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6437
6438         test "${IP}"
6439
6440
6441
6442
6443         if test -z ""; then
6444                 rq=true
6445         else
6446                 rq=false
6447         fi
6448
6449         if $rq; then
6450                 ensc_dflt=
6451         else
6452                 ensc_dflt=""
6453         fi
6454
6455         for ac_prog in iptables
6456 do
6457   # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_path_IPTABLES+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   case $IPTABLES in
6465   [\\/]* | ?:[\\/]*)
6466   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
6467   ;;
6468   *)
6469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $ensc_searchpath
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482
6483   ;;
6484 esac
6485 fi
6486 IPTABLES=$ac_cv_path_IPTABLES
6487
6488 if test -n "$IPTABLES"; then
6489   echo "$as_me:$LINENO: result: $IPTABLES" >&5
6490 echo "${ECHO_T}$IPTABLES" >&6
6491 else
6492   echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6
6494 fi
6495
6496   test -n "$IPTABLES" && break
6497 done
6498 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
6499
6500
6501         if test -z "${IPTABLES}" && $rq; then
6502                 if test -z ""; then
6503                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
6504 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6505    { (exit 1); exit 1; }; }
6506                 else
6507                         { { echo "$as_me:$LINENO: error:
6508 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6509 " >&5
6510 echo "$as_me: error:
6511 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
6512 " >&2;}
6513    { (exit 1); exit 1; }; }
6514                 fi
6515         fi
6516
6517         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
6518
6519         test "${IPTABLES}"
6520
6521
6522
6523
6524         if test -z ""; then
6525                 rq=true
6526         else
6527                 rq=false
6528         fi
6529
6530         if $rq; then
6531                 ensc_dflt=
6532         else
6533                 ensc_dflt=""
6534         fi
6535
6536         for ac_prog in modprobe
6537 do
6538   # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6542 if test "${ac_cv_path_MODPROBE+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $MODPROBE in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $ensc_searchpath
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563
6564   ;;
6565 esac
6566 fi
6567 MODPROBE=$ac_cv_path_MODPROBE
6568
6569 if test -n "$MODPROBE"; then
6570   echo "$as_me:$LINENO: result: $MODPROBE" >&5
6571 echo "${ECHO_T}$MODPROBE" >&6
6572 else
6573   echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6
6575 fi
6576
6577   test -n "$MODPROBE" && break
6578 done
6579 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
6580
6581
6582         if test -z "${MODPROBE}" && $rq; then
6583                 if test -z ""; then
6584                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
6585 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6586    { (exit 1); exit 1; }; }
6587                 else
6588                         { { echo "$as_me:$LINENO: error:
6589 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6590 " >&5
6591 echo "$as_me: error:
6592 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
6593 " >&2;}
6594    { (exit 1); exit 1; }; }
6595                 fi
6596         fi
6597
6598         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
6599
6600         test "${MODPROBE}"
6601
6602
6603
6604
6605         if test -z ""; then
6606                 rq=true
6607         else
6608                 rq=false
6609         fi
6610
6611         if $rq; then
6612                 ensc_dflt=
6613         else
6614                 ensc_dflt=""
6615         fi
6616
6617         for ac_prog in nameif
6618 do
6619   # Extract the first word of "$ac_prog", so it can be a program name with args.
6620 set dummy $ac_prog; ac_word=$2
6621 echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6623 if test "${ac_cv_path_NAMEIF+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   case $NAMEIF in
6627   [\\/]* | ?:[\\/]*)
6628   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
6629   ;;
6630   *)
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $ensc_searchpath
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644
6645   ;;
6646 esac
6647 fi
6648 NAMEIF=$ac_cv_path_NAMEIF
6649
6650 if test -n "$NAMEIF"; then
6651   echo "$as_me:$LINENO: result: $NAMEIF" >&5
6652 echo "${ECHO_T}$NAMEIF" >&6
6653 else
6654   echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6
6656 fi
6657
6658   test -n "$NAMEIF" && break
6659 done
6660 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
6661
6662
6663         if test -z "${NAMEIF}" && $rq; then
6664                 if test -z ""; then
6665                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
6666 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6667    { (exit 1); exit 1; }; }
6668                 else
6669                         { { echo "$as_me:$LINENO: error:
6670 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6671 " >&5
6672 echo "$as_me: error:
6673 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
6674 " >&2;}
6675    { (exit 1); exit 1; }; }
6676                 fi
6677         fi
6678
6679         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
6680
6681         test "${NAMEIF}"
6682
6683
6684
6685
6686         if test -z ""; then
6687                 rq=true
6688         else
6689                 rq=false
6690         fi
6691
6692         if $rq; then
6693                 ensc_dflt=
6694         else
6695                 ensc_dflt=""
6696         fi
6697
6698         for ac_prog in nohup
6699 do
6700   # Extract the first word of "$ac_prog", so it can be a program name with args.
6701 set dummy $ac_prog; ac_word=$2
6702 echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6704 if test "${ac_cv_path_NOHUP+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   case $NOHUP in
6708   [\\/]* | ?:[\\/]*)
6709   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
6710   ;;
6711   *)
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $ensc_searchpath
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717   for ac_exec_ext in '' $ac_executable_extensions; do
6718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
6720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724 done
6725
6726   ;;
6727 esac
6728 fi
6729 NOHUP=$ac_cv_path_NOHUP
6730
6731 if test -n "$NOHUP"; then
6732   echo "$as_me:$LINENO: result: $NOHUP" >&5
6733 echo "${ECHO_T}$NOHUP" >&6
6734 else
6735   echo "$as_me:$LINENO: result: no" >&5
6736 echo "${ECHO_T}no" >&6
6737 fi
6738
6739   test -n "$NOHUP" && break
6740 done
6741 test -n "$NOHUP" || NOHUP="$ensc_dflt"
6742
6743
6744         if test -z "${NOHUP}" && $rq; then
6745                 if test -z ""; then
6746                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
6747 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6748    { (exit 1); exit 1; }; }
6749                 else
6750                         { { echo "$as_me:$LINENO: error:
6751 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6752 " >&5
6753 echo "$as_me: error:
6754 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
6755 " >&2;}
6756    { (exit 1); exit 1; }; }
6757                 fi
6758         fi
6759
6760         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
6761
6762         test "${NOHUP}"
6763
6764
6765
6766
6767         if test -z ""; then
6768                 rq=true
6769         else
6770                 rq=false
6771         fi
6772
6773         if $rq; then
6774                 ensc_dflt=
6775         else
6776                 ensc_dflt=""
6777         fi
6778
6779         for ac_prog in rmmod
6780 do
6781   # Extract the first word of "$ac_prog", so it can be a program name with args.
6782 set dummy $ac_prog; ac_word=$2
6783 echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6785 if test "${ac_cv_path_RMMOD+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $RMMOD in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $ensc_searchpath
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806
6807   ;;
6808 esac
6809 fi
6810 RMMOD=$ac_cv_path_RMMOD
6811
6812 if test -n "$RMMOD"; then
6813   echo "$as_me:$LINENO: result: $RMMOD" >&5
6814 echo "${ECHO_T}$RMMOD" >&6
6815 else
6816   echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6
6818 fi
6819
6820   test -n "$RMMOD" && break
6821 done
6822 test -n "$RMMOD" || RMMOD="$ensc_dflt"
6823
6824
6825         if test -z "${RMMOD}" && $rq; then
6826                 if test -z ""; then
6827                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
6828 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6829    { (exit 1); exit 1; }; }
6830                 else
6831                         { { echo "$as_me:$LINENO: error:
6832 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6833 " >&5
6834 echo "$as_me: error:
6835 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
6836 " >&2;}
6837    { (exit 1); exit 1; }; }
6838                 fi
6839         fi
6840
6841         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
6842
6843         test "${RMMOD}"
6844
6845
6846
6847
6848         if test -z ""; then
6849                 rq=true
6850         else
6851                 rq=false
6852         fi
6853
6854         if $rq; then
6855                 ensc_dflt=
6856         else
6857                 ensc_dflt=""
6858         fi
6859
6860         for ac_prog in vconfig
6861 do
6862   # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6866 if test "${ac_cv_path_VCONFIG+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   case $VCONFIG in
6870   [\\/]* | ?:[\\/]*)
6871   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
6872   ;;
6873   *)
6874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $ensc_searchpath
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887
6888   ;;
6889 esac
6890 fi
6891 VCONFIG=$ac_cv_path_VCONFIG
6892
6893 if test -n "$VCONFIG"; then
6894   echo "$as_me:$LINENO: result: $VCONFIG" >&5
6895 echo "${ECHO_T}$VCONFIG" >&6
6896 else
6897   echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6
6899 fi
6900
6901   test -n "$VCONFIG" && break
6902 done
6903 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
6904
6905
6906         if test -z "${VCONFIG}" && $rq; then
6907                 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
6908                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
6909 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6910    { (exit 1); exit 1; }; }
6911                 else
6912                         { { echo "$as_me:$LINENO: error:
6913 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6914 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
6915 echo "$as_me: error:
6916 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
6917 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
6918    { (exit 1); exit 1; }; }
6919                 fi
6920         fi
6921
6922         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
6923
6924         test "${VCONFIG}"
6925
6926
6927
6928
6929         if test -z ""; then
6930                 rq=true
6931         else
6932                 rq=false
6933         fi
6934
6935         if $rq; then
6936                 ensc_dflt=
6937         else
6938                 ensc_dflt=""
6939         fi
6940
6941         for ac_prog in wget
6942 do
6943   # Extract the first word of "$ac_prog", so it can be a program name with args.
6944 set dummy $ac_prog; ac_word=$2
6945 echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6947 if test "${ac_cv_path_WGET+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   case $WGET in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $ensc_searchpath
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968
6969   ;;
6970 esac
6971 fi
6972 WGET=$ac_cv_path_WGET
6973
6974 if test -n "$WGET"; then
6975   echo "$as_me:$LINENO: result: $WGET" >&5
6976 echo "${ECHO_T}$WGET" >&6
6977 else
6978   echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6
6980 fi
6981
6982   test -n "$WGET" && break
6983 done
6984 test -n "$WGET" || WGET="$ensc_dflt"
6985
6986
6987         if test -z "${WGET}" && $rq; then
6988                 if test -z ""; then
6989                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
6990 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6991    { (exit 1); exit 1; }; }
6992                 else
6993                         { { echo "$as_me:$LINENO: error:
6994 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6995 " >&5
6996 echo "$as_me: error:
6997 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
6998 " >&2;}
6999    { (exit 1); exit 1; }; }
7000                 fi
7001         fi
7002
7003         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7004
7005         test "${WGET}"
7006
7007
7008
7009
7010         if test -z "file"; then
7011                 rq=true
7012         else
7013                 rq=false
7014         fi
7015
7016         if $rq; then
7017                 ensc_dflt=
7018         else
7019                 ensc_dflt="file"
7020         fi
7021
7022         for ac_prog in file
7023 do
7024   # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028 if test "${ac_cv_path_FILE+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   case $FILE in
7032   [\\/]* | ?:[\\/]*)
7033   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7034   ;;
7035   *)
7036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $ensc_searchpath
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041   for ac_exec_ext in '' $ac_executable_extensions; do
7042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048 done
7049
7050   ;;
7051 esac
7052 fi
7053 FILE=$ac_cv_path_FILE
7054
7055 if test -n "$FILE"; then
7056   echo "$as_me:$LINENO: result: $FILE" >&5
7057 echo "${ECHO_T}$FILE" >&6
7058 else
7059   echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6
7061 fi
7062
7063   test -n "$FILE" && break
7064 done
7065 test -n "$FILE" || FILE="$ensc_dflt"
7066
7067
7068         if test -z "${FILE}" && $rq; then
7069                 if test -z ""; then
7070                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7071 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7072    { (exit 1); exit 1; }; }
7073                 else
7074                         { { echo "$as_me:$LINENO: error:
7075 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7076 " >&5
7077 echo "$as_me: error:
7078 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7079 " >&2;}
7080    { (exit 1); exit 1; }; }
7081                 fi
7082         fi
7083
7084         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7085
7086         test "${FILE}"
7087
7088
7089
7090
7091         if test -z "gzip"; then
7092                 rq=true
7093         else
7094                 rq=false
7095         fi
7096
7097         if $rq; then
7098                 ensc_dflt=
7099         else
7100                 ensc_dflt="gzip"
7101         fi
7102
7103         for ac_prog in gzip
7104 do
7105   # Extract the first word of "$ac_prog", so it can be a program name with args.
7106 set dummy $ac_prog; ac_word=$2
7107 echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109 if test "${ac_cv_path_GZIP+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $GZIP in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $ensc_searchpath
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131   ;;
7132 esac
7133 fi
7134 GZIP=$ac_cv_path_GZIP
7135
7136 if test -n "$GZIP"; then
7137   echo "$as_me:$LINENO: result: $GZIP" >&5
7138 echo "${ECHO_T}$GZIP" >&6
7139 else
7140   echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6
7142 fi
7143
7144   test -n "$GZIP" && break
7145 done
7146 test -n "$GZIP" || GZIP="$ensc_dflt"
7147
7148
7149         if test -z "${GZIP}" && $rq; then
7150                 if test -z ""; then
7151                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7152 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7153    { (exit 1); exit 1; }; }
7154                 else
7155                         { { echo "$as_me:$LINENO: error:
7156 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7157 " >&5
7158 echo "$as_me: error:
7159 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7160 " >&2;}
7161    { (exit 1); exit 1; }; }
7162                 fi
7163         fi
7164
7165         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7166
7167         test "${GZIP}"
7168
7169
7170
7171
7172         if test -z "bzip2"; then
7173                 rq=true
7174         else
7175                 rq=false
7176         fi
7177
7178         if $rq; then
7179                 ensc_dflt=
7180         else
7181                 ensc_dflt="bzip2"
7182         fi
7183
7184         for ac_prog in bzip2
7185 do
7186   # Extract the first word of "$ac_prog", so it can be a program name with args.
7187 set dummy $ac_prog; ac_word=$2
7188 echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190 if test "${ac_cv_path_BZIP2+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $BZIP2 in
7194   [\\/]* | ?:[\\/]*)
7195   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7196   ;;
7197   *)
7198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $ensc_searchpath
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211
7212   ;;
7213 esac
7214 fi
7215 BZIP2=$ac_cv_path_BZIP2
7216
7217 if test -n "$BZIP2"; then
7218   echo "$as_me:$LINENO: result: $BZIP2" >&5
7219 echo "${ECHO_T}$BZIP2" >&6
7220 else
7221   echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6
7223 fi
7224
7225   test -n "$BZIP2" && break
7226 done
7227 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7228
7229
7230         if test -z "${BZIP2}" && $rq; then
7231                 if test -z ""; then
7232                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7233 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7234    { (exit 1); exit 1; }; }
7235                 else
7236                         { { echo "$as_me:$LINENO: error:
7237 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7238 " >&5
7239 echo "$as_me: error:
7240 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7241 " >&2;}
7242    { (exit 1); exit 1; }; }
7243                 fi
7244         fi
7245
7246         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7247
7248         test "${BZIP2}"
7249
7250
7251
7252
7253         if test -z "cpio"; then
7254                 rq=true
7255         else
7256                 rq=false
7257         fi
7258
7259         if $rq; then
7260                 ensc_dflt=
7261         else
7262                 ensc_dflt="cpio"
7263         fi
7264
7265         for ac_prog in cpio
7266 do
7267   # Extract the first word of "$ac_prog", so it can be a program name with args.
7268 set dummy $ac_prog; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_path_CPIO+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   case $CPIO in
7275   [\\/]* | ?:[\\/]*)
7276   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
7277   ;;
7278   *)
7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $ensc_searchpath
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284   for ac_exec_ext in '' $ac_executable_extensions; do
7285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
7287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291 done
7292
7293   ;;
7294 esac
7295 fi
7296 CPIO=$ac_cv_path_CPIO
7297
7298 if test -n "$CPIO"; then
7299   echo "$as_me:$LINENO: result: $CPIO" >&5
7300 echo "${ECHO_T}$CPIO" >&6
7301 else
7302   echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 fi
7305
7306   test -n "$CPIO" && break
7307 done
7308 test -n "$CPIO" || CPIO="$ensc_dflt"
7309
7310
7311         if test -z "${CPIO}" && $rq; then
7312                 if test -z ""; then
7313                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
7314 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7315    { (exit 1); exit 1; }; }
7316                 else
7317                         { { echo "$as_me:$LINENO: error:
7318 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7319 " >&5
7320 echo "$as_me: error:
7321 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7322 " >&2;}
7323    { (exit 1); exit 1; }; }
7324                 fi
7325         fi
7326
7327         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
7328
7329         test "${CPIO}"
7330
7331
7332
7333
7334         if test -z "restore"; then
7335                 rq=true
7336         else
7337                 rq=false
7338         fi
7339
7340         if $rq; then
7341                 ensc_dflt=
7342         else
7343                 ensc_dflt="restore"
7344         fi
7345
7346         for ac_prog in restore
7347 do
7348   # Extract the first word of "$ac_prog", so it can be a program name with args.
7349 set dummy $ac_prog; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_path_RESTORE+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   case $RESTORE in
7356   [\\/]* | ?:[\\/]*)
7357   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
7358   ;;
7359   *)
7360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $ensc_searchpath
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   for ac_exec_ext in '' $ac_executable_extensions; do
7366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
7368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372 done
7373
7374   ;;
7375 esac
7376 fi
7377 RESTORE=$ac_cv_path_RESTORE
7378
7379 if test -n "$RESTORE"; then
7380   echo "$as_me:$LINENO: result: $RESTORE" >&5
7381 echo "${ECHO_T}$RESTORE" >&6
7382 else
7383   echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6
7385 fi
7386
7387   test -n "$RESTORE" && break
7388 done
7389 test -n "$RESTORE" || RESTORE="$ensc_dflt"
7390
7391
7392         if test -z "${RESTORE}" && $rq; then
7393                 if test -z ""; then
7394                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
7395 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7396    { (exit 1); exit 1; }; }
7397                 else
7398                         { { echo "$as_me:$LINENO: error:
7399 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7400 " >&5
7401 echo "$as_me: error:
7402 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
7403 " >&2;}
7404    { (exit 1); exit 1; }; }
7405                 fi
7406         fi
7407
7408         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
7409
7410         test "${RESTORE}"
7411
7412
7413
7414
7415         if test -z "rsync"; then
7416                 rq=true
7417         else
7418                 rq=false
7419         fi
7420
7421         if $rq; then
7422                 ensc_dflt=
7423         else
7424                 ensc_dflt="rsync"
7425         fi
7426
7427         for ac_prog in rsync
7428 do
7429   # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433 if test "${ac_cv_path_RSYNC+set}" = set; then
7434   echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436   case $RSYNC in
7437   [\\/]* | ?:[\\/]*)
7438   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
7439   ;;
7440   *)
7441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $ensc_searchpath
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446   for ac_exec_ext in '' $ac_executable_extensions; do
7447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
7449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453 done
7454
7455   ;;
7456 esac
7457 fi
7458 RSYNC=$ac_cv_path_RSYNC
7459
7460 if test -n "$RSYNC"; then
7461   echo "$as_me:$LINENO: result: $RSYNC" >&5
7462 echo "${ECHO_T}$RSYNC" >&6
7463 else
7464   echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466 fi
7467
7468   test -n "$RSYNC" && break
7469 done
7470 test -n "$RSYNC" || RSYNC="$ensc_dflt"
7471
7472
7473         if test -z "${RSYNC}" && $rq; then
7474                 if test -z ""; then
7475                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
7476 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7477    { (exit 1); exit 1; }; }
7478                 else
7479                         { { echo "$as_me:$LINENO: error:
7480 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7481 " >&5
7482 echo "$as_me: error:
7483 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
7484 " >&2;}
7485    { (exit 1); exit 1; }; }
7486                 fi
7487         fi
7488
7489         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
7490
7491         test "${RSYNC}"
7492
7493
7494
7495
7496
7497         if test -z ":"; then
7498                 rq=true
7499         else
7500                 rq=false
7501         fi
7502
7503         if $rq; then
7504                 ensc_dflt=
7505         else
7506                 ensc_dflt=":"
7507         fi
7508
7509         for ac_prog in doxygen
7510 do
7511   # Extract the first word of "$ac_prog", so it can be a program name with args.
7512 set dummy $ac_prog; ac_word=$2
7513 echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   case $DOXYGEN in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $ensc_searchpath
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536
7537   ;;
7538 esac
7539 fi
7540 DOXYGEN=$ac_cv_path_DOXYGEN
7541
7542 if test -n "$DOXYGEN"; then
7543   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7544 echo "${ECHO_T}$DOXYGEN" >&6
7545 else
7546   echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548 fi
7549
7550   test -n "$DOXYGEN" && break
7551 done
7552 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
7553
7554
7555         if test -z "${DOXYGEN}" && $rq; then
7556                 if test -z ""; then
7557                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
7558 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7559    { (exit 1); exit 1; }; }
7560                 else
7561                         { { echo "$as_me:$LINENO: error:
7562 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7563 " >&5
7564 echo "$as_me: error:
7565 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
7566 " >&2;}
7567    { (exit 1); exit 1; }; }
7568                 fi
7569         fi
7570
7571         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
7572
7573         test "${DOXYGEN}"
7574
7575
7576
7577
7578         if test -z ":"; then
7579                 rq=true
7580         else
7581                 rq=false
7582         fi
7583
7584         if $rq; then
7585                 ensc_dflt=
7586         else
7587                 ensc_dflt=":"
7588         fi
7589
7590         for ac_prog in xsltp
7591 do
7592   # Extract the first word of "$ac_prog", so it can be a program name with args.
7593 set dummy $ac_prog; ac_word=$2
7594 echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596 if test "${ac_cv_path_XSLTP+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   case $XSLTP in
7600   [\\/]* | ?:[\\/]*)
7601   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
7602   ;;
7603   *)
7604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $ensc_searchpath
7606 do
7607   IFS=$as_save_IFS
7608   test -z "$as_dir" && as_dir=.
7609   for ac_exec_ext in '' $ac_executable_extensions; do
7610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
7612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613     break 2
7614   fi
7615 done
7616 done
7617
7618   ;;
7619 esac
7620 fi
7621 XSLTP=$ac_cv_path_XSLTP
7622
7623 if test -n "$XSLTP"; then
7624   echo "$as_me:$LINENO: result: $XSLTP" >&5
7625 echo "${ECHO_T}$XSLTP" >&6
7626 else
7627   echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6
7629 fi
7630
7631   test -n "$XSLTP" && break
7632 done
7633 test -n "$XSLTP" || XSLTP="$ensc_dflt"
7634
7635
7636         if test -z "${XSLTP}" && $rq; then
7637                 if test -z ""; then
7638                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
7639 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7640    { (exit 1); exit 1; }; }
7641                 else
7642                         { { echo "$as_me:$LINENO: error:
7643 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7644 " >&5
7645 echo "$as_me: error:
7646 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
7647 " >&2;}
7648    { (exit 1); exit 1; }; }
7649                 fi
7650         fi
7651
7652         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
7653
7654         test "${XSLTP}"
7655
7656
7657
7658
7659         if test -z ":"; then
7660                 rq=true
7661         else
7662                 rq=false
7663         fi
7664
7665         if $rq; then
7666                 ensc_dflt=
7667         else
7668                 ensc_dflt=":"
7669         fi
7670
7671         for ac_prog in xsltproc
7672 do
7673   # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy $ac_prog; ac_word=$2
7675 echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677 if test "${ac_cv_path_XSLTPROC+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   case $XSLTPROC in
7681   [\\/]* | ?:[\\/]*)
7682   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
7683   ;;
7684   *)
7685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $ensc_searchpath
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698
7699   ;;
7700 esac
7701 fi
7702 XSLTPROC=$ac_cv_path_XSLTPROC
7703
7704 if test -n "$XSLTPROC"; then
7705   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
7706 echo "${ECHO_T}$XSLTPROC" >&6
7707 else
7708   echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7710 fi
7711
7712   test -n "$XSLTPROC" && break
7713 done
7714 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
7715
7716
7717         if test -z "${XSLTPROC}" && $rq; then
7718                 if test -z ""; then
7719                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
7720 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7721    { (exit 1); exit 1; }; }
7722                 else
7723                         { { echo "$as_me:$LINENO: error:
7724 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7725 " >&5
7726 echo "$as_me: error:
7727 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
7728 " >&2;}
7729    { (exit 1); exit 1; }; }
7730                 fi
7731         fi
7732
7733         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
7734
7735         test "${XSLTPROC}"
7736
7737
7738
7739
7740 if test "$XSLTP"    != ':'; then
7741   HAVE_XSLTP_TRUE=
7742   HAVE_XSLTP_FALSE='#'
7743 else
7744   HAVE_XSLTP_TRUE='#'
7745   HAVE_XSLTP_FALSE=
7746 fi
7747
7748
7749
7750 if test "$XSLTPROC" != ':'; then
7751   HAVE_XSLTPROC_TRUE=
7752   HAVE_XSLTPROC_FALSE='#'
7753 else
7754   HAVE_XSLTPROC_TRUE='#'
7755   HAVE_XSLTPROC_FALSE=
7756 fi
7757
7758
7759 if test x"$prefix" = x/; then
7760         prefix=
7761 fi
7762
7763
7764
7765         warn_flags="-Werror -W"
7766         echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
7767 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6
7768         ac_ext=c
7769 ac_cpp='$CPP $CPPFLAGS'
7770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773
7774         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
7775         CFLAGS="$warn_flags"
7776         cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h.  */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h.  */
7782 inline static void f(){}
7783 int
7784 main ()
7785 {
7786
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793   (eval $ac_compile) 2>conftest.er1
7794   ac_status=$?
7795   grep -v '^ *+' conftest.er1 >conftest.err
7796   rm -f conftest.er1
7797   cat conftest.err >&5
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); } &&
7800          { ac_try='test -z "$ac_c_werror_flag"
7801                          || test ! -s conftest.err'
7802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803   (eval $ac_try) 2>&5
7804   ac_status=$?
7805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); }; } &&
7807          { ac_try='test -s conftest.$ac_objext'
7808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809   (eval $ac_try) 2>&5
7810   ac_status=$?
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); }; }; then
7813   ensc_sys_compilerwarnflags_C=${warn_flags}
7814 else
7815   echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818 ensc_sys_compilerwarnflags_C=
7819 fi
7820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7821         ac_ext=c
7822 ac_cpp='$CPP $CPPFLAGS'
7823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826
7827         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7828
7829         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
7830                 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7832         else
7833                 echo "$as_me:$LINENO: result: yes" >&5
7834 echo "${ECHO_T}yes" >&6
7835         fi
7836
7837
7838
7839
7840
7841 echo 'void f(){}' > conftest.c
7842   for i in -std=c99 -Wall -pedantic -W
7843   do
7844     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7845 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7846     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7847     then
7848       CFLAGS="${CFLAGS} $i"
7849       echo "$as_me:$LINENO: result: yes" >&5
7850 echo "${ECHO_T}yes" >&6
7851     else
7852       echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6
7854     fi
7855   done
7856   rm -f conftest.c conftest.o
7857
7858
7859
7860         warn_flags="-Werror -W"
7861         echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
7862 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6
7863         ac_ext=cc
7864 ac_cpp='$CXXCPP $CPPFLAGS'
7865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7868
7869         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
7870         CXXFLAGS="$warn_flags"
7871         cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877 inline static void f(){}
7878 int
7879 main ()
7880 {
7881
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888   (eval $ac_compile) 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -z "$ac_cxx_werror_flag"
7896                          || test ! -s conftest.err'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; } &&
7902          { ac_try='test -s conftest.$ac_objext'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; }; then
7908   ensc_sys_compilerwarnflags_CXX=${warn_flags}
7909 else
7910   echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ensc_sys_compilerwarnflags_CXX=
7914 fi
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916         ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
7923
7924         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
7925                 echo "$as_me:$LINENO: result: no" >&5
7926 echo "${ECHO_T}no" >&6
7927         else
7928                 echo "$as_me:$LINENO: result: yes" >&5
7929 echo "${ECHO_T}yes" >&6
7930         fi
7931
7932
7933
7934
7935
7936   echo 'void f(){}' > conftest.cc
7937   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
7938   do
7939     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
7940 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
7941     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
7942     then
7943       CXXFLAGS="${CXXFLAGS} $i"
7944       echo "$as_me:$LINENO: result: yes" >&5
7945 echo "${ECHO_T}yes" >&6
7946     else
7947       echo "$as_me:$LINENO: result: no" >&5
7948 echo "${ECHO_T}no" >&6
7949     fi
7950   done
7951   rm -f conftest.cc conftest.o
7952
7953
7954 echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
7955 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6
7956 # Check whether --enable-extra-optimizations or --disable-extra-optimizations was given.
7957 if test "${enable_extra_optimizations+set}" = set; then
7958   enableval="$enable_extra_optimizations"
7959   case "$enableval" in
7960                   (yes) use_extra_optimizations=1;;
7961                   (no)  use_extra_optimizations=;;
7962                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
7963 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
7964    { (exit 1); exit 1; }; };;
7965                esac
7966 else
7967   use_extra_optimizations=1
7968 fi;
7969
7970 if test x"$use_extra_optimizations" = x; then
7971         echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6
7973 else
7974         echo "$as_me:$LINENO: result: yes" >&5
7975 echo "${ECHO_T}yes" >&6
7976
7977
7978
7979 echo 'void f(){}' > conftest.c
7980   for i in -funit-at-a-time
7981   do
7982     echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
7983 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6
7984     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
7985     then
7986       CFLAGS="${CFLAGS} $i"
7987       echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7989     else
7990       echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7992     fi
7993   done
7994   rm -f conftest.c conftest.o
7995
7996
7997
7998
7999   echo 'void f(){}' > conftest.cc
8000   for i in -funit-at-a-time
8001   do
8002     echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8003 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6
8004     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8005     then
8006       CXXFLAGS="${CXXFLAGS} $i"
8007       echo "$as_me:$LINENO: result: yes" >&5
8008 echo "${ECHO_T}yes" >&6
8009     else
8010       echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6
8012     fi
8013   done
8014   rm -f conftest.cc conftest.o
8015
8016 fi
8017
8018 echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8019 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6
8020 # Check whether --enable-lib-debug or --disable-lib-debug was given.
8021 if test "${enable_lib_debug+set}" = set; then
8022   enableval="$enable_lib_debug"
8023   case "$enableval" in
8024                   (yes) use_lib_debug=1;;
8025                   (no)  use_lib_debug=;;
8026                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8027 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8028    { (exit 1); exit 1; }; };;
8029                esac
8030 else
8031    use_lib_debug=
8032 fi;
8033
8034 if test x"$use_lib_debug" = x; then
8035         LIB_DEBUG_CPPFLAGS=-DNDEBUG
8036
8037         echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8039 else
8040
8041         echo "$as_me:$LINENO: result: yes" >&5
8042 echo "${ECHO_T}yes" >&6
8043 fi
8044
8045 echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8046 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6
8047 # Check whether --enable-expensive-tests or --disable-expensive-tests was given.
8048 if test "${enable_expensive_tests+set}" = set; then
8049   enableval="$enable_expensive_tests"
8050   case "$enableval" in
8051                  (yes|no)  use_expensive_tests=$enableval;;
8052                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8053 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8054    { (exit 1); exit 1; }; };;
8055                esac
8056 else
8057    use_expensive_tests=no
8058 fi;
8059 echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8060 echo "${ECHO_T}$use_expensive_tests" >&6
8061
8062 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8063
8064
8065
8066
8067         echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8068 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6
8069         echo "$as_me:$LINENO: result: " >&5
8070 echo "${ECHO_T}" >&6
8071
8072         ac_ext=c
8073 ac_cpp='$CPP $CPPFLAGS'
8074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077
8078         echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
8079 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6
8080 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 #include <linux/personality.h>
8091
8092
8093 int
8094 main ()
8095 {
8096 #ifndef MMAP_PAGE_ZERO
8097   char *p = (char *) MMAP_PAGE_ZERO;
8098 #endif
8099
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 rm -f conftest.$ac_objext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106   (eval $ac_compile) 2>conftest.er1
8107   ac_status=$?
8108   grep -v '^ *+' conftest.er1 >conftest.err
8109   rm -f conftest.er1
8110   cat conftest.err >&5
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } &&
8113          { ac_try='test -z "$ac_c_werror_flag"
8114                          || test ! -s conftest.err'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; } &&
8120          { ac_try='test -s conftest.$ac_objext'
8121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122   (eval $ac_try) 2>&5
8123   ac_status=$?
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); }; }; then
8126   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
8127 else
8128   echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131 ac_cv_have_decl_MMAP_PAGE_ZERO=no
8132 fi
8133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8134 fi
8135 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
8136 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6
8137 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
8138
8139 cat >>confdefs.h <<_ACEOF
8140 #define HAVE_DECL_MMAP_PAGE_ZERO 1
8141 _ACEOF
8142
8143
8144 else
8145   cat >>confdefs.h <<_ACEOF
8146 #define HAVE_DECL_MMAP_PAGE_ZERO 0
8147 _ACEOF
8148
8149
8150 fi
8151 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
8152 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6
8153 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162
8163 #include <linux/personality.h>
8164
8165
8166 int
8167 main ()
8168 {
8169 #ifndef ADDR_LIMIT_32BIT
8170   char *p = (char *) ADDR_LIMIT_32BIT;
8171 #endif
8172
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179   (eval $ac_compile) 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -z "$ac_c_werror_flag"
8187                          || test ! -s conftest.err'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; } &&
8193          { ac_try='test -s conftest.$ac_objext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
8200 else
8201   echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
8205 fi
8206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
8209 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6
8210 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
8211
8212 cat >>confdefs.h <<_ACEOF
8213 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
8214 _ACEOF
8215
8216
8217 else
8218   cat >>confdefs.h <<_ACEOF
8219 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
8220 _ACEOF
8221
8222
8223 fi
8224 echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
8225 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6
8226 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235
8236 #include <linux/personality.h>
8237
8238
8239 int
8240 main ()
8241 {
8242 #ifndef SHORT_INODE
8243   char *p = (char *) SHORT_INODE;
8244 #endif
8245
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8252   (eval $ac_compile) 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -z "$ac_c_werror_flag"
8260                          || test ! -s conftest.err'
8261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262   (eval $ac_try) 2>&5
8263   ac_status=$?
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); }; } &&
8266          { ac_try='test -s conftest.$ac_objext'
8267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268   (eval $ac_try) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; }; then
8272   ac_cv_have_decl_SHORT_INODE=yes
8273 else
8274   echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277 ac_cv_have_decl_SHORT_INODE=no
8278 fi
8279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280 fi
8281 echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
8282 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6
8283 if test $ac_cv_have_decl_SHORT_INODE = yes; then
8284
8285 cat >>confdefs.h <<_ACEOF
8286 #define HAVE_DECL_SHORT_INODE 1
8287 _ACEOF
8288
8289
8290 else
8291   cat >>confdefs.h <<_ACEOF
8292 #define HAVE_DECL_SHORT_INODE 0
8293 _ACEOF
8294
8295
8296 fi
8297 echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
8298 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6
8299 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h.  */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h.  */
8308
8309 #include <linux/personality.h>
8310
8311
8312 int
8313 main ()
8314 {
8315 #ifndef WHOLE_SECONDS
8316   char *p = (char *) WHOLE_SECONDS;
8317 #endif
8318
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8325   (eval $ac_compile) 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } &&
8332          { ac_try='test -z "$ac_c_werror_flag"
8333                          || test ! -s conftest.err'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; } &&
8339          { ac_try='test -s conftest.$ac_objext'
8340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341   (eval $ac_try) 2>&5
8342   ac_status=$?
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); }; }; then
8345   ac_cv_have_decl_WHOLE_SECONDS=yes
8346 else
8347   echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 ac_cv_have_decl_WHOLE_SECONDS=no
8351 fi
8352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8353 fi
8354 echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
8355 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6
8356 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define HAVE_DECL_WHOLE_SECONDS 1
8360 _ACEOF
8361
8362
8363 else
8364   cat >>confdefs.h <<_ACEOF
8365 #define HAVE_DECL_WHOLE_SECONDS 0
8366 _ACEOF
8367
8368
8369 fi
8370 echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
8371 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6
8372 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h.  */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h.  */
8381
8382 #include <linux/personality.h>
8383
8384
8385 int
8386 main ()
8387 {
8388 #ifndef STICKY_TIMEOUTS
8389   char *p = (char *) STICKY_TIMEOUTS;
8390 #endif
8391
8392   ;
8393   return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398   (eval $ac_compile) 2>conftest.er1
8399   ac_status=$?
8400   grep -v '^ *+' conftest.er1 >conftest.err
8401   rm -f conftest.er1
8402   cat conftest.err >&5
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -z "$ac_c_werror_flag"
8406                          || test ! -s conftest.err'
8407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408   (eval $ac_try) 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; } &&
8412          { ac_try='test -s conftest.$ac_objext'
8413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414   (eval $ac_try) 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_cv_have_decl_STICKY_TIMEOUTS=yes
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 ac_cv_have_decl_STICKY_TIMEOUTS=no
8424 fi
8425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426 fi
8427 echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
8428 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6
8429 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
8430
8431 cat >>confdefs.h <<_ACEOF
8432 #define HAVE_DECL_STICKY_TIMEOUTS 1
8433 _ACEOF
8434
8435
8436 else
8437   cat >>confdefs.h <<_ACEOF
8438 #define HAVE_DECL_STICKY_TIMEOUTS 0
8439 _ACEOF
8440
8441
8442 fi
8443 echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
8444 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6
8445 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454
8455 #include <linux/personality.h>
8456
8457
8458 int
8459 main ()
8460 {
8461 #ifndef ADDR_LIMIT_3GB
8462   char *p = (char *) ADDR_LIMIT_3GB;
8463 #endif
8464
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8471   (eval $ac_compile) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"
8479                          || test ! -s conftest.err'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; } &&
8485          { ac_try='test -s conftest.$ac_objext'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; }; then
8491   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_have_decl_ADDR_LIMIT_3GB=no
8497 fi
8498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
8501 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6
8502 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
8503
8504 cat >>confdefs.h <<_ACEOF
8505 #define HAVE_DECL_ADDR_LIMIT_3GB 1
8506 _ACEOF
8507
8508
8509 else
8510   cat >>confdefs.h <<_ACEOF
8511 #define HAVE_DECL_ADDR_LIMIT_3GB 0
8512 _ACEOF
8513
8514
8515 fi
8516
8517
8518
8519         echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
8520 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6
8521 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 #include <linux/personality.h>
8532
8533
8534 int
8535 main ()
8536 {
8537 #ifndef PER_LINUX
8538   char *p = (char *) PER_LINUX;
8539 #endif
8540
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547   (eval $ac_compile) 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag"
8555                          || test ! -s conftest.err'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; } &&
8561          { ac_try='test -s conftest.$ac_objext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_cv_have_decl_PER_LINUX=yes
8568 else
8569   echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ac_cv_have_decl_PER_LINUX=no
8573 fi
8574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
8577 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6
8578 if test $ac_cv_have_decl_PER_LINUX = yes; then
8579
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_DECL_PER_LINUX 1
8582 _ACEOF
8583
8584
8585 else
8586   cat >>confdefs.h <<_ACEOF
8587 #define HAVE_DECL_PER_LINUX 0
8588 _ACEOF
8589
8590
8591 fi
8592 echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
8593 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6
8594 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8603
8604 #include <linux/personality.h>
8605
8606
8607 int
8608 main ()
8609 {
8610 #ifndef PER_LINUX_32BIT
8611   char *p = (char *) PER_LINUX_32BIT;
8612 #endif
8613
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 rm -f conftest.$ac_objext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8620   (eval $ac_compile) 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -z "$ac_c_werror_flag"
8628                          || test ! -s conftest.err'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; } &&
8634          { ac_try='test -s conftest.$ac_objext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_cv_have_decl_PER_LINUX_32BIT=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_cv_have_decl_PER_LINUX_32BIT=no
8646 fi
8647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
8650 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6
8651 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
8652
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_DECL_PER_LINUX_32BIT 1
8655 _ACEOF
8656
8657
8658 else
8659   cat >>confdefs.h <<_ACEOF
8660 #define HAVE_DECL_PER_LINUX_32BIT 0
8661 _ACEOF
8662
8663
8664 fi
8665 echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
8666 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6
8667 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670   cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676
8677 #include <linux/personality.h>
8678
8679
8680 int
8681 main ()
8682 {
8683 #ifndef PER_SVR4
8684   char *p = (char *) PER_SVR4;
8685 #endif
8686
8687   ;
8688   return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8693   (eval $ac_compile) 2>conftest.er1
8694   ac_status=$?
8695   grep -v '^ *+' conftest.er1 >conftest.err
8696   rm -f conftest.er1
8697   cat conftest.err >&5
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } &&
8700          { ac_try='test -z "$ac_c_werror_flag"
8701                          || test ! -s conftest.err'
8702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703   (eval $ac_try) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; } &&
8707          { ac_try='test -s conftest.$ac_objext'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; }; then
8713   ac_cv_have_decl_PER_SVR4=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 ac_cv_have_decl_PER_SVR4=no
8719 fi
8720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
8723 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6
8724 if test $ac_cv_have_decl_PER_SVR4 = yes; then
8725
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_DECL_PER_SVR4 1
8728 _ACEOF
8729
8730
8731 else
8732   cat >>confdefs.h <<_ACEOF
8733 #define HAVE_DECL_PER_SVR4 0
8734 _ACEOF
8735
8736
8737 fi
8738 echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
8739 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6
8740 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750 #include <linux/personality.h>
8751
8752
8753 int
8754 main ()
8755 {
8756 #ifndef PER_SVR3
8757   char *p = (char *) PER_SVR3;
8758 #endif
8759
8760   ;
8761   return 0;
8762 }
8763 _ACEOF
8764 rm -f conftest.$ac_objext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8766   (eval $ac_compile) 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -z "$ac_c_werror_flag"
8774                          || test ! -s conftest.err'
8775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776   (eval $ac_try) 2>&5
8777   ac_status=$?
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); }; } &&
8780          { ac_try='test -s conftest.$ac_objext'
8781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782   (eval $ac_try) 2>&5
8783   ac_status=$?
8784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); }; }; then
8786   ac_cv_have_decl_PER_SVR3=yes
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791 ac_cv_have_decl_PER_SVR3=no
8792 fi
8793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8794 fi
8795 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
8796 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6
8797 if test $ac_cv_have_decl_PER_SVR3 = yes; then
8798
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_DECL_PER_SVR3 1
8801 _ACEOF
8802
8803
8804 else
8805   cat >>confdefs.h <<_ACEOF
8806 #define HAVE_DECL_PER_SVR3 0
8807 _ACEOF
8808
8809
8810 fi
8811 echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
8812 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6
8813 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
8814   echo $ECHO_N "(cached) $ECHO_C" >&6
8815 else
8816   cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822
8823 #include <linux/personality.h>
8824
8825
8826 int
8827 main ()
8828 {
8829 #ifndef PER_SCOSVR3
8830   char *p = (char *) PER_SCOSVR3;
8831 #endif
8832
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839   (eval $ac_compile) 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -z "$ac_c_werror_flag"
8847                          || test ! -s conftest.err'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; } &&
8853          { ac_try='test -s conftest.$ac_objext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   ac_cv_have_decl_PER_SCOSVR3=yes
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 ac_cv_have_decl_PER_SCOSVR3=no
8865 fi
8866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8867 fi
8868 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
8869 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6
8870 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
8871
8872 cat >>confdefs.h <<_ACEOF
8873 #define HAVE_DECL_PER_SCOSVR3 1
8874 _ACEOF
8875
8876
8877 else
8878   cat >>confdefs.h <<_ACEOF
8879 #define HAVE_DECL_PER_SCOSVR3 0
8880 _ACEOF
8881
8882
8883 fi
8884 echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
8885 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6
8886 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h.  */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h.  */
8895
8896 #include <linux/personality.h>
8897
8898
8899 int
8900 main ()
8901 {
8902 #ifndef PER_OSR5
8903   char *p = (char *) PER_OSR5;
8904 #endif
8905
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 rm -f conftest.$ac_objext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8912   (eval $ac_compile) 2>conftest.er1
8913   ac_status=$?
8914   grep -v '^ *+' conftest.er1 >conftest.err
8915   rm -f conftest.er1
8916   cat conftest.err >&5
8917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918   (exit $ac_status); } &&
8919          { ac_try='test -z "$ac_c_werror_flag"
8920                          || test ! -s conftest.err'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; } &&
8926          { ac_try='test -s conftest.$ac_objext'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   ac_cv_have_decl_PER_OSR5=yes
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 ac_cv_have_decl_PER_OSR5=no
8938 fi
8939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8940 fi
8941 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
8942 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6
8943 if test $ac_cv_have_decl_PER_OSR5 = yes; then
8944
8945 cat >>confdefs.h <<_ACEOF
8946 #define HAVE_DECL_PER_OSR5 1
8947 _ACEOF
8948
8949
8950 else
8951   cat >>confdefs.h <<_ACEOF
8952 #define HAVE_DECL_PER_OSR5 0
8953 _ACEOF
8954
8955
8956 fi
8957 echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
8958 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6
8959 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962   cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968
8969 #include <linux/personality.h>
8970
8971
8972 int
8973 main ()
8974 {
8975 #ifndef PER_WYSEV386
8976   char *p = (char *) PER_WYSEV386;
8977 #endif
8978
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8985   (eval $ac_compile) 2>conftest.er1
8986   ac_status=$?
8987   grep -v '^ *+' conftest.er1 >conftest.err
8988   rm -f conftest.er1
8989   cat conftest.err >&5
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } &&
8992          { ac_try='test -z "$ac_c_werror_flag"
8993                          || test ! -s conftest.err'
8994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; } &&
8999          { ac_try='test -s conftest.$ac_objext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_cv_have_decl_PER_WYSEV386=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_cv_have_decl_PER_WYSEV386=no
9011 fi
9012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9015 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6
9016 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9017
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_DECL_PER_WYSEV386 1
9020 _ACEOF
9021
9022
9023 else
9024   cat >>confdefs.h <<_ACEOF
9025 #define HAVE_DECL_PER_WYSEV386 0
9026 _ACEOF
9027
9028
9029 fi
9030 echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9031 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6
9032 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 #include <linux/personality.h>
9043
9044
9045 int
9046 main ()
9047 {
9048 #ifndef PER_ISCR4
9049   char *p = (char *) PER_ISCR4;
9050 #endif
9051
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9058   (eval $ac_compile) 2>conftest.er1
9059   ac_status=$?
9060   grep -v '^ *+' conftest.er1 >conftest.err
9061   rm -f conftest.er1
9062   cat conftest.err >&5
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } &&
9065          { ac_try='test -z "$ac_c_werror_flag"
9066                          || test ! -s conftest.err'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; } &&
9072          { ac_try='test -s conftest.$ac_objext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_cv_have_decl_PER_ISCR4=yes
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 ac_cv_have_decl_PER_ISCR4=no
9084 fi
9085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9088 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6
9089 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9090
9091 cat >>confdefs.h <<_ACEOF
9092 #define HAVE_DECL_PER_ISCR4 1
9093 _ACEOF
9094
9095
9096 else
9097   cat >>confdefs.h <<_ACEOF
9098 #define HAVE_DECL_PER_ISCR4 0
9099 _ACEOF
9100
9101
9102 fi
9103 echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9104 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6
9105 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114
9115 #include <linux/personality.h>
9116
9117
9118 int
9119 main ()
9120 {
9121 #ifndef PER_BSD
9122   char *p = (char *) PER_BSD;
9123 #endif
9124
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } &&
9138          { ac_try='test -z "$ac_c_werror_flag"
9139                          || test ! -s conftest.err'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; } &&
9145          { ac_try='test -s conftest.$ac_objext'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   ac_cv_have_decl_PER_BSD=yes
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 ac_cv_have_decl_PER_BSD=no
9157 fi
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159 fi
9160 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
9161 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6
9162 if test $ac_cv_have_decl_PER_BSD = yes; then
9163
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_DECL_PER_BSD 1
9166 _ACEOF
9167
9168
9169 else
9170   cat >>confdefs.h <<_ACEOF
9171 #define HAVE_DECL_PER_BSD 0
9172 _ACEOF
9173
9174
9175 fi
9176 echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
9177 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6
9178 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
9179   echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181   cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187
9188 #include <linux/personality.h>
9189
9190
9191 int
9192 main ()
9193 {
9194 #ifndef PER_SUNOS
9195   char *p = (char *) PER_SUNOS;
9196 #endif
9197
9198   ;
9199   return 0;
9200 }
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204   (eval $ac_compile) 2>conftest.er1
9205   ac_status=$?
9206   grep -v '^ *+' conftest.er1 >conftest.err
9207   rm -f conftest.er1
9208   cat conftest.err >&5
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); } &&
9211          { ac_try='test -z "$ac_c_werror_flag"
9212                          || test ! -s conftest.err'
9213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214   (eval $ac_try) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); }; } &&
9218          { ac_try='test -s conftest.$ac_objext'
9219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220   (eval $ac_try) 2>&5
9221   ac_status=$?
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); }; }; then
9224   ac_cv_have_decl_PER_SUNOS=yes
9225 else
9226   echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 ac_cv_have_decl_PER_SUNOS=no
9230 fi
9231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9232 fi
9233 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
9234 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6
9235 if test $ac_cv_have_decl_PER_SUNOS = yes; then
9236
9237 cat >>confdefs.h <<_ACEOF
9238 #define HAVE_DECL_PER_SUNOS 1
9239 _ACEOF
9240
9241
9242 else
9243   cat >>confdefs.h <<_ACEOF
9244 #define HAVE_DECL_PER_SUNOS 0
9245 _ACEOF
9246
9247
9248 fi
9249 echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
9250 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6
9251 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254   cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260
9261 #include <linux/personality.h>
9262
9263
9264 int
9265 main ()
9266 {
9267 #ifndef PER_XENIX
9268   char *p = (char *) PER_XENIX;
9269 #endif
9270
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277   (eval $ac_compile) 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag"
9285                          || test ! -s conftest.err'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; } &&
9291          { ac_try='test -s conftest.$ac_objext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   ac_cv_have_decl_PER_XENIX=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_cv_have_decl_PER_XENIX=no
9303 fi
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9305 fi
9306 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
9307 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6
9308 if test $ac_cv_have_decl_PER_XENIX = yes; then
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE_DECL_PER_XENIX 1
9312 _ACEOF
9313
9314
9315 else
9316   cat >>confdefs.h <<_ACEOF
9317 #define HAVE_DECL_PER_XENIX 0
9318 _ACEOF
9319
9320
9321 fi
9322 echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
9323 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6
9324 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333
9334 #include <linux/personality.h>
9335
9336
9337 int
9338 main ()
9339 {
9340 #ifndef PER_LINUX32
9341   char *p = (char *) PER_LINUX32;
9342 #endif
9343
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350   (eval $ac_compile) 2>conftest.er1
9351   ac_status=$?
9352   grep -v '^ *+' conftest.er1 >conftest.err
9353   rm -f conftest.er1
9354   cat conftest.err >&5
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } &&
9357          { ac_try='test -z "$ac_c_werror_flag"
9358                          || test ! -s conftest.err'
9359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360   (eval $ac_try) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; } &&
9364          { ac_try='test -s conftest.$ac_objext'
9365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366   (eval $ac_try) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); }; }; then
9370   ac_cv_have_decl_PER_LINUX32=yes
9371 else
9372   echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 ac_cv_have_decl_PER_LINUX32=no
9376 fi
9377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9378 fi
9379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
9380 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6
9381 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
9382
9383 cat >>confdefs.h <<_ACEOF
9384 #define HAVE_DECL_PER_LINUX32 1
9385 _ACEOF
9386
9387
9388 else
9389   cat >>confdefs.h <<_ACEOF
9390 #define HAVE_DECL_PER_LINUX32 0
9391 _ACEOF
9392
9393
9394 fi
9395 echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
9396 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6
9397 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h.  */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h.  */
9406
9407 #include <linux/personality.h>
9408
9409
9410 int
9411 main ()
9412 {
9413 #ifndef PER_LINUX32_3GB
9414   char *p = (char *) PER_LINUX32_3GB;
9415 #endif
9416
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext
9422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9423   (eval $ac_compile) 2>conftest.er1
9424   ac_status=$?
9425   grep -v '^ *+' conftest.er1 >conftest.err
9426   rm -f conftest.er1
9427   cat conftest.err >&5
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); } &&
9430          { ac_try='test -z "$ac_c_werror_flag"
9431                          || test ! -s conftest.err'
9432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433   (eval $ac_try) 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; } &&
9437          { ac_try='test -s conftest.$ac_objext'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; }; then
9443   ac_cv_have_decl_PER_LINUX32_3GB=yes
9444 else
9445   echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448 ac_cv_have_decl_PER_LINUX32_3GB=no
9449 fi
9450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
9453 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6
9454 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
9455
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_DECL_PER_LINUX32_3GB 1
9458 _ACEOF
9459
9460
9461 else
9462   cat >>confdefs.h <<_ACEOF
9463 #define HAVE_DECL_PER_LINUX32_3GB 0
9464 _ACEOF
9465
9466
9467 fi
9468 echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
9469 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6
9470 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473   cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479
9480 #include <linux/personality.h>
9481
9482
9483 int
9484 main ()
9485 {
9486 #ifndef PER_IRIX32
9487   char *p = (char *) PER_IRIX32;
9488 #endif
9489
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9496   (eval $ac_compile) 2>conftest.er1
9497   ac_status=$?
9498   grep -v '^ *+' conftest.er1 >conftest.err
9499   rm -f conftest.er1
9500   cat conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } &&
9503          { ac_try='test -z "$ac_c_werror_flag"
9504                          || test ! -s conftest.err'
9505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506   (eval $ac_try) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; } &&
9510          { ac_try='test -s conftest.$ac_objext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_cv_have_decl_PER_IRIX32=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_have_decl_PER_IRIX32=no
9522 fi
9523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
9526 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6
9527 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
9528
9529 cat >>confdefs.h <<_ACEOF
9530 #define HAVE_DECL_PER_IRIX32 1
9531 _ACEOF
9532
9533
9534 else
9535   cat >>confdefs.h <<_ACEOF
9536 #define HAVE_DECL_PER_IRIX32 0
9537 _ACEOF
9538
9539
9540 fi
9541 echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
9542 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6
9543 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552
9553 #include <linux/personality.h>
9554
9555
9556 int
9557 main ()
9558 {
9559 #ifndef PER_IRIXN32
9560   char *p = (char *) PER_IRIXN32;
9561 #endif
9562
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569   (eval $ac_compile) 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -z "$ac_c_werror_flag"
9577                          || test ! -s conftest.err'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; } &&
9583          { ac_try='test -s conftest.$ac_objext'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; }; then
9589   ac_cv_have_decl_PER_IRIXN32=yes
9590 else
9591   echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 ac_cv_have_decl_PER_IRIXN32=no
9595 fi
9596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9597 fi
9598 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
9599 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6
9600 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
9601
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_DECL_PER_IRIXN32 1
9604 _ACEOF
9605
9606
9607 else
9608   cat >>confdefs.h <<_ACEOF
9609 #define HAVE_DECL_PER_IRIXN32 0
9610 _ACEOF
9611
9612
9613 fi
9614 echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
9615 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6
9616 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625
9626 #include <linux/personality.h>
9627
9628
9629 int
9630 main ()
9631 {
9632 #ifndef PER_IRIX64
9633   char *p = (char *) PER_IRIX64;
9634 #endif
9635
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9642   (eval $ac_compile) 2>conftest.er1
9643   ac_status=$?
9644   grep -v '^ *+' conftest.er1 >conftest.err
9645   rm -f conftest.er1
9646   cat conftest.err >&5
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } &&
9649          { ac_try='test -z "$ac_c_werror_flag"
9650                          || test ! -s conftest.err'
9651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652   (eval $ac_try) 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); }; } &&
9656          { ac_try='test -s conftest.$ac_objext'
9657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658   (eval $ac_try) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); }; }; then
9662   ac_cv_have_decl_PER_IRIX64=yes
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 ac_cv_have_decl_PER_IRIX64=no
9668 fi
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670 fi
9671 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
9672 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6
9673 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
9674
9675 cat >>confdefs.h <<_ACEOF
9676 #define HAVE_DECL_PER_IRIX64 1
9677 _ACEOF
9678
9679
9680 else
9681   cat >>confdefs.h <<_ACEOF
9682 #define HAVE_DECL_PER_IRIX64 0
9683 _ACEOF
9684
9685
9686 fi
9687 echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
9688 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6
9689 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h.  */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h.  */
9698
9699 #include <linux/personality.h>
9700
9701
9702 int
9703 main ()
9704 {
9705 #ifndef PER_RISCOS
9706   char *p = (char *) PER_RISCOS;
9707 #endif
9708
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715   (eval $ac_compile) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest.$ac_objext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_have_decl_PER_RISCOS=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_cv_have_decl_PER_RISCOS=no
9741 fi
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743 fi
9744 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
9745 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6
9746 if test $ac_cv_have_decl_PER_RISCOS = yes; then
9747
9748 cat >>confdefs.h <<_ACEOF
9749 #define HAVE_DECL_PER_RISCOS 1
9750 _ACEOF
9751
9752
9753 else
9754   cat >>confdefs.h <<_ACEOF
9755 #define HAVE_DECL_PER_RISCOS 0
9756 _ACEOF
9757
9758
9759 fi
9760 echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
9761 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6
9762 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771
9772 #include <linux/personality.h>
9773
9774
9775 int
9776 main ()
9777 {
9778 #ifndef PER_SOLARIS
9779   char *p = (char *) PER_SOLARIS;
9780 #endif
9781
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9788   (eval $ac_compile) 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } &&
9795          { ac_try='test -z "$ac_c_werror_flag"
9796                          || test ! -s conftest.err'
9797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798   (eval $ac_try) 2>&5
9799   ac_status=$?
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); }; } &&
9802          { ac_try='test -s conftest.$ac_objext'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; }; then
9808   ac_cv_have_decl_PER_SOLARIS=yes
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 ac_cv_have_decl_PER_SOLARIS=no
9814 fi
9815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9816 fi
9817 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
9818 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6
9819 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
9820
9821 cat >>confdefs.h <<_ACEOF
9822 #define HAVE_DECL_PER_SOLARIS 1
9823 _ACEOF
9824
9825
9826 else
9827   cat >>confdefs.h <<_ACEOF
9828 #define HAVE_DECL_PER_SOLARIS 0
9829 _ACEOF
9830
9831
9832 fi
9833 echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
9834 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6
9835 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844
9845 #include <linux/personality.h>
9846
9847
9848 int
9849 main ()
9850 {
9851 #ifndef PER_UW7
9852   char *p = (char *) PER_UW7;
9853 #endif
9854
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861   (eval $ac_compile) 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag"
9869                          || test ! -s conftest.err'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_have_decl_PER_UW7=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_cv_have_decl_PER_UW7=no
9887 fi
9888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
9891 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6
9892 if test $ac_cv_have_decl_PER_UW7 = yes; then
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_PER_UW7 1
9896 _ACEOF
9897
9898
9899 else
9900   cat >>confdefs.h <<_ACEOF
9901 #define HAVE_DECL_PER_UW7 0
9902 _ACEOF
9903
9904
9905 fi
9906 echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
9907 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6
9908 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917
9918 #include <linux/personality.h>
9919
9920
9921 int
9922 main ()
9923 {
9924 #ifndef PER_HPUX
9925   char *p = (char *) PER_HPUX;
9926 #endif
9927
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934   (eval $ac_compile) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest.$ac_objext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_have_decl_PER_HPUX=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ac_cv_have_decl_PER_HPUX=no
9960 fi
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 fi
9963 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
9964 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6
9965 if test $ac_cv_have_decl_PER_HPUX = yes; then
9966
9967 cat >>confdefs.h <<_ACEOF
9968 #define HAVE_DECL_PER_HPUX 1
9969 _ACEOF
9970
9971
9972 else
9973   cat >>confdefs.h <<_ACEOF
9974 #define HAVE_DECL_PER_HPUX 0
9975 _ACEOF
9976
9977
9978 fi
9979 echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
9980 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6
9981 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
9982   echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984   cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9990
9991 #include <linux/personality.h>
9992
9993
9994 int
9995 main ()
9996 {
9997 #ifndef PER_OSF4
9998   char *p = (char *) PER_OSF4;
9999 #endif
10000
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10007   (eval $ac_compile) 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } &&
10014          { ac_try='test -z "$ac_c_werror_flag"
10015                          || test ! -s conftest.err'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; } &&
10021          { ac_try='test -s conftest.$ac_objext'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; }; then
10027   ac_cv_have_decl_PER_OSF4=yes
10028 else
10029   echo "$as_me: failed program was:" >&5
10030 sed 's/^/| /' conftest.$ac_ext >&5
10031
10032 ac_cv_have_decl_PER_OSF4=no
10033 fi
10034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10035 fi
10036 echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10037 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6
10038 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10039
10040 cat >>confdefs.h <<_ACEOF
10041 #define HAVE_DECL_PER_OSF4 1
10042 _ACEOF
10043
10044
10045 else
10046   cat >>confdefs.h <<_ACEOF
10047 #define HAVE_DECL_PER_OSF4 0
10048 _ACEOF
10049
10050
10051 fi
10052
10053
10054         ac_ext=c
10055 ac_cpp='$CPP $CPPFLAGS'
10056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10059
10060
10061
10062
10063
10064
10065         echo "$as_me:$LINENO: checking for initrddir" >&5
10066 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6
10067
10068 # Check whether --with-initrddir or --without-initrddir was given.
10069 if test "${with_initrddir+set}" = set; then
10070   withval="$with_initrddir"
10071   case "$withval" in
10072                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10073 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10074    { (exit 1); exit 1; }; };;
10075                         *)      ensc_initrddir=$withval;;
10076                      esac
10077 else
10078   ensc_initrddir='$(sysconfdir)/init.d'
10079 fi;
10080
10081         if test "initrddir"; then
10082                 initrddir=$ensc_initrddir
10083
10084         fi
10085
10086         echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10087 echo "${ECHO_T}$ensc_initrddir" >&6
10088
10089
10090         echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10091 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6
10092         # Check whether --enable-release or --disable-release was given.
10093 if test "${enable_release+set}" = set; then
10094   enableval="$enable_release"
10095   case "$enableval" in
10096                           yes)  ensc_release_mode=yes;;
10097                           no)   ensc_release_mode=no;;
10098                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10099 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10100    { (exit 1); exit 1; }; };;
10101                        esac
10102 else
10103    ensc_release_mode=no
10104 fi;
10105
10106         if test x"$ensc_release_mode" = xno; then
10107                 RELEASE_CPPFLAGS=
10108         else
10109                 RELEASE_CPPFLAGS='-DNDEBUG'
10110         fi
10111
10112
10113         echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10114 echo "${ECHO_T}$ensc_release_mode" >&6
10115
10116
10117
10118 case $host_cpu in
10119         (i*86|athlon)   min_diet_ver=0.25;;
10120         (ia64|hppa*)    min_diet_ver=0.29;;
10121         (sparc*)        min_diet_ver=0.30;;
10122         (*)             min_diet_ver=0.28;;
10123 esac
10124
10125
10126         echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
10127 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6
10128
10129
10130
10131
10132         : ${DIET:=diet}
10133         : ${DIETFLAGS=-Os}
10134
10135         # Check whether --enable-dietlibc or --disable-dietlibc was given.
10136 if test "${enable_dietlibc+set}" = set; then
10137   enableval="$enable_dietlibc"
10138   case "$enableval" in
10139                           (yes) use_dietlibc=forced;;
10140                           (no)  use_dietlibc=forced_no;;
10141                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
10142 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
10143    { (exit 1); exit 1; }; };;
10144                        esac
10145 else
10146   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
10147 fi;
10148
10149         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
10150             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
10151             _dietlibc_ver=${_dietlibc_ver##*diet version }
10152             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
10153             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
10154             _dietlibc_ver_min=${_dietlibc_ver##*.}
10155             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
10156             _dietlibc_cmp="$min_diet_ver"
10157             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
10158             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
10159
10160             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
10161
10162             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
10163             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
10164
10165             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
10166         else
10167             ENSC_VERSION_DIETLIBC=
10168             _dietlibc_ver=-1
10169         fi
10170
10171         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
10172         ensc_have_dietlibc=no
10173
10174         case x"$use_dietlibc" in
10175             xdetected)
10176
10177
10178 if true; then
10179   USE_DIETLIBC_TRUE=
10180   USE_DIETLIBC_FALSE='#'
10181 else
10182   USE_DIETLIBC_TRUE='#'
10183   USE_DIETLIBC_FALSE=
10184 fi
10185
10186                 echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
10187 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6
10188                 ensc_have_dietlibc=yes
10189                 ;;
10190             xforced)
10191
10192
10193 if true; then
10194   USE_DIETLIBC_TRUE=
10195   USE_DIETLIBC_FALSE='#'
10196 else
10197   USE_DIETLIBC_TRUE='#'
10198   USE_DIETLIBC_FALSE=
10199 fi
10200
10201                 echo "$as_me:$LINENO: result: yes (forced)" >&5
10202 echo "${ECHO_T}yes (forced)" >&6
10203                 ensc_have_dietlibc=yes
10204                 ;;
10205             xdetected_no)
10206
10207
10208 if false; then
10209   USE_DIETLIBC_TRUE=
10210   USE_DIETLIBC_FALSE='#'
10211 else
10212   USE_DIETLIBC_TRUE='#'
10213   USE_DIETLIBC_FALSE=
10214 fi
10215
10216                 echo "$as_me:$LINENO: result: no (detected)" >&5
10217 echo "${ECHO_T}no (detected)" >&6
10218                 ;;
10219             xdetected_old)
10220
10221
10222 if false; then
10223   USE_DIETLIBC_TRUE=
10224   USE_DIETLIBC_FALSE='#'
10225 else
10226   USE_DIETLIBC_TRUE='#'
10227   USE_DIETLIBC_FALSE=
10228 fi
10229
10230                 echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
10231 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6
10232                 ;;
10233             xforced_no)
10234
10235
10236 if false; then
10237   USE_DIETLIBC_TRUE=
10238   USE_DIETLIBC_FALSE='#'
10239 else
10240   USE_DIETLIBC_TRUE='#'
10241   USE_DIETLIBC_FALSE=
10242 fi
10243
10244                 echo "$as_me:$LINENO: result: no (forced)" >&5
10245 echo "${ECHO_T}no (forced)" >&6
10246                 ;;
10247             *)
10248                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
10249 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
10250    { (exit 1); exit 1; }; }
10251                 ;;
10252         esac
10253
10254         if test x"$ensc_have_dietlibc" != xno; then
10255
10256
10257
10258
10259         echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
10260 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6
10261 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
10262   echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264
10265                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
10266                 _ensc_dietlibc_c99_old_CC=$CC
10267
10268                 CFLAGS="-std=c99"
10269                 CC="${DIET:-diet} $CC"
10270
10271                 ac_ext=c
10272 ac_cpp='$CPP $CPPFLAGS'
10273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10276
10277                 cat >conftest.$ac_ext <<_ACEOF
10278 /* */
10279 _ACEOF
10280 rm -f conftest.$ac_objext
10281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10282   (eval $ac_compile) 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -z "$ac_c_werror_flag"
10290                          || test ! -s conftest.err'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; } &&
10296          { ac_try='test -s conftest.$ac_objext'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302
10303                         cat >conftest.$ac_ext <<_ACEOF
10304
10305                                 #include <stdint.h>
10306                                 #include <sys/cdefs.h>
10307                                 #if defined(inline)
10308                                 #  error 'inline' badly defined
10309                                 #endif
10310                                 volatile uint64_t       a;
10311
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315   (eval $ac_compile) 2>conftest.er1
10316   ac_status=$?
10317   grep -v '^ *+' conftest.er1 >conftest.err
10318   rm -f conftest.er1
10319   cat conftest.err >&5
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } &&
10322          { ac_try='test -z "$ac_c_werror_flag"
10323                          || test ! -s conftest.err'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; } &&
10329          { ac_try='test -s conftest.$ac_objext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   ensc_cv_c_dietlibc_c99=yes
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 ensc_cv_c_dietlibc_c99=no
10341 fi
10342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
10348 fi
10349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10350                 ac_ext=c
10351 ac_cpp='$CPP $CPPFLAGS'
10352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10355
10356
10357                 CC=$_ensc_dietlibc_c99_old_CC
10358                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
10359
10360 fi
10361 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
10362 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6
10363
10364         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
10365                 cat >>confdefs.h <<\_ACEOF
10366 #define ENSC_DIETLIBC_C99 1
10367 _ACEOF
10368
10369         fi
10370
10371         fi
10372
10373
10374 if test x"$ensc_have_dietlibc" = xno; then
10375         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
10376 echo "$as_me: WARNING: ***                                                         ***" >&2;}
10377         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
10378 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
10379         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
10380 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
10381         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
10382 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
10383         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
10384 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
10385         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
10386 echo "$as_me: WARNING: ***                                                         ***" >&2;}
10387
10388
10389 if false; then
10390   USE_DIETLIBC_COMPAT_TRUE=
10391   USE_DIETLIBC_COMPAT_FALSE='#'
10392 else
10393   USE_DIETLIBC_COMPAT_TRUE='#'
10394   USE_DIETLIBC_COMPAT_FALSE=
10395 fi
10396
10397 else
10398         # HACK: libtool does not have cmdline options to build only
10399         # dynamic libraries; this can be done with the
10400         # '--disable-static' ./configure option only.  As our static
10401         # libraries will be build with dietlibc, we have to do set
10402         # this option which is evaluated by 'AC_PROG_LIBTOOL'
10403         # below.  Therefore, this macro must not be called earlier.
10404         enable_static=no
10405
10406
10407
10408
10409
10410         if test "$host_cpu" = x86_64 -a $ENSC_VERSION_DIETLIBC_NUM -le 0027; then
10411                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
10412 echo "$as_me: WARNING: ***                                                             ***" >&2;}
10413                 { echo "$as_me:$LINENO: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&5
10414 echo "$as_me: WARNING: *** dietlibc<=0.27 is known to be broken for x86_64 systems     ***" >&2;}
10415                 { echo "$as_me:$LINENO: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&5
10416 echo "$as_me: WARNING: *** please make sure that at least the environ.S fix is applied ***" >&2;}
10417                 { echo "$as_me:$LINENO: WARNING: *** and lib/__nice.c added                                      ***" >&5
10418 echo "$as_me: WARNING: *** and lib/__nice.c added                                      ***" >&2;}
10419                 { echo "$as_me:$LINENO: WARNING: ***                                                             ***" >&5
10420 echo "$as_me: WARNING: ***                                                             ***" >&2;}
10421         fi
10422
10423
10424         echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
10425 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6
10426         # Check whether --enable-alternative-syscalls or --disable-alternative-syscalls was given.
10427 if test "${enable_alternative_syscalls+set}" = set; then
10428   enableval="$enable_alternative_syscalls"
10429   case $enableval in
10430                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
10431                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
10432 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
10433    { (exit 1); exit 1; }; };;
10434                        esac
10435 else
10436   ensc_use_alternative_syscall_macros=yes
10437 fi;
10438
10439         case $ensc_use_alternative_syscall_macros in
10440                 (yes)
10441 cat >>confdefs.h <<\_ACEOF
10442 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
10443 _ACEOF
10444 ;;
10445         esac
10446
10447         echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
10448 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6
10449
10450
10451
10452
10453         echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
10454 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6
10455 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
10456   echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458
10459                 ac_ext=c
10460 ac_cpp='$CPP $CPPFLAGS'
10461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10464
10465                 ensc_dietlibc_need_compat_old_CC=$CC
10466                 CC="${DIET:-diet} $CC"
10467                 cat >conftest.$ac_ext <<_ACEOF
10468
10469                         /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474
10475 #include "$srcdir/lib/syscall-wrap.h"
10476 #include <errno.h>
10477
10478 #define __NR_foo0               42
10479 #define __NR_foo1               42
10480 #define __NR_foo2               42
10481 #define __NR_foo3               42
10482 #define __NR_foo4               42
10483 #define __NR_foo5               42
10484 inline static _syscall0(int, foo0)
10485 inline static _syscall1(int, foo1, int, a)
10486 inline static _syscall2(int, foo2, int, a, int, b)
10487 inline static _syscall3(int, foo3, int, a, int, b, int, c)
10488 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
10489 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
10490
10491 int
10492 main ()
10493 {
10494 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext conftest$ac_exeext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501   (eval $ac_link) 2>conftest.er1
10502   ac_status=$?
10503   grep -v '^ *+' conftest.er1 >conftest.err
10504   rm -f conftest.er1
10505   cat conftest.err >&5
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } &&
10508          { ac_try='test -z "$ac_c_werror_flag"
10509                          || test ! -s conftest.err'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest$ac_exeext'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; }; then
10521   ensc_cv_c_dietlibc_compat=no
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 ensc_cv_c_dietlibc_compat=yes
10527 fi
10528 rm -f conftest.err conftest.$ac_objext \
10529       conftest$ac_exeext conftest.$ac_ext
10530                 CC=$ensc_dietlibc_need_compat_old_CC
10531                 ac_ext=c
10532 ac_cpp='$CPP $CPPFLAGS'
10533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10536
10537
10538 fi
10539 echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
10540 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6
10541
10542         if test x"USE_DIETLIBC_COMPAT" != x; then
10543
10544
10545 if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
10546   USE_DIETLIBC_COMPAT_TRUE=
10547   USE_DIETLIBC_COMPAT_FALSE='#'
10548 else
10549   USE_DIETLIBC_COMPAT_TRUE='#'
10550   USE_DIETLIBC_COMPAT_FALSE=
10551 fi
10552
10553         fi
10554
10555 fi
10556
10557
10558
10559 if test x"$ensc_have_dietlibc" = xyes; then
10560   ENSC_USE_DIETLIBC_TRUE=
10561   ENSC_USE_DIETLIBC_FALSE='#'
10562 else
10563   ENSC_USE_DIETLIBC_TRUE='#'
10564   ENSC_USE_DIETLIBC_FALSE=
10565 fi
10566
10567
10568
10569 if true; then
10570   ENSC_USE_GLIBC_TRUE=
10571   ENSC_USE_GLIBC_FALSE='#'
10572 else
10573   ENSC_USE_GLIBC_TRUE='#'
10574   ENSC_USE_GLIBC_FALSE=
10575 fi
10576
10577
10578 # HACK: see comments at 'enable_static' above
10579 # Check whether --enable-shared or --disable-shared was given.
10580 if test "${enable_shared+set}" = set; then
10581   enableval="$enable_shared"
10582   p=${PACKAGE-default}
10583     case $enableval in
10584     yes) enable_shared=yes ;;
10585     no) enable_shared=no ;;
10586     *)
10587       enable_shared=no
10588       # Look at the argument we got.  We use all the common list separators.
10589       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10590       for pkg in $enableval; do
10591         IFS="$lt_save_ifs"
10592         if test "X$pkg" = "X$p"; then
10593           enable_shared=yes
10594         fi
10595       done
10596       IFS="$lt_save_ifs"
10597       ;;
10598     esac
10599 else
10600   enable_shared=yes
10601 fi;
10602
10603 # Check whether --enable-static or --disable-static was given.
10604 if test "${enable_static+set}" = set; then
10605   enableval="$enable_static"
10606   p=${PACKAGE-default}
10607     case $enableval in
10608     yes) enable_static=yes ;;
10609     no) enable_static=no ;;
10610     *)
10611      enable_static=no
10612       # Look at the argument we got.  We use all the common list separators.
10613       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10614       for pkg in $enableval; do
10615         IFS="$lt_save_ifs"
10616         if test "X$pkg" = "X$p"; then
10617           enable_static=yes
10618         fi
10619       done
10620       IFS="$lt_save_ifs"
10621       ;;
10622     esac
10623 else
10624   enable_static=yes
10625 fi;
10626
10627 # Check whether --enable-fast-install or --disable-fast-install was given.
10628 if test "${enable_fast_install+set}" = set; then
10629   enableval="$enable_fast_install"
10630   p=${PACKAGE-default}
10631     case $enableval in
10632     yes) enable_fast_install=yes ;;
10633     no) enable_fast_install=no ;;
10634     *)
10635       enable_fast_install=no
10636       # Look at the argument we got.  We use all the common list separators.
10637       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10638       for pkg in $enableval; do
10639         IFS="$lt_save_ifs"
10640         if test "X$pkg" = "X$p"; then
10641           enable_fast_install=yes
10642         fi
10643       done
10644       IFS="$lt_save_ifs"
10645       ;;
10646     esac
10647 else
10648   enable_fast_install=yes
10649 fi;
10650
10651 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10652 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10653 if test "${lt_cv_path_SED+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   # Loop through the user's path and test for sed and gsed.
10657 # Then use that list of sed's as ones to test for truncation.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10660 do
10661   IFS=$as_save_IFS
10662   test -z "$as_dir" && as_dir=.
10663   for lt_ac_prog in sed gsed; do
10664     for ac_exec_ext in '' $ac_executable_extensions; do
10665       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10666         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10667       fi
10668     done
10669   done
10670 done
10671 lt_ac_max=0
10672 lt_ac_count=0
10673 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10674 # along with /bin/sed that truncates output.
10675 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10676   test ! -f $lt_ac_sed && break
10677   cat /dev/null > conftest.in
10678   lt_ac_count=0
10679   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10680   # Check for GNU sed and select it if it is found.
10681   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10682     lt_cv_path_SED=$lt_ac_sed
10683     break
10684   fi
10685   while true; do
10686     cat conftest.in conftest.in >conftest.tmp
10687     mv conftest.tmp conftest.in
10688     cp conftest.in conftest.nl
10689     echo >>conftest.nl
10690     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10691     cmp -s conftest.out conftest.nl || break
10692     # 10000 chars as input seems more than enough
10693     test $lt_ac_count -gt 10 && break
10694     lt_ac_count=`expr $lt_ac_count + 1`
10695     if test $lt_ac_count -gt $lt_ac_max; then
10696       lt_ac_max=$lt_ac_count
10697       lt_cv_path_SED=$lt_ac_sed
10698     fi
10699   done
10700 done
10701 SED=$lt_cv_path_SED
10702
10703 fi
10704
10705 echo "$as_me:$LINENO: result: $SED" >&5
10706 echo "${ECHO_T}$SED" >&6
10707
10708 echo "$as_me:$LINENO: checking for egrep" >&5
10709 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10710 if test "${ac_cv_prog_egrep+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10714     then ac_cv_prog_egrep='grep -E'
10715     else ac_cv_prog_egrep='egrep'
10716     fi
10717 fi
10718 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10719 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10720  EGREP=$ac_cv_prog_egrep
10721
10722
10723
10724 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10725 if test "${with_gnu_ld+set}" = set; then
10726   withval="$with_gnu_ld"
10727   test "$withval" = no || with_gnu_ld=yes
10728 else
10729   with_gnu_ld=no
10730 fi;
10731 ac_prog=ld
10732 if test "$GCC" = yes; then
10733   # Check if gcc -print-prog-name=ld gives a path.
10734   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10735 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10736   case $host in
10737   *-*-mingw*)
10738     # gcc leaves a trailing carriage return which upsets mingw
10739     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10740   *)
10741     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10742   esac
10743   case $ac_prog in
10744     # Accept absolute paths.
10745     [\\/]* | ?:[\\/]*)
10746       re_direlt='/[^/][^/]*/\.\./'
10747       # Canonicalize the pathname of ld
10748       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10749       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10750         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10751       done
10752       test -z "$LD" && LD="$ac_prog"
10753       ;;
10754   "")
10755     # If it fails, then pretend we aren't using GCC.
10756     ac_prog=ld
10757     ;;
10758   *)
10759     # If it is relative, then search for the first ld in PATH.
10760     with_gnu_ld=unknown
10761     ;;
10762   esac
10763 elif test "$with_gnu_ld" = yes; then
10764   echo "$as_me:$LINENO: checking for GNU ld" >&5
10765 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10766 else
10767   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10768 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10769 fi
10770 if test "${lt_cv_path_LD+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   if test -z "$LD"; then
10774   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10775   for ac_dir in $PATH; do
10776     IFS="$lt_save_ifs"
10777     test -z "$ac_dir" && ac_dir=.
10778     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10779       lt_cv_path_LD="$ac_dir/$ac_prog"
10780       # Check to see if the program is GNU ld.  I'd rather use --version,
10781       # but apparently some GNU ld's only accept -v.
10782       # Break only if it was the GNU/non-GNU ld that we prefer.
10783       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10784       *GNU* | *'with BFD'*)
10785         test "$with_gnu_ld" != no && break
10786         ;;
10787       *)
10788         test "$with_gnu_ld" != yes && break
10789         ;;
10790       esac
10791     fi
10792   done
10793   IFS="$lt_save_ifs"
10794 else
10795   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10796 fi
10797 fi
10798
10799 LD="$lt_cv_path_LD"
10800 if test -n "$LD"; then
10801   echo "$as_me:$LINENO: result: $LD" >&5
10802 echo "${ECHO_T}$LD" >&6
10803 else
10804   echo "$as_me:$LINENO: result: no" >&5
10805 echo "${ECHO_T}no" >&6
10806 fi
10807 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10808 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10809    { (exit 1); exit 1; }; }
10810 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10811 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10812 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10816 case `$LD -v 2>&1 </dev/null` in
10817 *GNU* | *'with BFD'*)
10818   lt_cv_prog_gnu_ld=yes
10819   ;;
10820 *)
10821   lt_cv_prog_gnu_ld=no
10822   ;;
10823 esac
10824 fi
10825 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10826 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10827 with_gnu_ld=$lt_cv_prog_gnu_ld
10828
10829
10830 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10831 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10832 if test "${lt_cv_ld_reload_flag+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   lt_cv_ld_reload_flag='-r'
10836 fi
10837 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10838 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10839 reload_flag=$lt_cv_ld_reload_flag
10840 case $reload_flag in
10841 "" | " "*) ;;
10842 *) reload_flag=" $reload_flag" ;;
10843 esac
10844 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10845
10846 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10847 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10848 if test "${lt_cv_path_NM+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   if test -n "$NM"; then
10852   # Let the user override the test.
10853   lt_cv_path_NM="$NM"
10854 else
10855   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10856   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10857     IFS="$lt_save_ifs"
10858     test -z "$ac_dir" && ac_dir=.
10859     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10860     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10861       # Check to see if the nm accepts a BSD-compat flag.
10862       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10863       #   nm: unknown option "B" ignored
10864       # Tru64's nm complains that /dev/null is an invalid object file
10865       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10866       */dev/null* | *'Invalid file or object type'*)
10867         lt_cv_path_NM="$tmp_nm -B"
10868         break
10869         ;;
10870       *)
10871         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10872         */dev/null*)
10873           lt_cv_path_NM="$tmp_nm -p"
10874           break
10875           ;;
10876         *)
10877           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10878           continue # so that we can try to find one that supports BSD flags
10879           ;;
10880         esac
10881       esac
10882     fi
10883   done
10884   IFS="$lt_save_ifs"
10885   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10886 fi
10887 fi
10888 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10889 echo "${ECHO_T}$lt_cv_path_NM" >&6
10890 NM="$lt_cv_path_NM"
10891
10892 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10893 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10894 if test "${lt_cv_deplibs_check_method+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   lt_cv_file_magic_cmd='$MAGIC_CMD'
10898 lt_cv_file_magic_test_file=
10899 lt_cv_deplibs_check_method='unknown'
10900 # Need to set the preceding variable on all platforms that support
10901 # interlibrary dependencies.
10902 # 'none' -- dependencies not supported.
10903 # `unknown' -- same as none, but documents that we really don't know.
10904 # 'pass_all' -- all dependencies passed with no checks.
10905 # 'test_compile' -- check by making test program.
10906 # 'file_magic [[regex]]' -- check by looking for files in library path
10907 # which responds to the $file_magic_cmd with a given extended regex.
10908 # If you have `file' or equivalent on your system and you're not sure
10909 # whether `pass_all' will *always* work, you probably want this one.
10910
10911 case $host_os in
10912 aix4* | aix5*)
10913   lt_cv_deplibs_check_method=pass_all
10914   ;;
10915
10916 beos*)
10917   lt_cv_deplibs_check_method=pass_all
10918   ;;
10919
10920 bsdi4*)
10921   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10922   lt_cv_file_magic_cmd='/usr/bin/file -L'
10923   lt_cv_file_magic_test_file=/shlib/libc.so
10924   ;;
10925
10926 cygwin*)
10927   # func_win32_libid is a shell function defined in ltmain.sh
10928   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10929   lt_cv_file_magic_cmd='func_win32_libid'
10930   ;;
10931
10932 mingw* | pw32*)
10933   # Base MSYS/MinGW do not provide the 'file' command needed by
10934   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10935   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10936   lt_cv_file_magic_cmd='$OBJDUMP -f'
10937   ;;
10938
10939 darwin* | rhapsody*)
10940   lt_cv_deplibs_check_method=pass_all
10941   ;;
10942
10943 freebsd* | kfreebsd*-gnu)
10944   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10945     case $host_cpu in
10946     i*86 )
10947       # Not sure whether the presence of OpenBSD here was a mistake.
10948       # Let's accept both of them until this is cleared up.
10949       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10950       lt_cv_file_magic_cmd=/usr/bin/file
10951       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10952       ;;
10953     esac
10954   else
10955     lt_cv_deplibs_check_method=pass_all
10956   fi
10957   ;;
10958
10959 gnu*)
10960   lt_cv_deplibs_check_method=pass_all
10961   ;;
10962
10963 hpux10.20* | hpux11*)
10964   lt_cv_file_magic_cmd=/usr/bin/file
10965   case "$host_cpu" in
10966   ia64*)
10967     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10968     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10969     ;;
10970   hppa*64*)
10971     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]'
10972     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10973     ;;
10974   *)
10975     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10976     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10977     ;;
10978   esac
10979   ;;
10980
10981 irix5* | irix6* | nonstopux*)
10982   case $LD in
10983   *-32|*"-32 ") libmagic=32-bit;;
10984   *-n32|*"-n32 ") libmagic=N32;;
10985   *-64|*"-64 ") libmagic=64-bit;;
10986   *) libmagic=never-match;;
10987   esac
10988   lt_cv_deplibs_check_method=pass_all
10989   ;;
10990
10991 # This must be Linux ELF.
10992 linux*)
10993   case $host_cpu in
10994   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
10995     lt_cv_deplibs_check_method=pass_all ;;
10996   *)
10997     # glibc up to 2.1.1 does not perform some relocations on ARM
10998     # this will be overridden with pass_all, but let us keep it just in case
10999     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
11000   esac
11001   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
11002   lt_cv_deplibs_check_method=pass_all
11003   ;;
11004
11005 netbsd*)
11006   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11008   else
11009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11010   fi
11011   ;;
11012
11013 newos6*)
11014   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11015   lt_cv_file_magic_cmd=/usr/bin/file
11016   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11017   ;;
11018
11019 nto-qnx*)
11020   lt_cv_deplibs_check_method=unknown
11021   ;;
11022
11023 openbsd*)
11024   lt_cv_file_magic_cmd=/usr/bin/file
11025   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11026   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11027     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
11028   else
11029     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
11030   fi
11031   ;;
11032
11033 osf3* | osf4* | osf5*)
11034   lt_cv_deplibs_check_method=pass_all
11035   ;;
11036
11037 sco3.2v5*)
11038   lt_cv_deplibs_check_method=pass_all
11039   ;;
11040
11041 solaris*)
11042   lt_cv_deplibs_check_method=pass_all
11043   ;;
11044
11045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11046   case $host_vendor in
11047   motorola)
11048     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]'
11049     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11050     ;;
11051   ncr)
11052     lt_cv_deplibs_check_method=pass_all
11053     ;;
11054   sequent)
11055     lt_cv_file_magic_cmd='/bin/file'
11056     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11057     ;;
11058   sni)
11059     lt_cv_file_magic_cmd='/bin/file'
11060     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11061     lt_cv_file_magic_test_file=/lib/libc.so
11062     ;;
11063   siemens)
11064     lt_cv_deplibs_check_method=pass_all
11065     ;;
11066   esac
11067   ;;
11068
11069 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
11070   lt_cv_deplibs_check_method=pass_all
11071   ;;
11072 esac
11073
11074 fi
11075 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11076 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
11077 file_magic_cmd=$lt_cv_file_magic_cmd
11078 deplibs_check_method=$lt_cv_deplibs_check_method
11079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11080
11081
11082
11083
11084 # If no C compiler was specified, use CC.
11085 LTCC=${LTCC-"$CC"}
11086
11087 # Allow CC to be a program name with arguments.
11088 compiler=$CC
11089
11090 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11091 if test "${enable_libtool_lock+set}" = set; then
11092   enableval="$enable_libtool_lock"
11093
11094 fi;
11095 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11096
11097 # Some flags need to be propagated to the compiler or linker for good
11098 # libtool support.
11099 case $host in
11100 ia64-*-hpux*)
11101   # Find out which ABI we are using.
11102   echo 'int i;' > conftest.$ac_ext
11103   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104   (eval $ac_compile) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; then
11108     case `/usr/bin/file conftest.$ac_objext` in
11109     *ELF-32*)
11110       HPUX_IA64_MODE="32"
11111       ;;
11112     *ELF-64*)
11113       HPUX_IA64_MODE="64"
11114       ;;
11115     esac
11116   fi
11117   rm -rf conftest*
11118   ;;
11119 *-*-irix6*)
11120   # Find out which ABI we are using.
11121   echo '#line 11121 "configure"' > conftest.$ac_ext
11122   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123   (eval $ac_compile) 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); }; then
11127    if test "$lt_cv_prog_gnu_ld" = yes; then
11128     case `/usr/bin/file conftest.$ac_objext` in
11129     *32-bit*)
11130       LD="${LD-ld} -melf32bsmip"
11131       ;;
11132     *N32*)
11133       LD="${LD-ld} -melf32bmipn32"
11134       ;;
11135     *64-bit*)
11136       LD="${LD-ld} -melf64bmip"
11137       ;;
11138     esac
11139    else
11140     case `/usr/bin/file conftest.$ac_objext` in
11141     *32-bit*)
11142       LD="${LD-ld} -32"
11143       ;;
11144     *N32*)
11145       LD="${LD-ld} -n32"
11146       ;;
11147     *64-bit*)
11148       LD="${LD-ld} -64"
11149       ;;
11150     esac
11151    fi
11152   fi
11153   rm -rf conftest*
11154   ;;
11155
11156 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11157   # Find out which ABI we are using.
11158   echo 'int i;' > conftest.$ac_ext
11159   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160   (eval $ac_compile) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; then
11164     case "`/usr/bin/file conftest.o`" in
11165     *32-bit*)
11166       case $host in
11167         x86_64-*linux*)
11168           LD="${LD-ld} -m elf_i386"
11169           ;;
11170         ppc64-*linux*|powerpc64-*linux*)
11171           LD="${LD-ld} -m elf32ppclinux"
11172           ;;
11173         s390x-*linux*)
11174           LD="${LD-ld} -m elf_s390"
11175           ;;
11176         sparc64-*linux*)
11177           LD="${LD-ld} -m elf32_sparc"
11178           ;;
11179       esac
11180       ;;
11181     *64-bit*)
11182       case $host in
11183         x86_64-*linux*)
11184           LD="${LD-ld} -m elf_x86_64"
11185           ;;
11186         ppc*-*linux*|powerpc*-*linux*)
11187           LD="${LD-ld} -m elf64ppc"
11188           ;;
11189         s390*-*linux*)
11190           LD="${LD-ld} -m elf64_s390"
11191           ;;
11192         sparc*-*linux*)
11193           LD="${LD-ld} -m elf64_sparc"
11194           ;;
11195       esac
11196       ;;
11197     esac
11198   fi
11199   rm -rf conftest*
11200   ;;
11201
11202 *-*-sco3.2v5*)
11203   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11204   SAVE_CFLAGS="$CFLAGS"
11205   CFLAGS="$CFLAGS -belf"
11206   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11207 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
11208 if test "${lt_cv_cc_needs_belf+set}" = set; then
11209   echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211   ac_ext=c
11212 ac_cpp='$CPP $CPPFLAGS'
11213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11216
11217      cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h.  */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h.  */
11223
11224 int
11225 main ()
11226 {
11227
11228   ;
11229   return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11234   (eval $ac_link) 2>conftest.er1
11235   ac_status=$?
11236   grep -v '^ *+' conftest.er1 >conftest.err
11237   rm -f conftest.er1
11238   cat conftest.err >&5
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } &&
11241          { ac_try='test -z "$ac_c_werror_flag"
11242                          || test ! -s conftest.err'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; } &&
11248          { ac_try='test -s conftest$ac_exeext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   lt_cv_cc_needs_belf=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 lt_cv_cc_needs_belf=no
11260 fi
11261 rm -f conftest.err conftest.$ac_objext \
11262       conftest$ac_exeext conftest.$ac_ext
11263      ac_ext=c
11264 ac_cpp='$CPP $CPPFLAGS'
11265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11268
11269 fi
11270 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11271 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
11272   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11273     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11274     CFLAGS="$SAVE_CFLAGS"
11275   fi
11276   ;;
11277
11278 esac
11279
11280 need_locks="$enable_libtool_lock"
11281
11282
11283 ac_ext=c
11284 ac_cpp='$CPP $CPPFLAGS'
11285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11288 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11289 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11290 # On Suns, sometimes $CPP names a directory.
11291 if test -n "$CPP" && test -d "$CPP"; then
11292   CPP=
11293 fi
11294 if test -z "$CPP"; then
11295   if test "${ac_cv_prog_CPP+set}" = set; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298       # Double quotes because CPP needs to be expanded
11299     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11300     do
11301       ac_preproc_ok=false
11302 for ac_c_preproc_warn_flag in '' yes
11303 do
11304   # Use a header file that comes with gcc, so configuring glibc
11305   # with a fresh cross-compiler works.
11306   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307   # <limits.h> exists even on freestanding compilers.
11308   # On the NeXT, cc -E runs the code through the compiler's parser,
11309   # not just through cpp. "Syntax error" is here to catch this case.
11310   cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 #ifdef __STDC__
11317 # include <limits.h>
11318 #else
11319 # include <assert.h>
11320 #endif
11321                      Syntax error
11322 _ACEOF
11323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } >/dev/null; then
11331   if test -s conftest.err; then
11332     ac_cpp_err=$ac_c_preproc_warn_flag
11333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334   else
11335     ac_cpp_err=
11336   fi
11337 else
11338   ac_cpp_err=yes
11339 fi
11340 if test -z "$ac_cpp_err"; then
11341   :
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346   # Broken: fails on valid input.
11347 continue
11348 fi
11349 rm -f conftest.err conftest.$ac_ext
11350
11351   # OK, works on sane cases.  Now check whether non-existent headers
11352   # can be detected and how.
11353   cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <ac_nonexistent.h>
11360 _ACEOF
11361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11363   ac_status=$?
11364   grep -v '^ *+' conftest.er1 >conftest.err
11365   rm -f conftest.er1
11366   cat conftest.err >&5
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } >/dev/null; then
11369   if test -s conftest.err; then
11370     ac_cpp_err=$ac_c_preproc_warn_flag
11371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11372   else
11373     ac_cpp_err=
11374   fi
11375 else
11376   ac_cpp_err=yes
11377 fi
11378 if test -z "$ac_cpp_err"; then
11379   # Broken: success on invalid input.
11380 continue
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385   # Passes both tests.
11386 ac_preproc_ok=:
11387 break
11388 fi
11389 rm -f conftest.err conftest.$ac_ext
11390
11391 done
11392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11393 rm -f conftest.err conftest.$ac_ext
11394 if $ac_preproc_ok; then
11395   break
11396 fi
11397
11398     done
11399     ac_cv_prog_CPP=$CPP
11400
11401 fi
11402   CPP=$ac_cv_prog_CPP
11403 else
11404   ac_cv_prog_CPP=$CPP
11405 fi
11406 echo "$as_me:$LINENO: result: $CPP" >&5
11407 echo "${ECHO_T}$CPP" >&6
11408 ac_preproc_ok=false
11409 for ac_c_preproc_warn_flag in '' yes
11410 do
11411   # Use a header file that comes with gcc, so configuring glibc
11412   # with a fresh cross-compiler works.
11413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11414   # <limits.h> exists even on freestanding compilers.
11415   # On the NeXT, cc -E runs the code through the compiler's parser,
11416   # not just through cpp. "Syntax error" is here to catch this case.
11417   cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423 #ifdef __STDC__
11424 # include <limits.h>
11425 #else
11426 # include <assert.h>
11427 #endif
11428                      Syntax error
11429 _ACEOF
11430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } >/dev/null; then
11438   if test -s conftest.err; then
11439     ac_cpp_err=$ac_c_preproc_warn_flag
11440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11441   else
11442     ac_cpp_err=
11443   fi
11444 else
11445   ac_cpp_err=yes
11446 fi
11447 if test -z "$ac_cpp_err"; then
11448   :
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453   # Broken: fails on valid input.
11454 continue
11455 fi
11456 rm -f conftest.err conftest.$ac_ext
11457
11458   # OK, works on sane cases.  Now check whether non-existent headers
11459   # can be detected and how.
11460   cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 #include <ac_nonexistent.h>
11467 _ACEOF
11468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11470   ac_status=$?
11471   grep -v '^ *+' conftest.er1 >conftest.err
11472   rm -f conftest.er1
11473   cat conftest.err >&5
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); } >/dev/null; then
11476   if test -s conftest.err; then
11477     ac_cpp_err=$ac_c_preproc_warn_flag
11478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11479   else
11480     ac_cpp_err=
11481   fi
11482 else
11483   ac_cpp_err=yes
11484 fi
11485 if test -z "$ac_cpp_err"; then
11486   # Broken: success on invalid input.
11487 continue
11488 else
11489   echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11491
11492   # Passes both tests.
11493 ac_preproc_ok=:
11494 break
11495 fi
11496 rm -f conftest.err conftest.$ac_ext
11497
11498 done
11499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11500 rm -f conftest.err conftest.$ac_ext
11501 if $ac_preproc_ok; then
11502   :
11503 else
11504   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11505 See \`config.log' for more details." >&5
11506 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11507 See \`config.log' for more details." >&2;}
11508    { (exit 1); exit 1; }; }
11509 fi
11510
11511 ac_ext=c
11512 ac_cpp='$CPP $CPPFLAGS'
11513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11516
11517
11518 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11520 if test "${ac_cv_header_stdc+set}" = set; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 #include <stdlib.h>
11530 #include <stdarg.h>
11531 #include <string.h>
11532 #include <float.h>
11533
11534 int
11535 main ()
11536 {
11537
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544   (eval $ac_compile) 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } &&
11551          { ac_try='test -z "$ac_c_werror_flag"
11552                          || test ! -s conftest.err'
11553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554   (eval $ac_try) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; } &&
11558          { ac_try='test -s conftest.$ac_objext'
11559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560   (eval $ac_try) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); }; }; then
11564   ac_cv_header_stdc=yes
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 ac_cv_header_stdc=no
11570 fi
11571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11572
11573 if test $ac_cv_header_stdc = yes; then
11574   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11575   cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 #include <string.h>
11582
11583 _ACEOF
11584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11585   $EGREP "memchr" >/dev/null 2>&1; then
11586   :
11587 else
11588   ac_cv_header_stdc=no
11589 fi
11590 rm -f conftest*
11591
11592 fi
11593
11594 if test $ac_cv_header_stdc = yes; then
11595   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11596   cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h.  */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h.  */
11602 #include <stdlib.h>
11603
11604 _ACEOF
11605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11606   $EGREP "free" >/dev/null 2>&1; then
11607   :
11608 else
11609   ac_cv_header_stdc=no
11610 fi
11611 rm -f conftest*
11612
11613 fi
11614
11615 if test $ac_cv_header_stdc = yes; then
11616   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11617   if test "$cross_compiling" = yes; then
11618   :
11619 else
11620   cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h.  */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h.  */
11626 #include <ctype.h>
11627 #if ((' ' & 0x0FF) == 0x020)
11628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11630 #else
11631 # define ISLOWER(c) \
11632                    (('a' <= (c) && (c) <= 'i') \
11633                      || ('j' <= (c) && (c) <= 'r') \
11634                      || ('s' <= (c) && (c) <= 'z'))
11635 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11636 #endif
11637
11638 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11639 int
11640 main ()
11641 {
11642   int i;
11643   for (i = 0; i < 256; i++)
11644     if (XOR (islower (i), ISLOWER (i))
11645         || toupper (i) != TOUPPER (i))
11646       exit(2);
11647   exit (0);
11648 }
11649 _ACEOF
11650 rm -f conftest$ac_exeext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11652   (eval $ac_link) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; }; then
11661   :
11662 else
11663   echo "$as_me: program exited with status $ac_status" >&5
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 ( exit $ac_status )
11668 ac_cv_header_stdc=no
11669 fi
11670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 fi
11673 fi
11674 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11675 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11676 if test $ac_cv_header_stdc = yes; then
11677
11678 cat >>confdefs.h <<\_ACEOF
11679 #define STDC_HEADERS 1
11680 _ACEOF
11681
11682 fi
11683
11684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11695                   inttypes.h stdint.h unistd.h
11696 do
11697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11698 echo "$as_me:$LINENO: checking for $ac_header" >&5
11699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11701   echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703   cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709 $ac_includes_default
11710
11711 #include <$ac_header>
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715   (eval $ac_compile) 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } &&
11722          { ac_try='test -z "$ac_c_werror_flag"
11723                          || test ! -s conftest.err'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; } &&
11729          { ac_try='test -s conftest.$ac_objext'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; }; then
11735   eval "$as_ac_Header=yes"
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 eval "$as_ac_Header=no"
11741 fi
11742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11743 fi
11744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11747   cat >>confdefs.h <<_ACEOF
11748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11749 _ACEOF
11750
11751 fi
11752
11753 done
11754
11755
11756
11757 for ac_header in dlfcn.h
11758 do
11759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11761   echo "$as_me:$LINENO: checking for $ac_header" >&5
11762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 fi
11766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11768 else
11769   # Is the header compilable?
11770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 $ac_includes_default
11779 #include <$ac_header>
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783   (eval $ac_compile) 2>conftest.er1
11784   ac_status=$?
11785   grep -v '^ *+' conftest.er1 >conftest.err
11786   rm -f conftest.er1
11787   cat conftest.err >&5
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -z "$ac_c_werror_flag"
11791                          || test ! -s conftest.err'
11792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793   (eval $ac_try) 2>&5
11794   ac_status=$?
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); }; } &&
11797          { ac_try='test -s conftest.$ac_objext'
11798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799   (eval $ac_try) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }; }; then
11803   ac_header_compiler=yes
11804 else
11805   echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11807
11808 ac_header_compiler=no
11809 fi
11810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11812 echo "${ECHO_T}$ac_header_compiler" >&6
11813
11814 # Is the header present?
11815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #include <$ac_header>
11824 _ACEOF
11825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } >/dev/null; then
11833   if test -s conftest.err; then
11834     ac_cpp_err=$ac_c_preproc_warn_flag
11835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11836   else
11837     ac_cpp_err=
11838   fi
11839 else
11840   ac_cpp_err=yes
11841 fi
11842 if test -z "$ac_cpp_err"; then
11843   ac_header_preproc=yes
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848   ac_header_preproc=no
11849 fi
11850 rm -f conftest.err conftest.$ac_ext
11851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11852 echo "${ECHO_T}$ac_header_preproc" >&6
11853
11854 # So?  What about this header?
11855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11856   yes:no: )
11857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11861     ac_header_preproc=yes
11862     ;;
11863   no:yes:* )
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11876     (
11877       cat <<\_ASBOX
11878 ## --------------------------------------------- ##
11879 ## Report this to vserver@list.linux-vserver.org ##
11880 ## --------------------------------------------- ##
11881 _ASBOX
11882     ) |
11883       sed "s/^/$as_me: WARNING:     /" >&2
11884     ;;
11885 esac
11886 echo "$as_me:$LINENO: checking for $ac_header" >&5
11887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   eval "$as_ac_Header=\$ac_header_preproc"
11892 fi
11893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11895
11896 fi
11897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11898   cat >>confdefs.h <<_ACEOF
11899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900 _ACEOF
11901
11902 fi
11903
11904 done
11905
11906 ac_ext=cc
11907 ac_cpp='$CXXCPP $CPPFLAGS'
11908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11911 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11913 if test -z "$CXXCPP"; then
11914   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917       # Double quotes because CXXCPP needs to be expanded
11918     for CXXCPP in "$CXX -E" "/lib/cpp"
11919     do
11920       ac_preproc_ok=false
11921 for ac_cxx_preproc_warn_flag in '' yes
11922 do
11923   # Use a header file that comes with gcc, so configuring glibc
11924   # with a fresh cross-compiler works.
11925   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926   # <limits.h> exists even on freestanding compilers.
11927   # On the NeXT, cc -E runs the code through the compiler's parser,
11928   # not just through cpp. "Syntax error" is here to catch this case.
11929   cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h.  */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h.  */
11935 #ifdef __STDC__
11936 # include <limits.h>
11937 #else
11938 # include <assert.h>
11939 #endif
11940                      Syntax error
11941 _ACEOF
11942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } >/dev/null; then
11950   if test -s conftest.err; then
11951     ac_cpp_err=$ac_cxx_preproc_warn_flag
11952     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11953   else
11954     ac_cpp_err=
11955   fi
11956 else
11957   ac_cpp_err=yes
11958 fi
11959 if test -z "$ac_cpp_err"; then
11960   :
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965   # Broken: fails on valid input.
11966 continue
11967 fi
11968 rm -f conftest.err conftest.$ac_ext
11969
11970   # OK, works on sane cases.  Now check whether non-existent headers
11971   # can be detected and how.
11972   cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978 #include <ac_nonexistent.h>
11979 _ACEOF
11980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } >/dev/null; then
11988   if test -s conftest.err; then
11989     ac_cpp_err=$ac_cxx_preproc_warn_flag
11990     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11991   else
11992     ac_cpp_err=
11993   fi
11994 else
11995   ac_cpp_err=yes
11996 fi
11997 if test -z "$ac_cpp_err"; then
11998   # Broken: success on invalid input.
11999 continue
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004   # Passes both tests.
12005 ac_preproc_ok=:
12006 break
12007 fi
12008 rm -f conftest.err conftest.$ac_ext
12009
12010 done
12011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12012 rm -f conftest.err conftest.$ac_ext
12013 if $ac_preproc_ok; then
12014   break
12015 fi
12016
12017     done
12018     ac_cv_prog_CXXCPP=$CXXCPP
12019
12020 fi
12021   CXXCPP=$ac_cv_prog_CXXCPP
12022 else
12023   ac_cv_prog_CXXCPP=$CXXCPP
12024 fi
12025 echo "$as_me:$LINENO: result: $CXXCPP" >&5
12026 echo "${ECHO_T}$CXXCPP" >&6
12027 ac_preproc_ok=false
12028 for ac_cxx_preproc_warn_flag in '' yes
12029 do
12030   # Use a header file that comes with gcc, so configuring glibc
12031   # with a fresh cross-compiler works.
12032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033   # <limits.h> exists even on freestanding compilers.
12034   # On the NeXT, cc -E runs the code through the compiler's parser,
12035   # not just through cpp. "Syntax error" is here to catch this case.
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 #ifdef __STDC__
12043 # include <limits.h>
12044 #else
12045 # include <assert.h>
12046 #endif
12047                      Syntax error
12048 _ACEOF
12049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } >/dev/null; then
12057   if test -s conftest.err; then
12058     ac_cpp_err=$ac_cxx_preproc_warn_flag
12059     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12060   else
12061     ac_cpp_err=
12062   fi
12063 else
12064   ac_cpp_err=yes
12065 fi
12066 if test -z "$ac_cpp_err"; then
12067   :
12068 else
12069   echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12071
12072   # Broken: fails on valid input.
12073 continue
12074 fi
12075 rm -f conftest.err conftest.$ac_ext
12076
12077   # OK, works on sane cases.  Now check whether non-existent headers
12078   # can be detected and how.
12079   cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 #include <ac_nonexistent.h>
12086 _ACEOF
12087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } >/dev/null; then
12095   if test -s conftest.err; then
12096     ac_cpp_err=$ac_cxx_preproc_warn_flag
12097     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12098   else
12099     ac_cpp_err=
12100   fi
12101 else
12102   ac_cpp_err=yes
12103 fi
12104 if test -z "$ac_cpp_err"; then
12105   # Broken: success on invalid input.
12106 continue
12107 else
12108   echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.$ac_ext >&5
12110
12111   # Passes both tests.
12112 ac_preproc_ok=:
12113 break
12114 fi
12115 rm -f conftest.err conftest.$ac_ext
12116
12117 done
12118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12119 rm -f conftest.err conftest.$ac_ext
12120 if $ac_preproc_ok; then
12121   :
12122 else
12123   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12124 See \`config.log' for more details." >&5
12125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12126 See \`config.log' for more details." >&2;}
12127    { (exit 1); exit 1; }; }
12128 fi
12129
12130 ac_ext=cc
12131 ac_cpp='$CXXCPP $CPPFLAGS'
12132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12135
12136 ac_ext=f
12137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12140 if test -n "$ac_tool_prefix"; then
12141   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12142   do
12143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12145 echo "$as_me:$LINENO: checking for $ac_word" >&5
12146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12147 if test "${ac_cv_prog_F77+set}" = set; then
12148   echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150   if test -n "$F77"; then
12151   ac_cv_prog_F77="$F77" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158   for ac_exec_ext in '' $ac_executable_extensions; do
12159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165 done
12166
12167 fi
12168 fi
12169 F77=$ac_cv_prog_F77
12170 if test -n "$F77"; then
12171   echo "$as_me:$LINENO: result: $F77" >&5
12172 echo "${ECHO_T}$F77" >&6
12173 else
12174   echo "$as_me:$LINENO: result: no" >&5
12175 echo "${ECHO_T}no" >&6
12176 fi
12177
12178     test -n "$F77" && break
12179   done
12180 fi
12181 if test -z "$F77"; then
12182   ac_ct_F77=$F77
12183   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
12184 do
12185   # Extract the first word of "$ac_prog", so it can be a program name with args.
12186 set dummy $ac_prog; ac_word=$2
12187 echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   if test -n "$ac_ct_F77"; then
12193   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200   for ac_exec_ext in '' $ac_executable_extensions; do
12201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_prog_ac_ct_F77="$ac_prog"
12203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207 done
12208
12209 fi
12210 fi
12211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12212 if test -n "$ac_ct_F77"; then
12213   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12214 echo "${ECHO_T}$ac_ct_F77" >&6
12215 else
12216   echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12218 fi
12219
12220   test -n "$ac_ct_F77" && break
12221 done
12222
12223   F77=$ac_ct_F77
12224 fi
12225
12226
12227 # Provide some information about the compiler.
12228 echo "$as_me:12228:" \
12229      "checking for Fortran 77 compiler version" >&5
12230 ac_compiler=`set X $ac_compile; echo $2`
12231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12232   (eval $ac_compiler --version </dev/null >&5) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }
12236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12237   (eval $ac_compiler -v </dev/null >&5) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }
12241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12242   (eval $ac_compiler -V </dev/null >&5) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }
12246 rm -f a.out
12247
12248 # If we don't use `.F' as extension, the preprocessor is not run on the
12249 # input file.  (Note that this only needs to work for GNU compilers.)
12250 ac_save_ext=$ac_ext
12251 ac_ext=F
12252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
12254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   cat >conftest.$ac_ext <<_ACEOF
12258       program main
12259 #ifndef __GNUC__
12260        choke me
12261 #endif
12262
12263       end
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267   (eval $ac_compile) 2>conftest.er1
12268   ac_status=$?
12269   grep -v '^ *+' conftest.er1 >conftest.err
12270   rm -f conftest.er1
12271   cat conftest.err >&5
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); } &&
12274          { ac_try='test -z "$ac_f77_werror_flag"
12275                          || test ! -s conftest.err'
12276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277   (eval $ac_try) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; } &&
12281          { ac_try='test -s conftest.$ac_objext'
12282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283   (eval $ac_try) 2>&5
12284   ac_status=$?
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); }; }; then
12287   ac_compiler_gnu=yes
12288 else
12289   echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_compiler_gnu=no
12293 fi
12294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12296
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
12300 ac_ext=$ac_save_ext
12301 ac_test_FFLAGS=${FFLAGS+set}
12302 ac_save_FFLAGS=$FFLAGS
12303 FFLAGS=
12304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
12306 if test "${ac_cv_prog_f77_g+set}" = set; then
12307   echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309   FFLAGS=-g
12310 cat >conftest.$ac_ext <<_ACEOF
12311       program main
12312
12313       end
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12317   (eval $ac_compile) 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_f77_werror_flag"
12325                          || test ! -s conftest.err'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; } &&
12331          { ac_try='test -s conftest.$ac_objext'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; }; then
12337   ac_cv_prog_f77_g=yes
12338 else
12339   echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 ac_cv_prog_f77_g=no
12343 fi
12344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12345
12346 fi
12347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
12349 if test "$ac_test_FFLAGS" = set; then
12350   FFLAGS=$ac_save_FFLAGS
12351 elif test $ac_cv_prog_f77_g = yes; then
12352   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12353     FFLAGS="-g -O2"
12354   else
12355     FFLAGS="-g"
12356   fi
12357 else
12358   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12359     FFLAGS="-O2"
12360   else
12361     FFLAGS=
12362   fi
12363 fi
12364
12365 G77=`test $ac_compiler_gnu = yes && echo yes`
12366 ac_ext=c
12367 ac_cpp='$CPP $CPPFLAGS'
12368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371
12372
12373
12374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12375
12376 # find the maximum length of command line arguments
12377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
12379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12380   echo $ECHO_N "(cached) $ECHO_C" >&6
12381 else
12382     i=0
12383   teststring="ABCD"
12384
12385   case $build_os in
12386   msdosdjgpp*)
12387     # On DJGPP, this test can blow up pretty badly due to problems in libc
12388     # (any single argument exceeding 2000 bytes causes a buffer overrun
12389     # during glob expansion).  Even if it were fixed, the result of this
12390     # check would be larger than it should be.
12391     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12392     ;;
12393
12394   gnu*)
12395     # Under GNU Hurd, this test is not required because there is
12396     # no limit to the length of command line arguments.
12397     # Libtool will interpret -1 as no limit whatsoever
12398     lt_cv_sys_max_cmd_len=-1;
12399     ;;
12400
12401   cygwin* | mingw*)
12402     # On Win9x/ME, this test blows up -- it succeeds, but takes
12403     # about 5 minutes as the teststring grows exponentially.
12404     # Worse, since 9x/ME are not pre-emptively multitasking,
12405     # you end up with a "frozen" computer, even though with patience
12406     # the test eventually succeeds (with a max line length of 256k).
12407     # Instead, let's just punt: use the minimum linelength reported by
12408     # all of the supported platforms: 8192 (on NT/2K/XP).
12409     lt_cv_sys_max_cmd_len=8192;
12410     ;;
12411
12412   amigaos*)
12413     # On AmigaOS with pdksh, this test takes hours, literally.
12414     # So we just punt and use a minimum line length of 8192.
12415     lt_cv_sys_max_cmd_len=8192;
12416     ;;
12417
12418  *)
12419     # If test is not a shell built-in, we'll probably end up computing a
12420     # maximum length that is only half of the actual maximum length, but
12421     # we can't tell.
12422     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12423                = "XX$teststring") >/dev/null 2>&1 &&
12424             new_result=`expr "X$teststring" : ".*" 2>&1` &&
12425             lt_cv_sys_max_cmd_len=$new_result &&
12426             test $i != 17 # 1/2 MB should be enough
12427     do
12428       i=`expr $i + 1`
12429       teststring=$teststring$teststring
12430     done
12431     teststring=
12432     # Add a significant safety factor because C++ compilers can tack on massive
12433     # amounts of additional arguments before passing them to the linker.
12434     # It appears as though 1/2 is a usable value.
12435     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12436     ;;
12437   esac
12438
12439 fi
12440
12441 if test -n $lt_cv_sys_max_cmd_len ; then
12442   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12444 else
12445   echo "$as_me:$LINENO: result: none" >&5
12446 echo "${ECHO_T}none" >&6
12447 fi
12448
12449
12450
12451
12452 # Check for command to grab the raw symbol name followed by C symbol from nm.
12453 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12454 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12455 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458
12459 # These are sane defaults that work on at least a few old systems.
12460 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12461
12462 # Character class describing NM global symbol codes.
12463 symcode='[BCDEGRST]'
12464
12465 # Regexp to match symbols that can be accessed directly from C.
12466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12467
12468 # Transform the above into a raw symbol and a C symbol.
12469 symxfrm='\1 \2\3 \3'
12470
12471 # Transform an extracted symbol line into a proper C declaration
12472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12473
12474 # Transform an extracted symbol line into symbol name and symbol address
12475 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'"
12476
12477 # Define system-specific variables.
12478 case $host_os in
12479 aix*)
12480   symcode='[BCDT]'
12481   ;;
12482 cygwin* | mingw* | pw32*)
12483   symcode='[ABCDGISTW]'
12484   ;;
12485 hpux*) # Its linker distinguishes data from code symbols
12486   if test "$host_cpu" = ia64; then
12487     symcode='[ABCDEGRST]'
12488   fi
12489   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12490   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'"
12491   ;;
12492 irix* | nonstopux*)
12493   symcode='[BCDEGRST]'
12494   ;;
12495 osf*)
12496   symcode='[BCDEGQRST]'
12497   ;;
12498 solaris* | sysv5*)
12499   symcode='[BDRT]'
12500   ;;
12501 sysv4)
12502   symcode='[DFNSTU]'
12503   ;;
12504 esac
12505
12506 # Handle CRLF in mingw tool chain
12507 opt_cr=
12508 case $build_os in
12509 mingw*)
12510   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12511   ;;
12512 esac
12513
12514 # If we're using GNU nm, then use its standard symbol codes.
12515 case `$NM -V 2>&1` in
12516 *GNU* | *'with BFD'*)
12517   symcode='[ABCDGIRSTW]' ;;
12518 esac
12519
12520 # Try without a prefix undercore, then with it.
12521 for ac_symprfx in "" "_"; do
12522
12523   # Write the raw and C identifiers.
12524   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
12525
12526   # Check to see that the pipe works correctly.
12527   pipe_works=no
12528
12529   rm -f conftest*
12530   cat > conftest.$ac_ext <<EOF
12531 #ifdef __cplusplus
12532 extern "C" {
12533 #endif
12534 char nm_test_var;
12535 void nm_test_func(){}
12536 #ifdef __cplusplus
12537 }
12538 #endif
12539 int main(){nm_test_var='a';nm_test_func();return(0);}
12540 EOF
12541
12542   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543   (eval $ac_compile) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; then
12547     # Now try to grab the symbols.
12548     nlist=conftest.nm
12549     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12550   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); } && test -s "$nlist"; then
12554       # Try sorting and uniquifying the output.
12555       if sort "$nlist" | uniq > "$nlist"T; then
12556         mv -f "$nlist"T "$nlist"
12557       else
12558         rm -f "$nlist"T
12559       fi
12560
12561       # Make sure that we snagged all the symbols we need.
12562       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12563         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12564           cat <<EOF > conftest.$ac_ext
12565 #ifdef __cplusplus
12566 extern "C" {
12567 #endif
12568
12569 EOF
12570           # Now generate the symbol file.
12571           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12572
12573           cat <<EOF >> conftest.$ac_ext
12574 #if defined (__STDC__) && __STDC__
12575 # define lt_ptr_t void *
12576 #else
12577 # define lt_ptr_t char *
12578 # define const
12579 #endif
12580
12581 /* The mapping between symbol names and symbols. */
12582 const struct {
12583   const char *name;
12584   lt_ptr_t address;
12585 }
12586 lt_preloaded_symbols[] =
12587 {
12588 EOF
12589           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12590           cat <<\EOF >> conftest.$ac_ext
12591   {0, (lt_ptr_t) 0}
12592 };
12593
12594 #ifdef __cplusplus
12595 }
12596 #endif
12597 EOF
12598           # Now try linking the two files.
12599           mv conftest.$ac_objext conftstm.$ac_objext
12600           lt_save_LIBS="$LIBS"
12601           lt_save_CFLAGS="$CFLAGS"
12602           LIBS="conftstm.$ac_objext"
12603           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12604           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605   (eval $ac_link) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12609             pipe_works=yes
12610           fi
12611           LIBS="$lt_save_LIBS"
12612           CFLAGS="$lt_save_CFLAGS"
12613         else
12614           echo "cannot find nm_test_func in $nlist" >&5
12615         fi
12616       else
12617         echo "cannot find nm_test_var in $nlist" >&5
12618       fi
12619     else
12620       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12621     fi
12622   else
12623     echo "$progname: failed program was:" >&5
12624     cat conftest.$ac_ext >&5
12625   fi
12626   rm -f conftest* conftst*
12627
12628   # Do not use the global_symbol_pipe unless it works.
12629   if test "$pipe_works" = yes; then
12630     break
12631   else
12632     lt_cv_sys_global_symbol_pipe=
12633   fi
12634 done
12635
12636 fi
12637
12638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12639   lt_cv_sys_global_symbol_to_cdecl=
12640 fi
12641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12642   echo "$as_me:$LINENO: result: failed" >&5
12643 echo "${ECHO_T}failed" >&6
12644 else
12645   echo "$as_me:$LINENO: result: ok" >&5
12646 echo "${ECHO_T}ok" >&6
12647 fi
12648
12649 echo "$as_me:$LINENO: checking for objdir" >&5
12650 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12651 if test "${lt_cv_objdir+set}" = set; then
12652   echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654   rm -f .libs 2>/dev/null
12655 mkdir .libs 2>/dev/null
12656 if test -d .libs; then
12657   lt_cv_objdir=.libs
12658 else
12659   # MS-DOS does not allow filenames that begin with a dot.
12660   lt_cv_objdir=_libs
12661 fi
12662 rmdir .libs 2>/dev/null
12663 fi
12664 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12665 echo "${ECHO_T}$lt_cv_objdir" >&6
12666 objdir=$lt_cv_objdir
12667
12668
12669
12670
12671
12672 case $host_os in
12673 aix3*)
12674   # AIX sometimes has problems with the GCC collect2 program.  For some
12675   # reason, if we set the COLLECT_NAMES environment variable, the problems
12676   # vanish in a puff of smoke.
12677   if test "X${COLLECT_NAMES+set}" != Xset; then
12678     COLLECT_NAMES=
12679     export COLLECT_NAMES
12680   fi
12681   ;;
12682 esac
12683
12684 # Sed substitution that helps us do robust quoting.  It backslashifies
12685 # metacharacters that are still active within double-quoted strings.
12686 Xsed='sed -e s/^X//'
12687 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12688
12689 # Same as above, but do not quote variable references.
12690 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12691
12692 # Sed substitution to delay expansion of an escaped shell variable in a
12693 # double_quote_subst'ed string.
12694 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12695
12696 # Sed substitution to avoid accidental globbing in evaled expressions
12697 no_glob_subst='s/\*/\\\*/g'
12698
12699 # Constants:
12700 rm="rm -f"
12701
12702 # Global variables:
12703 default_ofile=libtool
12704 can_build_shared=yes
12705
12706 # All known linkers require a `.a' archive for static linking (except M$VC,
12707 # which needs '.lib').
12708 libext=a
12709 ltmain="$ac_aux_dir/ltmain.sh"
12710 ofile="$default_ofile"
12711 with_gnu_ld="$lt_cv_prog_gnu_ld"
12712
12713 if test -n "$ac_tool_prefix"; then
12714   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12715 set dummy ${ac_tool_prefix}ar; ac_word=$2
12716 echo "$as_me:$LINENO: checking for $ac_word" >&5
12717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12718 if test "${ac_cv_prog_AR+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   if test -n "$AR"; then
12722   ac_cv_prog_AR="$AR" # Let the user override the test.
12723 else
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727   IFS=$as_save_IFS
12728   test -z "$as_dir" && as_dir=.
12729   for ac_exec_ext in '' $ac_executable_extensions; do
12730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731     ac_cv_prog_AR="${ac_tool_prefix}ar"
12732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12733     break 2
12734   fi
12735 done
12736 done
12737
12738 fi
12739 fi
12740 AR=$ac_cv_prog_AR
12741 if test -n "$AR"; then
12742   echo "$as_me:$LINENO: result: $AR" >&5
12743 echo "${ECHO_T}$AR" >&6
12744 else
12745   echo "$as_me:$LINENO: result: no" >&5
12746 echo "${ECHO_T}no" >&6
12747 fi
12748
12749 fi
12750 if test -z "$ac_cv_prog_AR"; then
12751   ac_ct_AR=$AR
12752   # Extract the first word of "ar", so it can be a program name with args.
12753 set dummy ar; ac_word=$2
12754 echo "$as_me:$LINENO: checking for $ac_word" >&5
12755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   if test -n "$ac_ct_AR"; then
12760   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765   IFS=$as_save_IFS
12766   test -z "$as_dir" && as_dir=.
12767   for ac_exec_ext in '' $ac_executable_extensions; do
12768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12769     ac_cv_prog_ac_ct_AR="ar"
12770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12771     break 2
12772   fi
12773 done
12774 done
12775
12776   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12777 fi
12778 fi
12779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12780 if test -n "$ac_ct_AR"; then
12781   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12782 echo "${ECHO_T}$ac_ct_AR" >&6
12783 else
12784   echo "$as_me:$LINENO: result: no" >&5
12785 echo "${ECHO_T}no" >&6
12786 fi
12787
12788   AR=$ac_ct_AR
12789 else
12790   AR="$ac_cv_prog_AR"
12791 fi
12792
12793 if test -n "$ac_tool_prefix"; then
12794   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12795 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12796 echo "$as_me:$LINENO: checking for $ac_word" >&5
12797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12798 if test "${ac_cv_prog_RANLIB+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801   if test -n "$RANLIB"; then
12802   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12806 do
12807   IFS=$as_save_IFS
12808   test -z "$as_dir" && as_dir=.
12809   for ac_exec_ext in '' $ac_executable_extensions; do
12810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12813     break 2
12814   fi
12815 done
12816 done
12817
12818 fi
12819 fi
12820 RANLIB=$ac_cv_prog_RANLIB
12821 if test -n "$RANLIB"; then
12822   echo "$as_me:$LINENO: result: $RANLIB" >&5
12823 echo "${ECHO_T}$RANLIB" >&6
12824 else
12825   echo "$as_me:$LINENO: result: no" >&5
12826 echo "${ECHO_T}no" >&6
12827 fi
12828
12829 fi
12830 if test -z "$ac_cv_prog_RANLIB"; then
12831   ac_ct_RANLIB=$RANLIB
12832   # Extract the first word of "ranlib", so it can be a program name with args.
12833 set dummy ranlib; ac_word=$2
12834 echo "$as_me:$LINENO: checking for $ac_word" >&5
12835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12836 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839   if test -n "$ac_ct_RANLIB"; then
12840   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847   for ac_exec_ext in '' $ac_executable_extensions; do
12848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_prog_ac_ct_RANLIB="ranlib"
12850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854 done
12855
12856   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12857 fi
12858 fi
12859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12860 if test -n "$ac_ct_RANLIB"; then
12861   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12862 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12863 else
12864   echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6
12866 fi
12867
12868   RANLIB=$ac_ct_RANLIB
12869 else
12870   RANLIB="$ac_cv_prog_RANLIB"
12871 fi
12872
12873 if test -n "$ac_tool_prefix"; then
12874   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12875 set dummy ${ac_tool_prefix}strip; ac_word=$2
12876 echo "$as_me:$LINENO: checking for $ac_word" >&5
12877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12878 if test "${ac_cv_prog_STRIP+set}" = set; then
12879   echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881   if test -n "$STRIP"; then
12882   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12883 else
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12886 do
12887   IFS=$as_save_IFS
12888   test -z "$as_dir" && as_dir=.
12889   for ac_exec_ext in '' $ac_executable_extensions; do
12890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12891     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12893     break 2
12894   fi
12895 done
12896 done
12897
12898 fi
12899 fi
12900 STRIP=$ac_cv_prog_STRIP
12901 if test -n "$STRIP"; then
12902   echo "$as_me:$LINENO: result: $STRIP" >&5
12903 echo "${ECHO_T}$STRIP" >&6
12904 else
12905   echo "$as_me:$LINENO: result: no" >&5
12906 echo "${ECHO_T}no" >&6
12907 fi
12908
12909 fi
12910 if test -z "$ac_cv_prog_STRIP"; then
12911   ac_ct_STRIP=$STRIP
12912   # Extract the first word of "strip", so it can be a program name with args.
12913 set dummy strip; ac_word=$2
12914 echo "$as_me:$LINENO: checking for $ac_word" >&5
12915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   if test -n "$ac_ct_STRIP"; then
12920   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925   IFS=$as_save_IFS
12926   test -z "$as_dir" && as_dir=.
12927   for ac_exec_ext in '' $ac_executable_extensions; do
12928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929     ac_cv_prog_ac_ct_STRIP="strip"
12930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931     break 2
12932   fi
12933 done
12934 done
12935
12936   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12937 fi
12938 fi
12939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12940 if test -n "$ac_ct_STRIP"; then
12941   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12942 echo "${ECHO_T}$ac_ct_STRIP" >&6
12943 else
12944   echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6
12946 fi
12947
12948   STRIP=$ac_ct_STRIP
12949 else
12950   STRIP="$ac_cv_prog_STRIP"
12951 fi
12952
12953
12954 old_CC="$CC"
12955 old_CFLAGS="$CFLAGS"
12956
12957 # Set sane defaults for various variables
12958 test -z "$AR" && AR=ar
12959 test -z "$AR_FLAGS" && AR_FLAGS=cru
12960 test -z "$AS" && AS=as
12961 test -z "$CC" && CC=cc
12962 test -z "$LTCC" && LTCC=$CC
12963 test -z "$DLLTOOL" && DLLTOOL=dlltool
12964 test -z "$LD" && LD=ld
12965 test -z "$LN_S" && LN_S="ln -s"
12966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12967 test -z "$NM" && NM=nm
12968 test -z "$SED" && SED=sed
12969 test -z "$OBJDUMP" && OBJDUMP=objdump
12970 test -z "$RANLIB" && RANLIB=:
12971 test -z "$STRIP" && STRIP=:
12972 test -z "$ac_objext" && ac_objext=o
12973
12974 # Determine commands to create old-style static archives.
12975 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12976 old_postinstall_cmds='chmod 644 $oldlib'
12977 old_postuninstall_cmds=
12978
12979 if test -n "$RANLIB"; then
12980   case $host_os in
12981   openbsd*)
12982     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12983     ;;
12984   *)
12985     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12986     ;;
12987   esac
12988   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12989 fi
12990
12991 # Only perform the check for file, if the check method requires it
12992 case $deplibs_check_method in
12993 file_magic*)
12994   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12995     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12996 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12998   echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000   case $MAGIC_CMD in
13001 [\\/*] |  ?:[\\/]*)
13002   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13003   ;;
13004 *)
13005   lt_save_MAGIC_CMD="$MAGIC_CMD"
13006   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13007   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13008   for ac_dir in $ac_dummy; do
13009     IFS="$lt_save_ifs"
13010     test -z "$ac_dir" && ac_dir=.
13011     if test -f $ac_dir/${ac_tool_prefix}file; then
13012       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13013       if test -n "$file_magic_test_file"; then
13014         case $deplibs_check_method in
13015         "file_magic "*)
13016           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13017           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13018           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13019             $EGREP "$file_magic_regex" > /dev/null; then
13020             :
13021           else
13022             cat <<EOF 1>&2
13023
13024 *** Warning: the command libtool uses to detect shared libraries,
13025 *** $file_magic_cmd, produces output that libtool cannot recognize.
13026 *** The result is that libtool may fail to recognize shared libraries
13027 *** as such.  This will affect the creation of libtool libraries that
13028 *** depend on shared libraries, but programs linked with such libtool
13029 *** libraries will work regardless of this problem.  Nevertheless, you
13030 *** may want to report the problem to your system manager and/or to
13031 *** bug-libtool@gnu.org
13032
13033 EOF
13034           fi ;;
13035         esac
13036       fi
13037       break
13038     fi
13039   done
13040   IFS="$lt_save_ifs"
13041   MAGIC_CMD="$lt_save_MAGIC_CMD"
13042   ;;
13043 esac
13044 fi
13045
13046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13047 if test -n "$MAGIC_CMD"; then
13048   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13049 echo "${ECHO_T}$MAGIC_CMD" >&6
13050 else
13051   echo "$as_me:$LINENO: result: no" >&5
13052 echo "${ECHO_T}no" >&6
13053 fi
13054
13055 if test -z "$lt_cv_path_MAGIC_CMD"; then
13056   if test -n "$ac_tool_prefix"; then
13057     echo "$as_me:$LINENO: checking for file" >&5
13058 echo $ECHO_N "checking for file... $ECHO_C" >&6
13059 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13060   echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062   case $MAGIC_CMD in
13063 [\\/*] |  ?:[\\/]*)
13064   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13065   ;;
13066 *)
13067   lt_save_MAGIC_CMD="$MAGIC_CMD"
13068   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13069   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13070   for ac_dir in $ac_dummy; do
13071     IFS="$lt_save_ifs"
13072     test -z "$ac_dir" && ac_dir=.
13073     if test -f $ac_dir/file; then
13074       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13075       if test -n "$file_magic_test_file"; then
13076         case $deplibs_check_method in
13077         "file_magic "*)
13078           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
13079           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13080           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13081             $EGREP "$file_magic_regex" > /dev/null; then
13082             :
13083           else
13084             cat <<EOF 1>&2
13085
13086 *** Warning: the command libtool uses to detect shared libraries,
13087 *** $file_magic_cmd, produces output that libtool cannot recognize.
13088 *** The result is that libtool may fail to recognize shared libraries
13089 *** as such.  This will affect the creation of libtool libraries that
13090 *** depend on shared libraries, but programs linked with such libtool
13091 *** libraries will work regardless of this problem.  Nevertheless, you
13092 *** may want to report the problem to your system manager and/or to
13093 *** bug-libtool@gnu.org
13094
13095 EOF
13096           fi ;;
13097         esac
13098       fi
13099       break
13100     fi
13101   done
13102   IFS="$lt_save_ifs"
13103   MAGIC_CMD="$lt_save_MAGIC_CMD"
13104   ;;
13105 esac
13106 fi
13107
13108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13109 if test -n "$MAGIC_CMD"; then
13110   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13111 echo "${ECHO_T}$MAGIC_CMD" >&6
13112 else
13113   echo "$as_me:$LINENO: result: no" >&5
13114 echo "${ECHO_T}no" >&6
13115 fi
13116
13117   else
13118     MAGIC_CMD=:
13119   fi
13120 fi
13121
13122   fi
13123   ;;
13124 esac
13125
13126 enable_dlopen=no
13127 enable_win32_dll=no
13128
13129 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
13130 if test "${enable_libtool_lock+set}" = set; then
13131   enableval="$enable_libtool_lock"
13132
13133 fi;
13134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13135
13136
13137 # Check whether --with-pic or --without-pic was given.
13138 if test "${with_pic+set}" = set; then
13139   withval="$with_pic"
13140   pic_mode="$withval"
13141 else
13142   pic_mode=default
13143 fi;
13144 test -z "$pic_mode" && pic_mode=default
13145
13146 # Use C for the default configuration in the libtool script
13147 tagname=
13148 lt_save_CC="$CC"
13149 ac_ext=c
13150 ac_cpp='$CPP $CPPFLAGS'
13151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13154
13155
13156 # Source file extension for C test sources.
13157 ac_ext=c
13158
13159 # Object file extension for compiled C test sources.
13160 objext=o
13161 objext=$objext
13162
13163 # Code to be used in simple compile tests
13164 lt_simple_compile_test_code="int some_variable = 0;\n"
13165
13166 # Code to be used in simple link tests
13167 lt_simple_link_test_code='int main(){return(0);}\n'
13168
13169
13170 # If no C compiler was specified, use CC.
13171 LTCC=${LTCC-"$CC"}
13172
13173 # Allow CC to be a program name with arguments.
13174 compiler=$CC
13175
13176
13177 #
13178 # Check for any special shared library compilation flags.
13179 #
13180 lt_prog_cc_shlib=
13181 if test "$GCC" = no; then
13182   case $host_os in
13183   sco3.2v5*)
13184     lt_prog_cc_shlib='-belf'
13185     ;;
13186   esac
13187 fi
13188 if test -n "$lt_prog_cc_shlib"; then
13189   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
13190 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
13191   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
13192   else
13193     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
13194 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
13195     lt_cv_prog_cc_can_build_shared=no
13196   fi
13197 fi
13198
13199
13200 #
13201 # Check to make sure the static flag actually works.
13202 #
13203 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
13204 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
13205 if test "${lt_prog_compiler_static_works+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   lt_prog_compiler_static_works=no
13209    save_LDFLAGS="$LDFLAGS"
13210    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
13211    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13212    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13213      # The compiler can only warn and ignore the option if not recognized
13214      # So say no if there are warnings
13215      if test -s conftest.err; then
13216        # Append any errors to the config.log.
13217        cat conftest.err 1>&5
13218      else
13219        lt_prog_compiler_static_works=yes
13220      fi
13221    fi
13222    $rm conftest*
13223    LDFLAGS="$save_LDFLAGS"
13224
13225 fi
13226 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13227 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
13228
13229 if test x"$lt_prog_compiler_static_works" = xyes; then
13230     :
13231 else
13232     lt_prog_compiler_static=
13233 fi
13234
13235
13236
13237
13238 lt_prog_compiler_no_builtin_flag=
13239
13240 if test "$GCC" = yes; then
13241   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13242
13243
13244 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13245 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13246 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13247   echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249   lt_cv_prog_compiler_rtti_exceptions=no
13250   ac_outfile=conftest.$ac_objext
13251    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13252    lt_compiler_flag="-fno-rtti -fno-exceptions"
13253    # Insert the option either (1) after the last *FLAGS variable, or
13254    # (2) before a word containing "conftest.", or (3) at the end.
13255    # Note that $ac_compile itself does not contain backslashes and begins
13256    # with a dollar sign (not a hyphen), so the echo should work correctly.
13257    # The option is referenced via a variable to avoid confusing sed.
13258    lt_compile=`echo "$ac_compile" | $SED \
13259    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13261    -e 's:$: $lt_compiler_flag:'`
13262    (eval echo "\"\$as_me:13262: $lt_compile\"" >&5)
13263    (eval "$lt_compile" 2>conftest.err)
13264    ac_status=$?
13265    cat conftest.err >&5
13266    echo "$as_me:13266: \$? = $ac_status" >&5
13267    if (exit $ac_status) && test -s "$ac_outfile"; then
13268      # The compiler can only warn and ignore the option if not recognized
13269      # So say no if there are warnings
13270      if test ! -s conftest.err; then
13271        lt_cv_prog_compiler_rtti_exceptions=yes
13272      fi
13273    fi
13274    $rm conftest*
13275
13276 fi
13277 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13278 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13279
13280 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13281     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13282 else
13283     :
13284 fi
13285
13286 fi
13287
13288 lt_prog_compiler_wl=
13289 lt_prog_compiler_pic=
13290 lt_prog_compiler_static=
13291
13292 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13293 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13294
13295   if test "$GCC" = yes; then
13296     lt_prog_compiler_wl='-Wl,'
13297     lt_prog_compiler_static='-static'
13298
13299     case $host_os in
13300       aix*)
13301       # All AIX code is PIC.
13302       if test "$host_cpu" = ia64; then
13303         # AIX 5 now supports IA64 processor
13304         lt_prog_compiler_static='-Bstatic'
13305       fi
13306       ;;
13307
13308     amigaos*)
13309       # FIXME: we need at least 68020 code to build shared libraries, but
13310       # adding the `-m68020' flag to GCC prevents building anything better,
13311       # like `-m68040'.
13312       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13313       ;;
13314
13315     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13316       # PIC is the default for these OSes.
13317       ;;
13318
13319     mingw* | pw32* | os2*)
13320       # This hack is so that the source file can tell whether it is being
13321       # built for inclusion in a dll (and should export symbols for example).
13322       lt_prog_compiler_pic='-DDLL_EXPORT'
13323       ;;
13324
13325     darwin* | rhapsody*)
13326       # PIC is the default on this platform
13327       # Common symbols not allowed in MH_DYLIB files
13328       lt_prog_compiler_pic='-fno-common'
13329       ;;
13330
13331     msdosdjgpp*)
13332       # Just because we use GCC doesn't mean we suddenly get shared libraries
13333       # on systems that don't support them.
13334       lt_prog_compiler_can_build_shared=no
13335       enable_shared=no
13336       ;;
13337
13338     sysv4*MP*)
13339       if test -d /usr/nec; then
13340         lt_prog_compiler_pic=-Kconform_pic
13341       fi
13342       ;;
13343
13344     hpux*)
13345       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13346       # not for PA HP-UX.
13347       case "$host_cpu" in
13348       hppa*64*|ia64*)
13349         # +Z the default
13350         ;;
13351       *)
13352         lt_prog_compiler_pic='-fPIC'
13353         ;;
13354       esac
13355       ;;
13356
13357     *)
13358       lt_prog_compiler_pic='-fPIC'
13359       ;;
13360     esac
13361   else
13362     # PORTME Check for flag to pass linker flags through the system compiler.
13363     case $host_os in
13364     aix*)
13365       lt_prog_compiler_wl='-Wl,'
13366       if test "$host_cpu" = ia64; then
13367         # AIX 5 now supports IA64 processor
13368         lt_prog_compiler_static='-Bstatic'
13369       else
13370         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13371       fi
13372       ;;
13373
13374     mingw* | pw32* | os2*)
13375       # This hack is so that the source file can tell whether it is being
13376       # built for inclusion in a dll (and should export symbols for example).
13377       lt_prog_compiler_pic='-DDLL_EXPORT'
13378       ;;
13379
13380     hpux9* | hpux10* | hpux11*)
13381       lt_prog_compiler_wl='-Wl,'
13382       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13383       # not for PA HP-UX.
13384       case "$host_cpu" in
13385       hppa*64*|ia64*)
13386         # +Z the default
13387         ;;
13388       *)
13389         lt_prog_compiler_pic='+Z'
13390         ;;
13391       esac
13392       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13393       lt_prog_compiler_static='${wl}-a ${wl}archive'
13394       ;;
13395
13396     irix5* | irix6* | nonstopux*)
13397       lt_prog_compiler_wl='-Wl,'
13398       # PIC (with -KPIC) is the default.
13399       lt_prog_compiler_static='-non_shared'
13400       ;;
13401
13402     newsos6)
13403       lt_prog_compiler_pic='-KPIC'
13404       lt_prog_compiler_static='-Bstatic'
13405       ;;
13406
13407     linux*)
13408       case $CC in
13409       icc* | ecc*)
13410         lt_prog_compiler_wl='-Wl,'
13411         lt_prog_compiler_pic='-KPIC'
13412         lt_prog_compiler_static='-static'
13413         ;;
13414       ccc*)
13415         lt_prog_compiler_wl='-Wl,'
13416         # All Alpha code is PIC.
13417         lt_prog_compiler_static='-non_shared'
13418         ;;
13419       esac
13420       ;;
13421
13422     osf3* | osf4* | osf5*)
13423       lt_prog_compiler_wl='-Wl,'
13424       # All OSF/1 code is PIC.
13425       lt_prog_compiler_static='-non_shared'
13426       ;;
13427
13428     sco3.2v5*)
13429       lt_prog_compiler_pic='-Kpic'
13430       lt_prog_compiler_static='-dn'
13431       ;;
13432
13433     solaris*)
13434       lt_prog_compiler_wl='-Wl,'
13435       lt_prog_compiler_pic='-KPIC'
13436       lt_prog_compiler_static='-Bstatic'
13437       ;;
13438
13439     sunos4*)
13440       lt_prog_compiler_wl='-Qoption ld '
13441       lt_prog_compiler_pic='-PIC'
13442       lt_prog_compiler_static='-Bstatic'
13443       ;;
13444
13445     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13446       lt_prog_compiler_wl='-Wl,'
13447       lt_prog_compiler_pic='-KPIC'
13448       lt_prog_compiler_static='-Bstatic'
13449       ;;
13450
13451     sysv4*MP*)
13452       if test -d /usr/nec ;then
13453         lt_prog_compiler_pic='-Kconform_pic'
13454         lt_prog_compiler_static='-Bstatic'
13455       fi
13456       ;;
13457
13458     uts4*)
13459       lt_prog_compiler_pic='-pic'
13460       lt_prog_compiler_static='-Bstatic'
13461       ;;
13462
13463     *)
13464       lt_prog_compiler_can_build_shared=no
13465       ;;
13466     esac
13467   fi
13468
13469 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13470 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13471
13472 #
13473 # Check to make sure the PIC flag actually works.
13474 #
13475 if test -n "$lt_prog_compiler_pic"; then
13476
13477 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13478 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13479 if test "${lt_prog_compiler_pic_works+set}" = set; then
13480   echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482   lt_prog_compiler_pic_works=no
13483   ac_outfile=conftest.$ac_objext
13484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13485    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13486    # Insert the option either (1) after the last *FLAGS variable, or
13487    # (2) before a word containing "conftest.", or (3) at the end.
13488    # Note that $ac_compile itself does not contain backslashes and begins
13489    # with a dollar sign (not a hyphen), so the echo should work correctly.
13490    # The option is referenced via a variable to avoid confusing sed.
13491    lt_compile=`echo "$ac_compile" | $SED \
13492    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13494    -e 's:$: $lt_compiler_flag:'`
13495    (eval echo "\"\$as_me:13495: $lt_compile\"" >&5)
13496    (eval "$lt_compile" 2>conftest.err)
13497    ac_status=$?
13498    cat conftest.err >&5
13499    echo "$as_me:13499: \$? = $ac_status" >&5
13500    if (exit $ac_status) && test -s "$ac_outfile"; then
13501      # The compiler can only warn and ignore the option if not recognized
13502      # So say no if there are warnings
13503      if test ! -s conftest.err; then
13504        lt_prog_compiler_pic_works=yes
13505      fi
13506    fi
13507    $rm conftest*
13508
13509 fi
13510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13511 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13512
13513 if test x"$lt_prog_compiler_pic_works" = xyes; then
13514     case $lt_prog_compiler_pic in
13515      "" | " "*) ;;
13516      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13517      esac
13518 else
13519     lt_prog_compiler_pic=
13520      lt_prog_compiler_can_build_shared=no
13521 fi
13522
13523 fi
13524 case "$host_os" in
13525   # For platforms which do not support PIC, -DPIC is meaningless:
13526   *djgpp*)
13527     lt_prog_compiler_pic=
13528     ;;
13529   *)
13530     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13531     ;;
13532 esac
13533
13534 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13535 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13536 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   lt_cv_prog_compiler_c_o=no
13540    $rm -r conftest 2>/dev/null
13541    mkdir conftest
13542    cd conftest
13543    mkdir out
13544    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13545
13546    lt_compiler_flag="-o out/conftest2.$ac_objext"
13547    # Insert the option either (1) after the last *FLAGS variable, or
13548    # (2) before a word containing "conftest.", or (3) at the end.
13549    # Note that $ac_compile itself does not contain backslashes and begins
13550    # with a dollar sign (not a hyphen), so the echo should work correctly.
13551    lt_compile=`echo "$ac_compile" | $SED \
13552    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13554    -e 's:$: $lt_compiler_flag:'`
13555    (eval echo "\"\$as_me:13555: $lt_compile\"" >&5)
13556    (eval "$lt_compile" 2>out/conftest.err)
13557    ac_status=$?
13558    cat out/conftest.err >&5
13559    echo "$as_me:13559: \$? = $ac_status" >&5
13560    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13561    then
13562      # The compiler can only warn and ignore the option if not recognized
13563      # So say no if there are warnings
13564      if test ! -s out/conftest.err; then
13565        lt_cv_prog_compiler_c_o=yes
13566      fi
13567    fi
13568    chmod u+w .
13569    $rm conftest*
13570    # SGI C++ compiler will create directory out/ii_files/ for
13571    # template instantiation
13572    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13573    $rm out/* && rmdir out
13574    cd ..
13575    rmdir conftest
13576    $rm conftest*
13577
13578 fi
13579 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13580 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13581
13582
13583 hard_links="nottested"
13584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13585   # do not overwrite the value of need_locks provided by the user
13586   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13587 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13588   hard_links=yes
13589   $rm conftest*
13590   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13591   touch conftest.a
13592   ln conftest.a conftest.b 2>&5 || hard_links=no
13593   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13594   echo "$as_me:$LINENO: result: $hard_links" >&5
13595 echo "${ECHO_T}$hard_links" >&6
13596   if test "$hard_links" = no; then
13597     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13598 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13599     need_locks=warn
13600   fi
13601 else
13602   need_locks=no
13603 fi
13604
13605 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13606 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13607
13608   runpath_var=
13609   allow_undefined_flag=
13610   enable_shared_with_static_runtimes=no
13611   archive_cmds=
13612   archive_expsym_cmds=
13613   old_archive_From_new_cmds=
13614   old_archive_from_expsyms_cmds=
13615   export_dynamic_flag_spec=
13616   whole_archive_flag_spec=
13617   thread_safe_flag_spec=
13618   hardcode_libdir_flag_spec=
13619   hardcode_libdir_flag_spec_ld=
13620   hardcode_libdir_separator=
13621   hardcode_direct=no
13622   hardcode_minus_L=no
13623   hardcode_shlibpath_var=unsupported
13624   link_all_deplibs=unknown
13625   hardcode_automatic=no
13626   module_cmds=
13627   module_expsym_cmds=
13628   always_export_symbols=no
13629   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13630   # include_expsyms should be a list of space-separated symbols to be *always*
13631   # included in the symbol list
13632   include_expsyms=
13633   # exclude_expsyms can be an extended regexp of symbols to exclude
13634   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13635   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13636   # as well as any symbol that contains `d'.
13637   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13638   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13639   # platforms (ab)use it in PIC code, but their linkers get confused if
13640   # the symbol is explicitly referenced.  Since portable code cannot
13641   # rely on this symbol name, it's probably fine to never include it in
13642   # preloaded symbol tables.
13643   extract_expsyms_cmds=
13644
13645   case $host_os in
13646   cygwin* | mingw* | pw32*)
13647     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13648     # When not using gcc, we currently assume that we are using
13649     # Microsoft Visual C++.
13650     if test "$GCC" != yes; then
13651       with_gnu_ld=no
13652     fi
13653     ;;
13654   openbsd*)
13655     with_gnu_ld=no
13656     ;;
13657   esac
13658
13659   ld_shlibs=yes
13660   if test "$with_gnu_ld" = yes; then
13661     # If archive_cmds runs LD, not CC, wlarc should be empty
13662     wlarc='${wl}'
13663
13664     # See if GNU ld supports shared libraries.
13665     case $host_os in
13666     aix3* | aix4* | aix5*)
13667       # On AIX/PPC, the GNU linker is very broken
13668       if test "$host_cpu" != ia64; then
13669         ld_shlibs=no
13670         cat <<EOF 1>&2
13671
13672 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13673 *** to be unable to reliably create shared libraries on AIX.
13674 *** Therefore, libtool is disabling shared libraries support.  If you
13675 *** really care for shared libraries, you may want to modify your PATH
13676 *** so that a non-GNU linker is found, and then restart.
13677
13678 EOF
13679       fi
13680       ;;
13681
13682     amigaos*)
13683       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)'
13684       hardcode_libdir_flag_spec='-L$libdir'
13685       hardcode_minus_L=yes
13686
13687       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13688       # that the semantics of dynamic libraries on AmigaOS, at least up
13689       # to version 4, is to share data among multiple programs linked
13690       # with the same dynamic library.  Since this doesn't match the
13691       # behavior of shared libraries on other platforms, we can't use
13692       # them.
13693       ld_shlibs=no
13694       ;;
13695
13696     beos*)
13697       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13698         allow_undefined_flag=unsupported
13699         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13700         # support --undefined.  This deserves some investigation.  FIXME
13701         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13702       else
13703         ld_shlibs=no
13704       fi
13705       ;;
13706
13707     cygwin* | mingw* | pw32*)
13708       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13709       # as there is no search path for DLLs.
13710       hardcode_libdir_flag_spec='-L$libdir'
13711       allow_undefined_flag=unsupported
13712       always_export_symbols=no
13713       enable_shared_with_static_runtimes=yes
13714       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13715
13716       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13717         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13718         # If the export-symbols file already is a .def file (1st line
13719         # is EXPORTS), use it as is; otherwise, prepend...
13720         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13721           cp $export_symbols $output_objdir/$soname.def;
13722         else
13723           echo EXPORTS > $output_objdir/$soname.def;
13724           cat $export_symbols >> $output_objdir/$soname.def;
13725         fi~
13726         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13727       else
13728         ld_shlibs=no
13729       fi
13730       ;;
13731
13732     netbsd*)
13733       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13734         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13735         wlarc=
13736       else
13737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13739       fi
13740       ;;
13741
13742     solaris* | sysv5*)
13743       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13744         ld_shlibs=no
13745         cat <<EOF 1>&2
13746
13747 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13748 *** create shared libraries on Solaris systems.  Therefore, libtool
13749 *** is disabling shared libraries support.  We urge you to upgrade GNU
13750 *** binutils to release 2.9.1 or newer.  Another option is to modify
13751 *** your PATH or compiler configuration so that the native linker is
13752 *** used, and then restart.
13753
13754 EOF
13755       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13758       else
13759         ld_shlibs=no
13760       fi
13761       ;;
13762
13763     sunos4*)
13764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13765       wlarc=
13766       hardcode_direct=yes
13767       hardcode_shlibpath_var=no
13768       ;;
13769
13770   linux*)
13771     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773         archive_cmds="$tmp_archive_cmds"
13774       supports_anon_versioning=no
13775       case `$LD -v 2>/dev/null` in
13776         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13777         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13778         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13779         *\ 2.11.*) ;; # other 2.11 versions
13780         *) supports_anon_versioning=yes ;;
13781       esac
13782       if test $supports_anon_versioning = yes; then
13783         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13785 $echo "local: *; };" >> $output_objdir/$libname.ver~
13786         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13787       else
13788         archive_expsym_cmds="$tmp_archive_cmds"
13789       fi
13790     else
13791       ld_shlibs=no
13792     fi
13793     ;;
13794
13795     *)
13796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13797         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13798         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13799       else
13800         ld_shlibs=no
13801       fi
13802       ;;
13803     esac
13804
13805     if test "$ld_shlibs" = yes; then
13806       runpath_var=LD_RUN_PATH
13807       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13808       export_dynamic_flag_spec='${wl}--export-dynamic'
13809       # ancient GNU ld didn't support --whole-archive et. al.
13810       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13811         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13812       else
13813         whole_archive_flag_spec=
13814       fi
13815     fi
13816   else
13817     # PORTME fill in a description of your system's linker (not GNU ld)
13818     case $host_os in
13819     aix3*)
13820       allow_undefined_flag=unsupported
13821       always_export_symbols=yes
13822       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'
13823       # Note: this linker hardcodes the directories in LIBPATH if there
13824       # are no directories specified by -L.
13825       hardcode_minus_L=yes
13826       if test "$GCC" = yes && test -z "$link_static_flag"; then
13827         # Neither direct hardcoding nor static linking is supported with a
13828         # broken collect2.
13829         hardcode_direct=unsupported
13830       fi
13831       ;;
13832
13833     aix4* | aix5*)
13834       if test "$host_cpu" = ia64; then
13835         # On IA64, the linker does run time linking by default, so we don't
13836         # have to do anything special.
13837         aix_use_runtimelinking=no
13838         exp_sym_flag='-Bexport'
13839         no_entry_flag=""
13840       else
13841         # If we're using GNU nm, then we don't want the "-C" option.
13842         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13843         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13844           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'
13845         else
13846           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'
13847         fi
13848         aix_use_runtimelinking=no
13849
13850         # Test if we are trying to use run time linking or normal
13851         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13852         # need to do runtime linking.
13853         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13854           for ld_flag in $LDFLAGS; do
13855           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13856             aix_use_runtimelinking=yes
13857             break
13858           fi
13859           done
13860         esac
13861
13862         exp_sym_flag='-bexport'
13863         no_entry_flag='-bnoentry'
13864       fi
13865
13866       # When large executables or shared objects are built, AIX ld can
13867       # have problems creating the table of contents.  If linking a library
13868       # or program results in "error TOC overflow" add -mminimal-toc to
13869       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13870       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13871
13872       archive_cmds=''
13873       hardcode_direct=yes
13874       hardcode_libdir_separator=':'
13875       link_all_deplibs=yes
13876
13877       if test "$GCC" = yes; then
13878         case $host_os in aix4.012|aix4.012.*)
13879         # We only want to do this on AIX 4.2 and lower, the check
13880         # below for broken collect2 doesn't work under 4.3+
13881           collect2name=`${CC} -print-prog-name=collect2`
13882           if test -f "$collect2name" && \
13883            strings "$collect2name" | grep resolve_lib_name >/dev/null
13884           then
13885           # We have reworked collect2
13886           hardcode_direct=yes
13887           else
13888           # We have old collect2
13889           hardcode_direct=unsupported
13890           # It fails to find uninstalled libraries when the uninstalled
13891           # path is not listed in the libpath.  Setting hardcode_minus_L
13892           # to unsupported forces relinking
13893           hardcode_minus_L=yes
13894           hardcode_libdir_flag_spec='-L$libdir'
13895           hardcode_libdir_separator=
13896           fi
13897         esac
13898         shared_flag='-shared'
13899       else
13900         # not using gcc
13901         if test "$host_cpu" = ia64; then
13902         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13903         # chokes on -Wl,-G. The following line is correct:
13904           shared_flag='-G'
13905         else
13906         if test "$aix_use_runtimelinking" = yes; then
13907             shared_flag='${wl}-G'
13908           else
13909             shared_flag='${wl}-bM:SRE'
13910         fi
13911         fi
13912       fi
13913
13914       # It seems that -bexpall does not export symbols beginning with
13915       # underscore (_), so it is better to generate a list of symbols to export.
13916       always_export_symbols=yes
13917       if test "$aix_use_runtimelinking" = yes; then
13918         # Warning - without using the other runtime loading flags (-brtl),
13919         # -berok will link without error, but may produce a broken library.
13920         allow_undefined_flag='-berok'
13921        # Determine the default libpath from the value encoded in an empty executable.
13922        cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928
13929 int
13930 main ()
13931 {
13932
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13939   (eval $ac_link) 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -z "$ac_c_werror_flag"
13947                          || test ! -s conftest.err'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest$ac_exeext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959
13960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13961 }'`
13962 # Check for a 64-bit object if we didn't find anything.
13963 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; }
13964 }'`; fi
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969 fi
13970 rm -f conftest.err conftest.$ac_objext \
13971       conftest$ac_exeext conftest.$ac_ext
13972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13973
13974        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13975         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13976        else
13977         if test "$host_cpu" = ia64; then
13978           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13979           allow_undefined_flag="-z nodefs"
13980           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13981         else
13982          # Determine the default libpath from the value encoded in an empty executable.
13983          cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989
13990 int
13991 main ()
13992 {
13993
13994   ;
13995   return 0;
13996 }
13997 _ACEOF
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000   (eval $ac_link) 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -z "$ac_c_werror_flag"
14008                          || test ! -s conftest.err'
14009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010   (eval $ac_try) 2>&5
14011   ac_status=$?
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); }; } &&
14014          { ac_try='test -s conftest$ac_exeext'
14015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016   (eval $ac_try) 2>&5
14017   ac_status=$?
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); }; }; then
14020
14021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14022 }'`
14023 # Check for a 64-bit object if we didn't find anything.
14024 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; }
14025 }'`; fi
14026 else
14027   echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 fi
14031 rm -f conftest.err conftest.$ac_objext \
14032       conftest$ac_exeext conftest.$ac_ext
14033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14034
14035          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14036           # Warning - without using the other run time loading flags,
14037           # -berok will link without error, but may produce a broken library.
14038           no_undefined_flag=' ${wl}-bernotok'
14039           allow_undefined_flag=' ${wl}-berok'
14040           # -bexpall does not export symbols beginning with underscore (_)
14041           always_export_symbols=yes
14042           # Exported symbols can be pulled into shared objects from archives
14043           whole_archive_flag_spec=' '
14044           archive_cmds_need_lc=yes
14045           # This is similar to how AIX traditionally builds it's shared libraries.
14046           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14047         fi
14048       fi
14049       ;;
14050
14051     amigaos*)
14052       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)'
14053       hardcode_libdir_flag_spec='-L$libdir'
14054       hardcode_minus_L=yes
14055       # see comment about different semantics on the GNU ld section
14056       ld_shlibs=no
14057       ;;
14058
14059     bsdi4*)
14060       export_dynamic_flag_spec=-rdynamic
14061       ;;
14062
14063     cygwin* | mingw* | pw32*)
14064       # When not using gcc, we currently assume that we are using
14065       # Microsoft Visual C++.
14066       # hardcode_libdir_flag_spec is actually meaningless, as there is
14067       # no search path for DLLs.
14068       hardcode_libdir_flag_spec=' '
14069       allow_undefined_flag=unsupported
14070       # Tell ltmain to make .lib files, not .a files.
14071       libext=lib
14072       # Tell ltmain to make .dll files, not .so files.
14073       shrext_cmds=".dll"
14074       # FIXME: Setting linknames here is a bad hack.
14075       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14076       # The linker will automatically build a .lib file if we build a DLL.
14077       old_archive_From_new_cmds='true'
14078       # FIXME: Should let the user specify the lib program.
14079       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14080       fix_srcfile_path='`cygpath -w "$srcfile"`'
14081       enable_shared_with_static_runtimes=yes
14082       ;;
14083
14084     darwin* | rhapsody*)
14085     if test "$GXX" = yes ; then
14086       archive_cmds_need_lc=no
14087       case "$host_os" in
14088       rhapsody* | darwin1.[012])
14089         allow_undefined_flag='-undefined suppress'
14090         ;;
14091       *) # Darwin 1.3 on
14092       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14093         allow_undefined_flag='-flat_namespace -undefined suppress'
14094       else
14095         case ${MACOSX_DEPLOYMENT_TARGET} in
14096           10.[012])
14097             allow_undefined_flag='-flat_namespace -undefined suppress'
14098             ;;
14099           10.*)
14100             allow_undefined_flag='-undefined dynamic_lookup'
14101             ;;
14102         esac
14103       fi
14104         ;;
14105       esac
14106         lt_int_apple_cc_single_mod=no
14107         output_verbose_link_cmd='echo'
14108         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14109           lt_int_apple_cc_single_mod=yes
14110         fi
14111         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14112           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14113         else
14114         archive_cmds='$CC -r ${wl}-bind_at_load -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'
14115       fi
14116       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14117       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14118         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14119           archive_expsym_cmds='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}'
14120         else
14121           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14122         fi
14123           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}'
14124       hardcode_direct=no
14125       hardcode_automatic=yes
14126       hardcode_shlibpath_var=unsupported
14127       whole_archive_flag_spec='-all_load $convenience'
14128       link_all_deplibs=yes
14129     else
14130       ld_shlibs=no
14131     fi
14132       ;;
14133
14134     dgux*)
14135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14136       hardcode_libdir_flag_spec='-L$libdir'
14137       hardcode_shlibpath_var=no
14138       ;;
14139
14140     freebsd1*)
14141       ld_shlibs=no
14142       ;;
14143
14144     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14145     # support.  Future versions do this automatically, but an explicit c++rt0.o
14146     # does not break anything, and helps significantly (at the cost of a little
14147     # extra space).
14148     freebsd2.2*)
14149       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14150       hardcode_libdir_flag_spec='-R$libdir'
14151       hardcode_direct=yes
14152       hardcode_shlibpath_var=no
14153       ;;
14154
14155     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14156     freebsd2*)
14157       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14158       hardcode_direct=yes
14159       hardcode_minus_L=yes
14160       hardcode_shlibpath_var=no
14161       ;;
14162
14163     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14164     freebsd* | kfreebsd*-gnu)
14165       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14166       hardcode_libdir_flag_spec='-R$libdir'
14167       hardcode_direct=yes
14168       hardcode_shlibpath_var=no
14169       ;;
14170
14171     hpux9*)
14172       if test "$GCC" = yes; then
14173         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'
14174       else
14175         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'
14176       fi
14177       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14178       hardcode_libdir_separator=:
14179       hardcode_direct=yes
14180
14181       # hardcode_minus_L: Not really in the search PATH,
14182       # but as the default location of the library.
14183       hardcode_minus_L=yes
14184       export_dynamic_flag_spec='${wl}-E'
14185       ;;
14186
14187     hpux10* | hpux11*)
14188       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14189         case "$host_cpu" in
14190         hppa*64*|ia64*)
14191           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14192           ;;
14193         *)
14194           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14195           ;;
14196         esac
14197       else
14198         case "$host_cpu" in
14199         hppa*64*|ia64*)
14200           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14201           ;;
14202         *)
14203           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14204           ;;
14205         esac
14206       fi
14207       if test "$with_gnu_ld" = no; then
14208         case "$host_cpu" in
14209         hppa*64*)
14210           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14211           hardcode_libdir_flag_spec_ld='+b $libdir'
14212           hardcode_libdir_separator=:
14213           hardcode_direct=no
14214           hardcode_shlibpath_var=no
14215           ;;
14216         ia64*)
14217           hardcode_libdir_flag_spec='-L$libdir'
14218           hardcode_direct=no
14219           hardcode_shlibpath_var=no
14220
14221           # hardcode_minus_L: Not really in the search PATH,
14222           # but as the default location of the library.
14223           hardcode_minus_L=yes
14224           ;;
14225         *)
14226           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14227           hardcode_libdir_separator=:
14228           hardcode_direct=yes
14229           export_dynamic_flag_spec='${wl}-E'
14230
14231           # hardcode_minus_L: Not really in the search PATH,
14232           # but as the default location of the library.
14233           hardcode_minus_L=yes
14234           ;;
14235         esac
14236       fi
14237       ;;
14238
14239     irix5* | irix6* | nonstopux*)
14240       if test "$GCC" = yes; then
14241         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'
14242       else
14243         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'
14244         hardcode_libdir_flag_spec_ld='-rpath $libdir'
14245       fi
14246       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14247       hardcode_libdir_separator=:
14248       link_all_deplibs=yes
14249       ;;
14250
14251     netbsd*)
14252       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14253         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14254       else
14255         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14256       fi
14257       hardcode_libdir_flag_spec='-R$libdir'
14258       hardcode_direct=yes
14259       hardcode_shlibpath_var=no
14260       ;;
14261
14262     newsos6)
14263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264       hardcode_direct=yes
14265       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14266       hardcode_libdir_separator=:
14267       hardcode_shlibpath_var=no
14268       ;;
14269
14270     openbsd*)
14271       hardcode_direct=yes
14272       hardcode_shlibpath_var=no
14273       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14274         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14275         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14276         export_dynamic_flag_spec='${wl}-E'
14277       else
14278        case $host_os in
14279          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14280            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14281            hardcode_libdir_flag_spec='-R$libdir'
14282            ;;
14283          *)
14284            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14285            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14286            ;;
14287        esac
14288       fi
14289       ;;
14290
14291     os2*)
14292       hardcode_libdir_flag_spec='-L$libdir'
14293       hardcode_minus_L=yes
14294       allow_undefined_flag=unsupported
14295       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'
14296       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14297       ;;
14298
14299     osf3*)
14300       if test "$GCC" = yes; then
14301         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14302         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'
14303       else
14304         allow_undefined_flag=' -expect_unresolved \*'
14305         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'
14306       fi
14307       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14308       hardcode_libdir_separator=:
14309       ;;
14310
14311     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14312       if test "$GCC" = yes; then
14313         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14314         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'
14315         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14316       else
14317         allow_undefined_flag=' -expect_unresolved \*'
14318         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'
14319         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14320         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14321
14322         # Both c and cxx compiler support -rpath directly
14323         hardcode_libdir_flag_spec='-rpath $libdir'
14324       fi
14325       hardcode_libdir_separator=:
14326       ;;
14327
14328     sco3.2v5*)
14329       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14330       hardcode_shlibpath_var=no
14331       export_dynamic_flag_spec='${wl}-Bexport'
14332       runpath_var=LD_RUN_PATH
14333       hardcode_runpath_var=yes
14334       ;;
14335
14336     solaris*)
14337       no_undefined_flag=' -z text'
14338       if test "$GCC" = yes; then
14339         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14340         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14341           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14342       else
14343         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14344         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14345         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14346       fi
14347       hardcode_libdir_flag_spec='-R$libdir'
14348       hardcode_shlibpath_var=no
14349       case $host_os in
14350       solaris2.[0-5] | solaris2.[0-5].*) ;;
14351       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14352         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14353       esac
14354       link_all_deplibs=yes
14355       ;;
14356
14357     sunos4*)
14358       if test "x$host_vendor" = xsequent; then
14359         # Use $CC to link under sequent, because it throws in some extra .o
14360         # files that make .init and .fini sections work.
14361         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14362       else
14363         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14364       fi
14365       hardcode_libdir_flag_spec='-L$libdir'
14366       hardcode_direct=yes
14367       hardcode_minus_L=yes
14368       hardcode_shlibpath_var=no
14369       ;;
14370
14371     sysv4)
14372       case $host_vendor in
14373         sni)
14374           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14375           hardcode_direct=yes # is this really true???
14376         ;;
14377         siemens)
14378           ## LD is ld it makes a PLAMLIB
14379           ## CC just makes a GrossModule.
14380           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14381           reload_cmds='$CC -r -o $output$reload_objs'
14382           hardcode_direct=no
14383         ;;
14384         motorola)
14385           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14386           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14387         ;;
14388       esac
14389       runpath_var='LD_RUN_PATH'
14390       hardcode_shlibpath_var=no
14391       ;;
14392
14393     sysv4.3*)
14394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14395       hardcode_shlibpath_var=no
14396       export_dynamic_flag_spec='-Bexport'
14397       ;;
14398
14399     sysv4*MP*)
14400       if test -d /usr/nec; then
14401         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14402         hardcode_shlibpath_var=no
14403         runpath_var=LD_RUN_PATH
14404         hardcode_runpath_var=yes
14405         ld_shlibs=yes
14406       fi
14407       ;;
14408
14409     sysv4.2uw2*)
14410       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14411       hardcode_direct=yes
14412       hardcode_minus_L=no
14413       hardcode_shlibpath_var=no
14414       hardcode_runpath_var=yes
14415       runpath_var=LD_RUN_PATH
14416       ;;
14417
14418    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14419       no_undefined_flag='${wl}-z ${wl}text'
14420       if test "$GCC" = yes; then
14421         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14422       else
14423         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14424       fi
14425       runpath_var='LD_RUN_PATH'
14426       hardcode_shlibpath_var=no
14427       ;;
14428
14429     sysv5*)
14430       no_undefined_flag=' -z text'
14431       # $CC -shared without GNU ld will not create a library from C++
14432       # object files and a static libstdc++, better avoid it by now
14433       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14434       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14435                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14436       hardcode_libdir_flag_spec=
14437       hardcode_shlibpath_var=no
14438       runpath_var='LD_RUN_PATH'
14439       ;;
14440
14441     uts4*)
14442       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14443       hardcode_libdir_flag_spec='-L$libdir'
14444       hardcode_shlibpath_var=no
14445       ;;
14446
14447     *)
14448       ld_shlibs=no
14449       ;;
14450     esac
14451   fi
14452
14453 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14454 echo "${ECHO_T}$ld_shlibs" >&6
14455 test "$ld_shlibs" = no && can_build_shared=no
14456
14457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14458 if test "$GCC" = yes; then
14459   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14460 fi
14461
14462 #
14463 # Do we need to explicitly link libc?
14464 #
14465 case "x$archive_cmds_need_lc" in
14466 x|xyes)
14467   # Assume -lc should be added
14468   archive_cmds_need_lc=yes
14469
14470   if test "$enable_shared" = yes && test "$GCC" = yes; then
14471     case $archive_cmds in
14472     *'~'*)
14473       # FIXME: we may have to deal with multi-command sequences.
14474       ;;
14475     '$CC '*)
14476       # Test whether the compiler implicitly links with -lc since on some
14477       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14478       # to ld, don't add -lc before -lgcc.
14479       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14480 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14481       $rm conftest*
14482       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14483
14484       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485   (eval $ac_compile) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); } 2>conftest.err; then
14489         soname=conftest
14490         lib=conftest
14491         libobjs=conftest.$ac_objext
14492         deplibs=
14493         wl=$lt_prog_compiler_wl
14494         compiler_flags=-v
14495         linker_flags=-v
14496         verstring=
14497         output_objdir=.
14498         libname=conftest
14499         lt_save_allow_undefined_flag=$allow_undefined_flag
14500         allow_undefined_flag=
14501         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14502   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }
14506         then
14507           archive_cmds_need_lc=no
14508         else
14509           archive_cmds_need_lc=yes
14510         fi
14511         allow_undefined_flag=$lt_save_allow_undefined_flag
14512       else
14513         cat conftest.err 1>&5
14514       fi
14515       $rm conftest*
14516       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14517 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14518       ;;
14519     esac
14520   fi
14521   ;;
14522 esac
14523
14524 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14525 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14526 library_names_spec=
14527 libname_spec='lib$name'
14528 soname_spec=
14529 shrext_cmds=".so"
14530 postinstall_cmds=
14531 postuninstall_cmds=
14532 finish_cmds=
14533 finish_eval=
14534 shlibpath_var=
14535 shlibpath_overrides_runpath=unknown
14536 version_type=none
14537 dynamic_linker="$host_os ld.so"
14538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14539 if test "$GCC" = yes; then
14540   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14541   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14542     # if the path contains ";" then we assume it to be the separator
14543     # otherwise default to the standard path separator (i.e. ":") - it is
14544     # assumed that no part of a normal pathname contains ";" but that should
14545     # okay in the real world where ";" in dirpaths is itself problematic.
14546     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14547   else
14548     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14549   fi
14550 else
14551   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14552 fi
14553 need_lib_prefix=unknown
14554 hardcode_into_libs=no
14555
14556 # when you set need_version to no, make sure it does not cause -set_version
14557 # flags to be left without arguments
14558 need_version=unknown
14559
14560 case $host_os in
14561 aix3*)
14562   version_type=linux
14563   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14564   shlibpath_var=LIBPATH
14565
14566   # AIX 3 has no versioning support, so we append a major version to the name.
14567   soname_spec='${libname}${release}${shared_ext}$major'
14568   ;;
14569
14570 aix4* | aix5*)
14571   version_type=linux
14572   need_lib_prefix=no
14573   need_version=no
14574   hardcode_into_libs=yes
14575   if test "$host_cpu" = ia64; then
14576     # AIX 5 supports IA64
14577     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14578     shlibpath_var=LD_LIBRARY_PATH
14579   else
14580     # With GCC up to 2.95.x, collect2 would create an import file
14581     # for dependence libraries.  The import file would start with
14582     # the line `#! .'.  This would cause the generated library to
14583     # depend on `.', always an invalid library.  This was fixed in
14584     # development snapshots of GCC prior to 3.0.
14585     case $host_os in
14586       aix4 | aix4.[01] | aix4.[01].*)
14587       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14588            echo ' yes '
14589            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14590         :
14591       else
14592         can_build_shared=no
14593       fi
14594       ;;
14595     esac
14596     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14597     # soname into executable. Probably we can add versioning support to
14598     # collect2, so additional links can be useful in future.
14599     if test "$aix_use_runtimelinking" = yes; then
14600       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14601       # instead of lib<name>.a to let people know that these are not
14602       # typical AIX shared libraries.
14603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604     else
14605       # We preserve .a as extension for shared libraries through AIX4.2
14606       # and later when we are not doing run time linking.
14607       library_names_spec='${libname}${release}.a $libname.a'
14608       soname_spec='${libname}${release}${shared_ext}$major'
14609     fi
14610     shlibpath_var=LIBPATH
14611   fi
14612   ;;
14613
14614 amigaos*)
14615   library_names_spec='$libname.ixlibrary $libname.a'
14616   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14617   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'
14618   ;;
14619
14620 beos*)
14621   library_names_spec='${libname}${shared_ext}'
14622   dynamic_linker="$host_os ld.so"
14623   shlibpath_var=LIBRARY_PATH
14624   ;;
14625
14626 bsdi4*)
14627   version_type=linux
14628   need_version=no
14629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630   soname_spec='${libname}${release}${shared_ext}$major'
14631   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14634   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14635   # the default ld.so.conf also contains /usr/contrib/lib and
14636   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14637   # libtool to hard-code these into programs
14638   ;;
14639
14640 cygwin* | mingw* | pw32*)
14641   version_type=windows
14642   shrext_cmds=".dll"
14643   need_version=no
14644   need_lib_prefix=no
14645
14646   case $GCC,$host_os in
14647   yes,cygwin* | yes,mingw* | yes,pw32*)
14648     library_names_spec='$libname.dll.a'
14649     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14650     postinstall_cmds='base_file=`basename \${file}`~
14651       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14652       dldir=$destdir/`dirname \$dlpath`~
14653       test -d \$dldir || mkdir -p \$dldir~
14654       $install_prog $dir/$dlname \$dldir/$dlname'
14655     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14656       dlpath=$dir/\$dldll~
14657        $rm \$dlpath'
14658     shlibpath_overrides_runpath=yes
14659
14660     case $host_os in
14661     cygwin*)
14662       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14663       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14664       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14665       ;;
14666     mingw*)
14667       # MinGW DLLs use traditional 'lib' prefix
14668       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14669       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14670       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14671         # It is most probably a Windows format PATH printed by
14672         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14673         # path with ; separators, and with drive letters. We can handle the
14674         # drive letters (cygwin fileutils understands them), so leave them,
14675         # especially as we might pass files found there to a mingw objdump,
14676         # which wouldn't understand a cygwinified path. Ahh.
14677         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14678       else
14679         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14680       fi
14681       ;;
14682     pw32*)
14683       # pw32 DLLs use 'pw' prefix rather than 'lib'
14684       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14685       ;;
14686     esac
14687     ;;
14688
14689   *)
14690     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14691     ;;
14692   esac
14693   dynamic_linker='Win32 ld.exe'
14694   # FIXME: first we should search . and the directory the executable is in
14695   shlibpath_var=PATH
14696   ;;
14697
14698 darwin* | rhapsody*)
14699   dynamic_linker="$host_os dyld"
14700   version_type=darwin
14701   need_lib_prefix=no
14702   need_version=no
14703   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14704   soname_spec='${libname}${release}${major}$shared_ext'
14705   shlibpath_overrides_runpath=yes
14706   shlibpath_var=DYLD_LIBRARY_PATH
14707   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14708   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14709   if test "$GCC" = yes; then
14710     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"`
14711   else
14712     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14713   fi
14714   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14715   ;;
14716
14717 dgux*)
14718   version_type=linux
14719   need_lib_prefix=no
14720   need_version=no
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14722   soname_spec='${libname}${release}${shared_ext}$major'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   ;;
14725
14726 freebsd1*)
14727   dynamic_linker=no
14728   ;;
14729
14730 kfreebsd*-gnu)
14731   version_type=linux
14732   need_lib_prefix=no
14733   need_version=no
14734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14735   soname_spec='${libname}${release}${shared_ext}$major'
14736   shlibpath_var=LD_LIBRARY_PATH
14737   shlibpath_overrides_runpath=no
14738   hardcode_into_libs=yes
14739   dynamic_linker='GNU ld.so'
14740   ;;
14741
14742 freebsd*)
14743   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14744   version_type=freebsd-$objformat
14745   case $version_type in
14746     freebsd-elf*)
14747       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14748       need_version=no
14749       need_lib_prefix=no
14750       ;;
14751     freebsd-*)
14752       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14753       need_version=yes
14754       ;;
14755   esac
14756   shlibpath_var=LD_LIBRARY_PATH
14757   case $host_os in
14758   freebsd2*)
14759     shlibpath_overrides_runpath=yes
14760     ;;
14761   freebsd3.01* | freebsdelf3.01*)
14762     shlibpath_overrides_runpath=yes
14763     hardcode_into_libs=yes
14764     ;;
14765   *) # from 3.2 on
14766     shlibpath_overrides_runpath=no
14767     hardcode_into_libs=yes
14768     ;;
14769   esac
14770   ;;
14771
14772 gnu*)
14773   version_type=linux
14774   need_lib_prefix=no
14775   need_version=no
14776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14777   soname_spec='${libname}${release}${shared_ext}$major'
14778   shlibpath_var=LD_LIBRARY_PATH
14779   hardcode_into_libs=yes
14780   ;;
14781
14782 hpux9* | hpux10* | hpux11*)
14783   # Give a soname corresponding to the major version so that dld.sl refuses to
14784   # link against other versions.
14785   version_type=sunos
14786   need_lib_prefix=no
14787   need_version=no
14788   case "$host_cpu" in
14789   ia64*)
14790     shrext_cmds='.so'
14791     hardcode_into_libs=yes
14792     dynamic_linker="$host_os dld.so"
14793     shlibpath_var=LD_LIBRARY_PATH
14794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796     soname_spec='${libname}${release}${shared_ext}$major'
14797     if test "X$HPUX_IA64_MODE" = X32; then
14798       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14799     else
14800       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14801     fi
14802     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14803     ;;
14804    hppa*64*)
14805      shrext_cmds='.sl'
14806      hardcode_into_libs=yes
14807      dynamic_linker="$host_os dld.sl"
14808      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14809      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14810      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811      soname_spec='${libname}${release}${shared_ext}$major'
14812      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14813      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14814      ;;
14815    *)
14816     shrext_cmds='.sl'
14817     dynamic_linker="$host_os dld.sl"
14818     shlibpath_var=SHLIB_PATH
14819     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821     soname_spec='${libname}${release}${shared_ext}$major'
14822     ;;
14823   esac
14824   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14825   postinstall_cmds='chmod 555 $lib'
14826   ;;
14827
14828 irix5* | irix6* | nonstopux*)
14829   case $host_os in
14830     nonstopux*) version_type=nonstopux ;;
14831     *)
14832         if test "$lt_cv_prog_gnu_ld" = yes; then
14833                 version_type=linux
14834         else
14835                 version_type=irix
14836         fi ;;
14837   esac
14838   need_lib_prefix=no
14839   need_version=no
14840   soname_spec='${libname}${release}${shared_ext}$major'
14841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14842   case $host_os in
14843   irix5* | nonstopux*)
14844     libsuff= shlibsuff=
14845     ;;
14846   *)
14847     case $LD in # libtool.m4 will add one of these switches to LD
14848     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14849       libsuff= shlibsuff= libmagic=32-bit;;
14850     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14851       libsuff=32 shlibsuff=N32 libmagic=N32;;
14852     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14853       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14854     *) libsuff= shlibsuff= libmagic=never-match;;
14855     esac
14856     ;;
14857   esac
14858   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14859   shlibpath_overrides_runpath=no
14860   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14861   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14862   hardcode_into_libs=yes
14863   ;;
14864
14865 # No shared lib support for Linux oldld, aout, or coff.
14866 linux*oldld* | linux*aout* | linux*coff*)
14867   dynamic_linker=no
14868   ;;
14869
14870 # This must be Linux ELF.
14871 linux*)
14872   version_type=linux
14873   need_lib_prefix=no
14874   need_version=no
14875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876   soname_spec='${libname}${release}${shared_ext}$major'
14877   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14878   shlibpath_var=LD_LIBRARY_PATH
14879   shlibpath_overrides_runpath=no
14880   # This implies no fast_install, which is unacceptable.
14881   # Some rework will be needed to allow for fast_install
14882   # before this can be enabled.
14883   hardcode_into_libs=yes
14884
14885   # find out which ABI we are using
14886   libsuff=
14887   case "$host_cpu" in
14888   x86_64*|s390x*|powerpc64*)
14889     echo '#line 14889 "configure"' > conftest.$ac_ext
14890     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14891   (eval $ac_compile) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; then
14895       case `/usr/bin/file conftest.$ac_objext` in
14896       *64-bit*)
14897         libsuff=64
14898         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14899         ;;
14900       esac
14901     fi
14902     rm -rf conftest*
14903     ;;
14904   esac
14905
14906   # Append ld.so.conf contents to the search path
14907   if test -f /etc/ld.so.conf; then
14908     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14909     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14910   fi
14911
14912   # We used to test for /lib/ld.so.1 and disable shared libraries on
14913   # powerpc, because MkLinux only supported shared libraries with the
14914   # GNU dynamic linker.  Since this was broken with cross compilers,
14915   # most powerpc-linux boxes support dynamic linking these days and
14916   # people can always --disable-shared, the test was removed, and we
14917   # assume the GNU/Linux dynamic linker is in use.
14918   dynamic_linker='GNU/Linux ld.so'
14919   ;;
14920
14921 knetbsd*-gnu)
14922   version_type=linux
14923   need_lib_prefix=no
14924   need_version=no
14925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14926   soname_spec='${libname}${release}${shared_ext}$major'
14927   shlibpath_var=LD_LIBRARY_PATH
14928   shlibpath_overrides_runpath=no
14929   hardcode_into_libs=yes
14930   dynamic_linker='GNU ld.so'
14931   ;;
14932
14933 netbsd*)
14934   version_type=sunos
14935   need_lib_prefix=no
14936   need_version=no
14937   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14939     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14940     dynamic_linker='NetBSD (a.out) ld.so'
14941   else
14942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14943     soname_spec='${libname}${release}${shared_ext}$major'
14944     dynamic_linker='NetBSD ld.elf_so'
14945   fi
14946   shlibpath_var=LD_LIBRARY_PATH
14947   shlibpath_overrides_runpath=yes
14948   hardcode_into_libs=yes
14949   ;;
14950
14951 newsos6)
14952   version_type=linux
14953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954   shlibpath_var=LD_LIBRARY_PATH
14955   shlibpath_overrides_runpath=yes
14956   ;;
14957
14958 nto-qnx*)
14959   version_type=linux
14960   need_lib_prefix=no
14961   need_version=no
14962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963   soname_spec='${libname}${release}${shared_ext}$major'
14964   shlibpath_var=LD_LIBRARY_PATH
14965   shlibpath_overrides_runpath=yes
14966   ;;
14967
14968 openbsd*)
14969   version_type=sunos
14970   need_lib_prefix=no
14971   need_version=yes
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976     case $host_os in
14977       openbsd2.[89] | openbsd2.[89].*)
14978         shlibpath_overrides_runpath=no
14979         ;;
14980       *)
14981         shlibpath_overrides_runpath=yes
14982         ;;
14983       esac
14984   else
14985     shlibpath_overrides_runpath=yes
14986   fi
14987   ;;
14988
14989 os2*)
14990   libname_spec='$name'
14991   shrext_cmds=".dll"
14992   need_lib_prefix=no
14993   library_names_spec='$libname${shared_ext} $libname.a'
14994   dynamic_linker='OS/2 ld.exe'
14995   shlibpath_var=LIBPATH
14996   ;;
14997
14998 osf3* | osf4* | osf5*)
14999   version_type=osf
15000   need_lib_prefix=no
15001   need_version=no
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   shlibpath_var=LD_LIBRARY_PATH
15005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15007   ;;
15008
15009 sco3.2v5*)
15010   version_type=osf
15011   soname_spec='${libname}${release}${shared_ext}$major'
15012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013   shlibpath_var=LD_LIBRARY_PATH
15014   ;;
15015
15016 solaris*)
15017   version_type=linux
15018   need_lib_prefix=no
15019   need_version=no
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021   soname_spec='${libname}${release}${shared_ext}$major'
15022   shlibpath_var=LD_LIBRARY_PATH
15023   shlibpath_overrides_runpath=yes
15024   hardcode_into_libs=yes
15025   # ldd complains unless libraries are executable
15026   postinstall_cmds='chmod +x $lib'
15027   ;;
15028
15029 sunos4*)
15030   version_type=sunos
15031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15032   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15033   shlibpath_var=LD_LIBRARY_PATH
15034   shlibpath_overrides_runpath=yes
15035   if test "$with_gnu_ld" = yes; then
15036     need_lib_prefix=no
15037   fi
15038   need_version=yes
15039   ;;
15040
15041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15042   version_type=linux
15043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044   soname_spec='${libname}${release}${shared_ext}$major'
15045   shlibpath_var=LD_LIBRARY_PATH
15046   case $host_vendor in
15047     sni)
15048       shlibpath_overrides_runpath=no
15049       need_lib_prefix=no
15050       export_dynamic_flag_spec='${wl}-Blargedynsym'
15051       runpath_var=LD_RUN_PATH
15052       ;;
15053     siemens)
15054       need_lib_prefix=no
15055       ;;
15056     motorola)
15057       need_lib_prefix=no
15058       need_version=no
15059       shlibpath_overrides_runpath=no
15060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15061       ;;
15062   esac
15063   ;;
15064
15065 sysv4*MP*)
15066   if test -d /usr/nec ;then
15067     version_type=linux
15068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15069     soname_spec='$libname${shared_ext}.$major'
15070     shlibpath_var=LD_LIBRARY_PATH
15071   fi
15072   ;;
15073
15074 uts4*)
15075   version_type=linux
15076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15077   soname_spec='${libname}${release}${shared_ext}$major'
15078   shlibpath_var=LD_LIBRARY_PATH
15079   ;;
15080
15081 *)
15082   dynamic_linker=no
15083   ;;
15084 esac
15085 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15086 echo "${ECHO_T}$dynamic_linker" >&6
15087 test "$dynamic_linker" = no && can_build_shared=no
15088
15089 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15090 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15091 hardcode_action=
15092 if test -n "$hardcode_libdir_flag_spec" || \
15093    test -n "$runpath_var " || \
15094    test "X$hardcode_automatic"="Xyes" ; then
15095
15096   # We can hardcode non-existant directories.
15097   if test "$hardcode_direct" != no &&
15098      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15099      # have to relink, otherwise we might link with an installed library
15100      # when we should be linking with a yet-to-be-installed one
15101      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15102      test "$hardcode_minus_L" != no; then
15103     # Linking always hardcodes the temporary library directory.
15104     hardcode_action=relink
15105   else
15106     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15107     hardcode_action=immediate
15108   fi
15109 else
15110   # We cannot hardcode anything, or else we can only hardcode existing
15111   # directories.
15112   hardcode_action=unsupported
15113 fi
15114 echo "$as_me:$LINENO: result: $hardcode_action" >&5
15115 echo "${ECHO_T}$hardcode_action" >&6
15116
15117 if test "$hardcode_action" = relink; then
15118   # Fast installation is not supported
15119   enable_fast_install=no
15120 elif test "$shlibpath_overrides_runpath" = yes ||
15121      test "$enable_shared" = no; then
15122   # Fast installation is not necessary
15123   enable_fast_install=needless
15124 fi
15125
15126 striplib=
15127 old_striplib=
15128 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15129 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15130 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15131   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15132   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15133   echo "$as_me:$LINENO: result: yes" >&5
15134 echo "${ECHO_T}yes" >&6
15135 else
15136 # FIXME - insert some real tests, host_os isn't really good enough
15137   case $host_os in
15138    darwin*)
15139        if test -n "$STRIP" ; then
15140          striplib="$STRIP -x"
15141          echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15143        else
15144   echo "$as_me:$LINENO: result: no" >&5
15145 echo "${ECHO_T}no" >&6
15146 fi
15147        ;;
15148    *)
15149   echo "$as_me:$LINENO: result: no" >&5
15150 echo "${ECHO_T}no" >&6
15151     ;;
15152   esac
15153 fi
15154
15155 if test "x$enable_dlopen" != xyes; then
15156   enable_dlopen=unknown
15157   enable_dlopen_self=unknown
15158   enable_dlopen_self_static=unknown
15159 else
15160   lt_cv_dlopen=no
15161   lt_cv_dlopen_libs=
15162
15163   case $host_os in
15164   beos*)
15165     lt_cv_dlopen="load_add_on"
15166     lt_cv_dlopen_libs=
15167     lt_cv_dlopen_self=yes
15168     ;;
15169
15170   mingw* | pw32*)
15171     lt_cv_dlopen="LoadLibrary"
15172     lt_cv_dlopen_libs=
15173    ;;
15174
15175   cygwin*)
15176     lt_cv_dlopen="dlopen"
15177     lt_cv_dlopen_libs=
15178    ;;
15179
15180   darwin*)
15181   # if libdl is installed we need to link against it
15182     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15183 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15184 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   ac_check_lib_save_LIBS=$LIBS
15188 LIBS="-ldl  $LIBS"
15189 cat >conftest.$ac_ext <<_ACEOF
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195
15196 /* Override any gcc2 internal prototype to avoid an error.  */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 /* We use char because int might match the return type of a gcc2
15201    builtin and then its argument prototype would still apply.  */
15202 char dlopen ();
15203 int
15204 main ()
15205 {
15206 dlopen ();
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15213   (eval $ac_link) 2>conftest.er1
15214   ac_status=$?
15215   grep -v '^ *+' conftest.er1 >conftest.err
15216   rm -f conftest.er1
15217   cat conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); } &&
15220          { ac_try='test -z "$ac_c_werror_flag"
15221                          || test ! -s conftest.err'
15222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223   (eval $ac_try) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; } &&
15227          { ac_try='test -s conftest$ac_exeext'
15228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229   (eval $ac_try) 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   ac_cv_lib_dl_dlopen=yes
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 ac_cv_lib_dl_dlopen=no
15239 fi
15240 rm -f conftest.err conftest.$ac_objext \
15241       conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15243 fi
15244 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15245 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15246 if test $ac_cv_lib_dl_dlopen = yes; then
15247   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15248 else
15249
15250     lt_cv_dlopen="dyld"
15251     lt_cv_dlopen_libs=
15252     lt_cv_dlopen_self=yes
15253
15254 fi
15255
15256    ;;
15257
15258   *)
15259     echo "$as_me:$LINENO: checking for shl_load" >&5
15260 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15261 if test "${ac_cv_func_shl_load+set}" = set; then
15262   echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264   cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15272 #define shl_load innocuous_shl_load
15273
15274 /* System header to define __stub macros and hopefully few prototypes,
15275     which can conflict with char shl_load (); below.
15276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15277     <limits.h> exists even on freestanding compilers.  */
15278
15279 #ifdef __STDC__
15280 # include <limits.h>
15281 #else
15282 # include <assert.h>
15283 #endif
15284
15285 #undef shl_load
15286
15287 /* Override any gcc2 internal prototype to avoid an error.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 {
15291 #endif
15292 /* We use char because int might match the return type of a gcc2
15293    builtin and then its argument prototype would still apply.  */
15294 char shl_load ();
15295 /* The GNU C library defines this for functions which it implements
15296     to always fail with ENOSYS.  Some functions are actually named
15297     something starting with __ and the normal name is an alias.  */
15298 #if defined (__stub_shl_load) || defined (__stub___shl_load)
15299 choke me
15300 #else
15301 char (*f) () = shl_load;
15302 #endif
15303 #ifdef __cplusplus
15304 }
15305 #endif
15306
15307 int
15308 main ()
15309 {
15310 return f != shl_load;
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15317   (eval $ac_link) 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } &&
15324          { ac_try='test -z "$ac_c_werror_flag"
15325                          || test ! -s conftest.err'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; } &&
15331          { ac_try='test -s conftest$ac_exeext'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_cv_func_shl_load=yes
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 ac_cv_func_shl_load=no
15343 fi
15344 rm -f conftest.err conftest.$ac_objext \
15345       conftest$ac_exeext conftest.$ac_ext
15346 fi
15347 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15348 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15349 if test $ac_cv_func_shl_load = yes; then
15350   lt_cv_dlopen="shl_load"
15351 else
15352   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15353 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15354 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357   ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-ldld  $LIBS"
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h.  */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h.  */
15365
15366 /* Override any gcc2 internal prototype to avoid an error.  */
15367 #ifdef __cplusplus
15368 extern "C"
15369 #endif
15370 /* We use char because int might match the return type of a gcc2
15371    builtin and then its argument prototype would still apply.  */
15372 char shl_load ();
15373 int
15374 main ()
15375 {
15376 shl_load ();
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15383   (eval $ac_link) 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -z "$ac_c_werror_flag"
15391                          || test ! -s conftest.err'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; } &&
15397          { ac_try='test -s conftest$ac_exeext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_cv_lib_dld_shl_load=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_cv_lib_dld_shl_load=no
15409 fi
15410 rm -f conftest.err conftest.$ac_objext \
15411       conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_check_lib_save_LIBS
15413 fi
15414 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15416 if test $ac_cv_lib_dld_shl_load = yes; then
15417   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15418 else
15419   echo "$as_me:$LINENO: checking for dlopen" >&5
15420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15421 if test "${ac_cv_func_dlopen+set}" = set; then
15422   echo $ECHO_N "(cached) $ECHO_C" >&6
15423 else
15424   cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h.  */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h.  */
15430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15432 #define dlopen innocuous_dlopen
15433
15434 /* System header to define __stub macros and hopefully few prototypes,
15435     which can conflict with char dlopen (); below.
15436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15437     <limits.h> exists even on freestanding compilers.  */
15438
15439 #ifdef __STDC__
15440 # include <limits.h>
15441 #else
15442 # include <assert.h>
15443 #endif
15444
15445 #undef dlopen
15446
15447 /* Override any gcc2 internal prototype to avoid an error.  */
15448 #ifdef __cplusplus
15449 extern "C"
15450 {
15451 #endif
15452 /* We use char because int might match the return type of a gcc2
15453    builtin and then its argument prototype would still apply.  */
15454 char dlopen ();
15455 /* The GNU C library defines this for functions which it implements
15456     to always fail with ENOSYS.  Some functions are actually named
15457     something starting with __ and the normal name is an alias.  */
15458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15459 choke me
15460 #else
15461 char (*f) () = dlopen;
15462 #endif
15463 #ifdef __cplusplus
15464 }
15465 #endif
15466
15467 int
15468 main ()
15469 {
15470 return f != dlopen;
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15477   (eval $ac_link) 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -z "$ac_c_werror_flag"
15485                          || test ! -s conftest.err'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; } &&
15491          { ac_try='test -s conftest$ac_exeext'
15492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493   (eval $ac_try) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); }; }; then
15497   ac_cv_func_dlopen=yes
15498 else
15499   echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ac_cv_func_dlopen=no
15503 fi
15504 rm -f conftest.err conftest.$ac_objext \
15505       conftest$ac_exeext conftest.$ac_ext
15506 fi
15507 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15509 if test $ac_cv_func_dlopen = yes; then
15510   lt_cv_dlopen="dlopen"
15511 else
15512   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   ac_check_lib_save_LIBS=$LIBS
15518 LIBS="-ldl  $LIBS"
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525
15526 /* Override any gcc2 internal prototype to avoid an error.  */
15527 #ifdef __cplusplus
15528 extern "C"
15529 #endif
15530 /* We use char because int might match the return type of a gcc2
15531    builtin and then its argument prototype would still apply.  */
15532 char dlopen ();
15533 int
15534 main ()
15535 {
15536 dlopen ();
15537   ;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543   (eval $ac_link) 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } &&
15550          { ac_try='test -z "$ac_c_werror_flag"
15551                          || test ! -s conftest.err'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; } &&
15557          { ac_try='test -s conftest$ac_exeext'
15558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559   (eval $ac_try) 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; }; then
15563   ac_cv_lib_dl_dlopen=yes
15564 else
15565   echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 ac_cv_lib_dl_dlopen=no
15569 fi
15570 rm -f conftest.err conftest.$ac_objext \
15571       conftest$ac_exeext conftest.$ac_ext
15572 LIBS=$ac_check_lib_save_LIBS
15573 fi
15574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15576 if test $ac_cv_lib_dl_dlopen = yes; then
15577   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15578 else
15579   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15580 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15581 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15582   echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584   ac_check_lib_save_LIBS=$LIBS
15585 LIBS="-lsvld  $LIBS"
15586 cat >conftest.$ac_ext <<_ACEOF
15587 /* confdefs.h.  */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h.  */
15592
15593 /* Override any gcc2 internal prototype to avoid an error.  */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 /* We use char because int might match the return type of a gcc2
15598    builtin and then its argument prototype would still apply.  */
15599 char dlopen ();
15600 int
15601 main ()
15602 {
15603 dlopen ();
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15610   (eval $ac_link) 2>conftest.er1
15611   ac_status=$?
15612   grep -v '^ *+' conftest.er1 >conftest.err
15613   rm -f conftest.er1
15614   cat conftest.err >&5
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); } &&
15617          { ac_try='test -z "$ac_c_werror_flag"
15618                          || test ! -s conftest.err'
15619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620   (eval $ac_try) 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; } &&
15624          { ac_try='test -s conftest$ac_exeext'
15625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626   (eval $ac_try) 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; }; then
15630   ac_cv_lib_svld_dlopen=yes
15631 else
15632   echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ac_cv_lib_svld_dlopen=no
15636 fi
15637 rm -f conftest.err conftest.$ac_objext \
15638       conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15640 fi
15641 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15642 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15643 if test $ac_cv_lib_svld_dlopen = yes; then
15644   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15645 else
15646   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15647 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15648 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15649   echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651   ac_check_lib_save_LIBS=$LIBS
15652 LIBS="-ldld  $LIBS"
15653 cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h.  */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h.  */
15659
15660 /* Override any gcc2 internal prototype to avoid an error.  */
15661 #ifdef __cplusplus
15662 extern "C"
15663 #endif
15664 /* We use char because int might match the return type of a gcc2
15665    builtin and then its argument prototype would still apply.  */
15666 char dld_link ();
15667 int
15668 main ()
15669 {
15670 dld_link ();
15671   ;
15672   return 0;
15673 }
15674 _ACEOF
15675 rm -f conftest.$ac_objext conftest$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677   (eval $ac_link) 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -z "$ac_c_werror_flag"
15685                          || test ! -s conftest.err'
15686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687   (eval $ac_try) 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; } &&
15691          { ac_try='test -s conftest$ac_exeext'
15692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693   (eval $ac_try) 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; }; then
15697   ac_cv_lib_dld_dld_link=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_cv_lib_dld_dld_link=no
15703 fi
15704 rm -f conftest.err conftest.$ac_objext \
15705       conftest$ac_exeext conftest.$ac_ext
15706 LIBS=$ac_check_lib_save_LIBS
15707 fi
15708 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15710 if test $ac_cv_lib_dld_dld_link = yes; then
15711   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15712 fi
15713
15714
15715 fi
15716
15717
15718 fi
15719
15720
15721 fi
15722
15723
15724 fi
15725
15726
15727 fi
15728
15729     ;;
15730   esac
15731
15732   if test "x$lt_cv_dlopen" != xno; then
15733     enable_dlopen=yes
15734   else
15735     enable_dlopen=no
15736   fi
15737
15738   case $lt_cv_dlopen in
15739   dlopen)
15740     save_CPPFLAGS="$CPPFLAGS"
15741     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15742
15743     save_LDFLAGS="$LDFLAGS"
15744     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15745
15746     save_LIBS="$LIBS"
15747     LIBS="$lt_cv_dlopen_libs $LIBS"
15748
15749     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15751 if test "${lt_cv_dlopen_self+set}" = set; then
15752   echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754           if test "$cross_compiling" = yes; then :
15755   lt_cv_dlopen_self=cross
15756 else
15757   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15758   lt_status=$lt_dlunknown
15759   cat > conftest.$ac_ext <<EOF
15760 #line 15760 "configure"
15761 #include "confdefs.h"
15762
15763 #if HAVE_DLFCN_H
15764 #include <dlfcn.h>
15765 #endif
15766
15767 #include <stdio.h>
15768
15769 #ifdef RTLD_GLOBAL
15770 #  define LT_DLGLOBAL           RTLD_GLOBAL
15771 #else
15772 #  ifdef DL_GLOBAL
15773 #    define LT_DLGLOBAL         DL_GLOBAL
15774 #  else
15775 #    define LT_DLGLOBAL         0
15776 #  endif
15777 #endif
15778
15779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15780    find out it does not work in some platform. */
15781 #ifndef LT_DLLAZY_OR_NOW
15782 #  ifdef RTLD_LAZY
15783 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15784 #  else
15785 #    ifdef DL_LAZY
15786 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15787 #    else
15788 #      ifdef RTLD_NOW
15789 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15790 #      else
15791 #        ifdef DL_NOW
15792 #          define LT_DLLAZY_OR_NOW      DL_NOW
15793 #        else
15794 #          define LT_DLLAZY_OR_NOW      0
15795 #        endif
15796 #      endif
15797 #    endif
15798 #  endif
15799 #endif
15800
15801 #ifdef __cplusplus
15802 extern "C" void exit (int);
15803 #endif
15804
15805 void fnord() { int i=42;}
15806 int main ()
15807 {
15808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15809   int status = $lt_dlunknown;
15810
15811   if (self)
15812     {
15813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15814       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15815       /* dlclose (self); */
15816     }
15817
15818     exit (status);
15819 }
15820 EOF
15821   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15822   (eval $ac_link) 2>&5
15823   ac_status=$?
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15826     (./conftest; exit; ) 2>/dev/null
15827     lt_status=$?
15828     case x$lt_status in
15829       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15830       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15831       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15832     esac
15833   else :
15834     # compilation failed
15835     lt_cv_dlopen_self=no
15836   fi
15837 fi
15838 rm -fr conftest*
15839
15840
15841 fi
15842 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15843 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15844
15845     if test "x$lt_cv_dlopen_self" = xyes; then
15846       LDFLAGS="$LDFLAGS $link_static_flag"
15847       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15848 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15849 if test "${lt_cv_dlopen_self_static+set}" = set; then
15850   echo $ECHO_N "(cached) $ECHO_C" >&6
15851 else
15852           if test "$cross_compiling" = yes; then :
15853   lt_cv_dlopen_self_static=cross
15854 else
15855   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15856   lt_status=$lt_dlunknown
15857   cat > conftest.$ac_ext <<EOF
15858 #line 15858 "configure"
15859 #include "confdefs.h"
15860
15861 #if HAVE_DLFCN_H
15862 #include <dlfcn.h>
15863 #endif
15864
15865 #include <stdio.h>
15866
15867 #ifdef RTLD_GLOBAL
15868 #  define LT_DLGLOBAL           RTLD_GLOBAL
15869 #else
15870 #  ifdef DL_GLOBAL
15871 #    define LT_DLGLOBAL         DL_GLOBAL
15872 #  else
15873 #    define LT_DLGLOBAL         0
15874 #  endif
15875 #endif
15876
15877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15878    find out it does not work in some platform. */
15879 #ifndef LT_DLLAZY_OR_NOW
15880 #  ifdef RTLD_LAZY
15881 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15882 #  else
15883 #    ifdef DL_LAZY
15884 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15885 #    else
15886 #      ifdef RTLD_NOW
15887 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15888 #      else
15889 #        ifdef DL_NOW
15890 #          define LT_DLLAZY_OR_NOW      DL_NOW
15891 #        else
15892 #          define LT_DLLAZY_OR_NOW      0
15893 #        endif
15894 #      endif
15895 #    endif
15896 #  endif
15897 #endif
15898
15899 #ifdef __cplusplus
15900 extern "C" void exit (int);
15901 #endif
15902
15903 void fnord() { int i=42;}
15904 int main ()
15905 {
15906   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15907   int status = $lt_dlunknown;
15908
15909   if (self)
15910     {
15911       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15912       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15913       /* dlclose (self); */
15914     }
15915
15916     exit (status);
15917 }
15918 EOF
15919   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15920   (eval $ac_link) 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15924     (./conftest; exit; ) 2>/dev/null
15925     lt_status=$?
15926     case x$lt_status in
15927       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15928       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15929       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15930     esac
15931   else :
15932     # compilation failed
15933     lt_cv_dlopen_self_static=no
15934   fi
15935 fi
15936 rm -fr conftest*
15937
15938
15939 fi
15940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15941 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15942     fi
15943
15944     CPPFLAGS="$save_CPPFLAGS"
15945     LDFLAGS="$save_LDFLAGS"
15946     LIBS="$save_LIBS"
15947     ;;
15948   esac
15949
15950   case $lt_cv_dlopen_self in
15951   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15952   *) enable_dlopen_self=unknown ;;
15953   esac
15954
15955   case $lt_cv_dlopen_self_static in
15956   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15957   *) enable_dlopen_self_static=unknown ;;
15958   esac
15959 fi
15960
15961
15962 # Report which librarie types wil actually be built
15963 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15964 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15965 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15966 echo "${ECHO_T}$can_build_shared" >&6
15967
15968 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15969 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15970 test "$can_build_shared" = "no" && enable_shared=no
15971
15972 # On AIX, shared libraries and static libraries use the same namespace, and
15973 # are all built from PIC.
15974 case "$host_os" in
15975 aix3*)
15976   test "$enable_shared" = yes && enable_static=no
15977   if test -n "$RANLIB"; then
15978     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15979     postinstall_cmds='$RANLIB $lib'
15980   fi
15981   ;;
15982
15983 aix4* | aix5*)
15984   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15985     test "$enable_shared" = yes && enable_static=no
15986   fi
15987   ;;
15988   darwin* | rhapsody*)
15989   if test "$GCC" = yes; then
15990     archive_cmds_need_lc=no
15991     case "$host_os" in
15992     rhapsody* | darwin1.[012])
15993       allow_undefined_flag='-undefined suppress'
15994       ;;
15995     *) # Darwin 1.3 on
15996       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15997         allow_undefined_flag='-flat_namespace -undefined suppress'
15998       else
15999         case ${MACOSX_DEPLOYMENT_TARGET} in
16000           10.[012])
16001             allow_undefined_flag='-flat_namespace -undefined suppress'
16002             ;;
16003           10.*)
16004             allow_undefined_flag='-undefined dynamic_lookup'
16005             ;;
16006         esac
16007       fi
16008       ;;
16009     esac
16010     output_verbose_link_cmd='echo'
16011     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
16012     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16013     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16014     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}'
16015     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}'
16016     hardcode_direct=no
16017     hardcode_automatic=yes
16018     hardcode_shlibpath_var=unsupported
16019     whole_archive_flag_spec='-all_load $convenience'
16020     link_all_deplibs=yes
16021   else
16022     ld_shlibs=no
16023   fi
16024     ;;
16025 esac
16026 echo "$as_me:$LINENO: result: $enable_shared" >&5
16027 echo "${ECHO_T}$enable_shared" >&6
16028
16029 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16030 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16031 # Make sure either enable_shared or enable_static is yes.
16032 test "$enable_shared" = yes || enable_static=yes
16033 echo "$as_me:$LINENO: result: $enable_static" >&5
16034 echo "${ECHO_T}$enable_static" >&6
16035
16036 # The else clause should only fire when bootstrapping the
16037 # libtool distribution, otherwise you forgot to ship ltmain.sh
16038 # with your package, and you will get complaints that there are
16039 # no rules to generate ltmain.sh.
16040 if test -f "$ltmain"; then
16041   # See if we are running on zsh, and set the options which allow our commands through
16042   # without removal of \ escapes.
16043   if test -n "${ZSH_VERSION+set}" ; then
16044     setopt NO_GLOB_SUBST
16045   fi
16046   # Now quote all the things that may contain metacharacters while being
16047   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16048   # variables and quote the copies for generation of the libtool script.
16049   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16050     SED SHELL STRIP \
16051     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16052     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16053     deplibs_check_method reload_flag reload_cmds need_locks \
16054     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16055     lt_cv_sys_global_symbol_to_c_name_address \
16056     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16057     old_postinstall_cmds old_postuninstall_cmds \
16058     compiler \
16059     CC \
16060     LD \
16061     lt_prog_compiler_wl \
16062     lt_prog_compiler_pic \
16063     lt_prog_compiler_static \
16064     lt_prog_compiler_no_builtin_flag \
16065     export_dynamic_flag_spec \
16066     thread_safe_flag_spec \
16067     whole_archive_flag_spec \
16068     enable_shared_with_static_runtimes \
16069     old_archive_cmds \
16070     old_archive_from_new_cmds \
16071     predep_objects \
16072     postdep_objects \
16073     predeps \
16074     postdeps \
16075     compiler_lib_search_path \
16076     archive_cmds \
16077     archive_expsym_cmds \
16078     postinstall_cmds \
16079     postuninstall_cmds \
16080     old_archive_from_expsyms_cmds \
16081     allow_undefined_flag \
16082     no_undefined_flag \
16083     export_symbols_cmds \
16084     hardcode_libdir_flag_spec \
16085     hardcode_libdir_flag_spec_ld \
16086     hardcode_libdir_separator \
16087     hardcode_automatic \
16088     module_cmds \
16089     module_expsym_cmds \
16090     lt_cv_prog_compiler_c_o \
16091     exclude_expsyms \
16092     include_expsyms; do
16093
16094     case $var in
16095     old_archive_cmds | \
16096     old_archive_from_new_cmds | \
16097     archive_cmds | \
16098     archive_expsym_cmds | \
16099     module_cmds | \
16100     module_expsym_cmds | \
16101     old_archive_from_expsyms_cmds | \
16102     export_symbols_cmds | \
16103     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16104     postinstall_cmds | postuninstall_cmds | \
16105     old_postinstall_cmds | old_postuninstall_cmds | \
16106     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16107       # Double-quote double-evaled strings.
16108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16109       ;;
16110     *)
16111       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16112       ;;
16113     esac
16114   done
16115
16116   case $lt_echo in
16117   *'\$0 --fallback-echo"')
16118     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16119     ;;
16120   esac
16121
16122 cfgfile="${ofile}T"
16123   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16124   $rm -f "$cfgfile"
16125   { echo "$as_me:$LINENO: creating $ofile" >&5
16126 echo "$as_me: creating $ofile" >&6;}
16127
16128   cat <<__EOF__ >> "$cfgfile"
16129 #! $SHELL
16130
16131 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16132 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16133 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16134 #
16135 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16136 # Free Software Foundation, Inc.
16137 #
16138 # This file is part of GNU Libtool:
16139 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16140 #
16141 # This program is free software; you can redistribute it and/or modify
16142 # it under the terms of the GNU General Public License as published by
16143 # the Free Software Foundation; either version 2 of the License, or
16144 # (at your option) any later version.
16145 #
16146 # This program is distributed in the hope that it will be useful, but
16147 # WITHOUT ANY WARRANTY; without even the implied warranty of
16148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16149 # General Public License for more details.
16150 #
16151 # You should have received a copy of the GNU General Public License
16152 # along with this program; if not, write to the Free Software
16153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16154 #
16155 # As a special exception to the GNU General Public License, if you
16156 # distribute this file as part of a program that contains a
16157 # configuration script generated by Autoconf, you may include it under
16158 # the same distribution terms that you use for the rest of that program.
16159
16160 # A sed program that does not truncate output.
16161 SED=$lt_SED
16162
16163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16164 Xsed="$SED -e s/^X//"
16165
16166 # The HP-UX ksh and POSIX shell print the target directory to stdout
16167 # if CDPATH is set.
16168 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
16169
16170 # The names of the tagged configurations supported by this script.
16171 available_tags=
16172
16173 # ### BEGIN LIBTOOL CONFIG
16174
16175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16176
16177 # Shell to use when invoking shell scripts.
16178 SHELL=$lt_SHELL
16179
16180 # Whether or not to build shared libraries.
16181 build_libtool_libs=$enable_shared
16182
16183 # Whether or not to build static libraries.
16184 build_old_libs=$enable_static
16185
16186 # Whether or not to add -lc for building shared libraries.
16187 build_libtool_need_lc=$archive_cmds_need_lc
16188
16189 # Whether or not to disallow shared libs when runtime libs are static
16190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16191
16192 # Whether or not to optimize for fast installation.
16193 fast_install=$enable_fast_install
16194
16195 # The host system.
16196 host_alias=$host_alias
16197 host=$host
16198
16199 # An echo program that does not interpret backslashes.
16200 echo=$lt_echo
16201
16202 # The archiver.
16203 AR=$lt_AR
16204 AR_FLAGS=$lt_AR_FLAGS
16205
16206 # A C compiler.
16207 LTCC=$lt_LTCC
16208
16209 # A language-specific compiler.
16210 CC=$lt_compiler
16211
16212 # Is the compiler the GNU C compiler?
16213 with_gcc=$GCC
16214
16215 # An ERE matcher.
16216 EGREP=$lt_EGREP
16217
16218 # The linker used to build libraries.
16219 LD=$lt_LD
16220
16221 # Whether we need hard or soft links.
16222 LN_S=$lt_LN_S
16223
16224 # A BSD-compatible nm program.
16225 NM=$lt_NM
16226
16227 # A symbol stripping program
16228 STRIP=$lt_STRIP
16229
16230 # Used to examine libraries when file_magic_cmd begins "file"
16231 MAGIC_CMD=$MAGIC_CMD
16232
16233 # Used on cygwin: DLL creation program.
16234 DLLTOOL="$DLLTOOL"
16235
16236 # Used on cygwin: object dumper.
16237 OBJDUMP="$OBJDUMP"
16238
16239 # Used on cygwin: assembler.
16240 AS="$AS"
16241
16242 # The name of the directory that contains temporary libtool files.
16243 objdir=$objdir
16244
16245 # How to create reloadable object files.
16246 reload_flag=$lt_reload_flag
16247 reload_cmds=$lt_reload_cmds
16248
16249 # How to pass a linker flag through the compiler.
16250 wl=$lt_lt_prog_compiler_wl
16251
16252 # Object file suffix (normally "o").
16253 objext="$ac_objext"
16254
16255 # Old archive suffix (normally "a").
16256 libext="$libext"
16257
16258 # Shared library suffix (normally ".so").
16259 shrext_cmds='$shrext_cmds'
16260
16261 # Executable file suffix (normally "").
16262 exeext="$exeext"
16263
16264 # Additional compiler flags for building library objects.
16265 pic_flag=$lt_lt_prog_compiler_pic
16266 pic_mode=$pic_mode
16267
16268 # What is the maximum length of a command?
16269 max_cmd_len=$lt_cv_sys_max_cmd_len
16270
16271 # Does compiler simultaneously support -c and -o options?
16272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16273
16274 # Must we lock files when doing compilation ?
16275 need_locks=$lt_need_locks
16276
16277 # Do we need the lib prefix for modules?
16278 need_lib_prefix=$need_lib_prefix
16279
16280 # Do we need a version for libraries?
16281 need_version=$need_version
16282
16283 # Whether dlopen is supported.
16284 dlopen_support=$enable_dlopen
16285
16286 # Whether dlopen of programs is supported.
16287 dlopen_self=$enable_dlopen_self
16288
16289 # Whether dlopen of statically linked programs is supported.
16290 dlopen_self_static=$enable_dlopen_self_static
16291
16292 # Compiler flag to prevent dynamic linking.
16293 link_static_flag=$lt_lt_prog_compiler_static
16294
16295 # Compiler flag to turn off builtin functions.
16296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16297
16298 # Compiler flag to allow reflexive dlopens.
16299 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16300
16301 # Compiler flag to generate shared objects directly from archives.
16302 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16303
16304 # Compiler flag to generate thread-safe objects.
16305 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16306
16307 # Library versioning type.
16308 version_type=$version_type
16309
16310 # Format of library name prefix.
16311 libname_spec=$lt_libname_spec
16312
16313 # List of archive names.  First name is the real one, the rest are links.
16314 # The last name is the one that the linker finds with -lNAME.
16315 library_names_spec=$lt_library_names_spec
16316
16317 # The coded name of the library, if different from the real name.
16318 soname_spec=$lt_soname_spec
16319
16320 # Commands used to build and install an old-style archive.
16321 RANLIB=$lt_RANLIB
16322 old_archive_cmds=$lt_old_archive_cmds
16323 old_postinstall_cmds=$lt_old_postinstall_cmds
16324 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16325
16326 # Create an old-style archive from a shared archive.
16327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16328
16329 # Create a temporary old-style archive to link instead of a shared archive.
16330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16331
16332 # Commands used to build and install a shared archive.
16333 archive_cmds=$lt_archive_cmds
16334 archive_expsym_cmds=$lt_archive_expsym_cmds
16335 postinstall_cmds=$lt_postinstall_cmds
16336 postuninstall_cmds=$lt_postuninstall_cmds
16337
16338 # Commands used to build a loadable module (assumed same as above if empty)
16339 module_cmds=$lt_module_cmds
16340 module_expsym_cmds=$lt_module_expsym_cmds
16341
16342 # Commands to strip libraries.
16343 old_striplib=$lt_old_striplib
16344 striplib=$lt_striplib
16345
16346 # Dependencies to place before the objects being linked to create a
16347 # shared library.
16348 predep_objects=$lt_predep_objects
16349
16350 # Dependencies to place after the objects being linked to create a
16351 # shared library.
16352 postdep_objects=$lt_postdep_objects
16353
16354 # Dependencies to place before the objects being linked to create a
16355 # shared library.
16356 predeps=$lt_predeps
16357
16358 # Dependencies to place after the objects being linked to create a
16359 # shared library.
16360 postdeps=$lt_postdeps
16361
16362 # The library search path used internally by the compiler when linking
16363 # a shared library.
16364 compiler_lib_search_path=$lt_compiler_lib_search_path
16365
16366 # Method to check whether dependent libraries are shared objects.
16367 deplibs_check_method=$lt_deplibs_check_method
16368
16369 # Command to use when deplibs_check_method == file_magic.
16370 file_magic_cmd=$lt_file_magic_cmd
16371
16372 # Flag that allows shared libraries with undefined symbols to be built.
16373 allow_undefined_flag=$lt_allow_undefined_flag
16374
16375 # Flag that forces no undefined symbols.
16376 no_undefined_flag=$lt_no_undefined_flag
16377
16378 # Commands used to finish a libtool library installation in a directory.
16379 finish_cmds=$lt_finish_cmds
16380
16381 # Same as above, but a single script fragment to be evaled but not shown.
16382 finish_eval=$lt_finish_eval
16383
16384 # Take the output of nm and produce a listing of raw symbols and C names.
16385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16386
16387 # Transform the output of nm in a proper C declaration
16388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16389
16390 # Transform the output of nm in a C name address pair
16391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16392
16393 # This is the shared library runtime path variable.
16394 runpath_var=$runpath_var
16395
16396 # This is the shared library path variable.
16397 shlibpath_var=$shlibpath_var
16398
16399 # Is shlibpath searched before the hard-coded library search path?
16400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16401
16402 # How to hardcode a shared library path into an executable.
16403 hardcode_action=$hardcode_action
16404
16405 # Whether we should hardcode library paths into libraries.
16406 hardcode_into_libs=$hardcode_into_libs
16407
16408 # Flag to hardcode \$libdir into a binary during linking.
16409 # This must work even if \$libdir does not exist.
16410 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16411
16412 # If ld is used when linking, flag to hardcode \$libdir into
16413 # a binary during linking. This must work even if \$libdir does
16414 # not exist.
16415 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16416
16417 # Whether we need a single -rpath flag with a separated argument.
16418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16419
16420 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16421 # resulting binary.
16422 hardcode_direct=$hardcode_direct
16423
16424 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16425 # resulting binary.
16426 hardcode_minus_L=$hardcode_minus_L
16427
16428 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16429 # the resulting binary.
16430 hardcode_shlibpath_var=$hardcode_shlibpath_var
16431
16432 # Set to yes if building a shared library automatically hardcodes DIR into the library
16433 # and all subsequent libraries and executables linked against it.
16434 hardcode_automatic=$hardcode_automatic
16435
16436 # Variables whose values should be saved in libtool wrapper scripts and
16437 # restored at relink time.
16438 variables_saved_for_relink="$variables_saved_for_relink"
16439
16440 # Whether libtool must link a program against all its dependency libraries.
16441 link_all_deplibs=$link_all_deplibs
16442
16443 # Compile-time system search path for libraries
16444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16445
16446 # Run-time system search path for libraries
16447 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16448
16449 # Fix the shell variable \$srcfile for the compiler.
16450 fix_srcfile_path="$fix_srcfile_path"
16451
16452 # Set to yes if exported symbols are required.
16453 always_export_symbols=$always_export_symbols
16454
16455 # The commands to list exported symbols.
16456 export_symbols_cmds=$lt_export_symbols_cmds
16457
16458 # The commands to extract the exported symbol list from a shared archive.
16459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16460
16461 # Symbols that should not be listed in the preloaded symbols.
16462 exclude_expsyms=$lt_exclude_expsyms
16463
16464 # Symbols that must always be exported.
16465 include_expsyms=$lt_include_expsyms
16466
16467 # ### END LIBTOOL CONFIG
16468
16469 __EOF__
16470
16471
16472   case $host_os in
16473   aix3*)
16474     cat <<\EOF >> "$cfgfile"
16475
16476 # AIX sometimes has problems with the GCC collect2 program.  For some
16477 # reason, if we set the COLLECT_NAMES environment variable, the problems
16478 # vanish in a puff of smoke.
16479 if test "X${COLLECT_NAMES+set}" != Xset; then
16480   COLLECT_NAMES=
16481   export COLLECT_NAMES
16482 fi
16483 EOF
16484     ;;
16485   esac
16486
16487   # We use sed instead of cat because bash on DJGPP gets confused if
16488   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16489   # text mode, it properly converts lines to CR/LF.  This bash problem
16490   # is reportedly fixed, but why not run on old versions too?
16491   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16492
16493   mv -f "$cfgfile" "$ofile" || \
16494     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16495   chmod +x "$ofile"
16496
16497 else
16498   # If there is no Makefile yet, we rely on a make rule to execute
16499   # `config.status --recheck' to rerun these tests and create the
16500   # libtool script then.
16501   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16502   if test -f "$ltmain_in"; then
16503     test -f Makefile && make "$ltmain"
16504   fi
16505 fi
16506
16507
16508 ac_ext=c
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16513
16514 CC="$lt_save_CC"
16515
16516
16517 # Check whether --with-tags or --without-tags was given.
16518 if test "${with_tags+set}" = set; then
16519   withval="$with_tags"
16520   tagnames="$withval"
16521 fi;
16522
16523 if test -f "$ltmain" && test -n "$tagnames"; then
16524   if test ! -f "${ofile}"; then
16525     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16526 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16527   fi
16528
16529   if test -z "$LTCC"; then
16530     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16531     if test -z "$LTCC"; then
16532       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16533 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16534     else
16535       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16536 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16537     fi
16538   fi
16539
16540   # Extract list of available tagged configurations in $ofile.
16541   # Note that this assumes the entire list is on one line.
16542   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16543
16544   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16545   for tagname in $tagnames; do
16546     IFS="$lt_save_ifs"
16547     # Check whether tagname contains only valid characters
16548     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16549     "") ;;
16550     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16551 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16552    { (exit 1); exit 1; }; }
16553         ;;
16554     esac
16555
16556     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16557     then
16558       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16559 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16560    { (exit 1); exit 1; }; }
16561     fi
16562
16563     # Update the list of available tags.
16564     if test -n "$tagname"; then
16565       echo appending configuration tag \"$tagname\" to $ofile
16566
16567       case $tagname in
16568       CXX)
16569         if test -n "$CXX" && test "X$CXX" != "Xno"; then
16570           ac_ext=cc
16571 ac_cpp='$CXXCPP $CPPFLAGS'
16572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16575
16576
16577
16578
16579 archive_cmds_need_lc_CXX=no
16580 allow_undefined_flag_CXX=
16581 always_export_symbols_CXX=no
16582 archive_expsym_cmds_CXX=
16583 export_dynamic_flag_spec_CXX=
16584 hardcode_direct_CXX=no
16585 hardcode_libdir_flag_spec_CXX=
16586 hardcode_libdir_flag_spec_ld_CXX=
16587 hardcode_libdir_separator_CXX=
16588 hardcode_minus_L_CXX=no
16589 hardcode_automatic_CXX=no
16590 module_cmds_CXX=
16591 module_expsym_cmds_CXX=
16592 link_all_deplibs_CXX=unknown
16593 old_archive_cmds_CXX=$old_archive_cmds
16594 no_undefined_flag_CXX=
16595 whole_archive_flag_spec_CXX=
16596 enable_shared_with_static_runtimes_CXX=no
16597
16598 # Dependencies to place before and after the object being linked:
16599 predep_objects_CXX=
16600 postdep_objects_CXX=
16601 predeps_CXX=
16602 postdeps_CXX=
16603 compiler_lib_search_path_CXX=
16604
16605 # Source file extension for C++ test sources.
16606 ac_ext=cc
16607
16608 # Object file extension for compiled C++ test sources.
16609 objext=o
16610 objext_CXX=$objext
16611
16612 # Code to be used in simple compile tests
16613 lt_simple_compile_test_code="int some_variable = 0;\n"
16614
16615 # Code to be used in simple link tests
16616 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16617
16618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16619
16620 # If no C compiler was specified, use CC.
16621 LTCC=${LTCC-"$CC"}
16622
16623 # Allow CC to be a program name with arguments.
16624 compiler=$CC
16625
16626
16627 # Allow CC to be a program name with arguments.
16628 lt_save_CC=$CC
16629 lt_save_LD=$LD
16630 lt_save_GCC=$GCC
16631 GCC=$GXX
16632 lt_save_with_gnu_ld=$with_gnu_ld
16633 lt_save_path_LD=$lt_cv_path_LD
16634 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16635   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16636 else
16637   unset lt_cv_prog_gnu_ld
16638 fi
16639 if test -n "${lt_cv_path_LDCXX+set}"; then
16640   lt_cv_path_LD=$lt_cv_path_LDCXX
16641 else
16642   unset lt_cv_path_LD
16643 fi
16644 test -z "${LDCXX+set}" || LD=$LDCXX
16645 CC=${CXX-"c++"}
16646 compiler=$CC
16647 compiler_CXX=$CC
16648 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16649
16650 # We don't want -fno-exception wen compiling C++ code, so set the
16651 # no_builtin_flag separately
16652 if test "$GXX" = yes; then
16653   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16654 else
16655   lt_prog_compiler_no_builtin_flag_CXX=
16656 fi
16657
16658 if test "$GXX" = yes; then
16659   # Set up default GNU C++ configuration
16660
16661
16662 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16663 if test "${with_gnu_ld+set}" = set; then
16664   withval="$with_gnu_ld"
16665   test "$withval" = no || with_gnu_ld=yes
16666 else
16667   with_gnu_ld=no
16668 fi;
16669 ac_prog=ld
16670 if test "$GCC" = yes; then
16671   # Check if gcc -print-prog-name=ld gives a path.
16672   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16673 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16674   case $host in
16675   *-*-mingw*)
16676     # gcc leaves a trailing carriage return which upsets mingw
16677     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16678   *)
16679     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16680   esac
16681   case $ac_prog in
16682     # Accept absolute paths.
16683     [\\/]* | ?:[\\/]*)
16684       re_direlt='/[^/][^/]*/\.\./'
16685       # Canonicalize the pathname of ld
16686       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16687       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16688         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16689       done
16690       test -z "$LD" && LD="$ac_prog"
16691       ;;
16692   "")
16693     # If it fails, then pretend we aren't using GCC.
16694     ac_prog=ld
16695     ;;
16696   *)
16697     # If it is relative, then search for the first ld in PATH.
16698     with_gnu_ld=unknown
16699     ;;
16700   esac
16701 elif test "$with_gnu_ld" = yes; then
16702   echo "$as_me:$LINENO: checking for GNU ld" >&5
16703 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16704 else
16705   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16706 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16707 fi
16708 if test "${lt_cv_path_LD+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   if test -z "$LD"; then
16712   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16713   for ac_dir in $PATH; do
16714     IFS="$lt_save_ifs"
16715     test -z "$ac_dir" && ac_dir=.
16716     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16717       lt_cv_path_LD="$ac_dir/$ac_prog"
16718       # Check to see if the program is GNU ld.  I'd rather use --version,
16719       # but apparently some GNU ld's only accept -v.
16720       # Break only if it was the GNU/non-GNU ld that we prefer.
16721       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16722       *GNU* | *'with BFD'*)
16723         test "$with_gnu_ld" != no && break
16724         ;;
16725       *)
16726         test "$with_gnu_ld" != yes && break
16727         ;;
16728       esac
16729     fi
16730   done
16731   IFS="$lt_save_ifs"
16732 else
16733   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16734 fi
16735 fi
16736
16737 LD="$lt_cv_path_LD"
16738 if test -n "$LD"; then
16739   echo "$as_me:$LINENO: result: $LD" >&5
16740 echo "${ECHO_T}$LD" >&6
16741 else
16742   echo "$as_me:$LINENO: result: no" >&5
16743 echo "${ECHO_T}no" >&6
16744 fi
16745 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16746 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16747    { (exit 1); exit 1; }; }
16748 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16749 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16750 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16754 case `$LD -v 2>&1 </dev/null` in
16755 *GNU* | *'with BFD'*)
16756   lt_cv_prog_gnu_ld=yes
16757   ;;
16758 *)
16759   lt_cv_prog_gnu_ld=no
16760   ;;
16761 esac
16762 fi
16763 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16764 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16765 with_gnu_ld=$lt_cv_prog_gnu_ld
16766
16767
16768
16769   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16770   # archiving commands below assume that GNU ld is being used.
16771   if test "$with_gnu_ld" = yes; then
16772     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773     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'
16774
16775     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16776     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16777
16778     # If archive_cmds runs LD, not CC, wlarc should be empty
16779     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16780     #     investigate it a little bit more. (MM)
16781     wlarc='${wl}'
16782
16783     # ancient GNU ld didn't support --whole-archive et. al.
16784     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16785         grep 'no-whole-archive' > /dev/null; then
16786       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16787     else
16788       whole_archive_flag_spec_CXX=
16789     fi
16790   else
16791     with_gnu_ld=no
16792     wlarc=
16793
16794     # A generic and very simple default shared library creation
16795     # command for GNU C++ for the case where it uses the native
16796     # linker, instead of GNU ld.  If possible, this setting should
16797     # overridden to take advantage of the native linker features on
16798     # the platform it is being used on.
16799     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16800   fi
16801
16802   # Commands to make compiler produce verbose output that lists
16803   # what "hidden" libraries, object files and flags are used when
16804   # linking a shared library.
16805   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16806
16807 else
16808   GXX=no
16809   with_gnu_ld=no
16810   wlarc=
16811 fi
16812
16813 # PORTME: fill in a description of your system's C++ link characteristics
16814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16816 ld_shlibs_CXX=yes
16817 case $host_os in
16818   aix3*)
16819     # FIXME: insert proper C++ library support
16820     ld_shlibs_CXX=no
16821     ;;
16822   aix4* | aix5*)
16823     if test "$host_cpu" = ia64; then
16824       # On IA64, the linker does run time linking by default, so we don't
16825       # have to do anything special.
16826       aix_use_runtimelinking=no
16827       exp_sym_flag='-Bexport'
16828       no_entry_flag=""
16829     else
16830       aix_use_runtimelinking=no
16831
16832       # Test if we are trying to use run time linking or normal
16833       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16834       # need to do runtime linking.
16835       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16836         for ld_flag in $LDFLAGS; do
16837           case $ld_flag in
16838           *-brtl*)
16839             aix_use_runtimelinking=yes
16840             break
16841             ;;
16842           esac
16843         done
16844       esac
16845
16846       exp_sym_flag='-bexport'
16847       no_entry_flag='-bnoentry'
16848     fi
16849
16850     # When large executables or shared objects are built, AIX ld can
16851     # have problems creating the table of contents.  If linking a library
16852     # or program results in "error TOC overflow" add -mminimal-toc to
16853     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16854     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16855
16856     archive_cmds_CXX=''
16857     hardcode_direct_CXX=yes
16858     hardcode_libdir_separator_CXX=':'
16859     link_all_deplibs_CXX=yes
16860
16861     if test "$GXX" = yes; then
16862       case $host_os in aix4.012|aix4.012.*)
16863       # We only want to do this on AIX 4.2 and lower, the check
16864       # below for broken collect2 doesn't work under 4.3+
16865         collect2name=`${CC} -print-prog-name=collect2`
16866         if test -f "$collect2name" && \
16867            strings "$collect2name" | grep resolve_lib_name >/dev/null
16868         then
16869           # We have reworked collect2
16870           hardcode_direct_CXX=yes
16871         else
16872           # We have old collect2
16873           hardcode_direct_CXX=unsupported
16874           # It fails to find uninstalled libraries when the uninstalled
16875           # path is not listed in the libpath.  Setting hardcode_minus_L
16876           # to unsupported forces relinking
16877           hardcode_minus_L_CXX=yes
16878           hardcode_libdir_flag_spec_CXX='-L$libdir'
16879           hardcode_libdir_separator_CXX=
16880         fi
16881       esac
16882       shared_flag='-shared'
16883     else
16884       # not using gcc
16885       if test "$host_cpu" = ia64; then
16886         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16887         # chokes on -Wl,-G. The following line is correct:
16888         shared_flag='-G'
16889       else
16890         if test "$aix_use_runtimelinking" = yes; then
16891           shared_flag='${wl}-G'
16892         else
16893           shared_flag='${wl}-bM:SRE'
16894         fi
16895       fi
16896     fi
16897
16898     # It seems that -bexpall does not export symbols beginning with
16899     # underscore (_), so it is better to generate a list of symbols to export.
16900     always_export_symbols_CXX=yes
16901     if test "$aix_use_runtimelinking" = yes; then
16902       # Warning - without using the other runtime loading flags (-brtl),
16903       # -berok will link without error, but may produce a broken library.
16904       allow_undefined_flag_CXX='-berok'
16905       # Determine the default libpath from the value encoded in an empty executable.
16906       cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912
16913 int
16914 main ()
16915 {
16916
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923   (eval $ac_link) 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } &&
16930          { ac_try='test -z "$ac_cxx_werror_flag"
16931                          || test ! -s conftest.err'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943
16944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16945 }'`
16946 # Check for a 64-bit object if we didn't find anything.
16947 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; }
16948 }'`; fi
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 fi
16954 rm -f conftest.err conftest.$ac_objext \
16955       conftest$ac_exeext conftest.$ac_ext
16956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16957
16958       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16959
16960       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16961      else
16962       if test "$host_cpu" = ia64; then
16963         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16964         allow_undefined_flag_CXX="-z nodefs"
16965         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16966       else
16967         # Determine the default libpath from the value encoded in an empty executable.
16968         cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974
16975 int
16976 main ()
16977 {
16978
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985   (eval $ac_link) 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } &&
16992          { ac_try='test -z "$ac_cxx_werror_flag"
16993                          || test ! -s conftest.err'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest$ac_exeext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005
17006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17007 }'`
17008 # Check for a 64-bit object if we didn't find anything.
17009 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; }
17010 }'`; fi
17011 else
17012   echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015 fi
17016 rm -f conftest.err conftest.$ac_objext \
17017       conftest$ac_exeext conftest.$ac_ext
17018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17019
17020         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17021         # Warning - without using the other run time loading flags,
17022         # -berok will link without error, but may produce a broken library.
17023         no_undefined_flag_CXX=' ${wl}-bernotok'
17024         allow_undefined_flag_CXX=' ${wl}-berok'
17025         # -bexpall does not export symbols beginning with underscore (_)
17026         always_export_symbols_CXX=yes
17027         # Exported symbols can be pulled into shared objects from archives
17028         whole_archive_flag_spec_CXX=' '
17029         archive_cmds_need_lc_CXX=yes
17030         # This is similar to how AIX traditionally builds it's shared libraries.
17031         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17032       fi
17033     fi
17034     ;;
17035   chorus*)
17036     case $cc_basename in
17037       *)
17038         # FIXME: insert proper C++ library support
17039         ld_shlibs_CXX=no
17040         ;;
17041     esac
17042     ;;
17043
17044   cygwin* | mingw* | pw32*)
17045     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17046     # as there is no search path for DLLs.
17047     hardcode_libdir_flag_spec_CXX='-L$libdir'
17048     allow_undefined_flag_CXX=unsupported
17049     always_export_symbols_CXX=no
17050     enable_shared_with_static_runtimes_CXX=yes
17051
17052     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17053       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17054       # If the export-symbols file already is a .def file (1st line
17055       # is EXPORTS), use it as is; otherwise, prepend...
17056       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17057         cp $export_symbols $output_objdir/$soname.def;
17058       else
17059         echo EXPORTS > $output_objdir/$soname.def;
17060         cat $export_symbols >> $output_objdir/$soname.def;
17061       fi~
17062       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17063     else
17064       ld_shlibs_CXX=no
17065     fi
17066   ;;
17067
17068   darwin* | rhapsody*)
17069   if test "$GXX" = yes; then
17070     archive_cmds_need_lc_CXX=no
17071     case "$host_os" in
17072     rhapsody* | darwin1.[012])
17073       allow_undefined_flag_CXX='-undefined suppress'
17074       ;;
17075     *) # Darwin 1.3 on
17076       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17077         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
17078       else
17079         case ${MACOSX_DEPLOYMENT_TARGET} in
17080           10.[012])
17081             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
17082             ;;
17083           10.*)
17084             allow_undefined_flag_CXX='-undefined dynamic_lookup'
17085             ;;
17086         esac
17087       fi
17088       ;;
17089     esac
17090     lt_int_apple_cc_single_mod=no
17091     output_verbose_link_cmd='echo'
17092     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17093       lt_int_apple_cc_single_mod=yes
17094     fi
17095     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17096       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17097     else
17098       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
17099     fi
17100     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17101
17102     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17103     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17104       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}'
17105     else
17106       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
17107     fi
17108     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}'
17109     hardcode_direct_CXX=no
17110     hardcode_automatic_CXX=yes
17111     hardcode_shlibpath_var_CXX=unsupported
17112     whole_archive_flag_spec_CXX='-all_load $convenience'
17113     link_all_deplibs_CXX=yes
17114   else
17115     ld_shlibs_CXX=no
17116   fi
17117     ;;
17118
17119   dgux*)
17120     case $cc_basename in
17121       ec++)
17122         # FIXME: insert proper C++ library support
17123         ld_shlibs_CXX=no
17124         ;;
17125       ghcx)
17126         # Green Hills C++ Compiler
17127         # FIXME: insert proper C++ library support
17128         ld_shlibs_CXX=no
17129         ;;
17130       *)
17131         # FIXME: insert proper C++ library support
17132         ld_shlibs_CXX=no
17133         ;;
17134     esac
17135     ;;
17136   freebsd12*)
17137     # C++ shared libraries reported to be fairly broken before switch to ELF
17138     ld_shlibs_CXX=no
17139     ;;
17140   freebsd-elf*)
17141     archive_cmds_need_lc_CXX=no
17142     ;;
17143   freebsd* | kfreebsd*-gnu)
17144     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17145     # conventions
17146     ld_shlibs_CXX=yes
17147     ;;
17148   gnu*)
17149     ;;
17150   hpux9*)
17151     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17152     hardcode_libdir_separator_CXX=:
17153     export_dynamic_flag_spec_CXX='${wl}-E'
17154     hardcode_direct_CXX=yes
17155     hardcode_minus_L_CXX=yes # Not in the search PATH,
17156                                 # but as the default
17157                                 # location of the library.
17158
17159     case $cc_basename in
17160     CC)
17161       # FIXME: insert proper C++ library support
17162       ld_shlibs_CXX=no
17163       ;;
17164     aCC)
17165       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'
17166       # Commands to make compiler produce verbose output that lists
17167       # what "hidden" libraries, object files and flags are used when
17168       # linking a shared library.
17169       #
17170       # There doesn't appear to be a way to prevent this compiler from
17171       # explicitly linking system object files so we need to strip them
17172       # from the output so that they don't get included in the library
17173       # dependencies.
17174       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'
17175       ;;
17176     *)
17177       if test "$GXX" = yes; then
17178         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'
17179       else
17180         # FIXME: insert proper C++ library support
17181         ld_shlibs_CXX=no
17182       fi
17183       ;;
17184     esac
17185     ;;
17186   hpux10*|hpux11*)
17187     if test $with_gnu_ld = no; then
17188       case "$host_cpu" in
17189       hppa*64*)
17190         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17191         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17192         hardcode_libdir_separator_CXX=:
17193         ;;
17194       ia64*)
17195         hardcode_libdir_flag_spec_CXX='-L$libdir'
17196         ;;
17197       *)
17198         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17199         hardcode_libdir_separator_CXX=:
17200         export_dynamic_flag_spec_CXX='${wl}-E'
17201         ;;
17202       esac
17203     fi
17204     case "$host_cpu" in
17205     hppa*64*)
17206       hardcode_direct_CXX=no
17207       hardcode_shlibpath_var_CXX=no
17208       ;;
17209     ia64*)
17210       hardcode_direct_CXX=no
17211       hardcode_shlibpath_var_CXX=no
17212       hardcode_minus_L_CXX=yes # Not in the search PATH,
17213                                               # but as the default
17214                                               # location of the library.
17215       ;;
17216     *)
17217       hardcode_direct_CXX=yes
17218       hardcode_minus_L_CXX=yes # Not in the search PATH,
17219                                               # but as the default
17220                                               # location of the library.
17221       ;;
17222     esac
17223
17224     case $cc_basename in
17225       CC)
17226         # FIXME: insert proper C++ library support
17227         ld_shlibs_CXX=no
17228         ;;
17229       aCC)
17230         case "$host_cpu" in
17231         hppa*64*|ia64*)
17232           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
17233           ;;
17234         *)
17235           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17236           ;;
17237         esac
17238         # Commands to make compiler produce verbose output that lists
17239         # what "hidden" libraries, object files and flags are used when
17240         # linking a shared library.
17241         #
17242         # There doesn't appear to be a way to prevent this compiler from
17243         # explicitly linking system object files so we need to strip them
17244         # from the output so that they don't get included in the library
17245         # dependencies.
17246         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'
17247         ;;
17248       *)
17249         if test "$GXX" = yes; then
17250           if test $with_gnu_ld = no; then
17251             case "$host_cpu" in
17252             ia64*|hppa*64*)
17253               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
17254               ;;
17255             *)
17256               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'
17257               ;;
17258             esac
17259           fi
17260         else
17261           # FIXME: insert proper C++ library support
17262           ld_shlibs_CXX=no
17263         fi
17264         ;;
17265     esac
17266     ;;
17267   irix5* | irix6*)
17268     case $cc_basename in
17269       CC)
17270         # SGI C++
17271         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 ${objdir}/so_locations -o $lib'
17272
17273         # Archives containing C++ object files must be created using
17274         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17275         # necessary to make sure instantiated templates are included
17276         # in the archive.
17277         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17278         ;;
17279       *)
17280         if test "$GXX" = yes; then
17281           if test "$with_gnu_ld" = no; then
17282             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}${objdir}/so_locations -o $lib'
17283           else
17284             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'
17285           fi
17286         fi
17287         link_all_deplibs_CXX=yes
17288         ;;
17289     esac
17290     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17291     hardcode_libdir_separator_CXX=:
17292     ;;
17293   linux*)
17294     case $cc_basename in
17295       KCC)
17296         # Kuck and Associates, Inc. (KAI) C++ Compiler
17297
17298         # KCC will only create a shared library if the output file
17299         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17300         # to its proper name (with version) after linking.
17301         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'
17302         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'
17303         # Commands to make compiler produce verbose output that lists
17304         # what "hidden" libraries, object files and flags are used when
17305         # linking a shared library.
17306         #
17307         # There doesn't appear to be a way to prevent this compiler from
17308         # explicitly linking system object files so we need to strip them
17309         # from the output so that they don't get included in the library
17310         # dependencies.
17311         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'
17312
17313         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17314         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17315
17316         # Archives containing C++ object files must be created using
17317         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17318         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17319         ;;
17320       icpc)
17321         # Intel C++
17322         with_gnu_ld=yes
17323         archive_cmds_need_lc_CXX=no
17324         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17325         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'
17326         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17327         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17328         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17329         ;;
17330       cxx)
17331         # Compaq C++
17332         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17333         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'
17334
17335         runpath_var=LD_RUN_PATH
17336         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17337         hardcode_libdir_separator_CXX=:
17338
17339         # Commands to make compiler produce verbose output that lists
17340         # what "hidden" libraries, object files and flags are used when
17341         # linking a shared library.
17342         #
17343         # There doesn't appear to be a way to prevent this compiler from
17344         # explicitly linking system object files so we need to strip them
17345         # from the output so that they don't get included in the library
17346         # dependencies.
17347         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'
17348         ;;
17349     esac
17350     ;;
17351   lynxos*)
17352     # FIXME: insert proper C++ library support
17353     ld_shlibs_CXX=no
17354     ;;
17355   m88k*)
17356     # FIXME: insert proper C++ library support
17357     ld_shlibs_CXX=no
17358     ;;
17359   mvs*)
17360     case $cc_basename in
17361       cxx)
17362         # FIXME: insert proper C++ library support
17363         ld_shlibs_CXX=no
17364         ;;
17365       *)
17366         # FIXME: insert proper C++ library support
17367         ld_shlibs_CXX=no
17368         ;;
17369     esac
17370     ;;
17371   netbsd*)
17372     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17373       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17374       wlarc=
17375       hardcode_libdir_flag_spec_CXX='-R$libdir'
17376       hardcode_direct_CXX=yes
17377       hardcode_shlibpath_var_CXX=no
17378     fi
17379     # Workaround some broken pre-1.5 toolchains
17380     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17381     ;;
17382   osf3*)
17383     case $cc_basename in
17384       KCC)
17385         # Kuck and Associates, Inc. (KAI) C++ Compiler
17386
17387         # KCC will only create a shared library if the output file
17388         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17389         # to its proper name (with version) after linking.
17390         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'
17391
17392         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17393         hardcode_libdir_separator_CXX=:
17394
17395         # Archives containing C++ object files must be created using
17396         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17397         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17398
17399         ;;
17400       RCC)
17401         # Rational C++ 2.4.1
17402         # FIXME: insert proper C++ library support
17403         ld_shlibs_CXX=no
17404         ;;
17405       cxx)
17406         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17407         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 ${objdir}/so_locations -o $lib'
17408
17409         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17410         hardcode_libdir_separator_CXX=:
17411
17412         # Commands to make compiler produce verbose output that lists
17413         # what "hidden" libraries, object files and flags are used when
17414         # linking a shared library.
17415         #
17416         # There doesn't appear to be a way to prevent this compiler from
17417         # explicitly linking system object files so we need to strip them
17418         # from the output so that they don't get included in the library
17419         # dependencies.
17420         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'
17421         ;;
17422       *)
17423         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17424           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17425           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}${objdir}/so_locations -o $lib'
17426
17427           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17428           hardcode_libdir_separator_CXX=:
17429
17430           # Commands to make compiler produce verbose output that lists
17431           # what "hidden" libraries, object files and flags are used when
17432           # linking a shared library.
17433           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17434
17435         else
17436           # FIXME: insert proper C++ library support
17437           ld_shlibs_CXX=no
17438         fi
17439         ;;
17440     esac
17441     ;;
17442   osf4* | osf5*)
17443     case $cc_basename in
17444       KCC)
17445         # Kuck and Associates, Inc. (KAI) C++ Compiler
17446
17447         # KCC will only create a shared library if the output file
17448         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17449         # to its proper name (with version) after linking.
17450         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'
17451
17452         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17453         hardcode_libdir_separator_CXX=:
17454
17455         # Archives containing C++ object files must be created using
17456         # the KAI C++ compiler.
17457         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17458         ;;
17459       RCC)
17460         # Rational C++ 2.4.1
17461         # FIXME: insert proper C++ library support
17462         ld_shlibs_CXX=no
17463         ;;
17464       cxx)
17465         allow_undefined_flag_CXX=' -expect_unresolved \*'
17466         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 ${objdir}/so_locations -o $lib'
17467         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17468           echo "-hidden">> $lib.exp~
17469           $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 $objdir/so_locations -o $lib~
17470           $rm $lib.exp'
17471
17472         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17473         hardcode_libdir_separator_CXX=:
17474
17475         # Commands to make compiler produce verbose output that lists
17476         # what "hidden" libraries, object files and flags are used when
17477         # linking a shared library.
17478         #
17479         # There doesn't appear to be a way to prevent this compiler from
17480         # explicitly linking system object files so we need to strip them
17481         # from the output so that they don't get included in the library
17482         # dependencies.
17483         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'
17484         ;;
17485       *)
17486         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17487           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17488          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}${objdir}/so_locations -o $lib'
17489
17490           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17491           hardcode_libdir_separator_CXX=:
17492
17493           # Commands to make compiler produce verbose output that lists
17494           # what "hidden" libraries, object files and flags are used when
17495           # linking a shared library.
17496           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17497
17498         else
17499           # FIXME: insert proper C++ library support
17500           ld_shlibs_CXX=no
17501         fi
17502         ;;
17503     esac
17504     ;;
17505   psos*)
17506     # FIXME: insert proper C++ library support
17507     ld_shlibs_CXX=no
17508     ;;
17509   sco*)
17510     archive_cmds_need_lc_CXX=no
17511     case $cc_basename in
17512       CC)
17513         # FIXME: insert proper C++ library support
17514         ld_shlibs_CXX=no
17515         ;;
17516       *)
17517         # FIXME: insert proper C++ library support
17518         ld_shlibs_CXX=no
17519         ;;
17520     esac
17521     ;;
17522   sunos4*)
17523     case $cc_basename in
17524       CC)
17525         # Sun C++ 4.x
17526         # FIXME: insert proper C++ library support
17527         ld_shlibs_CXX=no
17528         ;;
17529       lcc)
17530         # Lucid
17531         # FIXME: insert proper C++ library support
17532         ld_shlibs_CXX=no
17533         ;;
17534       *)
17535         # FIXME: insert proper C++ library support
17536         ld_shlibs_CXX=no
17537         ;;
17538     esac
17539     ;;
17540   solaris*)
17541     case $cc_basename in
17542       CC)
17543         # Sun C++ 4.2, 5.x and Centerline C++
17544         no_undefined_flag_CXX=' -zdefs'
17545         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17546         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17547         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17548
17549         hardcode_libdir_flag_spec_CXX='-R$libdir'
17550         hardcode_shlibpath_var_CXX=no
17551         case $host_os in
17552           solaris2.0-5 | solaris2.0-5.*) ;;
17553           *)
17554             # The C++ compiler is used as linker so we must use $wl
17555             # flag to pass the commands to the underlying system
17556             # linker.
17557             # Supported since Solaris 2.6 (maybe 2.5.1?)
17558             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17559             ;;
17560         esac
17561         link_all_deplibs_CXX=yes
17562
17563         # Commands to make compiler produce verbose output that lists
17564         # what "hidden" libraries, object files and flags are used when
17565         # linking a shared library.
17566         #
17567         # There doesn't appear to be a way to prevent this compiler from
17568         # explicitly linking system object files so we need to strip them
17569         # from the output so that they don't get included in the library
17570         # dependencies.
17571         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17572
17573         # Archives containing C++ object files must be created using
17574         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17575         # necessary to make sure instantiated templates are included
17576         # in the archive.
17577         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17578         ;;
17579       gcx)
17580         # Green Hills C++ Compiler
17581         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17582
17583         # The C++ compiler must be used to create the archive.
17584         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17585         ;;
17586       *)
17587         # GNU C++ compiler with Solaris linker
17588         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17589           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17590           if $CC --version | grep -v '^2\.7' > /dev/null; then
17591             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17592             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17593                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17594
17595             # Commands to make compiler produce verbose output that lists
17596             # what "hidden" libraries, object files and flags are used when
17597             # linking a shared library.
17598             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17599           else
17600             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17601             # platform.
17602             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17603             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17604                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17605
17606             # Commands to make compiler produce verbose output that lists
17607             # what "hidden" libraries, object files and flags are used when
17608             # linking a shared library.
17609             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17610           fi
17611
17612           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17613         fi
17614         ;;
17615     esac
17616     ;;
17617   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17618     archive_cmds_need_lc_CXX=no
17619     ;;
17620   tandem*)
17621     case $cc_basename in
17622       NCC)
17623         # NonStop-UX NCC 3.20
17624         # FIXME: insert proper C++ library support
17625         ld_shlibs_CXX=no
17626         ;;
17627       *)
17628         # FIXME: insert proper C++ library support
17629         ld_shlibs_CXX=no
17630         ;;
17631     esac
17632     ;;
17633   vxworks*)
17634     # FIXME: insert proper C++ library support
17635     ld_shlibs_CXX=no
17636     ;;
17637   *)
17638     # FIXME: insert proper C++ library support
17639     ld_shlibs_CXX=no
17640     ;;
17641 esac
17642 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17643 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17644 test "$ld_shlibs_CXX" = no && can_build_shared=no
17645
17646 GCC_CXX="$GXX"
17647 LD_CXX="$LD"
17648
17649
17650 cat > conftest.$ac_ext <<EOF
17651 class Foo
17652 {
17653 public:
17654   Foo (void) { a = 0; }
17655 private:
17656   int a;
17657 };
17658 EOF
17659
17660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17661   (eval $ac_compile) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); }; then
17665   # Parse the compiler output and extract the necessary
17666   # objects, libraries and library flags.
17667
17668   # Sentinel used to keep track of whether or not we are before
17669   # the conftest object file.
17670   pre_test_object_deps_done=no
17671
17672   # The `*' in the case matches for architectures that use `case' in
17673   # $output_verbose_cmd can trigger glob expansion during the loop
17674   # eval without this substitution.
17675   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17676
17677   for p in `eval $output_verbose_link_cmd`; do
17678     case $p in
17679
17680     -L* | -R* | -l*)
17681        # Some compilers place space between "-{L,R}" and the path.
17682        # Remove the space.
17683        if test $p = "-L" \
17684           || test $p = "-R"; then
17685          prev=$p
17686          continue
17687        else
17688          prev=
17689        fi
17690
17691        if test "$pre_test_object_deps_done" = no; then
17692          case $p in
17693          -L* | -R*)
17694            # Internal compiler library paths should come after those
17695            # provided the user.  The postdeps already come after the
17696            # user supplied libs so there is no need to process them.
17697            if test -z "$compiler_lib_search_path_CXX"; then
17698              compiler_lib_search_path_CXX="${prev}${p}"
17699            else
17700              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17701            fi
17702            ;;
17703          # The "-l" case would never come before the object being
17704          # linked, so don't bother handling this case.
17705          esac
17706        else
17707          if test -z "$postdeps_CXX"; then
17708            postdeps_CXX="${prev}${p}"
17709          else
17710            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17711          fi
17712        fi
17713        ;;
17714
17715     *.$objext)
17716        # This assumes that the test object file only shows up
17717        # once in the compiler output.
17718        if test "$p" = "conftest.$objext"; then
17719          pre_test_object_deps_done=yes
17720          continue
17721        fi
17722
17723        if test "$pre_test_object_deps_done" = no; then
17724          if test -z "$predep_objects_CXX"; then
17725            predep_objects_CXX="$p"
17726          else
17727            predep_objects_CXX="$predep_objects_CXX $p"
17728          fi
17729        else
17730          if test -z "$postdep_objects_CXX"; then
17731            postdep_objects_CXX="$p"
17732          else
17733            postdep_objects_CXX="$postdep_objects_CXX $p"
17734          fi
17735        fi
17736        ;;
17737
17738     *) ;; # Ignore the rest.
17739
17740     esac
17741   done
17742
17743   # Clean up.
17744   rm -f a.out a.exe
17745 else
17746   echo "libtool.m4: error: problem compiling CXX test program"
17747 fi
17748
17749 $rm -f confest.$objext
17750
17751 case " $postdeps_CXX " in
17752 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17753 esac
17754
17755 lt_prog_compiler_wl_CXX=
17756 lt_prog_compiler_pic_CXX=
17757 lt_prog_compiler_static_CXX=
17758
17759 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17760 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17761
17762   # C++ specific cases for pic, static, wl, etc.
17763   if test "$GXX" = yes; then
17764     lt_prog_compiler_wl_CXX='-Wl,'
17765     lt_prog_compiler_static_CXX='-static'
17766
17767     case $host_os in
17768     aix*)
17769       # All AIX code is PIC.
17770       if test "$host_cpu" = ia64; then
17771         # AIX 5 now supports IA64 processor
17772         lt_prog_compiler_static_CXX='-Bstatic'
17773       fi
17774       ;;
17775     amigaos*)
17776       # FIXME: we need at least 68020 code to build shared libraries, but
17777       # adding the `-m68020' flag to GCC prevents building anything better,
17778       # like `-m68040'.
17779       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17780       ;;
17781     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17782       # PIC is the default for these OSes.
17783       ;;
17784     mingw* | os2* | pw32*)
17785       # This hack is so that the source file can tell whether it is being
17786       # built for inclusion in a dll (and should export symbols for example).
17787       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17788       ;;
17789     darwin* | rhapsody*)
17790       # PIC is the default on this platform
17791       # Common symbols not allowed in MH_DYLIB files
17792       lt_prog_compiler_pic_CXX='-fno-common'
17793       ;;
17794     *djgpp*)
17795       # DJGPP does not support shared libraries at all
17796       lt_prog_compiler_pic_CXX=
17797       ;;
17798     sysv4*MP*)
17799       if test -d /usr/nec; then
17800         lt_prog_compiler_pic_CXX=-Kconform_pic
17801       fi
17802       ;;
17803     hpux*)
17804       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17805       # not for PA HP-UX.
17806       case "$host_cpu" in
17807       hppa*64*|ia64*)
17808         ;;
17809       *)
17810         lt_prog_compiler_pic_CXX='-fPIC'
17811         ;;
17812       esac
17813       ;;
17814     *)
17815       lt_prog_compiler_pic_CXX='-fPIC'
17816       ;;
17817     esac
17818   else
17819     case $host_os in
17820       aix4* | aix5*)
17821         # All AIX code is PIC.
17822         if test "$host_cpu" = ia64; then
17823           # AIX 5 now supports IA64 processor
17824           lt_prog_compiler_static_CXX='-Bstatic'
17825         else
17826           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17827         fi
17828         ;;
17829       chorus*)
17830         case $cc_basename in
17831         cxch68)
17832           # Green Hills C++ Compiler
17833           # _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"
17834           ;;
17835         esac
17836         ;;
17837       dgux*)
17838         case $cc_basename in
17839           ec++)
17840             lt_prog_compiler_pic_CXX='-KPIC'
17841             ;;
17842           ghcx)
17843             # Green Hills C++ Compiler
17844             lt_prog_compiler_pic_CXX='-pic'
17845             ;;
17846           *)
17847             ;;
17848         esac
17849         ;;
17850       freebsd* | kfreebsd*-gnu)
17851         # FreeBSD uses GNU C++
17852         ;;
17853       hpux9* | hpux10* | hpux11*)
17854         case $cc_basename in
17855           CC)
17856             lt_prog_compiler_wl_CXX='-Wl,'
17857             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17858             if test "$host_cpu" != ia64; then
17859               lt_prog_compiler_pic_CXX='+Z'
17860             fi
17861             ;;
17862           aCC)
17863             lt_prog_compiler_wl_CXX='-Wl,'
17864             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17865             case "$host_cpu" in
17866             hppa*64*|ia64*)
17867               # +Z the default
17868               ;;
17869             *)
17870               lt_prog_compiler_pic_CXX='+Z'
17871               ;;
17872             esac
17873             ;;
17874           *)
17875             ;;
17876         esac
17877         ;;
17878       irix5* | irix6* | nonstopux*)
17879         case $cc_basename in
17880           CC)
17881             lt_prog_compiler_wl_CXX='-Wl,'
17882             lt_prog_compiler_static_CXX='-non_shared'
17883             # CC pic flag -KPIC is the default.
17884             ;;
17885           *)
17886             ;;
17887         esac
17888         ;;
17889       linux*)
17890         case $cc_basename in
17891           KCC)
17892             # KAI C++ Compiler
17893             lt_prog_compiler_wl_CXX='--backend -Wl,'
17894             lt_prog_compiler_pic_CXX='-fPIC'
17895             ;;
17896           icpc)
17897             # Intel C++
17898             lt_prog_compiler_wl_CXX='-Wl,'
17899             lt_prog_compiler_pic_CXX='-KPIC'
17900             lt_prog_compiler_static_CXX='-static'
17901             ;;
17902           cxx)
17903             # Compaq C++
17904             # Make sure the PIC flag is empty.  It appears that all Alpha
17905             # Linux and Compaq Tru64 Unix objects are PIC.
17906             lt_prog_compiler_pic_CXX=
17907             lt_prog_compiler_static_CXX='-non_shared'
17908             ;;
17909           *)
17910             ;;
17911         esac
17912         ;;
17913       lynxos*)
17914         ;;
17915       m88k*)
17916         ;;
17917       mvs*)
17918         case $cc_basename in
17919           cxx)
17920             lt_prog_compiler_pic_CXX='-W c,exportall'
17921             ;;
17922           *)
17923             ;;
17924         esac
17925         ;;
17926       netbsd*)
17927         ;;
17928       osf3* | osf4* | osf5*)
17929         case $cc_basename in
17930           KCC)
17931             lt_prog_compiler_wl_CXX='--backend -Wl,'
17932             ;;
17933           RCC)
17934             # Rational C++ 2.4.1
17935             lt_prog_compiler_pic_CXX='-pic'
17936             ;;
17937           cxx)
17938             # Digital/Compaq C++
17939             lt_prog_compiler_wl_CXX='-Wl,'
17940             # Make sure the PIC flag is empty.  It appears that all Alpha
17941             # Linux and Compaq Tru64 Unix objects are PIC.
17942             lt_prog_compiler_pic_CXX=
17943             lt_prog_compiler_static_CXX='-non_shared'
17944             ;;
17945           *)
17946             ;;
17947         esac
17948         ;;
17949       psos*)
17950         ;;
17951       sco*)
17952         case $cc_basename in
17953           CC)
17954             lt_prog_compiler_pic_CXX='-fPIC'
17955             ;;
17956           *)
17957             ;;
17958         esac
17959         ;;
17960       solaris*)
17961         case $cc_basename in
17962           CC)
17963             # Sun C++ 4.2, 5.x and Centerline C++
17964             lt_prog_compiler_pic_CXX='-KPIC'
17965             lt_prog_compiler_static_CXX='-Bstatic'
17966             lt_prog_compiler_wl_CXX='-Qoption ld '
17967             ;;
17968           gcx)
17969             # Green Hills C++ Compiler
17970             lt_prog_compiler_pic_CXX='-PIC'
17971             ;;
17972           *)
17973             ;;
17974         esac
17975         ;;
17976       sunos4*)
17977         case $cc_basename in
17978           CC)
17979             # Sun C++ 4.x
17980             lt_prog_compiler_pic_CXX='-pic'
17981             lt_prog_compiler_static_CXX='-Bstatic'
17982             ;;
17983           lcc)
17984             # Lucid
17985             lt_prog_compiler_pic_CXX='-pic'
17986             ;;
17987           *)
17988             ;;
17989         esac
17990         ;;
17991       tandem*)
17992         case $cc_basename in
17993           NCC)
17994             # NonStop-UX NCC 3.20
17995             lt_prog_compiler_pic_CXX='-KPIC'
17996             ;;
17997           *)
17998             ;;
17999         esac
18000         ;;
18001       unixware*)
18002         ;;
18003       vxworks*)
18004         ;;
18005       *)
18006         lt_prog_compiler_can_build_shared_CXX=no
18007         ;;
18008     esac
18009   fi
18010
18011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18012 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
18013
18014 #
18015 # Check to make sure the PIC flag actually works.
18016 #
18017 if test -n "$lt_prog_compiler_pic_CXX"; then
18018
18019 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18020 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
18021 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18022   echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024   lt_prog_compiler_pic_works_CXX=no
18025   ac_outfile=conftest.$ac_objext
18026    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18027    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18028    # Insert the option either (1) after the last *FLAGS variable, or
18029    # (2) before a word containing "conftest.", or (3) at the end.
18030    # Note that $ac_compile itself does not contain backslashes and begins
18031    # with a dollar sign (not a hyphen), so the echo should work correctly.
18032    # The option is referenced via a variable to avoid confusing sed.
18033    lt_compile=`echo "$ac_compile" | $SED \
18034    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18035    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18036    -e 's:$: $lt_compiler_flag:'`
18037    (eval echo "\"\$as_me:18037: $lt_compile\"" >&5)
18038    (eval "$lt_compile" 2>conftest.err)
18039    ac_status=$?
18040    cat conftest.err >&5
18041    echo "$as_me:18041: \$? = $ac_status" >&5
18042    if (exit $ac_status) && test -s "$ac_outfile"; then
18043      # The compiler can only warn and ignore the option if not recognized
18044      # So say no if there are warnings
18045      if test ! -s conftest.err; then
18046        lt_prog_compiler_pic_works_CXX=yes
18047      fi
18048    fi
18049    $rm conftest*
18050
18051 fi
18052 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18053 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
18054
18055 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18056     case $lt_prog_compiler_pic_CXX in
18057      "" | " "*) ;;
18058      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18059      esac
18060 else
18061     lt_prog_compiler_pic_CXX=
18062      lt_prog_compiler_can_build_shared_CXX=no
18063 fi
18064
18065 fi
18066 case "$host_os" in
18067   # For platforms which do not support PIC, -DPIC is meaningless:
18068   *djgpp*)
18069     lt_prog_compiler_pic_CXX=
18070     ;;
18071   *)
18072     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18073     ;;
18074 esac
18075
18076 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18077 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18078 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081   lt_cv_prog_compiler_c_o_CXX=no
18082    $rm -r conftest 2>/dev/null
18083    mkdir conftest
18084    cd conftest
18085    mkdir out
18086    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18087
18088    lt_compiler_flag="-o out/conftest2.$ac_objext"
18089    # Insert the option either (1) after the last *FLAGS variable, or
18090    # (2) before a word containing "conftest.", or (3) at the end.
18091    # Note that $ac_compile itself does not contain backslashes and begins
18092    # with a dollar sign (not a hyphen), so the echo should work correctly.
18093    lt_compile=`echo "$ac_compile" | $SED \
18094    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18096    -e 's:$: $lt_compiler_flag:'`
18097    (eval echo "\"\$as_me:18097: $lt_compile\"" >&5)
18098    (eval "$lt_compile" 2>out/conftest.err)
18099    ac_status=$?
18100    cat out/conftest.err >&5
18101    echo "$as_me:18101: \$? = $ac_status" >&5
18102    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18103    then
18104      # The compiler can only warn and ignore the option if not recognized
18105      # So say no if there are warnings
18106      if test ! -s out/conftest.err; then
18107        lt_cv_prog_compiler_c_o_CXX=yes
18108      fi
18109    fi
18110    chmod u+w .
18111    $rm conftest*
18112    # SGI C++ compiler will create directory out/ii_files/ for
18113    # template instantiation
18114    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18115    $rm out/* && rmdir out
18116    cd ..
18117    rmdir conftest
18118    $rm conftest*
18119
18120 fi
18121 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
18123
18124
18125 hard_links="nottested"
18126 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18127   # do not overwrite the value of need_locks provided by the user
18128   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18130   hard_links=yes
18131   $rm conftest*
18132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18133   touch conftest.a
18134   ln conftest.a conftest.b 2>&5 || hard_links=no
18135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18136   echo "$as_me:$LINENO: result: $hard_links" >&5
18137 echo "${ECHO_T}$hard_links" >&6
18138   if test "$hard_links" = no; then
18139     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18141     need_locks=warn
18142   fi
18143 else
18144   need_locks=no
18145 fi
18146
18147 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18149
18150   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18151   case $host_os in
18152   aix4* | aix5*)
18153     # If we're using GNU nm, then we don't want the "-C" option.
18154     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18155     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18156       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'
18157     else
18158       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'
18159     fi
18160     ;;
18161   pw32*)
18162     export_symbols_cmds_CXX="$ltdll_cmds"
18163   ;;
18164   cygwin* | mingw*)
18165     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18166   ;;
18167   *)
18168     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18169   ;;
18170   esac
18171
18172 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18173 echo "${ECHO_T}$ld_shlibs_CXX" >&6
18174 test "$ld_shlibs_CXX" = no && can_build_shared=no
18175
18176 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18177 if test "$GCC" = yes; then
18178   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18179 fi
18180
18181 #
18182 # Do we need to explicitly link libc?
18183 #
18184 case "x$archive_cmds_need_lc_CXX" in
18185 x|xyes)
18186   # Assume -lc should be added
18187   archive_cmds_need_lc_CXX=yes
18188
18189   if test "$enable_shared" = yes && test "$GCC" = yes; then
18190     case $archive_cmds_CXX in
18191     *'~'*)
18192       # FIXME: we may have to deal with multi-command sequences.
18193       ;;
18194     '$CC '*)
18195       # Test whether the compiler implicitly links with -lc since on some
18196       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18197       # to ld, don't add -lc before -lgcc.
18198       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18199 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18200       $rm conftest*
18201       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18202
18203       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204   (eval $ac_compile) 2>&5
18205   ac_status=$?
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); } 2>conftest.err; then
18208         soname=conftest
18209         lib=conftest
18210         libobjs=conftest.$ac_objext
18211         deplibs=
18212         wl=$lt_prog_compiler_wl_CXX
18213         compiler_flags=-v
18214         linker_flags=-v
18215         verstring=
18216         output_objdir=.
18217         libname=conftest
18218         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18219         allow_undefined_flag_CXX=
18220         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18221   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }
18225         then
18226           archive_cmds_need_lc_CXX=no
18227         else
18228           archive_cmds_need_lc_CXX=yes
18229         fi
18230         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18231       else
18232         cat conftest.err 1>&5
18233       fi
18234       $rm conftest*
18235       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18236 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18237       ;;
18238     esac
18239   fi
18240   ;;
18241 esac
18242
18243 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18244 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18245 library_names_spec=
18246 libname_spec='lib$name'
18247 soname_spec=
18248 shrext_cmds=".so"
18249 postinstall_cmds=
18250 postuninstall_cmds=
18251 finish_cmds=
18252 finish_eval=
18253 shlibpath_var=
18254 shlibpath_overrides_runpath=unknown
18255 version_type=none
18256 dynamic_linker="$host_os ld.so"
18257 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18258 if test "$GCC" = yes; then
18259   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18260   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18261     # if the path contains ";" then we assume it to be the separator
18262     # otherwise default to the standard path separator (i.e. ":") - it is
18263     # assumed that no part of a normal pathname contains ";" but that should
18264     # okay in the real world where ";" in dirpaths is itself problematic.
18265     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18266   else
18267     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18268   fi
18269 else
18270   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18271 fi
18272 need_lib_prefix=unknown
18273 hardcode_into_libs=no
18274
18275 # when you set need_version to no, make sure it does not cause -set_version
18276 # flags to be left without arguments
18277 need_version=unknown
18278
18279 case $host_os in
18280 aix3*)
18281   version_type=linux
18282   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18283   shlibpath_var=LIBPATH
18284
18285   # AIX 3 has no versioning support, so we append a major version to the name.
18286   soname_spec='${libname}${release}${shared_ext}$major'
18287   ;;
18288
18289 aix4* | aix5*)
18290   version_type=linux
18291   need_lib_prefix=no
18292   need_version=no
18293   hardcode_into_libs=yes
18294   if test "$host_cpu" = ia64; then
18295     # AIX 5 supports IA64
18296     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18297     shlibpath_var=LD_LIBRARY_PATH
18298   else
18299     # With GCC up to 2.95.x, collect2 would create an import file
18300     # for dependence libraries.  The import file would start with
18301     # the line `#! .'.  This would cause the generated library to
18302     # depend on `.', always an invalid library.  This was fixed in
18303     # development snapshots of GCC prior to 3.0.
18304     case $host_os in
18305       aix4 | aix4.[01] | aix4.[01].*)
18306       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18307            echo ' yes '
18308            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18309         :
18310       else
18311         can_build_shared=no
18312       fi
18313       ;;
18314     esac
18315     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18316     # soname into executable. Probably we can add versioning support to
18317     # collect2, so additional links can be useful in future.
18318     if test "$aix_use_runtimelinking" = yes; then
18319       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18320       # instead of lib<name>.a to let people know that these are not
18321       # typical AIX shared libraries.
18322       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323     else
18324       # We preserve .a as extension for shared libraries through AIX4.2
18325       # and later when we are not doing run time linking.
18326       library_names_spec='${libname}${release}.a $libname.a'
18327       soname_spec='${libname}${release}${shared_ext}$major'
18328     fi
18329     shlibpath_var=LIBPATH
18330   fi
18331   ;;
18332
18333 amigaos*)
18334   library_names_spec='$libname.ixlibrary $libname.a'
18335   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18336   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'
18337   ;;
18338
18339 beos*)
18340   library_names_spec='${libname}${shared_ext}'
18341   dynamic_linker="$host_os ld.so"
18342   shlibpath_var=LIBRARY_PATH
18343   ;;
18344
18345 bsdi4*)
18346   version_type=linux
18347   need_version=no
18348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349   soname_spec='${libname}${release}${shared_ext}$major'
18350   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18351   shlibpath_var=LD_LIBRARY_PATH
18352   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18353   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18354   # the default ld.so.conf also contains /usr/contrib/lib and
18355   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18356   # libtool to hard-code these into programs
18357   ;;
18358
18359 cygwin* | mingw* | pw32*)
18360   version_type=windows
18361   shrext_cmds=".dll"
18362   need_version=no
18363   need_lib_prefix=no
18364
18365   case $GCC,$host_os in
18366   yes,cygwin* | yes,mingw* | yes,pw32*)
18367     library_names_spec='$libname.dll.a'
18368     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18369     postinstall_cmds='base_file=`basename \${file}`~
18370       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18371       dldir=$destdir/`dirname \$dlpath`~
18372       test -d \$dldir || mkdir -p \$dldir~
18373       $install_prog $dir/$dlname \$dldir/$dlname'
18374     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18375       dlpath=$dir/\$dldll~
18376        $rm \$dlpath'
18377     shlibpath_overrides_runpath=yes
18378
18379     case $host_os in
18380     cygwin*)
18381       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18382       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18383       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18384       ;;
18385     mingw*)
18386       # MinGW DLLs use traditional 'lib' prefix
18387       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18388       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18389       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18390         # It is most probably a Windows format PATH printed by
18391         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18392         # path with ; separators, and with drive letters. We can handle the
18393         # drive letters (cygwin fileutils understands them), so leave them,
18394         # especially as we might pass files found there to a mingw objdump,
18395         # which wouldn't understand a cygwinified path. Ahh.
18396         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18397       else
18398         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18399       fi
18400       ;;
18401     pw32*)
18402       # pw32 DLLs use 'pw' prefix rather than 'lib'
18403       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18404       ;;
18405     esac
18406     ;;
18407
18408   *)
18409     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18410     ;;
18411   esac
18412   dynamic_linker='Win32 ld.exe'
18413   # FIXME: first we should search . and the directory the executable is in
18414   shlibpath_var=PATH
18415   ;;
18416
18417 darwin* | rhapsody*)
18418   dynamic_linker="$host_os dyld"
18419   version_type=darwin
18420   need_lib_prefix=no
18421   need_version=no
18422   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18423   soname_spec='${libname}${release}${major}$shared_ext'
18424   shlibpath_overrides_runpath=yes
18425   shlibpath_var=DYLD_LIBRARY_PATH
18426   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18427   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18428   if test "$GCC" = yes; then
18429     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"`
18430   else
18431     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18432   fi
18433   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18434   ;;
18435
18436 dgux*)
18437   version_type=linux
18438   need_lib_prefix=no
18439   need_version=no
18440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18441   soname_spec='${libname}${release}${shared_ext}$major'
18442   shlibpath_var=LD_LIBRARY_PATH
18443   ;;
18444
18445 freebsd1*)
18446   dynamic_linker=no
18447   ;;
18448
18449 kfreebsd*-gnu)
18450   version_type=linux
18451   need_lib_prefix=no
18452   need_version=no
18453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18454   soname_spec='${libname}${release}${shared_ext}$major'
18455   shlibpath_var=LD_LIBRARY_PATH
18456   shlibpath_overrides_runpath=no
18457   hardcode_into_libs=yes
18458   dynamic_linker='GNU ld.so'
18459   ;;
18460
18461 freebsd*)
18462   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18463   version_type=freebsd-$objformat
18464   case $version_type in
18465     freebsd-elf*)
18466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18467       need_version=no
18468       need_lib_prefix=no
18469       ;;
18470     freebsd-*)
18471       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18472       need_version=yes
18473       ;;
18474   esac
18475   shlibpath_var=LD_LIBRARY_PATH
18476   case $host_os in
18477   freebsd2*)
18478     shlibpath_overrides_runpath=yes
18479     ;;
18480   freebsd3.01* | freebsdelf3.01*)
18481     shlibpath_overrides_runpath=yes
18482     hardcode_into_libs=yes
18483     ;;
18484   *) # from 3.2 on
18485     shlibpath_overrides_runpath=no
18486     hardcode_into_libs=yes
18487     ;;
18488   esac
18489   ;;
18490
18491 gnu*)
18492   version_type=linux
18493   need_lib_prefix=no
18494   need_version=no
18495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18496   soname_spec='${libname}${release}${shared_ext}$major'
18497   shlibpath_var=LD_LIBRARY_PATH
18498   hardcode_into_libs=yes
18499   ;;
18500
18501 hpux9* | hpux10* | hpux11*)
18502   # Give a soname corresponding to the major version so that dld.sl refuses to
18503   # link against other versions.
18504   version_type=sunos
18505   need_lib_prefix=no
18506   need_version=no
18507   case "$host_cpu" in
18508   ia64*)
18509     shrext_cmds='.so'
18510     hardcode_into_libs=yes
18511     dynamic_linker="$host_os dld.so"
18512     shlibpath_var=LD_LIBRARY_PATH
18513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18515     soname_spec='${libname}${release}${shared_ext}$major'
18516     if test "X$HPUX_IA64_MODE" = X32; then
18517       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18518     else
18519       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18520     fi
18521     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18522     ;;
18523    hppa*64*)
18524      shrext_cmds='.sl'
18525      hardcode_into_libs=yes
18526      dynamic_linker="$host_os dld.sl"
18527      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18528      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18529      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530      soname_spec='${libname}${release}${shared_ext}$major'
18531      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18532      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18533      ;;
18534    *)
18535     shrext_cmds='.sl'
18536     dynamic_linker="$host_os dld.sl"
18537     shlibpath_var=SHLIB_PATH
18538     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540     soname_spec='${libname}${release}${shared_ext}$major'
18541     ;;
18542   esac
18543   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18544   postinstall_cmds='chmod 555 $lib'
18545   ;;
18546
18547 irix5* | irix6* | nonstopux*)
18548   case $host_os in
18549     nonstopux*) version_type=nonstopux ;;
18550     *)
18551         if test "$lt_cv_prog_gnu_ld" = yes; then
18552                 version_type=linux
18553         else
18554                 version_type=irix
18555         fi ;;
18556   esac
18557   need_lib_prefix=no
18558   need_version=no
18559   soname_spec='${libname}${release}${shared_ext}$major'
18560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18561   case $host_os in
18562   irix5* | nonstopux*)
18563     libsuff= shlibsuff=
18564     ;;
18565   *)
18566     case $LD in # libtool.m4 will add one of these switches to LD
18567     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18568       libsuff= shlibsuff= libmagic=32-bit;;
18569     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18570       libsuff=32 shlibsuff=N32 libmagic=N32;;
18571     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18572       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18573     *) libsuff= shlibsuff= libmagic=never-match;;
18574     esac
18575     ;;
18576   esac
18577   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18578   shlibpath_overrides_runpath=no
18579   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18580   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18581   hardcode_into_libs=yes
18582   ;;
18583
18584 # No shared lib support for Linux oldld, aout, or coff.
18585 linux*oldld* | linux*aout* | linux*coff*)
18586   dynamic_linker=no
18587   ;;
18588
18589 # This must be Linux ELF.
18590 linux*)
18591   version_type=linux
18592   need_lib_prefix=no
18593   need_version=no
18594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18595   soname_spec='${libname}${release}${shared_ext}$major'
18596   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18597   shlibpath_var=LD_LIBRARY_PATH
18598   shlibpath_overrides_runpath=no
18599   # This implies no fast_install, which is unacceptable.
18600   # Some rework will be needed to allow for fast_install
18601   # before this can be enabled.
18602   hardcode_into_libs=yes
18603
18604   # find out which ABI we are using
18605   libsuff=
18606   case "$host_cpu" in
18607   x86_64*|s390x*|powerpc64*)
18608     echo '#line 18608 "configure"' > conftest.$ac_ext
18609     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18610   (eval $ac_compile) 2>&5
18611   ac_status=$?
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); }; then
18614       case `/usr/bin/file conftest.$ac_objext` in
18615       *64-bit*)
18616         libsuff=64
18617         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18618         ;;
18619       esac
18620     fi
18621     rm -rf conftest*
18622     ;;
18623   esac
18624
18625   # Append ld.so.conf contents to the search path
18626   if test -f /etc/ld.so.conf; then
18627     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18628     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18629   fi
18630
18631   # We used to test for /lib/ld.so.1 and disable shared libraries on
18632   # powerpc, because MkLinux only supported shared libraries with the
18633   # GNU dynamic linker.  Since this was broken with cross compilers,
18634   # most powerpc-linux boxes support dynamic linking these days and
18635   # people can always --disable-shared, the test was removed, and we
18636   # assume the GNU/Linux dynamic linker is in use.
18637   dynamic_linker='GNU/Linux ld.so'
18638   ;;
18639
18640 knetbsd*-gnu)
18641   version_type=linux
18642   need_lib_prefix=no
18643   need_version=no
18644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18645   soname_spec='${libname}${release}${shared_ext}$major'
18646   shlibpath_var=LD_LIBRARY_PATH
18647   shlibpath_overrides_runpath=no
18648   hardcode_into_libs=yes
18649   dynamic_linker='GNU ld.so'
18650   ;;
18651
18652 netbsd*)
18653   version_type=sunos
18654   need_lib_prefix=no
18655   need_version=no
18656   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18658     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18659     dynamic_linker='NetBSD (a.out) ld.so'
18660   else
18661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18662     soname_spec='${libname}${release}${shared_ext}$major'
18663     dynamic_linker='NetBSD ld.elf_so'
18664   fi
18665   shlibpath_var=LD_LIBRARY_PATH
18666   shlibpath_overrides_runpath=yes
18667   hardcode_into_libs=yes
18668   ;;
18669
18670 newsos6)
18671   version_type=linux
18672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673   shlibpath_var=LD_LIBRARY_PATH
18674   shlibpath_overrides_runpath=yes
18675   ;;
18676
18677 nto-qnx*)
18678   version_type=linux
18679   need_lib_prefix=no
18680   need_version=no
18681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682   soname_spec='${libname}${release}${shared_ext}$major'
18683   shlibpath_var=LD_LIBRARY_PATH
18684   shlibpath_overrides_runpath=yes
18685   ;;
18686
18687 openbsd*)
18688   version_type=sunos
18689   need_lib_prefix=no
18690   need_version=yes
18691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18693   shlibpath_var=LD_LIBRARY_PATH
18694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18695     case $host_os in
18696       openbsd2.[89] | openbsd2.[89].*)
18697         shlibpath_overrides_runpath=no
18698         ;;
18699       *)
18700         shlibpath_overrides_runpath=yes
18701         ;;
18702       esac
18703   else
18704     shlibpath_overrides_runpath=yes
18705   fi
18706   ;;
18707
18708 os2*)
18709   libname_spec='$name'
18710   shrext_cmds=".dll"
18711   need_lib_prefix=no
18712   library_names_spec='$libname${shared_ext} $libname.a'
18713   dynamic_linker='OS/2 ld.exe'
18714   shlibpath_var=LIBPATH
18715   ;;
18716
18717 osf3* | osf4* | osf5*)
18718   version_type=osf
18719   need_lib_prefix=no
18720   need_version=no
18721   soname_spec='${libname}${release}${shared_ext}$major'
18722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723   shlibpath_var=LD_LIBRARY_PATH
18724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18726   ;;
18727
18728 sco3.2v5*)
18729   version_type=osf
18730   soname_spec='${libname}${release}${shared_ext}$major'
18731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732   shlibpath_var=LD_LIBRARY_PATH
18733   ;;
18734
18735 solaris*)
18736   version_type=linux
18737   need_lib_prefix=no
18738   need_version=no
18739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740   soname_spec='${libname}${release}${shared_ext}$major'
18741   shlibpath_var=LD_LIBRARY_PATH
18742   shlibpath_overrides_runpath=yes
18743   hardcode_into_libs=yes
18744   # ldd complains unless libraries are executable
18745   postinstall_cmds='chmod +x $lib'
18746   ;;
18747
18748 sunos4*)
18749   version_type=sunos
18750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18752   shlibpath_var=LD_LIBRARY_PATH
18753   shlibpath_overrides_runpath=yes
18754   if test "$with_gnu_ld" = yes; then
18755     need_lib_prefix=no
18756   fi
18757   need_version=yes
18758   ;;
18759
18760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18761   version_type=linux
18762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763   soname_spec='${libname}${release}${shared_ext}$major'
18764   shlibpath_var=LD_LIBRARY_PATH
18765   case $host_vendor in
18766     sni)
18767       shlibpath_overrides_runpath=no
18768       need_lib_prefix=no
18769       export_dynamic_flag_spec='${wl}-Blargedynsym'
18770       runpath_var=LD_RUN_PATH
18771       ;;
18772     siemens)
18773       need_lib_prefix=no
18774       ;;
18775     motorola)
18776       need_lib_prefix=no
18777       need_version=no
18778       shlibpath_overrides_runpath=no
18779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18780       ;;
18781   esac
18782   ;;
18783
18784 sysv4*MP*)
18785   if test -d /usr/nec ;then
18786     version_type=linux
18787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18788     soname_spec='$libname${shared_ext}.$major'
18789     shlibpath_var=LD_LIBRARY_PATH
18790   fi
18791   ;;
18792
18793 uts4*)
18794   version_type=linux
18795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18796   soname_spec='${libname}${release}${shared_ext}$major'
18797   shlibpath_var=LD_LIBRARY_PATH
18798   ;;
18799
18800 *)
18801   dynamic_linker=no
18802   ;;
18803 esac
18804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18805 echo "${ECHO_T}$dynamic_linker" >&6
18806 test "$dynamic_linker" = no && can_build_shared=no
18807
18808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18810 hardcode_action_CXX=
18811 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18812    test -n "$runpath_var CXX" || \
18813    test "X$hardcode_automatic_CXX"="Xyes" ; then
18814
18815   # We can hardcode non-existant directories.
18816   if test "$hardcode_direct_CXX" != no &&
18817      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18818      # have to relink, otherwise we might link with an installed library
18819      # when we should be linking with a yet-to-be-installed one
18820      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18821      test "$hardcode_minus_L_CXX" != no; then
18822     # Linking always hardcodes the temporary library directory.
18823     hardcode_action_CXX=relink
18824   else
18825     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18826     hardcode_action_CXX=immediate
18827   fi
18828 else
18829   # We cannot hardcode anything, or else we can only hardcode existing
18830   # directories.
18831   hardcode_action_CXX=unsupported
18832 fi
18833 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18834 echo "${ECHO_T}$hardcode_action_CXX" >&6
18835
18836 if test "$hardcode_action_CXX" = relink; then
18837   # Fast installation is not supported
18838   enable_fast_install=no
18839 elif test "$shlibpath_overrides_runpath" = yes ||
18840      test "$enable_shared" = no; then
18841   # Fast installation is not necessary
18842   enable_fast_install=needless
18843 fi
18844
18845 striplib=
18846 old_striplib=
18847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18850   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18851   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18852   echo "$as_me:$LINENO: result: yes" >&5
18853 echo "${ECHO_T}yes" >&6
18854 else
18855 # FIXME - insert some real tests, host_os isn't really good enough
18856   case $host_os in
18857    darwin*)
18858        if test -n "$STRIP" ; then
18859          striplib="$STRIP -x"
18860          echo "$as_me:$LINENO: result: yes" >&5
18861 echo "${ECHO_T}yes" >&6
18862        else
18863   echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6
18865 fi
18866        ;;
18867    *)
18868   echo "$as_me:$LINENO: result: no" >&5
18869 echo "${ECHO_T}no" >&6
18870     ;;
18871   esac
18872 fi
18873
18874 if test "x$enable_dlopen" != xyes; then
18875   enable_dlopen=unknown
18876   enable_dlopen_self=unknown
18877   enable_dlopen_self_static=unknown
18878 else
18879   lt_cv_dlopen=no
18880   lt_cv_dlopen_libs=
18881
18882   case $host_os in
18883   beos*)
18884     lt_cv_dlopen="load_add_on"
18885     lt_cv_dlopen_libs=
18886     lt_cv_dlopen_self=yes
18887     ;;
18888
18889   mingw* | pw32*)
18890     lt_cv_dlopen="LoadLibrary"
18891     lt_cv_dlopen_libs=
18892    ;;
18893
18894   cygwin*)
18895     lt_cv_dlopen="dlopen"
18896     lt_cv_dlopen_libs=
18897    ;;
18898
18899   darwin*)
18900   # if libdl is installed we need to link against it
18901     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906   ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-ldl  $LIBS"
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h.  */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h.  */
18914
18915 /* Override any gcc2 internal prototype to avoid an error.  */
18916 #ifdef __cplusplus
18917 extern "C"
18918 #endif
18919 /* We use char because int might match the return type of a gcc2
18920    builtin and then its argument prototype would still apply.  */
18921 char dlopen ();
18922 int
18923 main ()
18924 {
18925 dlopen ();
18926   ;
18927   return 0;
18928 }
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18932   (eval $ac_link) 2>conftest.er1
18933   ac_status=$?
18934   grep -v '^ *+' conftest.er1 >conftest.err
18935   rm -f conftest.er1
18936   cat conftest.err >&5
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); } &&
18939          { ac_try='test -z "$ac_cxx_werror_flag"
18940                          || test ! -s conftest.err'
18941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942   (eval $ac_try) 2>&5
18943   ac_status=$?
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); }; } &&
18946          { ac_try='test -s conftest$ac_exeext'
18947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948   (eval $ac_try) 2>&5
18949   ac_status=$?
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); }; }; then
18952   ac_cv_lib_dl_dlopen=yes
18953 else
18954   echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18956
18957 ac_cv_lib_dl_dlopen=no
18958 fi
18959 rm -f conftest.err conftest.$ac_objext \
18960       conftest$ac_exeext conftest.$ac_ext
18961 LIBS=$ac_check_lib_save_LIBS
18962 fi
18963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18965 if test $ac_cv_lib_dl_dlopen = yes; then
18966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18967 else
18968
18969     lt_cv_dlopen="dyld"
18970     lt_cv_dlopen_libs=
18971     lt_cv_dlopen_self=yes
18972
18973 fi
18974
18975    ;;
18976
18977   *)
18978     echo "$as_me:$LINENO: checking for shl_load" >&5
18979 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18980 if test "${ac_cv_func_shl_load+set}" = set; then
18981   echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983   cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h.  */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h.  */
18989 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18991 #define shl_load innocuous_shl_load
18992
18993 /* System header to define __stub macros and hopefully few prototypes,
18994     which can conflict with char shl_load (); below.
18995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996     <limits.h> exists even on freestanding compilers.  */
18997
18998 #ifdef __STDC__
18999 # include <limits.h>
19000 #else
19001 # include <assert.h>
19002 #endif
19003
19004 #undef shl_load
19005
19006 /* Override any gcc2 internal prototype to avoid an error.  */
19007 #ifdef __cplusplus
19008 extern "C"
19009 {
19010 #endif
19011 /* We use char because int might match the return type of a gcc2
19012    builtin and then its argument prototype would still apply.  */
19013 char shl_load ();
19014 /* The GNU C library defines this for functions which it implements
19015     to always fail with ENOSYS.  Some functions are actually named
19016     something starting with __ and the normal name is an alias.  */
19017 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19018 choke me
19019 #else
19020 char (*f) () = shl_load;
19021 #endif
19022 #ifdef __cplusplus
19023 }
19024 #endif
19025
19026 int
19027 main ()
19028 {
19029 return f != shl_load;
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036   (eval $ac_link) 2>conftest.er1
19037   ac_status=$?
19038   grep -v '^ *+' conftest.er1 >conftest.err
19039   rm -f conftest.er1
19040   cat conftest.err >&5
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); } &&
19043          { ac_try='test -z "$ac_cxx_werror_flag"
19044                          || test ! -s conftest.err'
19045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046   (eval $ac_try) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; } &&
19050          { ac_try='test -s conftest$ac_exeext'
19051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052   (eval $ac_try) 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   ac_cv_func_shl_load=yes
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_cv_func_shl_load=no
19062 fi
19063 rm -f conftest.err conftest.$ac_objext \
19064       conftest$ac_exeext conftest.$ac_ext
19065 fi
19066 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19067 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19068 if test $ac_cv_func_shl_load = yes; then
19069   lt_cv_dlopen="shl_load"
19070 else
19071   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19072 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19074   echo $ECHO_N "(cached) $ECHO_C" >&6
19075 else
19076   ac_check_lib_save_LIBS=$LIBS
19077 LIBS="-ldld  $LIBS"
19078 cat >conftest.$ac_ext <<_ACEOF
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084
19085 /* Override any gcc2 internal prototype to avoid an error.  */
19086 #ifdef __cplusplus
19087 extern "C"
19088 #endif
19089 /* We use char because int might match the return type of a gcc2
19090    builtin and then its argument prototype would still apply.  */
19091 char shl_load ();
19092 int
19093 main ()
19094 {
19095 shl_load ();
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 rm -f conftest.$ac_objext conftest$ac_exeext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19102   (eval $ac_link) 2>conftest.er1
19103   ac_status=$?
19104   grep -v '^ *+' conftest.er1 >conftest.err
19105   rm -f conftest.er1
19106   cat conftest.err >&5
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); } &&
19109          { ac_try='test -z "$ac_cxx_werror_flag"
19110                          || test ! -s conftest.err'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; } &&
19116          { ac_try='test -s conftest$ac_exeext'
19117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118   (eval $ac_try) 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; }; then
19122   ac_cv_lib_dld_shl_load=yes
19123 else
19124   echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19126
19127 ac_cv_lib_dld_shl_load=no
19128 fi
19129 rm -f conftest.err conftest.$ac_objext \
19130       conftest$ac_exeext conftest.$ac_ext
19131 LIBS=$ac_check_lib_save_LIBS
19132 fi
19133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19135 if test $ac_cv_lib_dld_shl_load = yes; then
19136   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19137 else
19138   echo "$as_me:$LINENO: checking for dlopen" >&5
19139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19140 if test "${ac_cv_func_dlopen+set}" = set; then
19141   echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143   cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19151 #define dlopen innocuous_dlopen
19152
19153 /* System header to define __stub macros and hopefully few prototypes,
19154     which can conflict with char dlopen (); below.
19155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19156     <limits.h> exists even on freestanding compilers.  */
19157
19158 #ifdef __STDC__
19159 # include <limits.h>
19160 #else
19161 # include <assert.h>
19162 #endif
19163
19164 #undef dlopen
19165
19166 /* Override any gcc2 internal prototype to avoid an error.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 {
19170 #endif
19171 /* We use char because int might match the return type of a gcc2
19172    builtin and then its argument prototype would still apply.  */
19173 char dlopen ();
19174 /* The GNU C library defines this for functions which it implements
19175     to always fail with ENOSYS.  Some functions are actually named
19176     something starting with __ and the normal name is an alias.  */
19177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19178 choke me
19179 #else
19180 char (*f) () = dlopen;
19181 #endif
19182 #ifdef __cplusplus
19183 }
19184 #endif
19185
19186 int
19187 main ()
19188 {
19189 return f != dlopen;
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19196   (eval $ac_link) 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } &&
19203          { ac_try='test -z "$ac_cxx_werror_flag"
19204                          || test ! -s conftest.err'
19205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206   (eval $ac_try) 2>&5
19207   ac_status=$?
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); }; } &&
19210          { ac_try='test -s conftest$ac_exeext'
19211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212   (eval $ac_try) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; }; then
19216   ac_cv_func_dlopen=yes
19217 else
19218   echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19220
19221 ac_cv_func_dlopen=no
19222 fi
19223 rm -f conftest.err conftest.$ac_objext \
19224       conftest$ac_exeext conftest.$ac_ext
19225 fi
19226 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19227 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19228 if test $ac_cv_func_dlopen = yes; then
19229   lt_cv_dlopen="dlopen"
19230 else
19231   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19234   echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236   ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-ldl  $LIBS"
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244
19245 /* Override any gcc2 internal prototype to avoid an error.  */
19246 #ifdef __cplusplus
19247 extern "C"
19248 #endif
19249 /* We use char because int might match the return type of a gcc2
19250    builtin and then its argument prototype would still apply.  */
19251 char dlopen ();
19252 int
19253 main ()
19254 {
19255 dlopen ();
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262   (eval $ac_link) 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } &&
19269          { ac_try='test -z "$ac_cxx_werror_flag"
19270                          || test ! -s conftest.err'
19271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272   (eval $ac_try) 2>&5
19273   ac_status=$?
19274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); }; } &&
19276          { ac_try='test -s conftest$ac_exeext'
19277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278   (eval $ac_try) 2>&5
19279   ac_status=$?
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); }; }; then
19282   ac_cv_lib_dl_dlopen=yes
19283 else
19284   echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 ac_cv_lib_dl_dlopen=no
19288 fi
19289 rm -f conftest.err conftest.$ac_objext \
19290       conftest$ac_exeext conftest.$ac_ext
19291 LIBS=$ac_check_lib_save_LIBS
19292 fi
19293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19295 if test $ac_cv_lib_dl_dlopen = yes; then
19296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19297 else
19298   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19301   echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303   ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-lsvld  $LIBS"
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h.  */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h.  */
19311
19312 /* Override any gcc2 internal prototype to avoid an error.  */
19313 #ifdef __cplusplus
19314 extern "C"
19315 #endif
19316 /* We use char because int might match the return type of a gcc2
19317    builtin and then its argument prototype would still apply.  */
19318 char dlopen ();
19319 int
19320 main ()
19321 {
19322 dlopen ();
19323   ;
19324   return 0;
19325 }
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19329   (eval $ac_link) 2>conftest.er1
19330   ac_status=$?
19331   grep -v '^ *+' conftest.er1 >conftest.err
19332   rm -f conftest.er1
19333   cat conftest.err >&5
19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335   (exit $ac_status); } &&
19336          { ac_try='test -z "$ac_cxx_werror_flag"
19337                          || test ! -s conftest.err'
19338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339   (eval $ac_try) 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; } &&
19343          { ac_try='test -s conftest$ac_exeext'
19344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19345   (eval $ac_try) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); }; }; then
19349   ac_cv_lib_svld_dlopen=yes
19350 else
19351   echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_cv_lib_svld_dlopen=no
19355 fi
19356 rm -f conftest.err conftest.$ac_objext \
19357       conftest$ac_exeext conftest.$ac_ext
19358 LIBS=$ac_check_lib_save_LIBS
19359 fi
19360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19362 if test $ac_cv_lib_svld_dlopen = yes; then
19363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19364 else
19365   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19368   echo $ECHO_N "(cached) $ECHO_C" >&6
19369 else
19370   ac_check_lib_save_LIBS=$LIBS
19371 LIBS="-ldld  $LIBS"
19372 cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378
19379 /* Override any gcc2 internal prototype to avoid an error.  */
19380 #ifdef __cplusplus
19381 extern "C"
19382 #endif
19383 /* We use char because int might match the return type of a gcc2
19384    builtin and then its argument prototype would still apply.  */
19385 char dld_link ();
19386 int
19387 main ()
19388 {
19389 dld_link ();
19390   ;
19391   return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext conftest$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396   (eval $ac_link) 2>conftest.er1
19397   ac_status=$?
19398   grep -v '^ *+' conftest.er1 >conftest.err
19399   rm -f conftest.er1
19400   cat conftest.err >&5
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } &&
19403          { ac_try='test -z "$ac_cxx_werror_flag"
19404                          || test ! -s conftest.err'
19405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406   (eval $ac_try) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; } &&
19410          { ac_try='test -s conftest$ac_exeext'
19411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412   (eval $ac_try) 2>&5
19413   ac_status=$?
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); }; }; then
19416   ac_cv_lib_dld_dld_link=yes
19417 else
19418   echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_cv_lib_dld_dld_link=no
19422 fi
19423 rm -f conftest.err conftest.$ac_objext \
19424       conftest$ac_exeext conftest.$ac_ext
19425 LIBS=$ac_check_lib_save_LIBS
19426 fi
19427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19428 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19429 if test $ac_cv_lib_dld_dld_link = yes; then
19430   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19431 fi
19432
19433
19434 fi
19435
19436
19437 fi
19438
19439
19440 fi
19441
19442
19443 fi
19444
19445
19446 fi
19447
19448     ;;
19449   esac
19450
19451   if test "x$lt_cv_dlopen" != xno; then
19452     enable_dlopen=yes
19453   else
19454     enable_dlopen=no
19455   fi
19456
19457   case $lt_cv_dlopen in
19458   dlopen)
19459     save_CPPFLAGS="$CPPFLAGS"
19460     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19461
19462     save_LDFLAGS="$LDFLAGS"
19463     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19464
19465     save_LIBS="$LIBS"
19466     LIBS="$lt_cv_dlopen_libs $LIBS"
19467
19468     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19469 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19470 if test "${lt_cv_dlopen_self+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473           if test "$cross_compiling" = yes; then :
19474   lt_cv_dlopen_self=cross
19475 else
19476   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19477   lt_status=$lt_dlunknown
19478   cat > conftest.$ac_ext <<EOF
19479 #line 19479 "configure"
19480 #include "confdefs.h"
19481
19482 #if HAVE_DLFCN_H
19483 #include <dlfcn.h>
19484 #endif
19485
19486 #include <stdio.h>
19487
19488 #ifdef RTLD_GLOBAL
19489 #  define LT_DLGLOBAL           RTLD_GLOBAL
19490 #else
19491 #  ifdef DL_GLOBAL
19492 #    define LT_DLGLOBAL         DL_GLOBAL
19493 #  else
19494 #    define LT_DLGLOBAL         0
19495 #  endif
19496 #endif
19497
19498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19499    find out it does not work in some platform. */
19500 #ifndef LT_DLLAZY_OR_NOW
19501 #  ifdef RTLD_LAZY
19502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19503 #  else
19504 #    ifdef DL_LAZY
19505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19506 #    else
19507 #      ifdef RTLD_NOW
19508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19509 #      else
19510 #        ifdef DL_NOW
19511 #          define LT_DLLAZY_OR_NOW      DL_NOW
19512 #        else
19513 #          define LT_DLLAZY_OR_NOW      0
19514 #        endif
19515 #      endif
19516 #    endif
19517 #  endif
19518 #endif
19519
19520 #ifdef __cplusplus
19521 extern "C" void exit (int);
19522 #endif
19523
19524 void fnord() { int i=42;}
19525 int main ()
19526 {
19527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19528   int status = $lt_dlunknown;
19529
19530   if (self)
19531     {
19532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19534       /* dlclose (self); */
19535     }
19536
19537     exit (status);
19538 }
19539 EOF
19540   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541   (eval $ac_link) 2>&5
19542   ac_status=$?
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19545     (./conftest; exit; ) 2>/dev/null
19546     lt_status=$?
19547     case x$lt_status in
19548       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19549       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19550       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19551     esac
19552   else :
19553     # compilation failed
19554     lt_cv_dlopen_self=no
19555   fi
19556 fi
19557 rm -fr conftest*
19558
19559
19560 fi
19561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19562 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19563
19564     if test "x$lt_cv_dlopen_self" = xyes; then
19565       LDFLAGS="$LDFLAGS $link_static_flag"
19566       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19567 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19568 if test "${lt_cv_dlopen_self_static+set}" = set; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571           if test "$cross_compiling" = yes; then :
19572   lt_cv_dlopen_self_static=cross
19573 else
19574   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19575   lt_status=$lt_dlunknown
19576   cat > conftest.$ac_ext <<EOF
19577 #line 19577 "configure"
19578 #include "confdefs.h"
19579
19580 #if HAVE_DLFCN_H
19581 #include <dlfcn.h>
19582 #endif
19583
19584 #include <stdio.h>
19585
19586 #ifdef RTLD_GLOBAL
19587 #  define LT_DLGLOBAL           RTLD_GLOBAL
19588 #else
19589 #  ifdef DL_GLOBAL
19590 #    define LT_DLGLOBAL         DL_GLOBAL
19591 #  else
19592 #    define LT_DLGLOBAL         0
19593 #  endif
19594 #endif
19595
19596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19597    find out it does not work in some platform. */
19598 #ifndef LT_DLLAZY_OR_NOW
19599 #  ifdef RTLD_LAZY
19600 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19601 #  else
19602 #    ifdef DL_LAZY
19603 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19604 #    else
19605 #      ifdef RTLD_NOW
19606 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19607 #      else
19608 #        ifdef DL_NOW
19609 #          define LT_DLLAZY_OR_NOW      DL_NOW
19610 #        else
19611 #          define LT_DLLAZY_OR_NOW      0
19612 #        endif
19613 #      endif
19614 #    endif
19615 #  endif
19616 #endif
19617
19618 #ifdef __cplusplus
19619 extern "C" void exit (int);
19620 #endif
19621
19622 void fnord() { int i=42;}
19623 int main ()
19624 {
19625   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19626   int status = $lt_dlunknown;
19627
19628   if (self)
19629     {
19630       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19631       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19632       /* dlclose (self); */
19633     }
19634
19635     exit (status);
19636 }
19637 EOF
19638   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19639   (eval $ac_link) 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19643     (./conftest; exit; ) 2>/dev/null
19644     lt_status=$?
19645     case x$lt_status in
19646       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19647       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19648       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19649     esac
19650   else :
19651     # compilation failed
19652     lt_cv_dlopen_self_static=no
19653   fi
19654 fi
19655 rm -fr conftest*
19656
19657
19658 fi
19659 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19660 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19661     fi
19662
19663     CPPFLAGS="$save_CPPFLAGS"
19664     LDFLAGS="$save_LDFLAGS"
19665     LIBS="$save_LIBS"
19666     ;;
19667   esac
19668
19669   case $lt_cv_dlopen_self in
19670   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19671   *) enable_dlopen_self=unknown ;;
19672   esac
19673
19674   case $lt_cv_dlopen_self_static in
19675   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19676   *) enable_dlopen_self_static=unknown ;;
19677   esac
19678 fi
19679
19680
19681 # The else clause should only fire when bootstrapping the
19682 # libtool distribution, otherwise you forgot to ship ltmain.sh
19683 # with your package, and you will get complaints that there are
19684 # no rules to generate ltmain.sh.
19685 if test -f "$ltmain"; then
19686   # See if we are running on zsh, and set the options which allow our commands through
19687   # without removal of \ escapes.
19688   if test -n "${ZSH_VERSION+set}" ; then
19689     setopt NO_GLOB_SUBST
19690   fi
19691   # Now quote all the things that may contain metacharacters while being
19692   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19693   # variables and quote the copies for generation of the libtool script.
19694   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19695     SED SHELL STRIP \
19696     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19697     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19698     deplibs_check_method reload_flag reload_cmds need_locks \
19699     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19700     lt_cv_sys_global_symbol_to_c_name_address \
19701     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19702     old_postinstall_cmds old_postuninstall_cmds \
19703     compiler_CXX \
19704     CC_CXX \
19705     LD_CXX \
19706     lt_prog_compiler_wl_CXX \
19707     lt_prog_compiler_pic_CXX \
19708     lt_prog_compiler_static_CXX \
19709     lt_prog_compiler_no_builtin_flag_CXX \
19710     export_dynamic_flag_spec_CXX \
19711     thread_safe_flag_spec_CXX \
19712     whole_archive_flag_spec_CXX \
19713     enable_shared_with_static_runtimes_CXX \
19714     old_archive_cmds_CXX \
19715     old_archive_from_new_cmds_CXX \
19716     predep_objects_CXX \
19717     postdep_objects_CXX \
19718     predeps_CXX \
19719     postdeps_CXX \
19720     compiler_lib_search_path_CXX \
19721     archive_cmds_CXX \
19722     archive_expsym_cmds_CXX \
19723     postinstall_cmds_CXX \
19724     postuninstall_cmds_CXX \
19725     old_archive_from_expsyms_cmds_CXX \
19726     allow_undefined_flag_CXX \
19727     no_undefined_flag_CXX \
19728     export_symbols_cmds_CXX \
19729     hardcode_libdir_flag_spec_CXX \
19730     hardcode_libdir_flag_spec_ld_CXX \
19731     hardcode_libdir_separator_CXX \
19732     hardcode_automatic_CXX \
19733     module_cmds_CXX \
19734     module_expsym_cmds_CXX \
19735     lt_cv_prog_compiler_c_o_CXX \
19736     exclude_expsyms_CXX \
19737     include_expsyms_CXX; do
19738
19739     case $var in
19740     old_archive_cmds_CXX | \
19741     old_archive_from_new_cmds_CXX | \
19742     archive_cmds_CXX | \
19743     archive_expsym_cmds_CXX | \
19744     module_cmds_CXX | \
19745     module_expsym_cmds_CXX | \
19746     old_archive_from_expsyms_cmds_CXX | \
19747     export_symbols_cmds_CXX | \
19748     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19749     postinstall_cmds | postuninstall_cmds | \
19750     old_postinstall_cmds | old_postuninstall_cmds | \
19751     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19752       # Double-quote double-evaled strings.
19753       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19754       ;;
19755     *)
19756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19757       ;;
19758     esac
19759   done
19760
19761   case $lt_echo in
19762   *'\$0 --fallback-echo"')
19763     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19764     ;;
19765   esac
19766
19767 cfgfile="$ofile"
19768
19769   cat <<__EOF__ >> "$cfgfile"
19770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19771
19772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19773
19774 # Shell to use when invoking shell scripts.
19775 SHELL=$lt_SHELL
19776
19777 # Whether or not to build shared libraries.
19778 build_libtool_libs=$enable_shared
19779
19780 # Whether or not to build static libraries.
19781 build_old_libs=$enable_static
19782
19783 # Whether or not to add -lc for building shared libraries.
19784 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19785
19786 # Whether or not to disallow shared libs when runtime libs are static
19787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19788
19789 # Whether or not to optimize for fast installation.
19790 fast_install=$enable_fast_install
19791
19792 # The host system.
19793 host_alias=$host_alias
19794 host=$host
19795
19796 # An echo program that does not interpret backslashes.
19797 echo=$lt_echo
19798
19799 # The archiver.
19800 AR=$lt_AR
19801 AR_FLAGS=$lt_AR_FLAGS
19802
19803 # A C compiler.
19804 LTCC=$lt_LTCC
19805
19806 # A language-specific compiler.
19807 CC=$lt_compiler_CXX
19808
19809 # Is the compiler the GNU C compiler?
19810 with_gcc=$GCC_CXX
19811
19812 # An ERE matcher.
19813 EGREP=$lt_EGREP
19814
19815 # The linker used to build libraries.
19816 LD=$lt_LD_CXX
19817
19818 # Whether we need hard or soft links.
19819 LN_S=$lt_LN_S
19820
19821 # A BSD-compatible nm program.
19822 NM=$lt_NM
19823
19824 # A symbol stripping program
19825 STRIP=$lt_STRIP
19826
19827 # Used to examine libraries when file_magic_cmd begins "file"
19828 MAGIC_CMD=$MAGIC_CMD
19829
19830 # Used on cygwin: DLL creation program.
19831 DLLTOOL="$DLLTOOL"
19832
19833 # Used on cygwin: object dumper.
19834 OBJDUMP="$OBJDUMP"
19835
19836 # Used on cygwin: assembler.
19837 AS="$AS"
19838
19839 # The name of the directory that contains temporary libtool files.
19840 objdir=$objdir
19841
19842 # How to create reloadable object files.
19843 reload_flag=$lt_reload_flag
19844 reload_cmds=$lt_reload_cmds
19845
19846 # How to pass a linker flag through the compiler.
19847 wl=$lt_lt_prog_compiler_wl_CXX
19848
19849 # Object file suffix (normally "o").
19850 objext="$ac_objext"
19851
19852 # Old archive suffix (normally "a").
19853 libext="$libext"
19854
19855 # Shared library suffix (normally ".so").
19856 shrext_cmds='$shrext_cmds'
19857
19858 # Executable file suffix (normally "").
19859 exeext="$exeext"
19860
19861 # Additional compiler flags for building library objects.
19862 pic_flag=$lt_lt_prog_compiler_pic_CXX
19863 pic_mode=$pic_mode
19864
19865 # What is the maximum length of a command?
19866 max_cmd_len=$lt_cv_sys_max_cmd_len
19867
19868 # Does compiler simultaneously support -c and -o options?
19869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19870
19871 # Must we lock files when doing compilation ?
19872 need_locks=$lt_need_locks
19873
19874 # Do we need the lib prefix for modules?
19875 need_lib_prefix=$need_lib_prefix
19876
19877 # Do we need a version for libraries?
19878 need_version=$need_version
19879
19880 # Whether dlopen is supported.
19881 dlopen_support=$enable_dlopen
19882
19883 # Whether dlopen of programs is supported.
19884 dlopen_self=$enable_dlopen_self
19885
19886 # Whether dlopen of statically linked programs is supported.
19887 dlopen_self_static=$enable_dlopen_self_static
19888
19889 # Compiler flag to prevent dynamic linking.
19890 link_static_flag=$lt_lt_prog_compiler_static_CXX
19891
19892 # Compiler flag to turn off builtin functions.
19893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19894
19895 # Compiler flag to allow reflexive dlopens.
19896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19897
19898 # Compiler flag to generate shared objects directly from archives.
19899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19900
19901 # Compiler flag to generate thread-safe objects.
19902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19903
19904 # Library versioning type.
19905 version_type=$version_type
19906
19907 # Format of library name prefix.
19908 libname_spec=$lt_libname_spec
19909
19910 # List of archive names.  First name is the real one, the rest are links.
19911 # The last name is the one that the linker finds with -lNAME.
19912 library_names_spec=$lt_library_names_spec
19913
19914 # The coded name of the library, if different from the real name.
19915 soname_spec=$lt_soname_spec
19916
19917 # Commands used to build and install an old-style archive.
19918 RANLIB=$lt_RANLIB
19919 old_archive_cmds=$lt_old_archive_cmds_CXX
19920 old_postinstall_cmds=$lt_old_postinstall_cmds
19921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19922
19923 # Create an old-style archive from a shared archive.
19924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19925
19926 # Create a temporary old-style archive to link instead of a shared archive.
19927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19928
19929 # Commands used to build and install a shared archive.
19930 archive_cmds=$lt_archive_cmds_CXX
19931 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19932 postinstall_cmds=$lt_postinstall_cmds
19933 postuninstall_cmds=$lt_postuninstall_cmds
19934
19935 # Commands used to build a loadable module (assumed same as above if empty)
19936 module_cmds=$lt_module_cmds_CXX
19937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19938
19939 # Commands to strip libraries.
19940 old_striplib=$lt_old_striplib
19941 striplib=$lt_striplib
19942
19943 # Dependencies to place before the objects being linked to create a
19944 # shared library.
19945 predep_objects=$lt_predep_objects_CXX
19946
19947 # Dependencies to place after the objects being linked to create a
19948 # shared library.
19949 postdep_objects=$lt_postdep_objects_CXX
19950
19951 # Dependencies to place before the objects being linked to create a
19952 # shared library.
19953 predeps=$lt_predeps_CXX
19954
19955 # Dependencies to place after the objects being linked to create a
19956 # shared library.
19957 postdeps=$lt_postdeps_CXX
19958
19959 # The library search path used internally by the compiler when linking
19960 # a shared library.
19961 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19962
19963 # Method to check whether dependent libraries are shared objects.
19964 deplibs_check_method=$lt_deplibs_check_method
19965
19966 # Command to use when deplibs_check_method == file_magic.
19967 file_magic_cmd=$lt_file_magic_cmd
19968
19969 # Flag that allows shared libraries with undefined symbols to be built.
19970 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19971
19972 # Flag that forces no undefined symbols.
19973 no_undefined_flag=$lt_no_undefined_flag_CXX
19974
19975 # Commands used to finish a libtool library installation in a directory.
19976 finish_cmds=$lt_finish_cmds
19977
19978 # Same as above, but a single script fragment to be evaled but not shown.
19979 finish_eval=$lt_finish_eval
19980
19981 # Take the output of nm and produce a listing of raw symbols and C names.
19982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19983
19984 # Transform the output of nm in a proper C declaration
19985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19986
19987 # Transform the output of nm in a C name address pair
19988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19989
19990 # This is the shared library runtime path variable.
19991 runpath_var=$runpath_var
19992
19993 # This is the shared library path variable.
19994 shlibpath_var=$shlibpath_var
19995
19996 # Is shlibpath searched before the hard-coded library search path?
19997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19998
19999 # How to hardcode a shared library path into an executable.
20000 hardcode_action=$hardcode_action_CXX
20001
20002 # Whether we should hardcode library paths into libraries.
20003 hardcode_into_libs=$hardcode_into_libs
20004
20005 # Flag to hardcode \$libdir into a binary during linking.
20006 # This must work even if \$libdir does not exist.
20007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20008
20009 # If ld is used when linking, flag to hardcode \$libdir into
20010 # a binary during linking. This must work even if \$libdir does
20011 # not exist.
20012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20013
20014 # Whether we need a single -rpath flag with a separated argument.
20015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20016
20017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20018 # resulting binary.
20019 hardcode_direct=$hardcode_direct_CXX
20020
20021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20022 # resulting binary.
20023 hardcode_minus_L=$hardcode_minus_L_CXX
20024
20025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20026 # the resulting binary.
20027 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20028
20029 # Set to yes if building a shared library automatically hardcodes DIR into the library
20030 # and all subsequent libraries and executables linked against it.
20031 hardcode_automatic=$hardcode_automatic_CXX
20032
20033 # Variables whose values should be saved in libtool wrapper scripts and
20034 # restored at relink time.
20035 variables_saved_for_relink="$variables_saved_for_relink"
20036
20037 # Whether libtool must link a program against all its dependency libraries.
20038 link_all_deplibs=$link_all_deplibs_CXX
20039
20040 # Compile-time system search path for libraries
20041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20042
20043 # Run-time system search path for libraries
20044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20045
20046 # Fix the shell variable \$srcfile for the compiler.
20047 fix_srcfile_path="$fix_srcfile_path_CXX"
20048
20049 # Set to yes if exported symbols are required.
20050 always_export_symbols=$always_export_symbols_CXX
20051
20052 # The commands to list exported symbols.
20053 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20054
20055 # The commands to extract the exported symbol list from a shared archive.
20056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20057
20058 # Symbols that should not be listed in the preloaded symbols.
20059 exclude_expsyms=$lt_exclude_expsyms_CXX
20060
20061 # Symbols that must always be exported.
20062 include_expsyms=$lt_include_expsyms_CXX
20063
20064 # ### END LIBTOOL TAG CONFIG: $tagname
20065
20066 __EOF__
20067
20068
20069 else
20070   # If there is no Makefile yet, we rely on a make rule to execute
20071   # `config.status --recheck' to rerun these tests and create the
20072   # libtool script then.
20073   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20074   if test -f "$ltmain_in"; then
20075     test -f Makefile && make "$ltmain"
20076   fi
20077 fi
20078
20079
20080 ac_ext=c
20081 ac_cpp='$CPP $CPPFLAGS'
20082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20085
20086 CC=$lt_save_CC
20087 LDCXX=$LD
20088 LD=$lt_save_LD
20089 GCC=$lt_save_GCC
20090 with_gnu_ldcxx=$with_gnu_ld
20091 with_gnu_ld=$lt_save_with_gnu_ld
20092 lt_cv_path_LDCXX=$lt_cv_path_LD
20093 lt_cv_path_LD=$lt_save_path_LD
20094 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20095 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20096
20097         else
20098           tagname=""
20099         fi
20100         ;;
20101
20102       F77)
20103         if test -n "$F77" && test "X$F77" != "Xno"; then
20104
20105 ac_ext=f
20106 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20107 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20109
20110
20111 archive_cmds_need_lc_F77=no
20112 allow_undefined_flag_F77=
20113 always_export_symbols_F77=no
20114 archive_expsym_cmds_F77=
20115 export_dynamic_flag_spec_F77=
20116 hardcode_direct_F77=no
20117 hardcode_libdir_flag_spec_F77=
20118 hardcode_libdir_flag_spec_ld_F77=
20119 hardcode_libdir_separator_F77=
20120 hardcode_minus_L_F77=no
20121 hardcode_automatic_F77=no
20122 module_cmds_F77=
20123 module_expsym_cmds_F77=
20124 link_all_deplibs_F77=unknown
20125 old_archive_cmds_F77=$old_archive_cmds
20126 no_undefined_flag_F77=
20127 whole_archive_flag_spec_F77=
20128 enable_shared_with_static_runtimes_F77=no
20129
20130 # Source file extension for f77 test sources.
20131 ac_ext=f
20132
20133 # Object file extension for compiled f77 test sources.
20134 objext=o
20135 objext_F77=$objext
20136
20137 # Code to be used in simple compile tests
20138 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20139
20140 # Code to be used in simple link tests
20141 lt_simple_link_test_code="      program t\n      end\n"
20142
20143 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20144
20145 # If no C compiler was specified, use CC.
20146 LTCC=${LTCC-"$CC"}
20147
20148 # Allow CC to be a program name with arguments.
20149 compiler=$CC
20150
20151
20152 # Allow CC to be a program name with arguments.
20153 lt_save_CC="$CC"
20154 CC=${F77-"f77"}
20155 compiler=$CC
20156 compiler_F77=$CC
20157 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
20158
20159 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20160 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20161 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20162 echo "${ECHO_T}$can_build_shared" >&6
20163
20164 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20165 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20166 test "$can_build_shared" = "no" && enable_shared=no
20167
20168 # On AIX, shared libraries and static libraries use the same namespace, and
20169 # are all built from PIC.
20170 case "$host_os" in
20171 aix3*)
20172   test "$enable_shared" = yes && enable_static=no
20173   if test -n "$RANLIB"; then
20174     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20175     postinstall_cmds='$RANLIB $lib'
20176   fi
20177   ;;
20178 aix4* | aix5*)
20179   test "$enable_shared" = yes && enable_static=no
20180   ;;
20181 esac
20182 echo "$as_me:$LINENO: result: $enable_shared" >&5
20183 echo "${ECHO_T}$enable_shared" >&6
20184
20185 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20186 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20187 # Make sure either enable_shared or enable_static is yes.
20188 test "$enable_shared" = yes || enable_static=yes
20189 echo "$as_me:$LINENO: result: $enable_static" >&5
20190 echo "${ECHO_T}$enable_static" >&6
20191
20192 test "$ld_shlibs_F77" = no && can_build_shared=no
20193
20194 GCC_F77="$G77"
20195 LD_F77="$LD"
20196
20197 lt_prog_compiler_wl_F77=
20198 lt_prog_compiler_pic_F77=
20199 lt_prog_compiler_static_F77=
20200
20201 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20202 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20203
20204   if test "$GCC" = yes; then
20205     lt_prog_compiler_wl_F77='-Wl,'
20206     lt_prog_compiler_static_F77='-static'
20207
20208     case $host_os in
20209       aix*)
20210       # All AIX code is PIC.
20211       if test "$host_cpu" = ia64; then
20212         # AIX 5 now supports IA64 processor
20213         lt_prog_compiler_static_F77='-Bstatic'
20214       fi
20215       ;;
20216
20217     amigaos*)
20218       # FIXME: we need at least 68020 code to build shared libraries, but
20219       # adding the `-m68020' flag to GCC prevents building anything better,
20220       # like `-m68040'.
20221       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20222       ;;
20223
20224     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20225       # PIC is the default for these OSes.
20226       ;;
20227
20228     mingw* | pw32* | os2*)
20229       # This hack is so that the source file can tell whether it is being
20230       # built for inclusion in a dll (and should export symbols for example).
20231       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20232       ;;
20233
20234     darwin* | rhapsody*)
20235       # PIC is the default on this platform
20236       # Common symbols not allowed in MH_DYLIB files
20237       lt_prog_compiler_pic_F77='-fno-common'
20238       ;;
20239
20240     msdosdjgpp*)
20241       # Just because we use GCC doesn't mean we suddenly get shared libraries
20242       # on systems that don't support them.
20243       lt_prog_compiler_can_build_shared_F77=no
20244       enable_shared=no
20245       ;;
20246
20247     sysv4*MP*)
20248       if test -d /usr/nec; then
20249         lt_prog_compiler_pic_F77=-Kconform_pic
20250       fi
20251       ;;
20252
20253     hpux*)
20254       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20255       # not for PA HP-UX.
20256       case "$host_cpu" in
20257       hppa*64*|ia64*)
20258         # +Z the default
20259         ;;
20260       *)
20261         lt_prog_compiler_pic_F77='-fPIC'
20262         ;;
20263       esac
20264       ;;
20265
20266     *)
20267       lt_prog_compiler_pic_F77='-fPIC'
20268       ;;
20269     esac
20270   else
20271     # PORTME Check for flag to pass linker flags through the system compiler.
20272     case $host_os in
20273     aix*)
20274       lt_prog_compiler_wl_F77='-Wl,'
20275       if test "$host_cpu" = ia64; then
20276         # AIX 5 now supports IA64 processor
20277         lt_prog_compiler_static_F77='-Bstatic'
20278       else
20279         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20280       fi
20281       ;;
20282
20283     mingw* | pw32* | os2*)
20284       # This hack is so that the source file can tell whether it is being
20285       # built for inclusion in a dll (and should export symbols for example).
20286       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20287       ;;
20288
20289     hpux9* | hpux10* | hpux11*)
20290       lt_prog_compiler_wl_F77='-Wl,'
20291       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20292       # not for PA HP-UX.
20293       case "$host_cpu" in
20294       hppa*64*|ia64*)
20295         # +Z the default
20296         ;;
20297       *)
20298         lt_prog_compiler_pic_F77='+Z'
20299         ;;
20300       esac
20301       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20302       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20303       ;;
20304
20305     irix5* | irix6* | nonstopux*)
20306       lt_prog_compiler_wl_F77='-Wl,'
20307       # PIC (with -KPIC) is the default.
20308       lt_prog_compiler_static_F77='-non_shared'
20309       ;;
20310
20311     newsos6)
20312       lt_prog_compiler_pic_F77='-KPIC'
20313       lt_prog_compiler_static_F77='-Bstatic'
20314       ;;
20315
20316     linux*)
20317       case $CC in
20318       icc* | ecc*)
20319         lt_prog_compiler_wl_F77='-Wl,'
20320         lt_prog_compiler_pic_F77='-KPIC'
20321         lt_prog_compiler_static_F77='-static'
20322         ;;
20323       ccc*)
20324         lt_prog_compiler_wl_F77='-Wl,'
20325         # All Alpha code is PIC.
20326         lt_prog_compiler_static_F77='-non_shared'
20327         ;;
20328       esac
20329       ;;
20330
20331     osf3* | osf4* | osf5*)
20332       lt_prog_compiler_wl_F77='-Wl,'
20333       # All OSF/1 code is PIC.
20334       lt_prog_compiler_static_F77='-non_shared'
20335       ;;
20336
20337     sco3.2v5*)
20338       lt_prog_compiler_pic_F77='-Kpic'
20339       lt_prog_compiler_static_F77='-dn'
20340       ;;
20341
20342     solaris*)
20343       lt_prog_compiler_wl_F77='-Wl,'
20344       lt_prog_compiler_pic_F77='-KPIC'
20345       lt_prog_compiler_static_F77='-Bstatic'
20346       ;;
20347
20348     sunos4*)
20349       lt_prog_compiler_wl_F77='-Qoption ld '
20350       lt_prog_compiler_pic_F77='-PIC'
20351       lt_prog_compiler_static_F77='-Bstatic'
20352       ;;
20353
20354     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20355       lt_prog_compiler_wl_F77='-Wl,'
20356       lt_prog_compiler_pic_F77='-KPIC'
20357       lt_prog_compiler_static_F77='-Bstatic'
20358       ;;
20359
20360     sysv4*MP*)
20361       if test -d /usr/nec ;then
20362         lt_prog_compiler_pic_F77='-Kconform_pic'
20363         lt_prog_compiler_static_F77='-Bstatic'
20364       fi
20365       ;;
20366
20367     uts4*)
20368       lt_prog_compiler_pic_F77='-pic'
20369       lt_prog_compiler_static_F77='-Bstatic'
20370       ;;
20371
20372     *)
20373       lt_prog_compiler_can_build_shared_F77=no
20374       ;;
20375     esac
20376   fi
20377
20378 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20379 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20380
20381 #
20382 # Check to make sure the PIC flag actually works.
20383 #
20384 if test -n "$lt_prog_compiler_pic_F77"; then
20385
20386 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20387 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20388 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   lt_prog_compiler_pic_works_F77=no
20392   ac_outfile=conftest.$ac_objext
20393    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20394    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20395    # Insert the option either (1) after the last *FLAGS variable, or
20396    # (2) before a word containing "conftest.", or (3) at the end.
20397    # Note that $ac_compile itself does not contain backslashes and begins
20398    # with a dollar sign (not a hyphen), so the echo should work correctly.
20399    # The option is referenced via a variable to avoid confusing sed.
20400    lt_compile=`echo "$ac_compile" | $SED \
20401    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20403    -e 's:$: $lt_compiler_flag:'`
20404    (eval echo "\"\$as_me:20404: $lt_compile\"" >&5)
20405    (eval "$lt_compile" 2>conftest.err)
20406    ac_status=$?
20407    cat conftest.err >&5
20408    echo "$as_me:20408: \$? = $ac_status" >&5
20409    if (exit $ac_status) && test -s "$ac_outfile"; then
20410      # The compiler can only warn and ignore the option if not recognized
20411      # So say no if there are warnings
20412      if test ! -s conftest.err; then
20413        lt_prog_compiler_pic_works_F77=yes
20414      fi
20415    fi
20416    $rm conftest*
20417
20418 fi
20419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20420 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20421
20422 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20423     case $lt_prog_compiler_pic_F77 in
20424      "" | " "*) ;;
20425      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20426      esac
20427 else
20428     lt_prog_compiler_pic_F77=
20429      lt_prog_compiler_can_build_shared_F77=no
20430 fi
20431
20432 fi
20433 case "$host_os" in
20434   # For platforms which do not support PIC, -DPIC is meaningless:
20435   *djgpp*)
20436     lt_prog_compiler_pic_F77=
20437     ;;
20438   *)
20439     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20440     ;;
20441 esac
20442
20443 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20444 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20445 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   lt_cv_prog_compiler_c_o_F77=no
20449    $rm -r conftest 2>/dev/null
20450    mkdir conftest
20451    cd conftest
20452    mkdir out
20453    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20454
20455    lt_compiler_flag="-o out/conftest2.$ac_objext"
20456    # Insert the option either (1) after the last *FLAGS variable, or
20457    # (2) before a word containing "conftest.", or (3) at the end.
20458    # Note that $ac_compile itself does not contain backslashes and begins
20459    # with a dollar sign (not a hyphen), so the echo should work correctly.
20460    lt_compile=`echo "$ac_compile" | $SED \
20461    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20463    -e 's:$: $lt_compiler_flag:'`
20464    (eval echo "\"\$as_me:20464: $lt_compile\"" >&5)
20465    (eval "$lt_compile" 2>out/conftest.err)
20466    ac_status=$?
20467    cat out/conftest.err >&5
20468    echo "$as_me:20468: \$? = $ac_status" >&5
20469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20470    then
20471      # The compiler can only warn and ignore the option if not recognized
20472      # So say no if there are warnings
20473      if test ! -s out/conftest.err; then
20474        lt_cv_prog_compiler_c_o_F77=yes
20475      fi
20476    fi
20477    chmod u+w .
20478    $rm conftest*
20479    # SGI C++ compiler will create directory out/ii_files/ for
20480    # template instantiation
20481    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20482    $rm out/* && rmdir out
20483    cd ..
20484    rmdir conftest
20485    $rm conftest*
20486
20487 fi
20488 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20489 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20490
20491
20492 hard_links="nottested"
20493 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20494   # do not overwrite the value of need_locks provided by the user
20495   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20496 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20497   hard_links=yes
20498   $rm conftest*
20499   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20500   touch conftest.a
20501   ln conftest.a conftest.b 2>&5 || hard_links=no
20502   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20503   echo "$as_me:$LINENO: result: $hard_links" >&5
20504 echo "${ECHO_T}$hard_links" >&6
20505   if test "$hard_links" = no; then
20506     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20507 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20508     need_locks=warn
20509   fi
20510 else
20511   need_locks=no
20512 fi
20513
20514 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20515 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20516
20517   runpath_var=
20518   allow_undefined_flag_F77=
20519   enable_shared_with_static_runtimes_F77=no
20520   archive_cmds_F77=
20521   archive_expsym_cmds_F77=
20522   old_archive_From_new_cmds_F77=
20523   old_archive_from_expsyms_cmds_F77=
20524   export_dynamic_flag_spec_F77=
20525   whole_archive_flag_spec_F77=
20526   thread_safe_flag_spec_F77=
20527   hardcode_libdir_flag_spec_F77=
20528   hardcode_libdir_flag_spec_ld_F77=
20529   hardcode_libdir_separator_F77=
20530   hardcode_direct_F77=no
20531   hardcode_minus_L_F77=no
20532   hardcode_shlibpath_var_F77=unsupported
20533   link_all_deplibs_F77=unknown
20534   hardcode_automatic_F77=no
20535   module_cmds_F77=
20536   module_expsym_cmds_F77=
20537   always_export_symbols_F77=no
20538   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20539   # include_expsyms should be a list of space-separated symbols to be *always*
20540   # included in the symbol list
20541   include_expsyms_F77=
20542   # exclude_expsyms can be an extended regexp of symbols to exclude
20543   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20544   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20545   # as well as any symbol that contains `d'.
20546   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20547   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20548   # platforms (ab)use it in PIC code, but their linkers get confused if
20549   # the symbol is explicitly referenced.  Since portable code cannot
20550   # rely on this symbol name, it's probably fine to never include it in
20551   # preloaded symbol tables.
20552   extract_expsyms_cmds=
20553
20554   case $host_os in
20555   cygwin* | mingw* | pw32*)
20556     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20557     # When not using gcc, we currently assume that we are using
20558     # Microsoft Visual C++.
20559     if test "$GCC" != yes; then
20560       with_gnu_ld=no
20561     fi
20562     ;;
20563   openbsd*)
20564     with_gnu_ld=no
20565     ;;
20566   esac
20567
20568   ld_shlibs_F77=yes
20569   if test "$with_gnu_ld" = yes; then
20570     # If archive_cmds runs LD, not CC, wlarc should be empty
20571     wlarc='${wl}'
20572
20573     # See if GNU ld supports shared libraries.
20574     case $host_os in
20575     aix3* | aix4* | aix5*)
20576       # On AIX/PPC, the GNU linker is very broken
20577       if test "$host_cpu" != ia64; then
20578         ld_shlibs_F77=no
20579         cat <<EOF 1>&2
20580
20581 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20582 *** to be unable to reliably create shared libraries on AIX.
20583 *** Therefore, libtool is disabling shared libraries support.  If you
20584 *** really care for shared libraries, you may want to modify your PATH
20585 *** so that a non-GNU linker is found, and then restart.
20586
20587 EOF
20588       fi
20589       ;;
20590
20591     amigaos*)
20592       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)'
20593       hardcode_libdir_flag_spec_F77='-L$libdir'
20594       hardcode_minus_L_F77=yes
20595
20596       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20597       # that the semantics of dynamic libraries on AmigaOS, at least up
20598       # to version 4, is to share data among multiple programs linked
20599       # with the same dynamic library.  Since this doesn't match the
20600       # behavior of shared libraries on other platforms, we can't use
20601       # them.
20602       ld_shlibs_F77=no
20603       ;;
20604
20605     beos*)
20606       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20607         allow_undefined_flag_F77=unsupported
20608         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20609         # support --undefined.  This deserves some investigation.  FIXME
20610         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20611       else
20612         ld_shlibs_F77=no
20613       fi
20614       ;;
20615
20616     cygwin* | mingw* | pw32*)
20617       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20618       # as there is no search path for DLLs.
20619       hardcode_libdir_flag_spec_F77='-L$libdir'
20620       allow_undefined_flag_F77=unsupported
20621       always_export_symbols_F77=no
20622       enable_shared_with_static_runtimes_F77=yes
20623       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20624
20625       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20626         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20627         # If the export-symbols file already is a .def file (1st line
20628         # is EXPORTS), use it as is; otherwise, prepend...
20629         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20630           cp $export_symbols $output_objdir/$soname.def;
20631         else
20632           echo EXPORTS > $output_objdir/$soname.def;
20633           cat $export_symbols >> $output_objdir/$soname.def;
20634         fi~
20635         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20636       else
20637         ld_shlibs=no
20638       fi
20639       ;;
20640
20641     netbsd*)
20642       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20643         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20644         wlarc=
20645       else
20646         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20647         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20648       fi
20649       ;;
20650
20651     solaris* | sysv5*)
20652       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20653         ld_shlibs_F77=no
20654         cat <<EOF 1>&2
20655
20656 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20657 *** create shared libraries on Solaris systems.  Therefore, libtool
20658 *** is disabling shared libraries support.  We urge you to upgrade GNU
20659 *** binutils to release 2.9.1 or newer.  Another option is to modify
20660 *** your PATH or compiler configuration so that the native linker is
20661 *** used, and then restart.
20662
20663 EOF
20664       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20665         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20666         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20667       else
20668         ld_shlibs_F77=no
20669       fi
20670       ;;
20671
20672     sunos4*)
20673       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20674       wlarc=
20675       hardcode_direct_F77=yes
20676       hardcode_shlibpath_var_F77=no
20677       ;;
20678
20679   linux*)
20680     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20681         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20682         archive_cmds_F77="$tmp_archive_cmds"
20683       supports_anon_versioning=no
20684       case `$LD -v 2>/dev/null` in
20685         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20686         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20687         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20688         *\ 2.11.*) ;; # other 2.11 versions
20689         *) supports_anon_versioning=yes ;;
20690       esac
20691       if test $supports_anon_versioning = yes; then
20692         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20694 $echo "local: *; };" >> $output_objdir/$libname.ver~
20695         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20696       else
20697         archive_expsym_cmds_F77="$tmp_archive_cmds"
20698       fi
20699     else
20700       ld_shlibs_F77=no
20701     fi
20702     ;;
20703
20704     *)
20705       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20706         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20707         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20708       else
20709         ld_shlibs_F77=no
20710       fi
20711       ;;
20712     esac
20713
20714     if test "$ld_shlibs_F77" = yes; then
20715       runpath_var=LD_RUN_PATH
20716       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20717       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20718       # ancient GNU ld didn't support --whole-archive et. al.
20719       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20720         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20721       else
20722         whole_archive_flag_spec_F77=
20723       fi
20724     fi
20725   else
20726     # PORTME fill in a description of your system's linker (not GNU ld)
20727     case $host_os in
20728     aix3*)
20729       allow_undefined_flag_F77=unsupported
20730       always_export_symbols_F77=yes
20731       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'
20732       # Note: this linker hardcodes the directories in LIBPATH if there
20733       # are no directories specified by -L.
20734       hardcode_minus_L_F77=yes
20735       if test "$GCC" = yes && test -z "$link_static_flag"; then
20736         # Neither direct hardcoding nor static linking is supported with a
20737         # broken collect2.
20738         hardcode_direct_F77=unsupported
20739       fi
20740       ;;
20741
20742     aix4* | aix5*)
20743       if test "$host_cpu" = ia64; then
20744         # On IA64, the linker does run time linking by default, so we don't
20745         # have to do anything special.
20746         aix_use_runtimelinking=no
20747         exp_sym_flag='-Bexport'
20748         no_entry_flag=""
20749       else
20750         # If we're using GNU nm, then we don't want the "-C" option.
20751         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20752         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20753           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'
20754         else
20755           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'
20756         fi
20757         aix_use_runtimelinking=no
20758
20759         # Test if we are trying to use run time linking or normal
20760         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20761         # need to do runtime linking.
20762         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20763           for ld_flag in $LDFLAGS; do
20764           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20765             aix_use_runtimelinking=yes
20766             break
20767           fi
20768           done
20769         esac
20770
20771         exp_sym_flag='-bexport'
20772         no_entry_flag='-bnoentry'
20773       fi
20774
20775       # When large executables or shared objects are built, AIX ld can
20776       # have problems creating the table of contents.  If linking a library
20777       # or program results in "error TOC overflow" add -mminimal-toc to
20778       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20779       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20780
20781       archive_cmds_F77=''
20782       hardcode_direct_F77=yes
20783       hardcode_libdir_separator_F77=':'
20784       link_all_deplibs_F77=yes
20785
20786       if test "$GCC" = yes; then
20787         case $host_os in aix4.012|aix4.012.*)
20788         # We only want to do this on AIX 4.2 and lower, the check
20789         # below for broken collect2 doesn't work under 4.3+
20790           collect2name=`${CC} -print-prog-name=collect2`
20791           if test -f "$collect2name" && \
20792            strings "$collect2name" | grep resolve_lib_name >/dev/null
20793           then
20794           # We have reworked collect2
20795           hardcode_direct_F77=yes
20796           else
20797           # We have old collect2
20798           hardcode_direct_F77=unsupported
20799           # It fails to find uninstalled libraries when the uninstalled
20800           # path is not listed in the libpath.  Setting hardcode_minus_L
20801           # to unsupported forces relinking
20802           hardcode_minus_L_F77=yes
20803           hardcode_libdir_flag_spec_F77='-L$libdir'
20804           hardcode_libdir_separator_F77=
20805           fi
20806         esac
20807         shared_flag='-shared'
20808       else
20809         # not using gcc
20810         if test "$host_cpu" = ia64; then
20811         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20812         # chokes on -Wl,-G. The following line is correct:
20813           shared_flag='-G'
20814         else
20815         if test "$aix_use_runtimelinking" = yes; then
20816             shared_flag='${wl}-G'
20817           else
20818             shared_flag='${wl}-bM:SRE'
20819         fi
20820         fi
20821       fi
20822
20823       # It seems that -bexpall does not export symbols beginning with
20824       # underscore (_), so it is better to generate a list of symbols to export.
20825       always_export_symbols_F77=yes
20826       if test "$aix_use_runtimelinking" = yes; then
20827         # Warning - without using the other runtime loading flags (-brtl),
20828         # -berok will link without error, but may produce a broken library.
20829         allow_undefined_flag_F77='-berok'
20830        # Determine the default libpath from the value encoded in an empty executable.
20831        cat >conftest.$ac_ext <<_ACEOF
20832       program main
20833
20834       end
20835 _ACEOF
20836 rm -f conftest.$ac_objext conftest$ac_exeext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20838   (eval $ac_link) 2>conftest.er1
20839   ac_status=$?
20840   grep -v '^ *+' conftest.er1 >conftest.err
20841   rm -f conftest.er1
20842   cat conftest.err >&5
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } &&
20845          { ac_try='test -z "$ac_f77_werror_flag"
20846                          || test ! -s conftest.err'
20847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848   (eval $ac_try) 2>&5
20849   ac_status=$?
20850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); }; } &&
20852          { ac_try='test -s conftest$ac_exeext'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858
20859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20860 }'`
20861 # Check for a 64-bit object if we didn't find anything.
20862 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; }
20863 }'`; fi
20864 else
20865   echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 fi
20869 rm -f conftest.err conftest.$ac_objext \
20870       conftest$ac_exeext conftest.$ac_ext
20871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20872
20873        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20874         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20875        else
20876         if test "$host_cpu" = ia64; then
20877           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20878           allow_undefined_flag_F77="-z nodefs"
20879           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
20880         else
20881          # Determine the default libpath from the value encoded in an empty executable.
20882          cat >conftest.$ac_ext <<_ACEOF
20883       program main
20884
20885       end
20886 _ACEOF
20887 rm -f conftest.$ac_objext conftest$ac_exeext
20888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20889   (eval $ac_link) 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } &&
20896          { ac_try='test -z "$ac_f77_werror_flag"
20897                          || test ! -s conftest.err'
20898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; } &&
20903          { ac_try='test -s conftest$ac_exeext'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909
20910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20911 }'`
20912 # Check for a 64-bit object if we didn't find anything.
20913 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; }
20914 }'`; fi
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 fi
20920 rm -f conftest.err conftest.$ac_objext \
20921       conftest$ac_exeext conftest.$ac_ext
20922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20923
20924          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20925           # Warning - without using the other run time loading flags,
20926           # -berok will link without error, but may produce a broken library.
20927           no_undefined_flag_F77=' ${wl}-bernotok'
20928           allow_undefined_flag_F77=' ${wl}-berok'
20929           # -bexpall does not export symbols beginning with underscore (_)
20930           always_export_symbols_F77=yes
20931           # Exported symbols can be pulled into shared objects from archives
20932           whole_archive_flag_spec_F77=' '
20933           archive_cmds_need_lc_F77=yes
20934           # This is similar to how AIX traditionally builds it's shared libraries.
20935           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20936         fi
20937       fi
20938       ;;
20939
20940     amigaos*)
20941       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)'
20942       hardcode_libdir_flag_spec_F77='-L$libdir'
20943       hardcode_minus_L_F77=yes
20944       # see comment about different semantics on the GNU ld section
20945       ld_shlibs_F77=no
20946       ;;
20947
20948     bsdi4*)
20949       export_dynamic_flag_spec_F77=-rdynamic
20950       ;;
20951
20952     cygwin* | mingw* | pw32*)
20953       # When not using gcc, we currently assume that we are using
20954       # Microsoft Visual C++.
20955       # hardcode_libdir_flag_spec is actually meaningless, as there is
20956       # no search path for DLLs.
20957       hardcode_libdir_flag_spec_F77=' '
20958       allow_undefined_flag_F77=unsupported
20959       # Tell ltmain to make .lib files, not .a files.
20960       libext=lib
20961       # Tell ltmain to make .dll files, not .so files.
20962       shrext_cmds=".dll"
20963       # FIXME: Setting linknames here is a bad hack.
20964       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20965       # The linker will automatically build a .lib file if we build a DLL.
20966       old_archive_From_new_cmds_F77='true'
20967       # FIXME: Should let the user specify the lib program.
20968       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20969       fix_srcfile_path='`cygpath -w "$srcfile"`'
20970       enable_shared_with_static_runtimes_F77=yes
20971       ;;
20972
20973     darwin* | rhapsody*)
20974     if test "$GXX" = yes ; then
20975       archive_cmds_need_lc_F77=no
20976       case "$host_os" in
20977       rhapsody* | darwin1.[012])
20978         allow_undefined_flag_F77='-undefined suppress'
20979         ;;
20980       *) # Darwin 1.3 on
20981       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20982         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20983       else
20984         case ${MACOSX_DEPLOYMENT_TARGET} in
20985           10.[012])
20986             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
20987             ;;
20988           10.*)
20989             allow_undefined_flag_F77='-undefined dynamic_lookup'
20990             ;;
20991         esac
20992       fi
20993         ;;
20994       esac
20995         lt_int_apple_cc_single_mod=no
20996         output_verbose_link_cmd='echo'
20997         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20998           lt_int_apple_cc_single_mod=yes
20999         fi
21000         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21001           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21002         else
21003         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
21004       fi
21005       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21006       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21007         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21008           archive_expsym_cmds_F77='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}'
21009         else
21010           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
21011         fi
21012           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}'
21013       hardcode_direct_F77=no
21014       hardcode_automatic_F77=yes
21015       hardcode_shlibpath_var_F77=unsupported
21016       whole_archive_flag_spec_F77='-all_load $convenience'
21017       link_all_deplibs_F77=yes
21018     else
21019       ld_shlibs_F77=no
21020     fi
21021       ;;
21022
21023     dgux*)
21024       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21025       hardcode_libdir_flag_spec_F77='-L$libdir'
21026       hardcode_shlibpath_var_F77=no
21027       ;;
21028
21029     freebsd1*)
21030       ld_shlibs_F77=no
21031       ;;
21032
21033     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21034     # support.  Future versions do this automatically, but an explicit c++rt0.o
21035     # does not break anything, and helps significantly (at the cost of a little
21036     # extra space).
21037     freebsd2.2*)
21038       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21039       hardcode_libdir_flag_spec_F77='-R$libdir'
21040       hardcode_direct_F77=yes
21041       hardcode_shlibpath_var_F77=no
21042       ;;
21043
21044     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21045     freebsd2*)
21046       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21047       hardcode_direct_F77=yes
21048       hardcode_minus_L_F77=yes
21049       hardcode_shlibpath_var_F77=no
21050       ;;
21051
21052     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21053     freebsd* | kfreebsd*-gnu)
21054       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21055       hardcode_libdir_flag_spec_F77='-R$libdir'
21056       hardcode_direct_F77=yes
21057       hardcode_shlibpath_var_F77=no
21058       ;;
21059
21060     hpux9*)
21061       if test "$GCC" = yes; then
21062         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'
21063       else
21064         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'
21065       fi
21066       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21067       hardcode_libdir_separator_F77=:
21068       hardcode_direct_F77=yes
21069
21070       # hardcode_minus_L: Not really in the search PATH,
21071       # but as the default location of the library.
21072       hardcode_minus_L_F77=yes
21073       export_dynamic_flag_spec_F77='${wl}-E'
21074       ;;
21075
21076     hpux10* | hpux11*)
21077       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21078         case "$host_cpu" in
21079         hppa*64*|ia64*)
21080           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21081           ;;
21082         *)
21083           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21084           ;;
21085         esac
21086       else
21087         case "$host_cpu" in
21088         hppa*64*|ia64*)
21089           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21090           ;;
21091         *)
21092           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21093           ;;
21094         esac
21095       fi
21096       if test "$with_gnu_ld" = no; then
21097         case "$host_cpu" in
21098         hppa*64*)
21099           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21100           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21101           hardcode_libdir_separator_F77=:
21102           hardcode_direct_F77=no
21103           hardcode_shlibpath_var_F77=no
21104           ;;
21105         ia64*)
21106           hardcode_libdir_flag_spec_F77='-L$libdir'
21107           hardcode_direct_F77=no
21108           hardcode_shlibpath_var_F77=no
21109
21110           # hardcode_minus_L: Not really in the search PATH,
21111           # but as the default location of the library.
21112           hardcode_minus_L_F77=yes
21113           ;;
21114         *)
21115           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21116           hardcode_libdir_separator_F77=:
21117           hardcode_direct_F77=yes
21118           export_dynamic_flag_spec_F77='${wl}-E'
21119
21120           # hardcode_minus_L: Not really in the search PATH,
21121           # but as the default location of the library.
21122           hardcode_minus_L_F77=yes
21123           ;;
21124         esac
21125       fi
21126       ;;
21127
21128     irix5* | irix6* | nonstopux*)
21129       if test "$GCC" = yes; then
21130         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'
21131       else
21132         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'
21133         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21134       fi
21135       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21136       hardcode_libdir_separator_F77=:
21137       link_all_deplibs_F77=yes
21138       ;;
21139
21140     netbsd*)
21141       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21142         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21143       else
21144         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21145       fi
21146       hardcode_libdir_flag_spec_F77='-R$libdir'
21147       hardcode_direct_F77=yes
21148       hardcode_shlibpath_var_F77=no
21149       ;;
21150
21151     newsos6)
21152       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21153       hardcode_direct_F77=yes
21154       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21155       hardcode_libdir_separator_F77=:
21156       hardcode_shlibpath_var_F77=no
21157       ;;
21158
21159     openbsd*)
21160       hardcode_direct_F77=yes
21161       hardcode_shlibpath_var_F77=no
21162       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21163         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21164         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21165         export_dynamic_flag_spec_F77='${wl}-E'
21166       else
21167        case $host_os in
21168          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21169            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21170            hardcode_libdir_flag_spec_F77='-R$libdir'
21171            ;;
21172          *)
21173            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21174            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21175            ;;
21176        esac
21177       fi
21178       ;;
21179
21180     os2*)
21181       hardcode_libdir_flag_spec_F77='-L$libdir'
21182       hardcode_minus_L_F77=yes
21183       allow_undefined_flag_F77=unsupported
21184       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'
21185       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21186       ;;
21187
21188     osf3*)
21189       if test "$GCC" = yes; then
21190         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21191         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'
21192       else
21193         allow_undefined_flag_F77=' -expect_unresolved \*'
21194         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'
21195       fi
21196       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21197       hardcode_libdir_separator_F77=:
21198       ;;
21199
21200     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21201       if test "$GCC" = yes; then
21202         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21203         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'
21204         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21205       else
21206         allow_undefined_flag_F77=' -expect_unresolved \*'
21207         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'
21208         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~
21209         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
21210
21211         # Both c and cxx compiler support -rpath directly
21212         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21213       fi
21214       hardcode_libdir_separator_F77=:
21215       ;;
21216
21217     sco3.2v5*)
21218       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21219       hardcode_shlibpath_var_F77=no
21220       export_dynamic_flag_spec_F77='${wl}-Bexport'
21221       runpath_var=LD_RUN_PATH
21222       hardcode_runpath_var=yes
21223       ;;
21224
21225     solaris*)
21226       no_undefined_flag_F77=' -z text'
21227       if test "$GCC" = yes; then
21228         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21229         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21230           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21231       else
21232         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21233         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21234         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21235       fi
21236       hardcode_libdir_flag_spec_F77='-R$libdir'
21237       hardcode_shlibpath_var_F77=no
21238       case $host_os in
21239       solaris2.[0-5] | solaris2.[0-5].*) ;;
21240       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21241         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21242       esac
21243       link_all_deplibs_F77=yes
21244       ;;
21245
21246     sunos4*)
21247       if test "x$host_vendor" = xsequent; then
21248         # Use $CC to link under sequent, because it throws in some extra .o
21249         # files that make .init and .fini sections work.
21250         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21251       else
21252         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21253       fi
21254       hardcode_libdir_flag_spec_F77='-L$libdir'
21255       hardcode_direct_F77=yes
21256       hardcode_minus_L_F77=yes
21257       hardcode_shlibpath_var_F77=no
21258       ;;
21259
21260     sysv4)
21261       case $host_vendor in
21262         sni)
21263           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21264           hardcode_direct_F77=yes # is this really true???
21265         ;;
21266         siemens)
21267           ## LD is ld it makes a PLAMLIB
21268           ## CC just makes a GrossModule.
21269           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21270           reload_cmds_F77='$CC -r -o $output$reload_objs'
21271           hardcode_direct_F77=no
21272         ;;
21273         motorola)
21274           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21275           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21276         ;;
21277       esac
21278       runpath_var='LD_RUN_PATH'
21279       hardcode_shlibpath_var_F77=no
21280       ;;
21281
21282     sysv4.3*)
21283       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21284       hardcode_shlibpath_var_F77=no
21285       export_dynamic_flag_spec_F77='-Bexport'
21286       ;;
21287
21288     sysv4*MP*)
21289       if test -d /usr/nec; then
21290         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21291         hardcode_shlibpath_var_F77=no
21292         runpath_var=LD_RUN_PATH
21293         hardcode_runpath_var=yes
21294         ld_shlibs_F77=yes
21295       fi
21296       ;;
21297
21298     sysv4.2uw2*)
21299       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21300       hardcode_direct_F77=yes
21301       hardcode_minus_L_F77=no
21302       hardcode_shlibpath_var_F77=no
21303       hardcode_runpath_var=yes
21304       runpath_var=LD_RUN_PATH
21305       ;;
21306
21307    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
21308       no_undefined_flag_F77='${wl}-z ${wl}text'
21309       if test "$GCC" = yes; then
21310         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21311       else
21312         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313       fi
21314       runpath_var='LD_RUN_PATH'
21315       hardcode_shlibpath_var_F77=no
21316       ;;
21317
21318     sysv5*)
21319       no_undefined_flag_F77=' -z text'
21320       # $CC -shared without GNU ld will not create a library from C++
21321       # object files and a static libstdc++, better avoid it by now
21322       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21323       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21324                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21325       hardcode_libdir_flag_spec_F77=
21326       hardcode_shlibpath_var_F77=no
21327       runpath_var='LD_RUN_PATH'
21328       ;;
21329
21330     uts4*)
21331       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21332       hardcode_libdir_flag_spec_F77='-L$libdir'
21333       hardcode_shlibpath_var_F77=no
21334       ;;
21335
21336     *)
21337       ld_shlibs_F77=no
21338       ;;
21339     esac
21340   fi
21341
21342 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21343 echo "${ECHO_T}$ld_shlibs_F77" >&6
21344 test "$ld_shlibs_F77" = no && can_build_shared=no
21345
21346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21347 if test "$GCC" = yes; then
21348   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21349 fi
21350
21351 #
21352 # Do we need to explicitly link libc?
21353 #
21354 case "x$archive_cmds_need_lc_F77" in
21355 x|xyes)
21356   # Assume -lc should be added
21357   archive_cmds_need_lc_F77=yes
21358
21359   if test "$enable_shared" = yes && test "$GCC" = yes; then
21360     case $archive_cmds_F77 in
21361     *'~'*)
21362       # FIXME: we may have to deal with multi-command sequences.
21363       ;;
21364     '$CC '*)
21365       # Test whether the compiler implicitly links with -lc since on some
21366       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21367       # to ld, don't add -lc before -lgcc.
21368       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21369 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21370       $rm conftest*
21371       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21372
21373       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21374   (eval $ac_compile) 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } 2>conftest.err; then
21378         soname=conftest
21379         lib=conftest
21380         libobjs=conftest.$ac_objext
21381         deplibs=
21382         wl=$lt_prog_compiler_wl_F77
21383         compiler_flags=-v
21384         linker_flags=-v
21385         verstring=
21386         output_objdir=.
21387         libname=conftest
21388         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21389         allow_undefined_flag_F77=
21390         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21391   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }
21395         then
21396           archive_cmds_need_lc_F77=no
21397         else
21398           archive_cmds_need_lc_F77=yes
21399         fi
21400         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21401       else
21402         cat conftest.err 1>&5
21403       fi
21404       $rm conftest*
21405       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21406 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21407       ;;
21408     esac
21409   fi
21410   ;;
21411 esac
21412
21413 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21414 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21415 library_names_spec=
21416 libname_spec='lib$name'
21417 soname_spec=
21418 shrext_cmds=".so"
21419 postinstall_cmds=
21420 postuninstall_cmds=
21421 finish_cmds=
21422 finish_eval=
21423 shlibpath_var=
21424 shlibpath_overrides_runpath=unknown
21425 version_type=none
21426 dynamic_linker="$host_os ld.so"
21427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21428 if test "$GCC" = yes; then
21429   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21430   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21431     # if the path contains ";" then we assume it to be the separator
21432     # otherwise default to the standard path separator (i.e. ":") - it is
21433     # assumed that no part of a normal pathname contains ";" but that should
21434     # okay in the real world where ";" in dirpaths is itself problematic.
21435     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21436   else
21437     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21438   fi
21439 else
21440   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21441 fi
21442 need_lib_prefix=unknown
21443 hardcode_into_libs=no
21444
21445 # when you set need_version to no, make sure it does not cause -set_version
21446 # flags to be left without arguments
21447 need_version=unknown
21448
21449 case $host_os in
21450 aix3*)
21451   version_type=linux
21452   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21453   shlibpath_var=LIBPATH
21454
21455   # AIX 3 has no versioning support, so we append a major version to the name.
21456   soname_spec='${libname}${release}${shared_ext}$major'
21457   ;;
21458
21459 aix4* | aix5*)
21460   version_type=linux
21461   need_lib_prefix=no
21462   need_version=no
21463   hardcode_into_libs=yes
21464   if test "$host_cpu" = ia64; then
21465     # AIX 5 supports IA64
21466     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21467     shlibpath_var=LD_LIBRARY_PATH
21468   else
21469     # With GCC up to 2.95.x, collect2 would create an import file
21470     # for dependence libraries.  The import file would start with
21471     # the line `#! .'.  This would cause the generated library to
21472     # depend on `.', always an invalid library.  This was fixed in
21473     # development snapshots of GCC prior to 3.0.
21474     case $host_os in
21475       aix4 | aix4.[01] | aix4.[01].*)
21476       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21477            echo ' yes '
21478            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21479         :
21480       else
21481         can_build_shared=no
21482       fi
21483       ;;
21484     esac
21485     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21486     # soname into executable. Probably we can add versioning support to
21487     # collect2, so additional links can be useful in future.
21488     if test "$aix_use_runtimelinking" = yes; then
21489       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21490       # instead of lib<name>.a to let people know that these are not
21491       # typical AIX shared libraries.
21492       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21493     else
21494       # We preserve .a as extension for shared libraries through AIX4.2
21495       # and later when we are not doing run time linking.
21496       library_names_spec='${libname}${release}.a $libname.a'
21497       soname_spec='${libname}${release}${shared_ext}$major'
21498     fi
21499     shlibpath_var=LIBPATH
21500   fi
21501   ;;
21502
21503 amigaos*)
21504   library_names_spec='$libname.ixlibrary $libname.a'
21505   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21506   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'
21507   ;;
21508
21509 beos*)
21510   library_names_spec='${libname}${shared_ext}'
21511   dynamic_linker="$host_os ld.so"
21512   shlibpath_var=LIBRARY_PATH
21513   ;;
21514
21515 bsdi4*)
21516   version_type=linux
21517   need_version=no
21518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21519   soname_spec='${libname}${release}${shared_ext}$major'
21520   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21521   shlibpath_var=LD_LIBRARY_PATH
21522   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21523   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21524   # the default ld.so.conf also contains /usr/contrib/lib and
21525   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21526   # libtool to hard-code these into programs
21527   ;;
21528
21529 cygwin* | mingw* | pw32*)
21530   version_type=windows
21531   shrext_cmds=".dll"
21532   need_version=no
21533   need_lib_prefix=no
21534
21535   case $GCC,$host_os in
21536   yes,cygwin* | yes,mingw* | yes,pw32*)
21537     library_names_spec='$libname.dll.a'
21538     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21539     postinstall_cmds='base_file=`basename \${file}`~
21540       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21541       dldir=$destdir/`dirname \$dlpath`~
21542       test -d \$dldir || mkdir -p \$dldir~
21543       $install_prog $dir/$dlname \$dldir/$dlname'
21544     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21545       dlpath=$dir/\$dldll~
21546        $rm \$dlpath'
21547     shlibpath_overrides_runpath=yes
21548
21549     case $host_os in
21550     cygwin*)
21551       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21552       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21553       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21554       ;;
21555     mingw*)
21556       # MinGW DLLs use traditional 'lib' prefix
21557       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21558       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21559       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21560         # It is most probably a Windows format PATH printed by
21561         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21562         # path with ; separators, and with drive letters. We can handle the
21563         # drive letters (cygwin fileutils understands them), so leave them,
21564         # especially as we might pass files found there to a mingw objdump,
21565         # which wouldn't understand a cygwinified path. Ahh.
21566         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21567       else
21568         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21569       fi
21570       ;;
21571     pw32*)
21572       # pw32 DLLs use 'pw' prefix rather than 'lib'
21573       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
21574       ;;
21575     esac
21576     ;;
21577
21578   *)
21579     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21580     ;;
21581   esac
21582   dynamic_linker='Win32 ld.exe'
21583   # FIXME: first we should search . and the directory the executable is in
21584   shlibpath_var=PATH
21585   ;;
21586
21587 darwin* | rhapsody*)
21588   dynamic_linker="$host_os dyld"
21589   version_type=darwin
21590   need_lib_prefix=no
21591   need_version=no
21592   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21593   soname_spec='${libname}${release}${major}$shared_ext'
21594   shlibpath_overrides_runpath=yes
21595   shlibpath_var=DYLD_LIBRARY_PATH
21596   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21597   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21598   if test "$GCC" = yes; then
21599     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"`
21600   else
21601     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21602   fi
21603   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21604   ;;
21605
21606 dgux*)
21607   version_type=linux
21608   need_lib_prefix=no
21609   need_version=no
21610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21611   soname_spec='${libname}${release}${shared_ext}$major'
21612   shlibpath_var=LD_LIBRARY_PATH
21613   ;;
21614
21615 freebsd1*)
21616   dynamic_linker=no
21617   ;;
21618
21619 kfreebsd*-gnu)
21620   version_type=linux
21621   need_lib_prefix=no
21622   need_version=no
21623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21624   soname_spec='${libname}${release}${shared_ext}$major'
21625   shlibpath_var=LD_LIBRARY_PATH
21626   shlibpath_overrides_runpath=no
21627   hardcode_into_libs=yes
21628   dynamic_linker='GNU ld.so'
21629   ;;
21630
21631 freebsd*)
21632   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21633   version_type=freebsd-$objformat
21634   case $version_type in
21635     freebsd-elf*)
21636       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21637       need_version=no
21638       need_lib_prefix=no
21639       ;;
21640     freebsd-*)
21641       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21642       need_version=yes
21643       ;;
21644   esac
21645   shlibpath_var=LD_LIBRARY_PATH
21646   case $host_os in
21647   freebsd2*)
21648     shlibpath_overrides_runpath=yes
21649     ;;
21650   freebsd3.01* | freebsdelf3.01*)
21651     shlibpath_overrides_runpath=yes
21652     hardcode_into_libs=yes
21653     ;;
21654   *) # from 3.2 on
21655     shlibpath_overrides_runpath=no
21656     hardcode_into_libs=yes
21657     ;;
21658   esac
21659   ;;
21660
21661 gnu*)
21662   version_type=linux
21663   need_lib_prefix=no
21664   need_version=no
21665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21666   soname_spec='${libname}${release}${shared_ext}$major'
21667   shlibpath_var=LD_LIBRARY_PATH
21668   hardcode_into_libs=yes
21669   ;;
21670
21671 hpux9* | hpux10* | hpux11*)
21672   # Give a soname corresponding to the major version so that dld.sl refuses to
21673   # link against other versions.
21674   version_type=sunos
21675   need_lib_prefix=no
21676   need_version=no
21677   case "$host_cpu" in
21678   ia64*)
21679     shrext_cmds='.so'
21680     hardcode_into_libs=yes
21681     dynamic_linker="$host_os dld.so"
21682     shlibpath_var=LD_LIBRARY_PATH
21683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21685     soname_spec='${libname}${release}${shared_ext}$major'
21686     if test "X$HPUX_IA64_MODE" = X32; then
21687       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21688     else
21689       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21690     fi
21691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21692     ;;
21693    hppa*64*)
21694      shrext_cmds='.sl'
21695      hardcode_into_libs=yes
21696      dynamic_linker="$host_os dld.sl"
21697      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21698      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21699      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21700      soname_spec='${libname}${release}${shared_ext}$major'
21701      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21702      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21703      ;;
21704    *)
21705     shrext_cmds='.sl'
21706     dynamic_linker="$host_os dld.sl"
21707     shlibpath_var=SHLIB_PATH
21708     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21710     soname_spec='${libname}${release}${shared_ext}$major'
21711     ;;
21712   esac
21713   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21714   postinstall_cmds='chmod 555 $lib'
21715   ;;
21716
21717 irix5* | irix6* | nonstopux*)
21718   case $host_os in
21719     nonstopux*) version_type=nonstopux ;;
21720     *)
21721         if test "$lt_cv_prog_gnu_ld" = yes; then
21722                 version_type=linux
21723         else
21724                 version_type=irix
21725         fi ;;
21726   esac
21727   need_lib_prefix=no
21728   need_version=no
21729   soname_spec='${libname}${release}${shared_ext}$major'
21730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21731   case $host_os in
21732   irix5* | nonstopux*)
21733     libsuff= shlibsuff=
21734     ;;
21735   *)
21736     case $LD in # libtool.m4 will add one of these switches to LD
21737     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21738       libsuff= shlibsuff= libmagic=32-bit;;
21739     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21740       libsuff=32 shlibsuff=N32 libmagic=N32;;
21741     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21742       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21743     *) libsuff= shlibsuff= libmagic=never-match;;
21744     esac
21745     ;;
21746   esac
21747   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21748   shlibpath_overrides_runpath=no
21749   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21750   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21751   hardcode_into_libs=yes
21752   ;;
21753
21754 # No shared lib support for Linux oldld, aout, or coff.
21755 linux*oldld* | linux*aout* | linux*coff*)
21756   dynamic_linker=no
21757   ;;
21758
21759 # This must be Linux ELF.
21760 linux*)
21761   version_type=linux
21762   need_lib_prefix=no
21763   need_version=no
21764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21765   soname_spec='${libname}${release}${shared_ext}$major'
21766   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21767   shlibpath_var=LD_LIBRARY_PATH
21768   shlibpath_overrides_runpath=no
21769   # This implies no fast_install, which is unacceptable.
21770   # Some rework will be needed to allow for fast_install
21771   # before this can be enabled.
21772   hardcode_into_libs=yes
21773
21774   # find out which ABI we are using
21775   libsuff=
21776   case "$host_cpu" in
21777   x86_64*|s390x*|powerpc64*)
21778     echo '#line 21778 "configure"' > conftest.$ac_ext
21779     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21780   (eval $ac_compile) 2>&5
21781   ac_status=$?
21782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783   (exit $ac_status); }; then
21784       case `/usr/bin/file conftest.$ac_objext` in
21785       *64-bit*)
21786         libsuff=64
21787         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21788         ;;
21789       esac
21790     fi
21791     rm -rf conftest*
21792     ;;
21793   esac
21794
21795   # Append ld.so.conf contents to the search path
21796   if test -f /etc/ld.so.conf; then
21797     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
21798     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21799   fi
21800
21801   # We used to test for /lib/ld.so.1 and disable shared libraries on
21802   # powerpc, because MkLinux only supported shared libraries with the
21803   # GNU dynamic linker.  Since this was broken with cross compilers,
21804   # most powerpc-linux boxes support dynamic linking these days and
21805   # people can always --disable-shared, the test was removed, and we
21806   # assume the GNU/Linux dynamic linker is in use.
21807   dynamic_linker='GNU/Linux ld.so'
21808   ;;
21809
21810 knetbsd*-gnu)
21811   version_type=linux
21812   need_lib_prefix=no
21813   need_version=no
21814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21815   soname_spec='${libname}${release}${shared_ext}$major'
21816   shlibpath_var=LD_LIBRARY_PATH
21817   shlibpath_overrides_runpath=no
21818   hardcode_into_libs=yes
21819   dynamic_linker='GNU ld.so'
21820   ;;
21821
21822 netbsd*)
21823   version_type=sunos
21824   need_lib_prefix=no
21825   need_version=no
21826   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21828     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21829     dynamic_linker='NetBSD (a.out) ld.so'
21830   else
21831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21832     soname_spec='${libname}${release}${shared_ext}$major'
21833     dynamic_linker='NetBSD ld.elf_so'
21834   fi
21835   shlibpath_var=LD_LIBRARY_PATH
21836   shlibpath_overrides_runpath=yes
21837   hardcode_into_libs=yes
21838   ;;
21839
21840 newsos6)
21841   version_type=linux
21842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21843   shlibpath_var=LD_LIBRARY_PATH
21844   shlibpath_overrides_runpath=yes
21845   ;;
21846
21847 nto-qnx*)
21848   version_type=linux
21849   need_lib_prefix=no
21850   need_version=no
21851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21852   soname_spec='${libname}${release}${shared_ext}$major'
21853   shlibpath_var=LD_LIBRARY_PATH
21854   shlibpath_overrides_runpath=yes
21855   ;;
21856
21857 openbsd*)
21858   version_type=sunos
21859   need_lib_prefix=no
21860   need_version=yes
21861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21862   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21863   shlibpath_var=LD_LIBRARY_PATH
21864   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21865     case $host_os in
21866       openbsd2.[89] | openbsd2.[89].*)
21867         shlibpath_overrides_runpath=no
21868         ;;
21869       *)
21870         shlibpath_overrides_runpath=yes
21871         ;;
21872       esac
21873   else
21874     shlibpath_overrides_runpath=yes
21875   fi
21876   ;;
21877
21878 os2*)
21879   libname_spec='$name'
21880   shrext_cmds=".dll"
21881   need_lib_prefix=no
21882   library_names_spec='$libname${shared_ext} $libname.a'
21883   dynamic_linker='OS/2 ld.exe'
21884   shlibpath_var=LIBPATH
21885   ;;
21886
21887 osf3* | osf4* | osf5*)
21888   version_type=osf
21889   need_lib_prefix=no
21890   need_version=no
21891   soname_spec='${libname}${release}${shared_ext}$major'
21892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21893   shlibpath_var=LD_LIBRARY_PATH
21894   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21895   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21896   ;;
21897
21898 sco3.2v5*)
21899   version_type=osf
21900   soname_spec='${libname}${release}${shared_ext}$major'
21901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21902   shlibpath_var=LD_LIBRARY_PATH
21903   ;;
21904
21905 solaris*)
21906   version_type=linux
21907   need_lib_prefix=no
21908   need_version=no
21909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21910   soname_spec='${libname}${release}${shared_ext}$major'
21911   shlibpath_var=LD_LIBRARY_PATH
21912   shlibpath_overrides_runpath=yes
21913   hardcode_into_libs=yes
21914   # ldd complains unless libraries are executable
21915   postinstall_cmds='chmod +x $lib'
21916   ;;
21917
21918 sunos4*)
21919   version_type=sunos
21920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21921   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21922   shlibpath_var=LD_LIBRARY_PATH
21923   shlibpath_overrides_runpath=yes
21924   if test "$with_gnu_ld" = yes; then
21925     need_lib_prefix=no
21926   fi
21927   need_version=yes
21928   ;;
21929
21930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21931   version_type=linux
21932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21933   soname_spec='${libname}${release}${shared_ext}$major'
21934   shlibpath_var=LD_LIBRARY_PATH
21935   case $host_vendor in
21936     sni)
21937       shlibpath_overrides_runpath=no
21938       need_lib_prefix=no
21939       export_dynamic_flag_spec='${wl}-Blargedynsym'
21940       runpath_var=LD_RUN_PATH
21941       ;;
21942     siemens)
21943       need_lib_prefix=no
21944       ;;
21945     motorola)
21946       need_lib_prefix=no
21947       need_version=no
21948       shlibpath_overrides_runpath=no
21949       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21950       ;;
21951   esac
21952   ;;
21953
21954 sysv4*MP*)
21955   if test -d /usr/nec ;then
21956     version_type=linux
21957     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21958     soname_spec='$libname${shared_ext}.$major'
21959     shlibpath_var=LD_LIBRARY_PATH
21960   fi
21961   ;;
21962
21963 uts4*)
21964   version_type=linux
21965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21966   soname_spec='${libname}${release}${shared_ext}$major'
21967   shlibpath_var=LD_LIBRARY_PATH
21968   ;;
21969
21970 *)
21971   dynamic_linker=no
21972   ;;
21973 esac
21974 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21975 echo "${ECHO_T}$dynamic_linker" >&6
21976 test "$dynamic_linker" = no && can_build_shared=no
21977
21978 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21979 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21980 hardcode_action_F77=
21981 if test -n "$hardcode_libdir_flag_spec_F77" || \
21982    test -n "$runpath_var F77" || \
21983    test "X$hardcode_automatic_F77"="Xyes" ; then
21984
21985   # We can hardcode non-existant directories.
21986   if test "$hardcode_direct_F77" != no &&
21987      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21988      # have to relink, otherwise we might link with an installed library
21989      # when we should be linking with a yet-to-be-installed one
21990      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21991      test "$hardcode_minus_L_F77" != no; then
21992     # Linking always hardcodes the temporary library directory.
21993     hardcode_action_F77=relink
21994   else
21995     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21996     hardcode_action_F77=immediate
21997   fi
21998 else
21999   # We cannot hardcode anything, or else we can only hardcode existing
22000   # directories.
22001   hardcode_action_F77=unsupported
22002 fi
22003 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22004 echo "${ECHO_T}$hardcode_action_F77" >&6
22005
22006 if test "$hardcode_action_F77" = relink; then
22007   # Fast installation is not supported
22008   enable_fast_install=no
22009 elif test "$shlibpath_overrides_runpath" = yes ||
22010      test "$enable_shared" = no; then
22011   # Fast installation is not necessary
22012   enable_fast_install=needless
22013 fi
22014
22015 striplib=
22016 old_striplib=
22017 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22018 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22019 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22020   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22021   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22022   echo "$as_me:$LINENO: result: yes" >&5
22023 echo "${ECHO_T}yes" >&6
22024 else
22025 # FIXME - insert some real tests, host_os isn't really good enough
22026   case $host_os in
22027    darwin*)
22028        if test -n "$STRIP" ; then
22029          striplib="$STRIP -x"
22030          echo "$as_me:$LINENO: result: yes" >&5
22031 echo "${ECHO_T}yes" >&6
22032        else
22033   echo "$as_me:$LINENO: result: no" >&5
22034 echo "${ECHO_T}no" >&6
22035 fi
22036        ;;
22037    *)
22038   echo "$as_me:$LINENO: result: no" >&5
22039 echo "${ECHO_T}no" >&6
22040     ;;
22041   esac
22042 fi
22043
22044
22045
22046 # The else clause should only fire when bootstrapping the
22047 # libtool distribution, otherwise you forgot to ship ltmain.sh
22048 # with your package, and you will get complaints that there are
22049 # no rules to generate ltmain.sh.
22050 if test -f "$ltmain"; then
22051   # See if we are running on zsh, and set the options which allow our commands through
22052   # without removal of \ escapes.
22053   if test -n "${ZSH_VERSION+set}" ; then
22054     setopt NO_GLOB_SUBST
22055   fi
22056   # Now quote all the things that may contain metacharacters while being
22057   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22058   # variables and quote the copies for generation of the libtool script.
22059   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22060     SED SHELL STRIP \
22061     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22062     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22063     deplibs_check_method reload_flag reload_cmds need_locks \
22064     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22065     lt_cv_sys_global_symbol_to_c_name_address \
22066     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22067     old_postinstall_cmds old_postuninstall_cmds \
22068     compiler_F77 \
22069     CC_F77 \
22070     LD_F77 \
22071     lt_prog_compiler_wl_F77 \
22072     lt_prog_compiler_pic_F77 \
22073     lt_prog_compiler_static_F77 \
22074     lt_prog_compiler_no_builtin_flag_F77 \
22075     export_dynamic_flag_spec_F77 \
22076     thread_safe_flag_spec_F77 \
22077     whole_archive_flag_spec_F77 \
22078     enable_shared_with_static_runtimes_F77 \
22079     old_archive_cmds_F77 \
22080     old_archive_from_new_cmds_F77 \
22081     predep_objects_F77 \
22082     postdep_objects_F77 \
22083     predeps_F77 \
22084     postdeps_F77 \
22085     compiler_lib_search_path_F77 \
22086     archive_cmds_F77 \
22087     archive_expsym_cmds_F77 \
22088     postinstall_cmds_F77 \
22089     postuninstall_cmds_F77 \
22090     old_archive_from_expsyms_cmds_F77 \
22091     allow_undefined_flag_F77 \
22092     no_undefined_flag_F77 \
22093     export_symbols_cmds_F77 \
22094     hardcode_libdir_flag_spec_F77 \
22095     hardcode_libdir_flag_spec_ld_F77 \
22096     hardcode_libdir_separator_F77 \
22097     hardcode_automatic_F77 \
22098     module_cmds_F77 \
22099     module_expsym_cmds_F77 \
22100     lt_cv_prog_compiler_c_o_F77 \
22101     exclude_expsyms_F77 \
22102     include_expsyms_F77; do
22103
22104     case $var in
22105     old_archive_cmds_F77 | \
22106     old_archive_from_new_cmds_F77 | \
22107     archive_cmds_F77 | \
22108     archive_expsym_cmds_F77 | \
22109     module_cmds_F77 | \
22110     module_expsym_cmds_F77 | \
22111     old_archive_from_expsyms_cmds_F77 | \
22112     export_symbols_cmds_F77 | \
22113     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22114     postinstall_cmds | postuninstall_cmds | \
22115     old_postinstall_cmds | old_postuninstall_cmds | \
22116     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22117       # Double-quote double-evaled strings.
22118       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22119       ;;
22120     *)
22121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22122       ;;
22123     esac
22124   done
22125
22126   case $lt_echo in
22127   *'\$0 --fallback-echo"')
22128     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22129     ;;
22130   esac
22131
22132 cfgfile="$ofile"
22133
22134   cat <<__EOF__ >> "$cfgfile"
22135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22136
22137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22138
22139 # Shell to use when invoking shell scripts.
22140 SHELL=$lt_SHELL
22141
22142 # Whether or not to build shared libraries.
22143 build_libtool_libs=$enable_shared
22144
22145 # Whether or not to build static libraries.
22146 build_old_libs=$enable_static
22147
22148 # Whether or not to add -lc for building shared libraries.
22149 build_libtool_need_lc=$archive_cmds_need_lc_F77
22150
22151 # Whether or not to disallow shared libs when runtime libs are static
22152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22153
22154 # Whether or not to optimize for fast installation.
22155 fast_install=$enable_fast_install
22156
22157 # The host system.
22158 host_alias=$host_alias
22159 host=$host
22160
22161 # An echo program that does not interpret backslashes.
22162 echo=$lt_echo
22163
22164 # The archiver.
22165 AR=$lt_AR
22166 AR_FLAGS=$lt_AR_FLAGS
22167
22168 # A C compiler.
22169 LTCC=$lt_LTCC
22170
22171 # A language-specific compiler.
22172 CC=$lt_compiler_F77
22173
22174 # Is the compiler the GNU C compiler?
22175 with_gcc=$GCC_F77
22176
22177 # An ERE matcher.
22178 EGREP=$lt_EGREP
22179
22180 # The linker used to build libraries.
22181 LD=$lt_LD_F77
22182
22183 # Whether we need hard or soft links.
22184 LN_S=$lt_LN_S
22185
22186 # A BSD-compatible nm program.
22187 NM=$lt_NM
22188
22189 # A symbol stripping program
22190 STRIP=$lt_STRIP
22191
22192 # Used to examine libraries when file_magic_cmd begins "file"
22193 MAGIC_CMD=$MAGIC_CMD
22194
22195 # Used on cygwin: DLL creation program.
22196 DLLTOOL="$DLLTOOL"
22197
22198 # Used on cygwin: object dumper.
22199 OBJDUMP="$OBJDUMP"
22200
22201 # Used on cygwin: assembler.
22202 AS="$AS"
22203
22204 # The name of the directory that contains temporary libtool files.
22205 objdir=$objdir
22206
22207 # How to create reloadable object files.
22208 reload_flag=$lt_reload_flag
22209 reload_cmds=$lt_reload_cmds
22210
22211 # How to pass a linker flag through the compiler.
22212 wl=$lt_lt_prog_compiler_wl_F77
22213
22214 # Object file suffix (normally "o").
22215 objext="$ac_objext"
22216
22217 # Old archive suffix (normally "a").
22218 libext="$libext"
22219
22220 # Shared library suffix (normally ".so").
22221 shrext_cmds='$shrext_cmds'
22222
22223 # Executable file suffix (normally "").
22224 exeext="$exeext"
22225
22226 # Additional compiler flags for building library objects.
22227 pic_flag=$lt_lt_prog_compiler_pic_F77
22228 pic_mode=$pic_mode
22229
22230 # What is the maximum length of a command?
22231 max_cmd_len=$lt_cv_sys_max_cmd_len
22232
22233 # Does compiler simultaneously support -c and -o options?
22234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22235
22236 # Must we lock files when doing compilation ?
22237 need_locks=$lt_need_locks
22238
22239 # Do we need the lib prefix for modules?
22240 need_lib_prefix=$need_lib_prefix
22241
22242 # Do we need a version for libraries?
22243 need_version=$need_version
22244
22245 # Whether dlopen is supported.
22246 dlopen_support=$enable_dlopen
22247
22248 # Whether dlopen of programs is supported.
22249 dlopen_self=$enable_dlopen_self
22250
22251 # Whether dlopen of statically linked programs is supported.
22252 dlopen_self_static=$enable_dlopen_self_static
22253
22254 # Compiler flag to prevent dynamic linking.
22255 link_static_flag=$lt_lt_prog_compiler_static_F77
22256
22257 # Compiler flag to turn off builtin functions.
22258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22259
22260 # Compiler flag to allow reflexive dlopens.
22261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22262
22263 # Compiler flag to generate shared objects directly from archives.
22264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22265
22266 # Compiler flag to generate thread-safe objects.
22267 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22268
22269 # Library versioning type.
22270 version_type=$version_type
22271
22272 # Format of library name prefix.
22273 libname_spec=$lt_libname_spec
22274
22275 # List of archive names.  First name is the real one, the rest are links.
22276 # The last name is the one that the linker finds with -lNAME.
22277 library_names_spec=$lt_library_names_spec
22278
22279 # The coded name of the library, if different from the real name.
22280 soname_spec=$lt_soname_spec
22281
22282 # Commands used to build and install an old-style archive.
22283 RANLIB=$lt_RANLIB
22284 old_archive_cmds=$lt_old_archive_cmds_F77
22285 old_postinstall_cmds=$lt_old_postinstall_cmds
22286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22287
22288 # Create an old-style archive from a shared archive.
22289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22290
22291 # Create a temporary old-style archive to link instead of a shared archive.
22292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22293
22294 # Commands used to build and install a shared archive.
22295 archive_cmds=$lt_archive_cmds_F77
22296 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22297 postinstall_cmds=$lt_postinstall_cmds
22298 postuninstall_cmds=$lt_postuninstall_cmds
22299
22300 # Commands used to build a loadable module (assumed same as above if empty)
22301 module_cmds=$lt_module_cmds_F77
22302 module_expsym_cmds=$lt_module_expsym_cmds_F77
22303
22304 # Commands to strip libraries.
22305 old_striplib=$lt_old_striplib
22306 striplib=$lt_striplib
22307
22308 # Dependencies to place before the objects being linked to create a
22309 # shared library.
22310 predep_objects=$lt_predep_objects_F77
22311
22312 # Dependencies to place after the objects being linked to create a
22313 # shared library.
22314 postdep_objects=$lt_postdep_objects_F77
22315
22316 # Dependencies to place before the objects being linked to create a
22317 # shared library.
22318 predeps=$lt_predeps_F77
22319
22320 # Dependencies to place after the objects being linked to create a
22321 # shared library.
22322 postdeps=$lt_postdeps_F77
22323
22324 # The library search path used internally by the compiler when linking
22325 # a shared library.
22326 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22327
22328 # Method to check whether dependent libraries are shared objects.
22329 deplibs_check_method=$lt_deplibs_check_method
22330
22331 # Command to use when deplibs_check_method == file_magic.
22332 file_magic_cmd=$lt_file_magic_cmd
22333
22334 # Flag that allows shared libraries with undefined symbols to be built.
22335 allow_undefined_flag=$lt_allow_undefined_flag_F77
22336
22337 # Flag that forces no undefined symbols.
22338 no_undefined_flag=$lt_no_undefined_flag_F77
22339
22340 # Commands used to finish a libtool library installation in a directory.
22341 finish_cmds=$lt_finish_cmds
22342
22343 # Same as above, but a single script fragment to be evaled but not shown.
22344 finish_eval=$lt_finish_eval
22345
22346 # Take the output of nm and produce a listing of raw symbols and C names.
22347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22348
22349 # Transform the output of nm in a proper C declaration
22350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22351
22352 # Transform the output of nm in a C name address pair
22353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22354
22355 # This is the shared library runtime path variable.
22356 runpath_var=$runpath_var
22357
22358 # This is the shared library path variable.
22359 shlibpath_var=$shlibpath_var
22360
22361 # Is shlibpath searched before the hard-coded library search path?
22362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22363
22364 # How to hardcode a shared library path into an executable.
22365 hardcode_action=$hardcode_action_F77
22366
22367 # Whether we should hardcode library paths into libraries.
22368 hardcode_into_libs=$hardcode_into_libs
22369
22370 # Flag to hardcode \$libdir into a binary during linking.
22371 # This must work even if \$libdir does not exist.
22372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22373
22374 # If ld is used when linking, flag to hardcode \$libdir into
22375 # a binary during linking. This must work even if \$libdir does
22376 # not exist.
22377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22378
22379 # Whether we need a single -rpath flag with a separated argument.
22380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22381
22382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22383 # resulting binary.
22384 hardcode_direct=$hardcode_direct_F77
22385
22386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22387 # resulting binary.
22388 hardcode_minus_L=$hardcode_minus_L_F77
22389
22390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22391 # the resulting binary.
22392 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22393
22394 # Set to yes if building a shared library automatically hardcodes DIR into the library
22395 # and all subsequent libraries and executables linked against it.
22396 hardcode_automatic=$hardcode_automatic_F77
22397
22398 # Variables whose values should be saved in libtool wrapper scripts and
22399 # restored at relink time.
22400 variables_saved_for_relink="$variables_saved_for_relink"
22401
22402 # Whether libtool must link a program against all its dependency libraries.
22403 link_all_deplibs=$link_all_deplibs_F77
22404
22405 # Compile-time system search path for libraries
22406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22407
22408 # Run-time system search path for libraries
22409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22410
22411 # Fix the shell variable \$srcfile for the compiler.
22412 fix_srcfile_path="$fix_srcfile_path_F77"
22413
22414 # Set to yes if exported symbols are required.
22415 always_export_symbols=$always_export_symbols_F77
22416
22417 # The commands to list exported symbols.
22418 export_symbols_cmds=$lt_export_symbols_cmds_F77
22419
22420 # The commands to extract the exported symbol list from a shared archive.
22421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22422
22423 # Symbols that should not be listed in the preloaded symbols.
22424 exclude_expsyms=$lt_exclude_expsyms_F77
22425
22426 # Symbols that must always be exported.
22427 include_expsyms=$lt_include_expsyms_F77
22428
22429 # ### END LIBTOOL TAG CONFIG: $tagname
22430
22431 __EOF__
22432
22433
22434 else
22435   # If there is no Makefile yet, we rely on a make rule to execute
22436   # `config.status --recheck' to rerun these tests and create the
22437   # libtool script then.
22438   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22439   if test -f "$ltmain_in"; then
22440     test -f Makefile && make "$ltmain"
22441   fi
22442 fi
22443
22444
22445 ac_ext=c
22446 ac_cpp='$CPP $CPPFLAGS'
22447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22450
22451 CC="$lt_save_CC"
22452
22453         else
22454           tagname=""
22455         fi
22456         ;;
22457
22458       GCJ)
22459         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22460
22461
22462
22463 # Source file extension for Java test sources.
22464 ac_ext=java
22465
22466 # Object file extension for compiled Java test sources.
22467 objext=o
22468 objext_GCJ=$objext
22469
22470 # Code to be used in simple compile tests
22471 lt_simple_compile_test_code="class foo {}\n"
22472
22473 # Code to be used in simple link tests
22474 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
22475
22476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22477
22478 # If no C compiler was specified, use CC.
22479 LTCC=${LTCC-"$CC"}
22480
22481 # Allow CC to be a program name with arguments.
22482 compiler=$CC
22483
22484
22485 # Allow CC to be a program name with arguments.
22486 lt_save_CC="$CC"
22487 CC=${GCJ-"gcj"}
22488 compiler=$CC
22489 compiler_GCJ=$CC
22490
22491 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22492 archive_cmds_need_lc_GCJ=no
22493
22494
22495 lt_prog_compiler_no_builtin_flag_GCJ=
22496
22497 if test "$GCC" = yes; then
22498   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22499
22500
22501 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22502 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22503 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22504   echo $ECHO_N "(cached) $ECHO_C" >&6
22505 else
22506   lt_cv_prog_compiler_rtti_exceptions=no
22507   ac_outfile=conftest.$ac_objext
22508    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22509    lt_compiler_flag="-fno-rtti -fno-exceptions"
22510    # Insert the option either (1) after the last *FLAGS variable, or
22511    # (2) before a word containing "conftest.", or (3) at the end.
22512    # Note that $ac_compile itself does not contain backslashes and begins
22513    # with a dollar sign (not a hyphen), so the echo should work correctly.
22514    # The option is referenced via a variable to avoid confusing sed.
22515    lt_compile=`echo "$ac_compile" | $SED \
22516    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22518    -e 's:$: $lt_compiler_flag:'`
22519    (eval echo "\"\$as_me:22519: $lt_compile\"" >&5)
22520    (eval "$lt_compile" 2>conftest.err)
22521    ac_status=$?
22522    cat conftest.err >&5
22523    echo "$as_me:22523: \$? = $ac_status" >&5
22524    if (exit $ac_status) && test -s "$ac_outfile"; then
22525      # The compiler can only warn and ignore the option if not recognized
22526      # So say no if there are warnings
22527      if test ! -s conftest.err; then
22528        lt_cv_prog_compiler_rtti_exceptions=yes
22529      fi
22530    fi
22531    $rm conftest*
22532
22533 fi
22534 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22535 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22536
22537 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22538     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22539 else
22540     :
22541 fi
22542
22543 fi
22544
22545 lt_prog_compiler_wl_GCJ=
22546 lt_prog_compiler_pic_GCJ=
22547 lt_prog_compiler_static_GCJ=
22548
22549 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22550 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22551
22552   if test "$GCC" = yes; then
22553     lt_prog_compiler_wl_GCJ='-Wl,'
22554     lt_prog_compiler_static_GCJ='-static'
22555
22556     case $host_os in
22557       aix*)
22558       # All AIX code is PIC.
22559       if test "$host_cpu" = ia64; then
22560         # AIX 5 now supports IA64 processor
22561         lt_prog_compiler_static_GCJ='-Bstatic'
22562       fi
22563       ;;
22564
22565     amigaos*)
22566       # FIXME: we need at least 68020 code to build shared libraries, but
22567       # adding the `-m68020' flag to GCC prevents building anything better,
22568       # like `-m68040'.
22569       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22570       ;;
22571
22572     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22573       # PIC is the default for these OSes.
22574       ;;
22575
22576     mingw* | pw32* | os2*)
22577       # This hack is so that the source file can tell whether it is being
22578       # built for inclusion in a dll (and should export symbols for example).
22579       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22580       ;;
22581
22582     darwin* | rhapsody*)
22583       # PIC is the default on this platform
22584       # Common symbols not allowed in MH_DYLIB files
22585       lt_prog_compiler_pic_GCJ='-fno-common'
22586       ;;
22587
22588     msdosdjgpp*)
22589       # Just because we use GCC doesn't mean we suddenly get shared libraries
22590       # on systems that don't support them.
22591       lt_prog_compiler_can_build_shared_GCJ=no
22592       enable_shared=no
22593       ;;
22594
22595     sysv4*MP*)
22596       if test -d /usr/nec; then
22597         lt_prog_compiler_pic_GCJ=-Kconform_pic
22598       fi
22599       ;;
22600
22601     hpux*)
22602       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22603       # not for PA HP-UX.
22604       case "$host_cpu" in
22605       hppa*64*|ia64*)
22606         # +Z the default
22607         ;;
22608       *)
22609         lt_prog_compiler_pic_GCJ='-fPIC'
22610         ;;
22611       esac
22612       ;;
22613
22614     *)
22615       lt_prog_compiler_pic_GCJ='-fPIC'
22616       ;;
22617     esac
22618   else
22619     # PORTME Check for flag to pass linker flags through the system compiler.
22620     case $host_os in
22621     aix*)
22622       lt_prog_compiler_wl_GCJ='-Wl,'
22623       if test "$host_cpu" = ia64; then
22624         # AIX 5 now supports IA64 processor
22625         lt_prog_compiler_static_GCJ='-Bstatic'
22626       else
22627         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22628       fi
22629       ;;
22630
22631     mingw* | pw32* | os2*)
22632       # This hack is so that the source file can tell whether it is being
22633       # built for inclusion in a dll (and should export symbols for example).
22634       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22635       ;;
22636
22637     hpux9* | hpux10* | hpux11*)
22638       lt_prog_compiler_wl_GCJ='-Wl,'
22639       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22640       # not for PA HP-UX.
22641       case "$host_cpu" in
22642       hppa*64*|ia64*)
22643         # +Z the default
22644         ;;
22645       *)
22646         lt_prog_compiler_pic_GCJ='+Z'
22647         ;;
22648       esac
22649       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22650       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22651       ;;
22652
22653     irix5* | irix6* | nonstopux*)
22654       lt_prog_compiler_wl_GCJ='-Wl,'
22655       # PIC (with -KPIC) is the default.
22656       lt_prog_compiler_static_GCJ='-non_shared'
22657       ;;
22658
22659     newsos6)
22660       lt_prog_compiler_pic_GCJ='-KPIC'
22661       lt_prog_compiler_static_GCJ='-Bstatic'
22662       ;;
22663
22664     linux*)
22665       case $CC in
22666       icc* | ecc*)
22667         lt_prog_compiler_wl_GCJ='-Wl,'
22668         lt_prog_compiler_pic_GCJ='-KPIC'
22669         lt_prog_compiler_static_GCJ='-static'
22670         ;;
22671       ccc*)
22672         lt_prog_compiler_wl_GCJ='-Wl,'
22673         # All Alpha code is PIC.
22674         lt_prog_compiler_static_GCJ='-non_shared'
22675         ;;
22676       esac
22677       ;;
22678
22679     osf3* | osf4* | osf5*)
22680       lt_prog_compiler_wl_GCJ='-Wl,'
22681       # All OSF/1 code is PIC.
22682       lt_prog_compiler_static_GCJ='-non_shared'
22683       ;;
22684
22685     sco3.2v5*)
22686       lt_prog_compiler_pic_GCJ='-Kpic'
22687       lt_prog_compiler_static_GCJ='-dn'
22688       ;;
22689
22690     solaris*)
22691       lt_prog_compiler_wl_GCJ='-Wl,'
22692       lt_prog_compiler_pic_GCJ='-KPIC'
22693       lt_prog_compiler_static_GCJ='-Bstatic'
22694       ;;
22695
22696     sunos4*)
22697       lt_prog_compiler_wl_GCJ='-Qoption ld '
22698       lt_prog_compiler_pic_GCJ='-PIC'
22699       lt_prog_compiler_static_GCJ='-Bstatic'
22700       ;;
22701
22702     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22703       lt_prog_compiler_wl_GCJ='-Wl,'
22704       lt_prog_compiler_pic_GCJ='-KPIC'
22705       lt_prog_compiler_static_GCJ='-Bstatic'
22706       ;;
22707
22708     sysv4*MP*)
22709       if test -d /usr/nec ;then
22710         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22711         lt_prog_compiler_static_GCJ='-Bstatic'
22712       fi
22713       ;;
22714
22715     uts4*)
22716       lt_prog_compiler_pic_GCJ='-pic'
22717       lt_prog_compiler_static_GCJ='-Bstatic'
22718       ;;
22719
22720     *)
22721       lt_prog_compiler_can_build_shared_GCJ=no
22722       ;;
22723     esac
22724   fi
22725
22726 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22727 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22728
22729 #
22730 # Check to make sure the PIC flag actually works.
22731 #
22732 if test -n "$lt_prog_compiler_pic_GCJ"; then
22733
22734 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22735 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22736 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22737   echo $ECHO_N "(cached) $ECHO_C" >&6
22738 else
22739   lt_prog_compiler_pic_works_GCJ=no
22740   ac_outfile=conftest.$ac_objext
22741    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22742    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22743    # Insert the option either (1) after the last *FLAGS variable, or
22744    # (2) before a word containing "conftest.", or (3) at the end.
22745    # Note that $ac_compile itself does not contain backslashes and begins
22746    # with a dollar sign (not a hyphen), so the echo should work correctly.
22747    # The option is referenced via a variable to avoid confusing sed.
22748    lt_compile=`echo "$ac_compile" | $SED \
22749    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22751    -e 's:$: $lt_compiler_flag:'`
22752    (eval echo "\"\$as_me:22752: $lt_compile\"" >&5)
22753    (eval "$lt_compile" 2>conftest.err)
22754    ac_status=$?
22755    cat conftest.err >&5
22756    echo "$as_me:22756: \$? = $ac_status" >&5
22757    if (exit $ac_status) && test -s "$ac_outfile"; then
22758      # The compiler can only warn and ignore the option if not recognized
22759      # So say no if there are warnings
22760      if test ! -s conftest.err; then
22761        lt_prog_compiler_pic_works_GCJ=yes
22762      fi
22763    fi
22764    $rm conftest*
22765
22766 fi
22767 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22768 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22769
22770 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22771     case $lt_prog_compiler_pic_GCJ in
22772      "" | " "*) ;;
22773      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22774      esac
22775 else
22776     lt_prog_compiler_pic_GCJ=
22777      lt_prog_compiler_can_build_shared_GCJ=no
22778 fi
22779
22780 fi
22781 case "$host_os" in
22782   # For platforms which do not support PIC, -DPIC is meaningless:
22783   *djgpp*)
22784     lt_prog_compiler_pic_GCJ=
22785     ;;
22786   *)
22787     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22788     ;;
22789 esac
22790
22791 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22792 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22793 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22794   echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796   lt_cv_prog_compiler_c_o_GCJ=no
22797    $rm -r conftest 2>/dev/null
22798    mkdir conftest
22799    cd conftest
22800    mkdir out
22801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22802
22803    lt_compiler_flag="-o out/conftest2.$ac_objext"
22804    # Insert the option either (1) after the last *FLAGS variable, or
22805    # (2) before a word containing "conftest.", or (3) at the end.
22806    # Note that $ac_compile itself does not contain backslashes and begins
22807    # with a dollar sign (not a hyphen), so the echo should work correctly.
22808    lt_compile=`echo "$ac_compile" | $SED \
22809    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22811    -e 's:$: $lt_compiler_flag:'`
22812    (eval echo "\"\$as_me:22812: $lt_compile\"" >&5)
22813    (eval "$lt_compile" 2>out/conftest.err)
22814    ac_status=$?
22815    cat out/conftest.err >&5
22816    echo "$as_me:22816: \$? = $ac_status" >&5
22817    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22818    then
22819      # The compiler can only warn and ignore the option if not recognized
22820      # So say no if there are warnings
22821      if test ! -s out/conftest.err; then
22822        lt_cv_prog_compiler_c_o_GCJ=yes
22823      fi
22824    fi
22825    chmod u+w .
22826    $rm conftest*
22827    # SGI C++ compiler will create directory out/ii_files/ for
22828    # template instantiation
22829    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22830    $rm out/* && rmdir out
22831    cd ..
22832    rmdir conftest
22833    $rm conftest*
22834
22835 fi
22836 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22837 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22838
22839
22840 hard_links="nottested"
22841 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22842   # do not overwrite the value of need_locks provided by the user
22843   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22844 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22845   hard_links=yes
22846   $rm conftest*
22847   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22848   touch conftest.a
22849   ln conftest.a conftest.b 2>&5 || hard_links=no
22850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22851   echo "$as_me:$LINENO: result: $hard_links" >&5
22852 echo "${ECHO_T}$hard_links" >&6
22853   if test "$hard_links" = no; then
22854     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22855 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22856     need_locks=warn
22857   fi
22858 else
22859   need_locks=no
22860 fi
22861
22862 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22863 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22864
22865   runpath_var=
22866   allow_undefined_flag_GCJ=
22867   enable_shared_with_static_runtimes_GCJ=no
22868   archive_cmds_GCJ=
22869   archive_expsym_cmds_GCJ=
22870   old_archive_From_new_cmds_GCJ=
22871   old_archive_from_expsyms_cmds_GCJ=
22872   export_dynamic_flag_spec_GCJ=
22873   whole_archive_flag_spec_GCJ=
22874   thread_safe_flag_spec_GCJ=
22875   hardcode_libdir_flag_spec_GCJ=
22876   hardcode_libdir_flag_spec_ld_GCJ=
22877   hardcode_libdir_separator_GCJ=
22878   hardcode_direct_GCJ=no
22879   hardcode_minus_L_GCJ=no
22880   hardcode_shlibpath_var_GCJ=unsupported
22881   link_all_deplibs_GCJ=unknown
22882   hardcode_automatic_GCJ=no
22883   module_cmds_GCJ=
22884   module_expsym_cmds_GCJ=
22885   always_export_symbols_GCJ=no
22886   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22887   # include_expsyms should be a list of space-separated symbols to be *always*
22888   # included in the symbol list
22889   include_expsyms_GCJ=
22890   # exclude_expsyms can be an extended regexp of symbols to exclude
22891   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22892   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22893   # as well as any symbol that contains `d'.
22894   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22895   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22896   # platforms (ab)use it in PIC code, but their linkers get confused if
22897   # the symbol is explicitly referenced.  Since portable code cannot
22898   # rely on this symbol name, it's probably fine to never include it in
22899   # preloaded symbol tables.
22900   extract_expsyms_cmds=
22901
22902   case $host_os in
22903   cygwin* | mingw* | pw32*)
22904     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22905     # When not using gcc, we currently assume that we are using
22906     # Microsoft Visual C++.
22907     if test "$GCC" != yes; then
22908       with_gnu_ld=no
22909     fi
22910     ;;
22911   openbsd*)
22912     with_gnu_ld=no
22913     ;;
22914   esac
22915
22916   ld_shlibs_GCJ=yes
22917   if test "$with_gnu_ld" = yes; then
22918     # If archive_cmds runs LD, not CC, wlarc should be empty
22919     wlarc='${wl}'
22920
22921     # See if GNU ld supports shared libraries.
22922     case $host_os in
22923     aix3* | aix4* | aix5*)
22924       # On AIX/PPC, the GNU linker is very broken
22925       if test "$host_cpu" != ia64; then
22926         ld_shlibs_GCJ=no
22927         cat <<EOF 1>&2
22928
22929 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22930 *** to be unable to reliably create shared libraries on AIX.
22931 *** Therefore, libtool is disabling shared libraries support.  If you
22932 *** really care for shared libraries, you may want to modify your PATH
22933 *** so that a non-GNU linker is found, and then restart.
22934
22935 EOF
22936       fi
22937       ;;
22938
22939     amigaos*)
22940       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)'
22941       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22942       hardcode_minus_L_GCJ=yes
22943
22944       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22945       # that the semantics of dynamic libraries on AmigaOS, at least up
22946       # to version 4, is to share data among multiple programs linked
22947       # with the same dynamic library.  Since this doesn't match the
22948       # behavior of shared libraries on other platforms, we can't use
22949       # them.
22950       ld_shlibs_GCJ=no
22951       ;;
22952
22953     beos*)
22954       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22955         allow_undefined_flag_GCJ=unsupported
22956         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22957         # support --undefined.  This deserves some investigation.  FIXME
22958         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22959       else
22960         ld_shlibs_GCJ=no
22961       fi
22962       ;;
22963
22964     cygwin* | mingw* | pw32*)
22965       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22966       # as there is no search path for DLLs.
22967       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22968       allow_undefined_flag_GCJ=unsupported
22969       always_export_symbols_GCJ=no
22970       enable_shared_with_static_runtimes_GCJ=yes
22971       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22972
22973       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22974         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22975         # If the export-symbols file already is a .def file (1st line
22976         # is EXPORTS), use it as is; otherwise, prepend...
22977         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22978           cp $export_symbols $output_objdir/$soname.def;
22979         else
22980           echo EXPORTS > $output_objdir/$soname.def;
22981           cat $export_symbols >> $output_objdir/$soname.def;
22982         fi~
22983         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22984       else
22985         ld_shlibs=no
22986       fi
22987       ;;
22988
22989     netbsd*)
22990       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22991         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22992         wlarc=
22993       else
22994         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22995         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22996       fi
22997       ;;
22998
22999     solaris* | sysv5*)
23000       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23001         ld_shlibs_GCJ=no
23002         cat <<EOF 1>&2
23003
23004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23005 *** create shared libraries on Solaris systems.  Therefore, libtool
23006 *** is disabling shared libraries support.  We urge you to upgrade GNU
23007 *** binutils to release 2.9.1 or newer.  Another option is to modify
23008 *** your PATH or compiler configuration so that the native linker is
23009 *** used, and then restart.
23010
23011 EOF
23012       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23013         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23014         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23015       else
23016         ld_shlibs_GCJ=no
23017       fi
23018       ;;
23019
23020     sunos4*)
23021       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23022       wlarc=
23023       hardcode_direct_GCJ=yes
23024       hardcode_shlibpath_var_GCJ=no
23025       ;;
23026
23027   linux*)
23028     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23029         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23030         archive_cmds_GCJ="$tmp_archive_cmds"
23031       supports_anon_versioning=no
23032       case `$LD -v 2>/dev/null` in
23033         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23034         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23035         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23036         *\ 2.11.*) ;; # other 2.11 versions
23037         *) supports_anon_versioning=yes ;;
23038       esac
23039       if test $supports_anon_versioning = yes; then
23040         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23042 $echo "local: *; };" >> $output_objdir/$libname.ver~
23043         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23044       else
23045         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
23046       fi
23047     else
23048       ld_shlibs_GCJ=no
23049     fi
23050     ;;
23051
23052     *)
23053       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23054         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23055         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23056       else
23057         ld_shlibs_GCJ=no
23058       fi
23059       ;;
23060     esac
23061
23062     if test "$ld_shlibs_GCJ" = yes; then
23063       runpath_var=LD_RUN_PATH
23064       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23065       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23066       # ancient GNU ld didn't support --whole-archive et. al.
23067       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23068         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23069       else
23070         whole_archive_flag_spec_GCJ=
23071       fi
23072     fi
23073   else
23074     # PORTME fill in a description of your system's linker (not GNU ld)
23075     case $host_os in
23076     aix3*)
23077       allow_undefined_flag_GCJ=unsupported
23078       always_export_symbols_GCJ=yes
23079       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'
23080       # Note: this linker hardcodes the directories in LIBPATH if there
23081       # are no directories specified by -L.
23082       hardcode_minus_L_GCJ=yes
23083       if test "$GCC" = yes && test -z "$link_static_flag"; then
23084         # Neither direct hardcoding nor static linking is supported with a
23085         # broken collect2.
23086         hardcode_direct_GCJ=unsupported
23087       fi
23088       ;;
23089
23090     aix4* | aix5*)
23091       if test "$host_cpu" = ia64; then
23092         # On IA64, the linker does run time linking by default, so we don't
23093         # have to do anything special.
23094         aix_use_runtimelinking=no
23095         exp_sym_flag='-Bexport'
23096         no_entry_flag=""
23097       else
23098         # If we're using GNU nm, then we don't want the "-C" option.
23099         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23100         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23101           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'
23102         else
23103           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'
23104         fi
23105         aix_use_runtimelinking=no
23106
23107         # Test if we are trying to use run time linking or normal
23108         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23109         # need to do runtime linking.
23110         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23111           for ld_flag in $LDFLAGS; do
23112           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23113             aix_use_runtimelinking=yes
23114             break
23115           fi
23116           done
23117         esac
23118
23119         exp_sym_flag='-bexport'
23120         no_entry_flag='-bnoentry'
23121       fi
23122
23123       # When large executables or shared objects are built, AIX ld can
23124       # have problems creating the table of contents.  If linking a library
23125       # or program results in "error TOC overflow" add -mminimal-toc to
23126       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23127       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23128
23129       archive_cmds_GCJ=''
23130       hardcode_direct_GCJ=yes
23131       hardcode_libdir_separator_GCJ=':'
23132       link_all_deplibs_GCJ=yes
23133
23134       if test "$GCC" = yes; then
23135         case $host_os in aix4.012|aix4.012.*)
23136         # We only want to do this on AIX 4.2 and lower, the check
23137         # below for broken collect2 doesn't work under 4.3+
23138           collect2name=`${CC} -print-prog-name=collect2`
23139           if test -f "$collect2name" && \
23140            strings "$collect2name" | grep resolve_lib_name >/dev/null
23141           then
23142           # We have reworked collect2
23143           hardcode_direct_GCJ=yes
23144           else
23145           # We have old collect2
23146           hardcode_direct_GCJ=unsupported
23147           # It fails to find uninstalled libraries when the uninstalled
23148           # path is not listed in the libpath.  Setting hardcode_minus_L
23149           # to unsupported forces relinking
23150           hardcode_minus_L_GCJ=yes
23151           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23152           hardcode_libdir_separator_GCJ=
23153           fi
23154         esac
23155         shared_flag='-shared'
23156       else
23157         # not using gcc
23158         if test "$host_cpu" = ia64; then
23159         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23160         # chokes on -Wl,-G. The following line is correct:
23161           shared_flag='-G'
23162         else
23163         if test "$aix_use_runtimelinking" = yes; then
23164             shared_flag='${wl}-G'
23165           else
23166             shared_flag='${wl}-bM:SRE'
23167         fi
23168         fi
23169       fi
23170
23171       # It seems that -bexpall does not export symbols beginning with
23172       # underscore (_), so it is better to generate a list of symbols to export.
23173       always_export_symbols_GCJ=yes
23174       if test "$aix_use_runtimelinking" = yes; then
23175         # Warning - without using the other runtime loading flags (-brtl),
23176         # -berok will link without error, but may produce a broken library.
23177         allow_undefined_flag_GCJ='-berok'
23178        # Determine the default libpath from the value encoded in an empty executable.
23179        cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185
23186 int
23187 main ()
23188 {
23189
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196   (eval $ac_link) 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } &&
23203          { ac_try='test -z "$ac_c_werror_flag"
23204                          || test ! -s conftest.err'
23205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206   (eval $ac_try) 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; } &&
23210          { ac_try='test -s conftest$ac_exeext'
23211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212   (eval $ac_try) 2>&5
23213   ac_status=$?
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); }; }; then
23216
23217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23218 }'`
23219 # Check for a 64-bit object if we didn't find anything.
23220 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; }
23221 }'`; fi
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 fi
23227 rm -f conftest.err conftest.$ac_objext \
23228       conftest$ac_exeext conftest.$ac_ext
23229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23230
23231        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23232         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23233        else
23234         if test "$host_cpu" = ia64; then
23235           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23236           allow_undefined_flag_GCJ="-z nodefs"
23237           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
23238         else
23239          # Determine the default libpath from the value encoded in an empty executable.
23240          cat >conftest.$ac_ext <<_ACEOF
23241 /* confdefs.h.  */
23242 _ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h.  */
23246
23247 int
23248 main ()
23249 {
23250
23251   ;
23252   return 0;
23253 }
23254 _ACEOF
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23257   (eval $ac_link) 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } &&
23264          { ac_try='test -z "$ac_c_werror_flag"
23265                          || test ! -s conftest.err'
23266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267   (eval $ac_try) 2>&5
23268   ac_status=$?
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); }; } &&
23271          { ac_try='test -s conftest$ac_exeext'
23272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273   (eval $ac_try) 2>&5
23274   ac_status=$?
23275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276   (exit $ac_status); }; }; then
23277
23278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23279 }'`
23280 # Check for a 64-bit object if we didn't find anything.
23281 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; }
23282 }'`; fi
23283 else
23284   echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23286
23287 fi
23288 rm -f conftest.err conftest.$ac_objext \
23289       conftest$ac_exeext conftest.$ac_ext
23290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23291
23292          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23293           # Warning - without using the other run time loading flags,
23294           # -berok will link without error, but may produce a broken library.
23295           no_undefined_flag_GCJ=' ${wl}-bernotok'
23296           allow_undefined_flag_GCJ=' ${wl}-berok'
23297           # -bexpall does not export symbols beginning with underscore (_)
23298           always_export_symbols_GCJ=yes
23299           # Exported symbols can be pulled into shared objects from archives
23300           whole_archive_flag_spec_GCJ=' '
23301           archive_cmds_need_lc_GCJ=yes
23302           # This is similar to how AIX traditionally builds it's shared libraries.
23303           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
23304         fi
23305       fi
23306       ;;
23307
23308     amigaos*)
23309       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)'
23310       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23311       hardcode_minus_L_GCJ=yes
23312       # see comment about different semantics on the GNU ld section
23313       ld_shlibs_GCJ=no
23314       ;;
23315
23316     bsdi4*)
23317       export_dynamic_flag_spec_GCJ=-rdynamic
23318       ;;
23319
23320     cygwin* | mingw* | pw32*)
23321       # When not using gcc, we currently assume that we are using
23322       # Microsoft Visual C++.
23323       # hardcode_libdir_flag_spec is actually meaningless, as there is
23324       # no search path for DLLs.
23325       hardcode_libdir_flag_spec_GCJ=' '
23326       allow_undefined_flag_GCJ=unsupported
23327       # Tell ltmain to make .lib files, not .a files.
23328       libext=lib
23329       # Tell ltmain to make .dll files, not .so files.
23330       shrext_cmds=".dll"
23331       # FIXME: Setting linknames here is a bad hack.
23332       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23333       # The linker will automatically build a .lib file if we build a DLL.
23334       old_archive_From_new_cmds_GCJ='true'
23335       # FIXME: Should let the user specify the lib program.
23336       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23337       fix_srcfile_path='`cygpath -w "$srcfile"`'
23338       enable_shared_with_static_runtimes_GCJ=yes
23339       ;;
23340
23341     darwin* | rhapsody*)
23342     if test "$GXX" = yes ; then
23343       archive_cmds_need_lc_GCJ=no
23344       case "$host_os" in
23345       rhapsody* | darwin1.[012])
23346         allow_undefined_flag_GCJ='-undefined suppress'
23347         ;;
23348       *) # Darwin 1.3 on
23349       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23350         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
23351       else
23352         case ${MACOSX_DEPLOYMENT_TARGET} in
23353           10.[012])
23354             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
23355             ;;
23356           10.*)
23357             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
23358             ;;
23359         esac
23360       fi
23361         ;;
23362       esac
23363         lt_int_apple_cc_single_mod=no
23364         output_verbose_link_cmd='echo'
23365         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
23366           lt_int_apple_cc_single_mod=yes
23367         fi
23368         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
23369           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23370         else
23371         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
23372       fi
23373       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23374       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23375         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
23376           archive_expsym_cmds_GCJ='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}'
23377         else
23378           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
23379         fi
23380           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}'
23381       hardcode_direct_GCJ=no
23382       hardcode_automatic_GCJ=yes
23383       hardcode_shlibpath_var_GCJ=unsupported
23384       whole_archive_flag_spec_GCJ='-all_load $convenience'
23385       link_all_deplibs_GCJ=yes
23386     else
23387       ld_shlibs_GCJ=no
23388     fi
23389       ;;
23390
23391     dgux*)
23392       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23393       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23394       hardcode_shlibpath_var_GCJ=no
23395       ;;
23396
23397     freebsd1*)
23398       ld_shlibs_GCJ=no
23399       ;;
23400
23401     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23402     # support.  Future versions do this automatically, but an explicit c++rt0.o
23403     # does not break anything, and helps significantly (at the cost of a little
23404     # extra space).
23405     freebsd2.2*)
23406       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23407       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23408       hardcode_direct_GCJ=yes
23409       hardcode_shlibpath_var_GCJ=no
23410       ;;
23411
23412     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23413     freebsd2*)
23414       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23415       hardcode_direct_GCJ=yes
23416       hardcode_minus_L_GCJ=yes
23417       hardcode_shlibpath_var_GCJ=no
23418       ;;
23419
23420     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23421     freebsd* | kfreebsd*-gnu)
23422       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23423       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23424       hardcode_direct_GCJ=yes
23425       hardcode_shlibpath_var_GCJ=no
23426       ;;
23427
23428     hpux9*)
23429       if test "$GCC" = yes; then
23430         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'
23431       else
23432         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'
23433       fi
23434       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23435       hardcode_libdir_separator_GCJ=:
23436       hardcode_direct_GCJ=yes
23437
23438       # hardcode_minus_L: Not really in the search PATH,
23439       # but as the default location of the library.
23440       hardcode_minus_L_GCJ=yes
23441       export_dynamic_flag_spec_GCJ='${wl}-E'
23442       ;;
23443
23444     hpux10* | hpux11*)
23445       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23446         case "$host_cpu" in
23447         hppa*64*|ia64*)
23448           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23449           ;;
23450         *)
23451           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23452           ;;
23453         esac
23454       else
23455         case "$host_cpu" in
23456         hppa*64*|ia64*)
23457           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23458           ;;
23459         *)
23460           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23461           ;;
23462         esac
23463       fi
23464       if test "$with_gnu_ld" = no; then
23465         case "$host_cpu" in
23466         hppa*64*)
23467           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23468           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23469           hardcode_libdir_separator_GCJ=:
23470           hardcode_direct_GCJ=no
23471           hardcode_shlibpath_var_GCJ=no
23472           ;;
23473         ia64*)
23474           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23475           hardcode_direct_GCJ=no
23476           hardcode_shlibpath_var_GCJ=no
23477
23478           # hardcode_minus_L: Not really in the search PATH,
23479           # but as the default location of the library.
23480           hardcode_minus_L_GCJ=yes
23481           ;;
23482         *)
23483           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23484           hardcode_libdir_separator_GCJ=:
23485           hardcode_direct_GCJ=yes
23486           export_dynamic_flag_spec_GCJ='${wl}-E'
23487
23488           # hardcode_minus_L: Not really in the search PATH,
23489           # but as the default location of the library.
23490           hardcode_minus_L_GCJ=yes
23491           ;;
23492         esac
23493       fi
23494       ;;
23495
23496     irix5* | irix6* | nonstopux*)
23497       if test "$GCC" = yes; then
23498         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'
23499       else
23500         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'
23501         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23502       fi
23503       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23504       hardcode_libdir_separator_GCJ=:
23505       link_all_deplibs_GCJ=yes
23506       ;;
23507
23508     netbsd*)
23509       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23510         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23511       else
23512         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23513       fi
23514       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23515       hardcode_direct_GCJ=yes
23516       hardcode_shlibpath_var_GCJ=no
23517       ;;
23518
23519     newsos6)
23520       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23521       hardcode_direct_GCJ=yes
23522       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23523       hardcode_libdir_separator_GCJ=:
23524       hardcode_shlibpath_var_GCJ=no
23525       ;;
23526
23527     openbsd*)
23528       hardcode_direct_GCJ=yes
23529       hardcode_shlibpath_var_GCJ=no
23530       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23531         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23532         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23533         export_dynamic_flag_spec_GCJ='${wl}-E'
23534       else
23535        case $host_os in
23536          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23537            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23538            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23539            ;;
23540          *)
23541            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23542            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23543            ;;
23544        esac
23545       fi
23546       ;;
23547
23548     os2*)
23549       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23550       hardcode_minus_L_GCJ=yes
23551       allow_undefined_flag_GCJ=unsupported
23552       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'
23553       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23554       ;;
23555
23556     osf3*)
23557       if test "$GCC" = yes; then
23558         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23559         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'
23560       else
23561         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23562         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'
23563       fi
23564       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23565       hardcode_libdir_separator_GCJ=:
23566       ;;
23567
23568     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23569       if test "$GCC" = yes; then
23570         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23571         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'
23572         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23573       else
23574         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23575         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'
23576         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~
23577         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
23578
23579         # Both c and cxx compiler support -rpath directly
23580         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23581       fi
23582       hardcode_libdir_separator_GCJ=:
23583       ;;
23584
23585     sco3.2v5*)
23586       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23587       hardcode_shlibpath_var_GCJ=no
23588       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23589       runpath_var=LD_RUN_PATH
23590       hardcode_runpath_var=yes
23591       ;;
23592
23593     solaris*)
23594       no_undefined_flag_GCJ=' -z text'
23595       if test "$GCC" = yes; then
23596         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23597         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23599       else
23600         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23601         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23602         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23603       fi
23604       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23605       hardcode_shlibpath_var_GCJ=no
23606       case $host_os in
23607       solaris2.[0-5] | solaris2.[0-5].*) ;;
23608       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
23609         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23610       esac
23611       link_all_deplibs_GCJ=yes
23612       ;;
23613
23614     sunos4*)
23615       if test "x$host_vendor" = xsequent; then
23616         # Use $CC to link under sequent, because it throws in some extra .o
23617         # files that make .init and .fini sections work.
23618         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23619       else
23620         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23621       fi
23622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23623       hardcode_direct_GCJ=yes
23624       hardcode_minus_L_GCJ=yes
23625       hardcode_shlibpath_var_GCJ=no
23626       ;;
23627
23628     sysv4)
23629       case $host_vendor in
23630         sni)
23631           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23632           hardcode_direct_GCJ=yes # is this really true???
23633         ;;
23634         siemens)
23635           ## LD is ld it makes a PLAMLIB
23636           ## CC just makes a GrossModule.
23637           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23638           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23639           hardcode_direct_GCJ=no
23640         ;;
23641         motorola)
23642           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23643           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23644         ;;
23645       esac
23646       runpath_var='LD_RUN_PATH'
23647       hardcode_shlibpath_var_GCJ=no
23648       ;;
23649
23650     sysv4.3*)
23651       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23652       hardcode_shlibpath_var_GCJ=no
23653       export_dynamic_flag_spec_GCJ='-Bexport'
23654       ;;
23655
23656     sysv4*MP*)
23657       if test -d /usr/nec; then
23658         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23659         hardcode_shlibpath_var_GCJ=no
23660         runpath_var=LD_RUN_PATH
23661         hardcode_runpath_var=yes
23662         ld_shlibs_GCJ=yes
23663       fi
23664       ;;
23665
23666     sysv4.2uw2*)
23667       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23668       hardcode_direct_GCJ=yes
23669       hardcode_minus_L_GCJ=no
23670       hardcode_shlibpath_var_GCJ=no
23671       hardcode_runpath_var=yes
23672       runpath_var=LD_RUN_PATH
23673       ;;
23674
23675    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23676       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23677       if test "$GCC" = yes; then
23678         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23679       else
23680         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23681       fi
23682       runpath_var='LD_RUN_PATH'
23683       hardcode_shlibpath_var_GCJ=no
23684       ;;
23685
23686     sysv5*)
23687       no_undefined_flag_GCJ=' -z text'
23688       # $CC -shared without GNU ld will not create a library from C++
23689       # object files and a static libstdc++, better avoid it by now
23690       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23691       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23692                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23693       hardcode_libdir_flag_spec_GCJ=
23694       hardcode_shlibpath_var_GCJ=no
23695       runpath_var='LD_RUN_PATH'
23696       ;;
23697
23698     uts4*)
23699       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23700       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23701       hardcode_shlibpath_var_GCJ=no
23702       ;;
23703
23704     *)
23705       ld_shlibs_GCJ=no
23706       ;;
23707     esac
23708   fi
23709
23710 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23711 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23712 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23713
23714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23715 if test "$GCC" = yes; then
23716   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23717 fi
23718
23719 #
23720 # Do we need to explicitly link libc?
23721 #
23722 case "x$archive_cmds_need_lc_GCJ" in
23723 x|xyes)
23724   # Assume -lc should be added
23725   archive_cmds_need_lc_GCJ=yes
23726
23727   if test "$enable_shared" = yes && test "$GCC" = yes; then
23728     case $archive_cmds_GCJ in
23729     *'~'*)
23730       # FIXME: we may have to deal with multi-command sequences.
23731       ;;
23732     '$CC '*)
23733       # Test whether the compiler implicitly links with -lc since on some
23734       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23735       # to ld, don't add -lc before -lgcc.
23736       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23737 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23738       $rm conftest*
23739       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23740
23741       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23742   (eval $ac_compile) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } 2>conftest.err; then
23746         soname=conftest
23747         lib=conftest
23748         libobjs=conftest.$ac_objext
23749         deplibs=
23750         wl=$lt_prog_compiler_wl_GCJ
23751         compiler_flags=-v
23752         linker_flags=-v
23753         verstring=
23754         output_objdir=.
23755         libname=conftest
23756         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23757         allow_undefined_flag_GCJ=
23758         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23759   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23760   ac_status=$?
23761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); }
23763         then
23764           archive_cmds_need_lc_GCJ=no
23765         else
23766           archive_cmds_need_lc_GCJ=yes
23767         fi
23768         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23769       else
23770         cat conftest.err 1>&5
23771       fi
23772       $rm conftest*
23773       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23774 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23775       ;;
23776     esac
23777   fi
23778   ;;
23779 esac
23780
23781 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23782 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23783 library_names_spec=
23784 libname_spec='lib$name'
23785 soname_spec=
23786 shrext_cmds=".so"
23787 postinstall_cmds=
23788 postuninstall_cmds=
23789 finish_cmds=
23790 finish_eval=
23791 shlibpath_var=
23792 shlibpath_overrides_runpath=unknown
23793 version_type=none
23794 dynamic_linker="$host_os ld.so"
23795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23796 if test "$GCC" = yes; then
23797   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23798   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23799     # if the path contains ";" then we assume it to be the separator
23800     # otherwise default to the standard path separator (i.e. ":") - it is
23801     # assumed that no part of a normal pathname contains ";" but that should
23802     # okay in the real world where ";" in dirpaths is itself problematic.
23803     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23804   else
23805     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23806   fi
23807 else
23808   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23809 fi
23810 need_lib_prefix=unknown
23811 hardcode_into_libs=no
23812
23813 # when you set need_version to no, make sure it does not cause -set_version
23814 # flags to be left without arguments
23815 need_version=unknown
23816
23817 case $host_os in
23818 aix3*)
23819   version_type=linux
23820   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23821   shlibpath_var=LIBPATH
23822
23823   # AIX 3 has no versioning support, so we append a major version to the name.
23824   soname_spec='${libname}${release}${shared_ext}$major'
23825   ;;
23826
23827 aix4* | aix5*)
23828   version_type=linux
23829   need_lib_prefix=no
23830   need_version=no
23831   hardcode_into_libs=yes
23832   if test "$host_cpu" = ia64; then
23833     # AIX 5 supports IA64
23834     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23835     shlibpath_var=LD_LIBRARY_PATH
23836   else
23837     # With GCC up to 2.95.x, collect2 would create an import file
23838     # for dependence libraries.  The import file would start with
23839     # the line `#! .'.  This would cause the generated library to
23840     # depend on `.', always an invalid library.  This was fixed in
23841     # development snapshots of GCC prior to 3.0.
23842     case $host_os in
23843       aix4 | aix4.[01] | aix4.[01].*)
23844       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23845            echo ' yes '
23846            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23847         :
23848       else
23849         can_build_shared=no
23850       fi
23851       ;;
23852     esac
23853     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23854     # soname into executable. Probably we can add versioning support to
23855     # collect2, so additional links can be useful in future.
23856     if test "$aix_use_runtimelinking" = yes; then
23857       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23858       # instead of lib<name>.a to let people know that these are not
23859       # typical AIX shared libraries.
23860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23861     else
23862       # We preserve .a as extension for shared libraries through AIX4.2
23863       # and later when we are not doing run time linking.
23864       library_names_spec='${libname}${release}.a $libname.a'
23865       soname_spec='${libname}${release}${shared_ext}$major'
23866     fi
23867     shlibpath_var=LIBPATH
23868   fi
23869   ;;
23870
23871 amigaos*)
23872   library_names_spec='$libname.ixlibrary $libname.a'
23873   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23874   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'
23875   ;;
23876
23877 beos*)
23878   library_names_spec='${libname}${shared_ext}'
23879   dynamic_linker="$host_os ld.so"
23880   shlibpath_var=LIBRARY_PATH
23881   ;;
23882
23883 bsdi4*)
23884   version_type=linux
23885   need_version=no
23886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23887   soname_spec='${libname}${release}${shared_ext}$major'
23888   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23889   shlibpath_var=LD_LIBRARY_PATH
23890   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23891   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23892   # the default ld.so.conf also contains /usr/contrib/lib and
23893   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23894   # libtool to hard-code these into programs
23895   ;;
23896
23897 cygwin* | mingw* | pw32*)
23898   version_type=windows
23899   shrext_cmds=".dll"
23900   need_version=no
23901   need_lib_prefix=no
23902
23903   case $GCC,$host_os in
23904   yes,cygwin* | yes,mingw* | yes,pw32*)
23905     library_names_spec='$libname.dll.a'
23906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23907     postinstall_cmds='base_file=`basename \${file}`~
23908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23909       dldir=$destdir/`dirname \$dlpath`~
23910       test -d \$dldir || mkdir -p \$dldir~
23911       $install_prog $dir/$dlname \$dldir/$dlname'
23912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23913       dlpath=$dir/\$dldll~
23914        $rm \$dlpath'
23915     shlibpath_overrides_runpath=yes
23916
23917     case $host_os in
23918     cygwin*)
23919       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23920       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23921       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23922       ;;
23923     mingw*)
23924       # MinGW DLLs use traditional 'lib' prefix
23925       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23926       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23927       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23928         # It is most probably a Windows format PATH printed by
23929         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23930         # path with ; separators, and with drive letters. We can handle the
23931         # drive letters (cygwin fileutils understands them), so leave them,
23932         # especially as we might pass files found there to a mingw objdump,
23933         # which wouldn't understand a cygwinified path. Ahh.
23934         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23935       else
23936         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23937       fi
23938       ;;
23939     pw32*)
23940       # pw32 DLLs use 'pw' prefix rather than 'lib'
23941       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23942       ;;
23943     esac
23944     ;;
23945
23946   *)
23947     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23948     ;;
23949   esac
23950   dynamic_linker='Win32 ld.exe'
23951   # FIXME: first we should search . and the directory the executable is in
23952   shlibpath_var=PATH
23953   ;;
23954
23955 darwin* | rhapsody*)
23956   dynamic_linker="$host_os dyld"
23957   version_type=darwin
23958   need_lib_prefix=no
23959   need_version=no
23960   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23961   soname_spec='${libname}${release}${major}$shared_ext'
23962   shlibpath_overrides_runpath=yes
23963   shlibpath_var=DYLD_LIBRARY_PATH
23964   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23965   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23966   if test "$GCC" = yes; then
23967     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"`
23968   else
23969     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23970   fi
23971   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23972   ;;
23973
23974 dgux*)
23975   version_type=linux
23976   need_lib_prefix=no
23977   need_version=no
23978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23979   soname_spec='${libname}${release}${shared_ext}$major'
23980   shlibpath_var=LD_LIBRARY_PATH
23981   ;;
23982
23983 freebsd1*)
23984   dynamic_linker=no
23985   ;;
23986
23987 kfreebsd*-gnu)
23988   version_type=linux
23989   need_lib_prefix=no
23990   need_version=no
23991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23992   soname_spec='${libname}${release}${shared_ext}$major'
23993   shlibpath_var=LD_LIBRARY_PATH
23994   shlibpath_overrides_runpath=no
23995   hardcode_into_libs=yes
23996   dynamic_linker='GNU ld.so'
23997   ;;
23998
23999 freebsd*)
24000   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24001   version_type=freebsd-$objformat
24002   case $version_type in
24003     freebsd-elf*)
24004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24005       need_version=no
24006       need_lib_prefix=no
24007       ;;
24008     freebsd-*)
24009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24010       need_version=yes
24011       ;;
24012   esac
24013   shlibpath_var=LD_LIBRARY_PATH
24014   case $host_os in
24015   freebsd2*)
24016     shlibpath_overrides_runpath=yes
24017     ;;
24018   freebsd3.01* | freebsdelf3.01*)
24019     shlibpath_overrides_runpath=yes
24020     hardcode_into_libs=yes
24021     ;;
24022   *) # from 3.2 on
24023     shlibpath_overrides_runpath=no
24024     hardcode_into_libs=yes
24025     ;;
24026   esac
24027   ;;
24028
24029 gnu*)
24030   version_type=linux
24031   need_lib_prefix=no
24032   need_version=no
24033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24034   soname_spec='${libname}${release}${shared_ext}$major'
24035   shlibpath_var=LD_LIBRARY_PATH
24036   hardcode_into_libs=yes
24037   ;;
24038
24039 hpux9* | hpux10* | hpux11*)
24040   # Give a soname corresponding to the major version so that dld.sl refuses to
24041   # link against other versions.
24042   version_type=sunos
24043   need_lib_prefix=no
24044   need_version=no
24045   case "$host_cpu" in
24046   ia64*)
24047     shrext_cmds='.so'
24048     hardcode_into_libs=yes
24049     dynamic_linker="$host_os dld.so"
24050     shlibpath_var=LD_LIBRARY_PATH
24051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24053     soname_spec='${libname}${release}${shared_ext}$major'
24054     if test "X$HPUX_IA64_MODE" = X32; then
24055       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24056     else
24057       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24058     fi
24059     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24060     ;;
24061    hppa*64*)
24062      shrext_cmds='.sl'
24063      hardcode_into_libs=yes
24064      dynamic_linker="$host_os dld.sl"
24065      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24066      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24067      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24068      soname_spec='${libname}${release}${shared_ext}$major'
24069      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24070      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24071      ;;
24072    *)
24073     shrext_cmds='.sl'
24074     dynamic_linker="$host_os dld.sl"
24075     shlibpath_var=SHLIB_PATH
24076     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24078     soname_spec='${libname}${release}${shared_ext}$major'
24079     ;;
24080   esac
24081   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24082   postinstall_cmds='chmod 555 $lib'
24083   ;;
24084
24085 irix5* | irix6* | nonstopux*)
24086   case $host_os in
24087     nonstopux*) version_type=nonstopux ;;
24088     *)
24089         if test "$lt_cv_prog_gnu_ld" = yes; then
24090                 version_type=linux
24091         else
24092                 version_type=irix
24093         fi ;;
24094   esac
24095   need_lib_prefix=no
24096   need_version=no
24097   soname_spec='${libname}${release}${shared_ext}$major'
24098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24099   case $host_os in
24100   irix5* | nonstopux*)
24101     libsuff= shlibsuff=
24102     ;;
24103   *)
24104     case $LD in # libtool.m4 will add one of these switches to LD
24105     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24106       libsuff= shlibsuff= libmagic=32-bit;;
24107     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24108       libsuff=32 shlibsuff=N32 libmagic=N32;;
24109     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24110       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24111     *) libsuff= shlibsuff= libmagic=never-match;;
24112     esac
24113     ;;
24114   esac
24115   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24116   shlibpath_overrides_runpath=no
24117   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24118   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24119   hardcode_into_libs=yes
24120   ;;
24121
24122 # No shared lib support for Linux oldld, aout, or coff.
24123 linux*oldld* | linux*aout* | linux*coff*)
24124   dynamic_linker=no
24125   ;;
24126
24127 # This must be Linux ELF.
24128 linux*)
24129   version_type=linux
24130   need_lib_prefix=no
24131   need_version=no
24132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24133   soname_spec='${libname}${release}${shared_ext}$major'
24134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24135   shlibpath_var=LD_LIBRARY_PATH
24136   shlibpath_overrides_runpath=no
24137   # This implies no fast_install, which is unacceptable.
24138   # Some rework will be needed to allow for fast_install
24139   # before this can be enabled.
24140   hardcode_into_libs=yes
24141
24142   # find out which ABI we are using
24143   libsuff=
24144   case "$host_cpu" in
24145   x86_64*|s390x*|powerpc64*)
24146     echo '#line 24146 "configure"' > conftest.$ac_ext
24147     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24148   (eval $ac_compile) 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; then
24152       case `/usr/bin/file conftest.$ac_objext` in
24153       *64-bit*)
24154         libsuff=64
24155         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24156         ;;
24157       esac
24158     fi
24159     rm -rf conftest*
24160     ;;
24161   esac
24162
24163   # Append ld.so.conf contents to the search path
24164   if test -f /etc/ld.so.conf; then
24165     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
24166     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24167   fi
24168
24169   # We used to test for /lib/ld.so.1 and disable shared libraries on
24170   # powerpc, because MkLinux only supported shared libraries with the
24171   # GNU dynamic linker.  Since this was broken with cross compilers,
24172   # most powerpc-linux boxes support dynamic linking these days and
24173   # people can always --disable-shared, the test was removed, and we
24174   # assume the GNU/Linux dynamic linker is in use.
24175   dynamic_linker='GNU/Linux ld.so'
24176   ;;
24177
24178 knetbsd*-gnu)
24179   version_type=linux
24180   need_lib_prefix=no
24181   need_version=no
24182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24183   soname_spec='${libname}${release}${shared_ext}$major'
24184   shlibpath_var=LD_LIBRARY_PATH
24185   shlibpath_overrides_runpath=no
24186   hardcode_into_libs=yes
24187   dynamic_linker='GNU ld.so'
24188   ;;
24189
24190 netbsd*)
24191   version_type=sunos
24192   need_lib_prefix=no
24193   need_version=no
24194   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24196     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24197     dynamic_linker='NetBSD (a.out) ld.so'
24198   else
24199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24200     soname_spec='${libname}${release}${shared_ext}$major'
24201     dynamic_linker='NetBSD ld.elf_so'
24202   fi
24203   shlibpath_var=LD_LIBRARY_PATH
24204   shlibpath_overrides_runpath=yes
24205   hardcode_into_libs=yes
24206   ;;
24207
24208 newsos6)
24209   version_type=linux
24210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24211   shlibpath_var=LD_LIBRARY_PATH
24212   shlibpath_overrides_runpath=yes
24213   ;;
24214
24215 nto-qnx*)
24216   version_type=linux
24217   need_lib_prefix=no
24218   need_version=no
24219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24220   soname_spec='${libname}${release}${shared_ext}$major'
24221   shlibpath_var=LD_LIBRARY_PATH
24222   shlibpath_overrides_runpath=yes
24223   ;;
24224
24225 openbsd*)
24226   version_type=sunos
24227   need_lib_prefix=no
24228   need_version=yes
24229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24231   shlibpath_var=LD_LIBRARY_PATH
24232   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24233     case $host_os in
24234       openbsd2.[89] | openbsd2.[89].*)
24235         shlibpath_overrides_runpath=no
24236         ;;
24237       *)
24238         shlibpath_overrides_runpath=yes
24239         ;;
24240       esac
24241   else
24242     shlibpath_overrides_runpath=yes
24243   fi
24244   ;;
24245
24246 os2*)
24247   libname_spec='$name'
24248   shrext_cmds=".dll"
24249   need_lib_prefix=no
24250   library_names_spec='$libname${shared_ext} $libname.a'
24251   dynamic_linker='OS/2 ld.exe'
24252   shlibpath_var=LIBPATH
24253   ;;
24254
24255 osf3* | osf4* | osf5*)
24256   version_type=osf
24257   need_lib_prefix=no
24258   need_version=no
24259   soname_spec='${libname}${release}${shared_ext}$major'
24260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24261   shlibpath_var=LD_LIBRARY_PATH
24262   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24263   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24264   ;;
24265
24266 sco3.2v5*)
24267   version_type=osf
24268   soname_spec='${libname}${release}${shared_ext}$major'
24269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24270   shlibpath_var=LD_LIBRARY_PATH
24271   ;;
24272
24273 solaris*)
24274   version_type=linux
24275   need_lib_prefix=no
24276   need_version=no
24277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24278   soname_spec='${libname}${release}${shared_ext}$major'
24279   shlibpath_var=LD_LIBRARY_PATH
24280   shlibpath_overrides_runpath=yes
24281   hardcode_into_libs=yes
24282   # ldd complains unless libraries are executable
24283   postinstall_cmds='chmod +x $lib'
24284   ;;
24285
24286 sunos4*)
24287   version_type=sunos
24288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24289   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24290   shlibpath_var=LD_LIBRARY_PATH
24291   shlibpath_overrides_runpath=yes
24292   if test "$with_gnu_ld" = yes; then
24293     need_lib_prefix=no
24294   fi
24295   need_version=yes
24296   ;;
24297
24298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24299   version_type=linux
24300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24301   soname_spec='${libname}${release}${shared_ext}$major'
24302   shlibpath_var=LD_LIBRARY_PATH
24303   case $host_vendor in
24304     sni)
24305       shlibpath_overrides_runpath=no
24306       need_lib_prefix=no
24307       export_dynamic_flag_spec='${wl}-Blargedynsym'
24308       runpath_var=LD_RUN_PATH
24309       ;;
24310     siemens)
24311       need_lib_prefix=no
24312       ;;
24313     motorola)
24314       need_lib_prefix=no
24315       need_version=no
24316       shlibpath_overrides_runpath=no
24317       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24318       ;;
24319   esac
24320   ;;
24321
24322 sysv4*MP*)
24323   if test -d /usr/nec ;then
24324     version_type=linux
24325     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24326     soname_spec='$libname${shared_ext}.$major'
24327     shlibpath_var=LD_LIBRARY_PATH
24328   fi
24329   ;;
24330
24331 uts4*)
24332   version_type=linux
24333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24334   soname_spec='${libname}${release}${shared_ext}$major'
24335   shlibpath_var=LD_LIBRARY_PATH
24336   ;;
24337
24338 *)
24339   dynamic_linker=no
24340   ;;
24341 esac
24342 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24343 echo "${ECHO_T}$dynamic_linker" >&6
24344 test "$dynamic_linker" = no && can_build_shared=no
24345
24346 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24347 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24348 hardcode_action_GCJ=
24349 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24350    test -n "$runpath_var GCJ" || \
24351    test "X$hardcode_automatic_GCJ"="Xyes" ; then
24352
24353   # We can hardcode non-existant directories.
24354   if test "$hardcode_direct_GCJ" != no &&
24355      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24356      # have to relink, otherwise we might link with an installed library
24357      # when we should be linking with a yet-to-be-installed one
24358      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24359      test "$hardcode_minus_L_GCJ" != no; then
24360     # Linking always hardcodes the temporary library directory.
24361     hardcode_action_GCJ=relink
24362   else
24363     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24364     hardcode_action_GCJ=immediate
24365   fi
24366 else
24367   # We cannot hardcode anything, or else we can only hardcode existing
24368   # directories.
24369   hardcode_action_GCJ=unsupported
24370 fi
24371 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24372 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24373
24374 if test "$hardcode_action_GCJ" = relink; then
24375   # Fast installation is not supported
24376   enable_fast_install=no
24377 elif test "$shlibpath_overrides_runpath" = yes ||
24378      test "$enable_shared" = no; then
24379   # Fast installation is not necessary
24380   enable_fast_install=needless
24381 fi
24382
24383 striplib=
24384 old_striplib=
24385 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24386 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24387 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24388   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24389   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24390   echo "$as_me:$LINENO: result: yes" >&5
24391 echo "${ECHO_T}yes" >&6
24392 else
24393 # FIXME - insert some real tests, host_os isn't really good enough
24394   case $host_os in
24395    darwin*)
24396        if test -n "$STRIP" ; then
24397          striplib="$STRIP -x"
24398          echo "$as_me:$LINENO: result: yes" >&5
24399 echo "${ECHO_T}yes" >&6
24400        else
24401   echo "$as_me:$LINENO: result: no" >&5
24402 echo "${ECHO_T}no" >&6
24403 fi
24404        ;;
24405    *)
24406   echo "$as_me:$LINENO: result: no" >&5
24407 echo "${ECHO_T}no" >&6
24408     ;;
24409   esac
24410 fi
24411
24412 if test "x$enable_dlopen" != xyes; then
24413   enable_dlopen=unknown
24414   enable_dlopen_self=unknown
24415   enable_dlopen_self_static=unknown
24416 else
24417   lt_cv_dlopen=no
24418   lt_cv_dlopen_libs=
24419
24420   case $host_os in
24421   beos*)
24422     lt_cv_dlopen="load_add_on"
24423     lt_cv_dlopen_libs=
24424     lt_cv_dlopen_self=yes
24425     ;;
24426
24427   mingw* | pw32*)
24428     lt_cv_dlopen="LoadLibrary"
24429     lt_cv_dlopen_libs=
24430    ;;
24431
24432   cygwin*)
24433     lt_cv_dlopen="dlopen"
24434     lt_cv_dlopen_libs=
24435    ;;
24436
24437   darwin*)
24438   # if libdl is installed we need to link against it
24439     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24442   echo $ECHO_N "(cached) $ECHO_C" >&6
24443 else
24444   ac_check_lib_save_LIBS=$LIBS
24445 LIBS="-ldl  $LIBS"
24446 cat >conftest.$ac_ext <<_ACEOF
24447 /* confdefs.h.  */
24448 _ACEOF
24449 cat confdefs.h >>conftest.$ac_ext
24450 cat >>conftest.$ac_ext <<_ACEOF
24451 /* end confdefs.h.  */
24452
24453 /* Override any gcc2 internal prototype to avoid an error.  */
24454 #ifdef __cplusplus
24455 extern "C"
24456 #endif
24457 /* We use char because int might match the return type of a gcc2
24458    builtin and then its argument prototype would still apply.  */
24459 char dlopen ();
24460 int
24461 main ()
24462 {
24463 dlopen ();
24464   ;
24465   return 0;
24466 }
24467 _ACEOF
24468 rm -f conftest.$ac_objext conftest$ac_exeext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24470   (eval $ac_link) 2>conftest.er1
24471   ac_status=$?
24472   grep -v '^ *+' conftest.er1 >conftest.err
24473   rm -f conftest.er1
24474   cat conftest.err >&5
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); } &&
24477          { ac_try='test -z "$ac_c_werror_flag"
24478                          || test ! -s conftest.err'
24479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480   (eval $ac_try) 2>&5
24481   ac_status=$?
24482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483   (exit $ac_status); }; } &&
24484          { ac_try='test -s conftest$ac_exeext'
24485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486   (eval $ac_try) 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; }; then
24490   ac_cv_lib_dl_dlopen=yes
24491 else
24492   echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 ac_cv_lib_dl_dlopen=no
24496 fi
24497 rm -f conftest.err conftest.$ac_objext \
24498       conftest$ac_exeext conftest.$ac_ext
24499 LIBS=$ac_check_lib_save_LIBS
24500 fi
24501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24503 if test $ac_cv_lib_dl_dlopen = yes; then
24504   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24505 else
24506
24507     lt_cv_dlopen="dyld"
24508     lt_cv_dlopen_libs=
24509     lt_cv_dlopen_self=yes
24510
24511 fi
24512
24513    ;;
24514
24515   *)
24516     echo "$as_me:$LINENO: checking for shl_load" >&5
24517 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24518 if test "${ac_cv_func_shl_load+set}" = set; then
24519   echo $ECHO_N "(cached) $ECHO_C" >&6
24520 else
24521   cat >conftest.$ac_ext <<_ACEOF
24522 /* confdefs.h.  */
24523 _ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h.  */
24527 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24529 #define shl_load innocuous_shl_load
24530
24531 /* System header to define __stub macros and hopefully few prototypes,
24532     which can conflict with char shl_load (); below.
24533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24534     <limits.h> exists even on freestanding compilers.  */
24535
24536 #ifdef __STDC__
24537 # include <limits.h>
24538 #else
24539 # include <assert.h>
24540 #endif
24541
24542 #undef shl_load
24543
24544 /* Override any gcc2 internal prototype to avoid an error.  */
24545 #ifdef __cplusplus
24546 extern "C"
24547 {
24548 #endif
24549 /* We use char because int might match the return type of a gcc2
24550    builtin and then its argument prototype would still apply.  */
24551 char shl_load ();
24552 /* The GNU C library defines this for functions which it implements
24553     to always fail with ENOSYS.  Some functions are actually named
24554     something starting with __ and the normal name is an alias.  */
24555 #if defined (__stub_shl_load) || defined (__stub___shl_load)
24556 choke me
24557 #else
24558 char (*f) () = shl_load;
24559 #endif
24560 #ifdef __cplusplus
24561 }
24562 #endif
24563
24564 int
24565 main ()
24566 {
24567 return f != shl_load;
24568   ;
24569   return 0;
24570 }
24571 _ACEOF
24572 rm -f conftest.$ac_objext conftest$ac_exeext
24573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24574   (eval $ac_link) 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } &&
24581          { ac_try='test -z "$ac_c_werror_flag"
24582                          || test ! -s conftest.err'
24583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24584   (eval $ac_try) 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); }; } &&
24588          { ac_try='test -s conftest$ac_exeext'
24589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590   (eval $ac_try) 2>&5
24591   ac_status=$?
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); }; }; then
24594   ac_cv_func_shl_load=yes
24595 else
24596   echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24598
24599 ac_cv_func_shl_load=no
24600 fi
24601 rm -f conftest.err conftest.$ac_objext \
24602       conftest$ac_exeext conftest.$ac_ext
24603 fi
24604 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24606 if test $ac_cv_func_shl_load = yes; then
24607   lt_cv_dlopen="shl_load"
24608 else
24609   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24610 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   ac_check_lib_save_LIBS=$LIBS
24615 LIBS="-ldld  $LIBS"
24616 cat >conftest.$ac_ext <<_ACEOF
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 /* Override any gcc2 internal prototype to avoid an error.  */
24624 #ifdef __cplusplus
24625 extern "C"
24626 #endif
24627 /* We use char because int might match the return type of a gcc2
24628    builtin and then its argument prototype would still apply.  */
24629 char shl_load ();
24630 int
24631 main ()
24632 {
24633 shl_load ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24640   (eval $ac_link) 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } &&
24647          { ac_try='test -z "$ac_c_werror_flag"
24648                          || test ! -s conftest.err'
24649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650   (eval $ac_try) 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); }; } &&
24654          { ac_try='test -s conftest$ac_exeext'
24655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656   (eval $ac_try) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); }; }; then
24660   ac_cv_lib_dld_shl_load=yes
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665 ac_cv_lib_dld_shl_load=no
24666 fi
24667 rm -f conftest.err conftest.$ac_objext \
24668       conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24670 fi
24671 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24672 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24673 if test $ac_cv_lib_dld_shl_load = yes; then
24674   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24675 else
24676   echo "$as_me:$LINENO: checking for dlopen" >&5
24677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24678 if test "${ac_cv_func_dlopen+set}" = set; then
24679   echo $ECHO_N "(cached) $ECHO_C" >&6
24680 else
24681   cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h.  */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h.  */
24687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24689 #define dlopen innocuous_dlopen
24690
24691 /* System header to define __stub macros and hopefully few prototypes,
24692     which can conflict with char dlopen (); below.
24693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24694     <limits.h> exists even on freestanding compilers.  */
24695
24696 #ifdef __STDC__
24697 # include <limits.h>
24698 #else
24699 # include <assert.h>
24700 #endif
24701
24702 #undef dlopen
24703
24704 /* Override any gcc2 internal prototype to avoid an error.  */
24705 #ifdef __cplusplus
24706 extern "C"
24707 {
24708 #endif
24709 /* We use char because int might match the return type of a gcc2
24710    builtin and then its argument prototype would still apply.  */
24711 char dlopen ();
24712 /* The GNU C library defines this for functions which it implements
24713     to always fail with ENOSYS.  Some functions are actually named
24714     something starting with __ and the normal name is an alias.  */
24715 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24716 choke me
24717 #else
24718 char (*f) () = dlopen;
24719 #endif
24720 #ifdef __cplusplus
24721 }
24722 #endif
24723
24724 int
24725 main ()
24726 {
24727 return f != dlopen;
24728   ;
24729   return 0;
24730 }
24731 _ACEOF
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734   (eval $ac_link) 2>conftest.er1
24735   ac_status=$?
24736   grep -v '^ *+' conftest.er1 >conftest.err
24737   rm -f conftest.er1
24738   cat conftest.err >&5
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); } &&
24741          { ac_try='test -z "$ac_c_werror_flag"
24742                          || test ! -s conftest.err'
24743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744   (eval $ac_try) 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; } &&
24748          { ac_try='test -s conftest$ac_exeext'
24749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750   (eval $ac_try) 2>&5
24751   ac_status=$?
24752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753   (exit $ac_status); }; }; then
24754   ac_cv_func_dlopen=yes
24755 else
24756   echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759 ac_cv_func_dlopen=no
24760 fi
24761 rm -f conftest.err conftest.$ac_objext \
24762       conftest$ac_exeext conftest.$ac_ext
24763 fi
24764 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24766 if test $ac_cv_func_dlopen = yes; then
24767   lt_cv_dlopen="dlopen"
24768 else
24769   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24772   echo $ECHO_N "(cached) $ECHO_C" >&6
24773 else
24774   ac_check_lib_save_LIBS=$LIBS
24775 LIBS="-ldl  $LIBS"
24776 cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782
24783 /* Override any gcc2 internal prototype to avoid an error.  */
24784 #ifdef __cplusplus
24785 extern "C"
24786 #endif
24787 /* We use char because int might match the return type of a gcc2
24788    builtin and then its argument prototype would still apply.  */
24789 char dlopen ();
24790 int
24791 main ()
24792 {
24793 dlopen ();
24794   ;
24795   return 0;
24796 }
24797 _ACEOF
24798 rm -f conftest.$ac_objext conftest$ac_exeext
24799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24800   (eval $ac_link) 2>conftest.er1
24801   ac_status=$?
24802   grep -v '^ *+' conftest.er1 >conftest.err
24803   rm -f conftest.er1
24804   cat conftest.err >&5
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); } &&
24807          { ac_try='test -z "$ac_c_werror_flag"
24808                          || test ! -s conftest.err'
24809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810   (eval $ac_try) 2>&5
24811   ac_status=$?
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); }; } &&
24814          { ac_try='test -s conftest$ac_exeext'
24815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816   (eval $ac_try) 2>&5
24817   ac_status=$?
24818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819   (exit $ac_status); }; }; then
24820   ac_cv_lib_dl_dlopen=yes
24821 else
24822   echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24824
24825 ac_cv_lib_dl_dlopen=no
24826 fi
24827 rm -f conftest.err conftest.$ac_objext \
24828       conftest$ac_exeext conftest.$ac_ext
24829 LIBS=$ac_check_lib_save_LIBS
24830 fi
24831 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24833 if test $ac_cv_lib_dl_dlopen = yes; then
24834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24835 else
24836   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24839   echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841   ac_check_lib_save_LIBS=$LIBS
24842 LIBS="-lsvld  $LIBS"
24843 cat >conftest.$ac_ext <<_ACEOF
24844 /* confdefs.h.  */
24845 _ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h.  */
24849
24850 /* Override any gcc2 internal prototype to avoid an error.  */
24851 #ifdef __cplusplus
24852 extern "C"
24853 #endif
24854 /* We use char because int might match the return type of a gcc2
24855    builtin and then its argument prototype would still apply.  */
24856 char dlopen ();
24857 int
24858 main ()
24859 {
24860 dlopen ();
24861   ;
24862   return 0;
24863 }
24864 _ACEOF
24865 rm -f conftest.$ac_objext conftest$ac_exeext
24866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24867   (eval $ac_link) 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } &&
24874          { ac_try='test -z "$ac_c_werror_flag"
24875                          || test ! -s conftest.err'
24876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24877   (eval $ac_try) 2>&5
24878   ac_status=$?
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); }; } &&
24881          { ac_try='test -s conftest$ac_exeext'
24882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24883   (eval $ac_try) 2>&5
24884   ac_status=$?
24885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886   (exit $ac_status); }; }; then
24887   ac_cv_lib_svld_dlopen=yes
24888 else
24889   echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24891
24892 ac_cv_lib_svld_dlopen=no
24893 fi
24894 rm -f conftest.err conftest.$ac_objext \
24895       conftest$ac_exeext conftest.$ac_ext
24896 LIBS=$ac_check_lib_save_LIBS
24897 fi
24898 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24899 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24900 if test $ac_cv_lib_svld_dlopen = yes; then
24901   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24902 else
24903   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24906   echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908   ac_check_lib_save_LIBS=$LIBS
24909 LIBS="-ldld  $LIBS"
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h.  */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h.  */
24916
24917 /* Override any gcc2 internal prototype to avoid an error.  */
24918 #ifdef __cplusplus
24919 extern "C"
24920 #endif
24921 /* We use char because int might match the return type of a gcc2
24922    builtin and then its argument prototype would still apply.  */
24923 char dld_link ();
24924 int
24925 main ()
24926 {
24927 dld_link ();
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934   (eval $ac_link) 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } &&
24941          { ac_try='test -z "$ac_c_werror_flag"
24942                          || test ! -s conftest.err'
24943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944   (eval $ac_try) 2>&5
24945   ac_status=$?
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); }; } &&
24948          { ac_try='test -s conftest$ac_exeext'
24949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950   (eval $ac_try) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; }; then
24954   ac_cv_lib_dld_dld_link=yes
24955 else
24956   echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 ac_cv_lib_dld_dld_link=no
24960 fi
24961 rm -f conftest.err conftest.$ac_objext \
24962       conftest$ac_exeext conftest.$ac_ext
24963 LIBS=$ac_check_lib_save_LIBS
24964 fi
24965 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24966 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24967 if test $ac_cv_lib_dld_dld_link = yes; then
24968   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24969 fi
24970
24971
24972 fi
24973
24974
24975 fi
24976
24977
24978 fi
24979
24980
24981 fi
24982
24983
24984 fi
24985
24986     ;;
24987   esac
24988
24989   if test "x$lt_cv_dlopen" != xno; then
24990     enable_dlopen=yes
24991   else
24992     enable_dlopen=no
24993   fi
24994
24995   case $lt_cv_dlopen in
24996   dlopen)
24997     save_CPPFLAGS="$CPPFLAGS"
24998     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
24999
25000     save_LDFLAGS="$LDFLAGS"
25001     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
25002
25003     save_LIBS="$LIBS"
25004     LIBS="$lt_cv_dlopen_libs $LIBS"
25005
25006     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
25007 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
25008 if test "${lt_cv_dlopen_self+set}" = set; then
25009   echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011           if test "$cross_compiling" = yes; then :
25012   lt_cv_dlopen_self=cross
25013 else
25014   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25015   lt_status=$lt_dlunknown
25016   cat > conftest.$ac_ext <<EOF
25017 #line 25017 "configure"
25018 #include "confdefs.h"
25019
25020 #if HAVE_DLFCN_H
25021 #include <dlfcn.h>
25022 #endif
25023
25024 #include <stdio.h>
25025
25026 #ifdef RTLD_GLOBAL
25027 #  define LT_DLGLOBAL           RTLD_GLOBAL
25028 #else
25029 #  ifdef DL_GLOBAL
25030 #    define LT_DLGLOBAL         DL_GLOBAL
25031 #  else
25032 #    define LT_DLGLOBAL         0
25033 #  endif
25034 #endif
25035
25036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25037    find out it does not work in some platform. */
25038 #ifndef LT_DLLAZY_OR_NOW
25039 #  ifdef RTLD_LAZY
25040 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
25041 #  else
25042 #    ifdef DL_LAZY
25043 #      define LT_DLLAZY_OR_NOW          DL_LAZY
25044 #    else
25045 #      ifdef RTLD_NOW
25046 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
25047 #      else
25048 #        ifdef DL_NOW
25049 #          define LT_DLLAZY_OR_NOW      DL_NOW
25050 #        else
25051 #          define LT_DLLAZY_OR_NOW      0
25052 #        endif
25053 #      endif
25054 #    endif
25055 #  endif
25056 #endif
25057
25058 #ifdef __cplusplus
25059 extern "C" void exit (int);
25060 #endif
25061
25062 void fnord() { int i=42;}
25063 int main ()
25064 {
25065   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25066   int status = $lt_dlunknown;
25067
25068   if (self)
25069     {
25070       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
25071       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25072       /* dlclose (self); */
25073     }
25074
25075     exit (status);
25076 }
25077 EOF
25078   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25079   (eval $ac_link) 2>&5
25080   ac_status=$?
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25083     (./conftest; exit; ) 2>/dev/null
25084     lt_status=$?
25085     case x$lt_status in
25086       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
25087       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
25088       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
25089     esac
25090   else :
25091     # compilation failed
25092     lt_cv_dlopen_self=no
25093   fi
25094 fi
25095 rm -fr conftest*
25096
25097
25098 fi
25099 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
25100 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
25101
25102     if test "x$lt_cv_dlopen_self" = xyes; then
25103       LDFLAGS="$LDFLAGS $link_static_flag"
25104       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
25105 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
25106 if test "${lt_cv_dlopen_self_static+set}" = set; then
25107   echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109           if test "$cross_compiling" = yes; then :
25110   lt_cv_dlopen_self_static=cross
25111 else
25112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25113   lt_status=$lt_dlunknown
25114   cat > conftest.$ac_ext <<EOF
25115 #line 25115 "configure"
25116 #include "confdefs.h"
25117
25118 #if HAVE_DLFCN_H
25119 #include <dlfcn.h>
25120 #endif
25121
25122 #include <stdio.h>
25123
25124 #ifdef RTLD_GLOBAL
25125 #  define LT_DLGLOBAL           RTLD_GLOBAL
25126 #else
25127 #  ifdef DL_GLOBAL
25128 #    define LT_DLGLOBAL         DL_GLOBAL
25129 #  else
25130 #    define LT_DLGLOBAL         0
25131 #  endif
25132 #endif
25133
25134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25135    find out it does not work in some platform. */
25136 #ifndef LT_DLLAZY_OR_NOW
25137 #  ifdef RTLD_LAZY
25138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
25139 #  else
25140 #    ifdef DL_LAZY
25141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
25142 #    else
25143 #      ifdef RTLD_NOW
25144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
25145 #      else
25146 #        ifdef DL_NOW
25147 #          define LT_DLLAZY_OR_NOW      DL_NOW
25148 #        else
25149 #          define LT_DLLAZY_OR_NOW      0
25150 #        endif
25151 #      endif
25152 #    endif
25153 #  endif
25154 #endif
25155
25156 #ifdef __cplusplus
25157 extern "C" void exit (int);
25158 #endif
25159
25160 void fnord() { int i=42;}
25161 int main ()
25162 {
25163   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25164   int status = $lt_dlunknown;
25165
25166   if (self)
25167     {
25168       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
25169       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25170       /* dlclose (self); */
25171     }
25172
25173     exit (status);
25174 }
25175 EOF
25176   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177   (eval $ac_link) 2>&5
25178   ac_status=$?
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25181     (./conftest; exit; ) 2>/dev/null
25182     lt_status=$?
25183     case x$lt_status in
25184       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
25185       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
25186       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
25187     esac
25188   else :
25189     # compilation failed
25190     lt_cv_dlopen_self_static=no
25191   fi
25192 fi
25193 rm -fr conftest*
25194
25195
25196 fi
25197 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
25198 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
25199     fi
25200
25201     CPPFLAGS="$save_CPPFLAGS"
25202     LDFLAGS="$save_LDFLAGS"
25203     LIBS="$save_LIBS"
25204     ;;
25205   esac
25206
25207   case $lt_cv_dlopen_self in
25208   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25209   *) enable_dlopen_self=unknown ;;
25210   esac
25211
25212   case $lt_cv_dlopen_self_static in
25213   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25214   *) enable_dlopen_self_static=unknown ;;
25215   esac
25216 fi
25217
25218
25219 # The else clause should only fire when bootstrapping the
25220 # libtool distribution, otherwise you forgot to ship ltmain.sh
25221 # with your package, and you will get complaints that there are
25222 # no rules to generate ltmain.sh.
25223 if test -f "$ltmain"; then
25224   # See if we are running on zsh, and set the options which allow our commands through
25225   # without removal of \ escapes.
25226   if test -n "${ZSH_VERSION+set}" ; then
25227     setopt NO_GLOB_SUBST
25228   fi
25229   # Now quote all the things that may contain metacharacters while being
25230   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25231   # variables and quote the copies for generation of the libtool script.
25232   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25233     SED SHELL STRIP \
25234     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25235     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25236     deplibs_check_method reload_flag reload_cmds need_locks \
25237     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25238     lt_cv_sys_global_symbol_to_c_name_address \
25239     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25240     old_postinstall_cmds old_postuninstall_cmds \
25241     compiler_GCJ \
25242     CC_GCJ \
25243     LD_GCJ \
25244     lt_prog_compiler_wl_GCJ \
25245     lt_prog_compiler_pic_GCJ \
25246     lt_prog_compiler_static_GCJ \
25247     lt_prog_compiler_no_builtin_flag_GCJ \
25248     export_dynamic_flag_spec_GCJ \
25249     thread_safe_flag_spec_GCJ \
25250     whole_archive_flag_spec_GCJ \
25251     enable_shared_with_static_runtimes_GCJ \
25252     old_archive_cmds_GCJ \
25253     old_archive_from_new_cmds_GCJ \
25254     predep_objects_GCJ \
25255     postdep_objects_GCJ \
25256     predeps_GCJ \
25257     postdeps_GCJ \
25258     compiler_lib_search_path_GCJ \
25259     archive_cmds_GCJ \
25260     archive_expsym_cmds_GCJ \
25261     postinstall_cmds_GCJ \
25262     postuninstall_cmds_GCJ \
25263     old_archive_from_expsyms_cmds_GCJ \
25264     allow_undefined_flag_GCJ \
25265     no_undefined_flag_GCJ \
25266     export_symbols_cmds_GCJ \
25267     hardcode_libdir_flag_spec_GCJ \
25268     hardcode_libdir_flag_spec_ld_GCJ \
25269     hardcode_libdir_separator_GCJ \
25270     hardcode_automatic_GCJ \
25271     module_cmds_GCJ \
25272     module_expsym_cmds_GCJ \
25273     lt_cv_prog_compiler_c_o_GCJ \
25274     exclude_expsyms_GCJ \
25275     include_expsyms_GCJ; do
25276
25277     case $var in
25278     old_archive_cmds_GCJ | \
25279     old_archive_from_new_cmds_GCJ | \
25280     archive_cmds_GCJ | \
25281     archive_expsym_cmds_GCJ | \
25282     module_cmds_GCJ | \
25283     module_expsym_cmds_GCJ | \
25284     old_archive_from_expsyms_cmds_GCJ | \
25285     export_symbols_cmds_GCJ | \
25286     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25287     postinstall_cmds | postuninstall_cmds | \
25288     old_postinstall_cmds | old_postuninstall_cmds | \
25289     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25290       # Double-quote double-evaled strings.
25291       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25292       ;;
25293     *)
25294       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25295       ;;
25296     esac
25297   done
25298
25299   case $lt_echo in
25300   *'\$0 --fallback-echo"')
25301     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25302     ;;
25303   esac
25304
25305 cfgfile="$ofile"
25306
25307   cat <<__EOF__ >> "$cfgfile"
25308 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25309
25310 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25311
25312 # Shell to use when invoking shell scripts.
25313 SHELL=$lt_SHELL
25314
25315 # Whether or not to build shared libraries.
25316 build_libtool_libs=$enable_shared
25317
25318 # Whether or not to build static libraries.
25319 build_old_libs=$enable_static
25320
25321 # Whether or not to add -lc for building shared libraries.
25322 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25323
25324 # Whether or not to disallow shared libs when runtime libs are static
25325 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25326
25327 # Whether or not to optimize for fast installation.
25328 fast_install=$enable_fast_install
25329
25330 # The host system.
25331 host_alias=$host_alias
25332 host=$host
25333
25334 # An echo program that does not interpret backslashes.
25335 echo=$lt_echo
25336
25337 # The archiver.
25338 AR=$lt_AR
25339 AR_FLAGS=$lt_AR_FLAGS
25340
25341 # A C compiler.
25342 LTCC=$lt_LTCC
25343
25344 # A language-specific compiler.
25345 CC=$lt_compiler_GCJ
25346
25347 # Is the compiler the GNU C compiler?
25348 with_gcc=$GCC_GCJ
25349
25350 # An ERE matcher.
25351 EGREP=$lt_EGREP
25352
25353 # The linker used to build libraries.
25354 LD=$lt_LD_GCJ
25355
25356 # Whether we need hard or soft links.
25357 LN_S=$lt_LN_S
25358
25359 # A BSD-compatible nm program.
25360 NM=$lt_NM
25361
25362 # A symbol stripping program
25363 STRIP=$lt_STRIP
25364
25365 # Used to examine libraries when file_magic_cmd begins "file"
25366 MAGIC_CMD=$MAGIC_CMD
25367
25368 # Used on cygwin: DLL creation program.
25369 DLLTOOL="$DLLTOOL"
25370
25371 # Used on cygwin: object dumper.
25372 OBJDUMP="$OBJDUMP"
25373
25374 # Used on cygwin: assembler.
25375 AS="$AS"
25376
25377 # The name of the directory that contains temporary libtool files.
25378 objdir=$objdir
25379
25380 # How to create reloadable object files.
25381 reload_flag=$lt_reload_flag
25382 reload_cmds=$lt_reload_cmds
25383
25384 # How to pass a linker flag through the compiler.
25385 wl=$lt_lt_prog_compiler_wl_GCJ
25386
25387 # Object file suffix (normally "o").
25388 objext="$ac_objext"
25389
25390 # Old archive suffix (normally "a").
25391 libext="$libext"
25392
25393 # Shared library suffix (normally ".so").
25394 shrext_cmds='$shrext_cmds'
25395
25396 # Executable file suffix (normally "").
25397 exeext="$exeext"
25398
25399 # Additional compiler flags for building library objects.
25400 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25401 pic_mode=$pic_mode
25402
25403 # What is the maximum length of a command?
25404 max_cmd_len=$lt_cv_sys_max_cmd_len
25405
25406 # Does compiler simultaneously support -c and -o options?
25407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25408
25409 # Must we lock files when doing compilation ?
25410 need_locks=$lt_need_locks
25411
25412 # Do we need the lib prefix for modules?
25413 need_lib_prefix=$need_lib_prefix
25414
25415 # Do we need a version for libraries?
25416 need_version=$need_version
25417
25418 # Whether dlopen is supported.
25419 dlopen_support=$enable_dlopen
25420
25421 # Whether dlopen of programs is supported.
25422 dlopen_self=$enable_dlopen_self
25423
25424 # Whether dlopen of statically linked programs is supported.
25425 dlopen_self_static=$enable_dlopen_self_static
25426
25427 # Compiler flag to prevent dynamic linking.
25428 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25429
25430 # Compiler flag to turn off builtin functions.
25431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25432
25433 # Compiler flag to allow reflexive dlopens.
25434 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25435
25436 # Compiler flag to generate shared objects directly from archives.
25437 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25438
25439 # Compiler flag to generate thread-safe objects.
25440 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25441
25442 # Library versioning type.
25443 version_type=$version_type
25444
25445 # Format of library name prefix.
25446 libname_spec=$lt_libname_spec
25447
25448 # List of archive names.  First name is the real one, the rest are links.
25449 # The last name is the one that the linker finds with -lNAME.
25450 library_names_spec=$lt_library_names_spec
25451
25452 # The coded name of the library, if different from the real name.
25453 soname_spec=$lt_soname_spec
25454
25455 # Commands used to build and install an old-style archive.
25456 RANLIB=$lt_RANLIB
25457 old_archive_cmds=$lt_old_archive_cmds_GCJ
25458 old_postinstall_cmds=$lt_old_postinstall_cmds
25459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25460
25461 # Create an old-style archive from a shared archive.
25462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25463
25464 # Create a temporary old-style archive to link instead of a shared archive.
25465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25466
25467 # Commands used to build and install a shared archive.
25468 archive_cmds=$lt_archive_cmds_GCJ
25469 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25470 postinstall_cmds=$lt_postinstall_cmds
25471 postuninstall_cmds=$lt_postuninstall_cmds
25472
25473 # Commands used to build a loadable module (assumed same as above if empty)
25474 module_cmds=$lt_module_cmds_GCJ
25475 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25476
25477 # Commands to strip libraries.
25478 old_striplib=$lt_old_striplib
25479 striplib=$lt_striplib
25480
25481 # Dependencies to place before the objects being linked to create a
25482 # shared library.
25483 predep_objects=$lt_predep_objects_GCJ
25484
25485 # Dependencies to place after the objects being linked to create a
25486 # shared library.
25487 postdep_objects=$lt_postdep_objects_GCJ
25488
25489 # Dependencies to place before the objects being linked to create a
25490 # shared library.
25491 predeps=$lt_predeps_GCJ
25492
25493 # Dependencies to place after the objects being linked to create a
25494 # shared library.
25495 postdeps=$lt_postdeps_GCJ
25496
25497 # The library search path used internally by the compiler when linking
25498 # a shared library.
25499 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25500
25501 # Method to check whether dependent libraries are shared objects.
25502 deplibs_check_method=$lt_deplibs_check_method
25503
25504 # Command to use when deplibs_check_method == file_magic.
25505 file_magic_cmd=$lt_file_magic_cmd
25506
25507 # Flag that allows shared libraries with undefined symbols to be built.
25508 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25509
25510 # Flag that forces no undefined symbols.
25511 no_undefined_flag=$lt_no_undefined_flag_GCJ
25512
25513 # Commands used to finish a libtool library installation in a directory.
25514 finish_cmds=$lt_finish_cmds
25515
25516 # Same as above, but a single script fragment to be evaled but not shown.
25517 finish_eval=$lt_finish_eval
25518
25519 # Take the output of nm and produce a listing of raw symbols and C names.
25520 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25521
25522 # Transform the output of nm in a proper C declaration
25523 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25524
25525 # Transform the output of nm in a C name address pair
25526 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25527
25528 # This is the shared library runtime path variable.
25529 runpath_var=$runpath_var
25530
25531 # This is the shared library path variable.
25532 shlibpath_var=$shlibpath_var
25533
25534 # Is shlibpath searched before the hard-coded library search path?
25535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25536
25537 # How to hardcode a shared library path into an executable.
25538 hardcode_action=$hardcode_action_GCJ
25539
25540 # Whether we should hardcode library paths into libraries.
25541 hardcode_into_libs=$hardcode_into_libs
25542
25543 # Flag to hardcode \$libdir into a binary during linking.
25544 # This must work even if \$libdir does not exist.
25545 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25546
25547 # If ld is used when linking, flag to hardcode \$libdir into
25548 # a binary during linking. This must work even if \$libdir does
25549 # not exist.
25550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25551
25552 # Whether we need a single -rpath flag with a separated argument.
25553 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25554
25555 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25556 # resulting binary.
25557 hardcode_direct=$hardcode_direct_GCJ
25558
25559 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25560 # resulting binary.
25561 hardcode_minus_L=$hardcode_minus_L_GCJ
25562
25563 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25564 # the resulting binary.
25565 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25566
25567 # Set to yes if building a shared library automatically hardcodes DIR into the library
25568 # and all subsequent libraries and executables linked against it.
25569 hardcode_automatic=$hardcode_automatic_GCJ
25570
25571 # Variables whose values should be saved in libtool wrapper scripts and
25572 # restored at relink time.
25573 variables_saved_for_relink="$variables_saved_for_relink"
25574
25575 # Whether libtool must link a program against all its dependency libraries.
25576 link_all_deplibs=$link_all_deplibs_GCJ
25577
25578 # Compile-time system search path for libraries
25579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25580
25581 # Run-time system search path for libraries
25582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25583
25584 # Fix the shell variable \$srcfile for the compiler.
25585 fix_srcfile_path="$fix_srcfile_path_GCJ"
25586
25587 # Set to yes if exported symbols are required.
25588 always_export_symbols=$always_export_symbols_GCJ
25589
25590 # The commands to list exported symbols.
25591 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25592
25593 # The commands to extract the exported symbol list from a shared archive.
25594 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25595
25596 # Symbols that should not be listed in the preloaded symbols.
25597 exclude_expsyms=$lt_exclude_expsyms_GCJ
25598
25599 # Symbols that must always be exported.
25600 include_expsyms=$lt_include_expsyms_GCJ
25601
25602 # ### END LIBTOOL TAG CONFIG: $tagname
25603
25604 __EOF__
25605
25606
25607 else
25608   # If there is no Makefile yet, we rely on a make rule to execute
25609   # `config.status --recheck' to rerun these tests and create the
25610   # libtool script then.
25611   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25612   if test -f "$ltmain_in"; then
25613     test -f Makefile && make "$ltmain"
25614   fi
25615 fi
25616
25617
25618 ac_ext=c
25619 ac_cpp='$CPP $CPPFLAGS'
25620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25623
25624 CC="$lt_save_CC"
25625
25626         else
25627           tagname=""
25628         fi
25629         ;;
25630
25631       RC)
25632
25633
25634
25635 # Source file extension for RC test sources.
25636 ac_ext=rc
25637
25638 # Object file extension for compiled RC test sources.
25639 objext=o
25640 objext_RC=$objext
25641
25642 # Code to be used in simple compile tests
25643 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25644
25645 # Code to be used in simple link tests
25646 lt_simple_link_test_code="$lt_simple_compile_test_code"
25647
25648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25649
25650 # If no C compiler was specified, use CC.
25651 LTCC=${LTCC-"$CC"}
25652
25653 # Allow CC to be a program name with arguments.
25654 compiler=$CC
25655
25656
25657 # Allow CC to be a program name with arguments.
25658 lt_save_CC="$CC"
25659 CC=${RC-"windres"}
25660 compiler=$CC
25661 compiler_RC=$CC
25662 lt_cv_prog_compiler_c_o_RC=yes
25663
25664 # The else clause should only fire when bootstrapping the
25665 # libtool distribution, otherwise you forgot to ship ltmain.sh
25666 # with your package, and you will get complaints that there are
25667 # no rules to generate ltmain.sh.
25668 if test -f "$ltmain"; then
25669   # See if we are running on zsh, and set the options which allow our commands through
25670   # without removal of \ escapes.
25671   if test -n "${ZSH_VERSION+set}" ; then
25672     setopt NO_GLOB_SUBST
25673   fi
25674   # Now quote all the things that may contain metacharacters while being
25675   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25676   # variables and quote the copies for generation of the libtool script.
25677   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25678     SED SHELL STRIP \
25679     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25680     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25681     deplibs_check_method reload_flag reload_cmds need_locks \
25682     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25683     lt_cv_sys_global_symbol_to_c_name_address \
25684     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25685     old_postinstall_cmds old_postuninstall_cmds \
25686     compiler_RC \
25687     CC_RC \
25688     LD_RC \
25689     lt_prog_compiler_wl_RC \
25690     lt_prog_compiler_pic_RC \
25691     lt_prog_compiler_static_RC \
25692     lt_prog_compiler_no_builtin_flag_RC \
25693     export_dynamic_flag_spec_RC \
25694     thread_safe_flag_spec_RC \
25695     whole_archive_flag_spec_RC \
25696     enable_shared_with_static_runtimes_RC \
25697     old_archive_cmds_RC \
25698     old_archive_from_new_cmds_RC \
25699     predep_objects_RC \
25700     postdep_objects_RC \
25701     predeps_RC \
25702     postdeps_RC \
25703     compiler_lib_search_path_RC \
25704     archive_cmds_RC \
25705     archive_expsym_cmds_RC \
25706     postinstall_cmds_RC \
25707     postuninstall_cmds_RC \
25708     old_archive_from_expsyms_cmds_RC \
25709     allow_undefined_flag_RC \
25710     no_undefined_flag_RC \
25711     export_symbols_cmds_RC \
25712     hardcode_libdir_flag_spec_RC \
25713     hardcode_libdir_flag_spec_ld_RC \
25714     hardcode_libdir_separator_RC \
25715     hardcode_automatic_RC \
25716     module_cmds_RC \
25717     module_expsym_cmds_RC \
25718     lt_cv_prog_compiler_c_o_RC \
25719     exclude_expsyms_RC \
25720     include_expsyms_RC; do
25721
25722     case $var in
25723     old_archive_cmds_RC | \
25724     old_archive_from_new_cmds_RC | \
25725     archive_cmds_RC | \
25726     archive_expsym_cmds_RC | \
25727     module_cmds_RC | \
25728     module_expsym_cmds_RC | \
25729     old_archive_from_expsyms_cmds_RC | \
25730     export_symbols_cmds_RC | \
25731     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25732     postinstall_cmds | postuninstall_cmds | \
25733     old_postinstall_cmds | old_postuninstall_cmds | \
25734     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25735       # Double-quote double-evaled strings.
25736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25737       ;;
25738     *)
25739       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25740       ;;
25741     esac
25742   done
25743
25744   case $lt_echo in
25745   *'\$0 --fallback-echo"')
25746     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25747     ;;
25748   esac
25749
25750 cfgfile="$ofile"
25751
25752   cat <<__EOF__ >> "$cfgfile"
25753 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25754
25755 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25756
25757 # Shell to use when invoking shell scripts.
25758 SHELL=$lt_SHELL
25759
25760 # Whether or not to build shared libraries.
25761 build_libtool_libs=$enable_shared
25762
25763 # Whether or not to build static libraries.
25764 build_old_libs=$enable_static
25765
25766 # Whether or not to add -lc for building shared libraries.
25767 build_libtool_need_lc=$archive_cmds_need_lc_RC
25768
25769 # Whether or not to disallow shared libs when runtime libs are static
25770 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25771
25772 # Whether or not to optimize for fast installation.
25773 fast_install=$enable_fast_install
25774
25775 # The host system.
25776 host_alias=$host_alias
25777 host=$host
25778
25779 # An echo program that does not interpret backslashes.
25780 echo=$lt_echo
25781
25782 # The archiver.
25783 AR=$lt_AR
25784 AR_FLAGS=$lt_AR_FLAGS
25785
25786 # A C compiler.
25787 LTCC=$lt_LTCC
25788
25789 # A language-specific compiler.
25790 CC=$lt_compiler_RC
25791
25792 # Is the compiler the GNU C compiler?
25793 with_gcc=$GCC_RC
25794
25795 # An ERE matcher.
25796 EGREP=$lt_EGREP
25797
25798 # The linker used to build libraries.
25799 LD=$lt_LD_RC
25800
25801 # Whether we need hard or soft links.
25802 LN_S=$lt_LN_S
25803
25804 # A BSD-compatible nm program.
25805 NM=$lt_NM
25806
25807 # A symbol stripping program
25808 STRIP=$lt_STRIP
25809
25810 # Used to examine libraries when file_magic_cmd begins "file"
25811 MAGIC_CMD=$MAGIC_CMD
25812
25813 # Used on cygwin: DLL creation program.
25814 DLLTOOL="$DLLTOOL"
25815
25816 # Used on cygwin: object dumper.
25817 OBJDUMP="$OBJDUMP"
25818
25819 # Used on cygwin: assembler.
25820 AS="$AS"
25821
25822 # The name of the directory that contains temporary libtool files.
25823 objdir=$objdir
25824
25825 # How to create reloadable object files.
25826 reload_flag=$lt_reload_flag
25827 reload_cmds=$lt_reload_cmds
25828
25829 # How to pass a linker flag through the compiler.
25830 wl=$lt_lt_prog_compiler_wl_RC
25831
25832 # Object file suffix (normally "o").
25833 objext="$ac_objext"
25834
25835 # Old archive suffix (normally "a").
25836 libext="$libext"
25837
25838 # Shared library suffix (normally ".so").
25839 shrext_cmds='$shrext_cmds'
25840
25841 # Executable file suffix (normally "").
25842 exeext="$exeext"
25843
25844 # Additional compiler flags for building library objects.
25845 pic_flag=$lt_lt_prog_compiler_pic_RC
25846 pic_mode=$pic_mode
25847
25848 # What is the maximum length of a command?
25849 max_cmd_len=$lt_cv_sys_max_cmd_len
25850
25851 # Does compiler simultaneously support -c and -o options?
25852 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25853
25854 # Must we lock files when doing compilation ?
25855 need_locks=$lt_need_locks
25856
25857 # Do we need the lib prefix for modules?
25858 need_lib_prefix=$need_lib_prefix
25859
25860 # Do we need a version for libraries?
25861 need_version=$need_version
25862
25863 # Whether dlopen is supported.
25864 dlopen_support=$enable_dlopen
25865
25866 # Whether dlopen of programs is supported.
25867 dlopen_self=$enable_dlopen_self
25868
25869 # Whether dlopen of statically linked programs is supported.
25870 dlopen_self_static=$enable_dlopen_self_static
25871
25872 # Compiler flag to prevent dynamic linking.
25873 link_static_flag=$lt_lt_prog_compiler_static_RC
25874
25875 # Compiler flag to turn off builtin functions.
25876 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25877
25878 # Compiler flag to allow reflexive dlopens.
25879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25880
25881 # Compiler flag to generate shared objects directly from archives.
25882 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25883
25884 # Compiler flag to generate thread-safe objects.
25885 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25886
25887 # Library versioning type.
25888 version_type=$version_type
25889
25890 # Format of library name prefix.
25891 libname_spec=$lt_libname_spec
25892
25893 # List of archive names.  First name is the real one, the rest are links.
25894 # The last name is the one that the linker finds with -lNAME.
25895 library_names_spec=$lt_library_names_spec
25896
25897 # The coded name of the library, if different from the real name.
25898 soname_spec=$lt_soname_spec
25899
25900 # Commands used to build and install an old-style archive.
25901 RANLIB=$lt_RANLIB
25902 old_archive_cmds=$lt_old_archive_cmds_RC
25903 old_postinstall_cmds=$lt_old_postinstall_cmds
25904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25905
25906 # Create an old-style archive from a shared archive.
25907 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25908
25909 # Create a temporary old-style archive to link instead of a shared archive.
25910 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25911
25912 # Commands used to build and install a shared archive.
25913 archive_cmds=$lt_archive_cmds_RC
25914 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25915 postinstall_cmds=$lt_postinstall_cmds
25916 postuninstall_cmds=$lt_postuninstall_cmds
25917
25918 # Commands used to build a loadable module (assumed same as above if empty)
25919 module_cmds=$lt_module_cmds_RC
25920 module_expsym_cmds=$lt_module_expsym_cmds_RC
25921
25922 # Commands to strip libraries.
25923 old_striplib=$lt_old_striplib
25924 striplib=$lt_striplib
25925
25926 # Dependencies to place before the objects being linked to create a
25927 # shared library.
25928 predep_objects=$lt_predep_objects_RC
25929
25930 # Dependencies to place after the objects being linked to create a
25931 # shared library.
25932 postdep_objects=$lt_postdep_objects_RC
25933
25934 # Dependencies to place before the objects being linked to create a
25935 # shared library.
25936 predeps=$lt_predeps_RC
25937
25938 # Dependencies to place after the objects being linked to create a
25939 # shared library.
25940 postdeps=$lt_postdeps_RC
25941
25942 # The library search path used internally by the compiler when linking
25943 # a shared library.
25944 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25945
25946 # Method to check whether dependent libraries are shared objects.
25947 deplibs_check_method=$lt_deplibs_check_method
25948
25949 # Command to use when deplibs_check_method == file_magic.
25950 file_magic_cmd=$lt_file_magic_cmd
25951
25952 # Flag that allows shared libraries with undefined symbols to be built.
25953 allow_undefined_flag=$lt_allow_undefined_flag_RC
25954
25955 # Flag that forces no undefined symbols.
25956 no_undefined_flag=$lt_no_undefined_flag_RC
25957
25958 # Commands used to finish a libtool library installation in a directory.
25959 finish_cmds=$lt_finish_cmds
25960
25961 # Same as above, but a single script fragment to be evaled but not shown.
25962 finish_eval=$lt_finish_eval
25963
25964 # Take the output of nm and produce a listing of raw symbols and C names.
25965 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25966
25967 # Transform the output of nm in a proper C declaration
25968 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25969
25970 # Transform the output of nm in a C name address pair
25971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25972
25973 # This is the shared library runtime path variable.
25974 runpath_var=$runpath_var
25975
25976 # This is the shared library path variable.
25977 shlibpath_var=$shlibpath_var
25978
25979 # Is shlibpath searched before the hard-coded library search path?
25980 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25981
25982 # How to hardcode a shared library path into an executable.
25983 hardcode_action=$hardcode_action_RC
25984
25985 # Whether we should hardcode library paths into libraries.
25986 hardcode_into_libs=$hardcode_into_libs
25987
25988 # Flag to hardcode \$libdir into a binary during linking.
25989 # This must work even if \$libdir does not exist.
25990 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25991
25992 # If ld is used when linking, flag to hardcode \$libdir into
25993 # a binary during linking. This must work even if \$libdir does
25994 # not exist.
25995 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25996
25997 # Whether we need a single -rpath flag with a separated argument.
25998 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25999
26000 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26001 # resulting binary.
26002 hardcode_direct=$hardcode_direct_RC
26003
26004 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26005 # resulting binary.
26006 hardcode_minus_L=$hardcode_minus_L_RC
26007
26008 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26009 # the resulting binary.
26010 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26011
26012 # Set to yes if building a shared library automatically hardcodes DIR into the library
26013 # and all subsequent libraries and executables linked against it.
26014 hardcode_automatic=$hardcode_automatic_RC
26015
26016 # Variables whose values should be saved in libtool wrapper scripts and
26017 # restored at relink time.
26018 variables_saved_for_relink="$variables_saved_for_relink"
26019
26020 # Whether libtool must link a program against all its dependency libraries.
26021 link_all_deplibs=$link_all_deplibs_RC
26022
26023 # Compile-time system search path for libraries
26024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26025
26026 # Run-time system search path for libraries
26027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26028
26029 # Fix the shell variable \$srcfile for the compiler.
26030 fix_srcfile_path="$fix_srcfile_path_RC"
26031
26032 # Set to yes if exported symbols are required.
26033 always_export_symbols=$always_export_symbols_RC
26034
26035 # The commands to list exported symbols.
26036 export_symbols_cmds=$lt_export_symbols_cmds_RC
26037
26038 # The commands to extract the exported symbol list from a shared archive.
26039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26040
26041 # Symbols that should not be listed in the preloaded symbols.
26042 exclude_expsyms=$lt_exclude_expsyms_RC
26043
26044 # Symbols that must always be exported.
26045 include_expsyms=$lt_include_expsyms_RC
26046
26047 # ### END LIBTOOL TAG CONFIG: $tagname
26048
26049 __EOF__
26050
26051
26052 else
26053   # If there is no Makefile yet, we rely on a make rule to execute
26054   # `config.status --recheck' to rerun these tests and create the
26055   # libtool script then.
26056   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26057   if test -f "$ltmain_in"; then
26058     test -f Makefile && make "$ltmain"
26059   fi
26060 fi
26061
26062
26063 ac_ext=c
26064 ac_cpp='$CPP $CPPFLAGS'
26065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26068
26069 CC="$lt_save_CC"
26070
26071         ;;
26072
26073       *)
26074         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26075 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26076    { (exit 1); exit 1; }; }
26077         ;;
26078       esac
26079
26080       # Append the new tag name to the list of available tags.
26081       if test -n "$tagname" ; then
26082       available_tags="$available_tags $tagname"
26083     fi
26084     fi
26085   done
26086   IFS="$lt_save_ifs"
26087
26088   # Now substitute the updated list of available tags.
26089   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26090     mv "${ofile}T" "$ofile"
26091     chmod +x "$ofile"
26092   else
26093     rm -f "${ofile}T"
26094     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26095 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26096    { (exit 1); exit 1; }; }
26097   fi
26098 fi
26099
26100
26101
26102 # This can be used to rebuild libtool when needed
26103 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26104
26105 # Always use our own libtool.
26106 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26107
26108 # Prevent multiple expansion
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132         echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26133 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6
26134
26135 # Check whether --with-vrootdir or --without-vrootdir was given.
26136 if test "${with_vrootdir+set}" = set; then
26137   withval="$with_vrootdir"
26138   case "$withval" in
26139                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26140 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26141    { (exit 1); exit 1; }; };;
26142                         *)      ensc_uv_path_vrootdir=$withval;;
26143                      esac
26144 else
26145   ensc_uv_path_vrootdir=/vservers
26146 fi;
26147         echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26148 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6
26149
26150         if test x"vserverdir" != x; then
26151                 vserverdir=$ensc_uv_path_vrootdir
26152
26153         fi
26154
26155
26156         for ac_prog in svn2cl
26157 do
26158   # Extract the first word of "$ac_prog", so it can be a program name with args.
26159 set dummy $ac_prog; ac_word=$2
26160 echo "$as_me:$LINENO: checking for $ac_word" >&5
26161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26162 if test "${ac_cv_prog_SVN2CL+set}" = set; then
26163   echo $ECHO_N "(cached) $ECHO_C" >&6
26164 else
26165   if test -n "$SVN2CL"; then
26166   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
26167 else
26168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26169 for as_dir in $PATH
26170 do
26171   IFS=$as_save_IFS
26172   test -z "$as_dir" && as_dir=.
26173   for ac_exec_ext in '' $ac_executable_extensions; do
26174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26175     ac_cv_prog_SVN2CL="$ac_prog"
26176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26177     break 2
26178   fi
26179 done
26180 done
26181
26182 fi
26183 fi
26184 SVN2CL=$ac_cv_prog_SVN2CL
26185 if test -n "$SVN2CL"; then
26186   echo "$as_me:$LINENO: result: $SVN2CL" >&5
26187 echo "${ECHO_T}$SVN2CL" >&6
26188 else
26189   echo "$as_me:$LINENO: result: no" >&5
26190 echo "${ECHO_T}no" >&6
26191 fi
26192
26193   test -n "$SVN2CL" && break
26194 done
26195
26196
26197
26198 if test x"$SVN2CL" != x; then
26199   HAVE_SVN2CL_TRUE=
26200   HAVE_SVN2CL_FALSE='#'
26201 else
26202   HAVE_SVN2CL_TRUE='#'
26203   HAVE_SVN2CL_FALSE=
26204 fi
26205
26206
26207
26208
26209 echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26210 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6
26211 # Check whether --enable-internal-headers or --disable-internal-headers was given.
26212 if test "${enable_internal_headers+set}" = set; then
26213   enableval="$enable_internal_headers"
26214   case "$enableval" in
26215                   (yes|no) ;;
26216                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26217 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26218    { (exit 1); exit 1; }; };;
26219                esac
26220 else
26221   enable_internal_headers=yes
26222 fi;
26223
26224
26225
26226 if test x"$enable_internal_headers" = xyes; then
26227   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26228   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26229 else
26230   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26231   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26232 fi
26233
26234 echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26235 echo "${ECHO_T}$enable_internal_headers" >&6
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258 echo "$as_me:$LINENO: checking for supported APIs" >&5
26259 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6
26260 # Check whether --enable-apis or --disable-apis was given.
26261 if test "${enable_apis+set}" = set; then
26262   enableval="$enable_apis"
26263
26264 else
26265   enable_apis=v13,net,v21
26266 fi;
26267
26268 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21'
26269 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21'
26270 enable_api_oldproc=
26271 enable_api_olduts=
26272 old_IFS=$IFS
26273 IFS=,;
26274
26275 for i in $enable_apis; do
26276         case "$i" in
26277                 (compat)        cat >>confdefs.h <<\_ACEOF
26278 #define VC_ENABLE_API_COMPAT 1
26279 _ACEOF
26280
26281                                 enable_api_oldproc=${enable_api_oldproc:-1}
26282                                 enable_api_olduts=${enable_api_olduts:-1}
26283                                 ;;
26284                 (legacy)        cat >>confdefs.h <<\_ACEOF
26285 #define VC_ENABLE_API_LEGACY 1
26286 _ACEOF
26287
26288                                 enable_api_oldproc=${enable_api_oldproc:-1}
26289                                 enable_api_olduts=${enable_api_olduts:-1}
26290                                 ;;
26291                 (v11)           cat >>confdefs.h <<\_ACEOF
26292 #define VC_ENABLE_API_V11 1
26293 _ACEOF
26294
26295                                 enable_api_oldproc=${enable_api_oldproc:-1}
26296                                 enable_api_olduts=${enable_api_olduts:-1}
26297                                 ;;
26298                 (fscompat)      cat >>confdefs.h <<\_ACEOF
26299 #define VC_ENABLE_API_FSCOMPAT 1
26300 _ACEOF
26301 ;;
26302                 (v13obs)        cat >>confdefs.h <<\_ACEOF
26303 #define VC_ENABLE_API_V13OBS 1
26304 _ACEOF
26305
26306                                 cat >>confdefs.h <<\_ACEOF
26307 #define VC_ENABLE_API_V13 1
26308 _ACEOF
26309 ;;
26310                 (v13)           cat >>confdefs.h <<\_ACEOF
26311 #define VC_ENABLE_API_V13 1
26312 _ACEOF
26313 ;;
26314                 (net)           cat >>confdefs.h <<\_ACEOF
26315 #define VC_ENABLE_API_NET 1
26316 _ACEOF
26317 ;;
26318                 (v21)           cat >>confdefs.h <<\_ACEOF
26319 #define VC_ENABLE_API_V21 1
26320 _ACEOF
26321 ;;
26322                 (oldproc)       enable_api_oldproc=2;;
26323                 (olduts)        enable_api_olduts=2;;
26324                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26325 echo "$as_me: error: '$i' is not a supported API" >&2;}
26326    { (exit 1); exit 1; }; };;
26327         esac
26328 done
26329 IFS=$old_IFS
26330 if test x"$enable_api_oldproc" != x; then
26331         cat >>confdefs.h <<\_ACEOF
26332 #define VC_ENABLE_API_OLDPROC 1
26333 _ACEOF
26334
26335         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
26336 fi
26337 if test x"$enable_api_olduts" != x; then
26338         cat >>confdefs.h <<\_ACEOF
26339 #define VC_ENABLE_API_OLDUTS 1
26340 _ACEOF
26341
26342         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
26343 fi
26344 echo "$as_me:$LINENO: result: $enable_apis" >&5
26345 echo "${ECHO_T}$enable_apis" >&6
26346
26347
26348
26349
26350
26351
26352         echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
26353 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6
26354 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 else
26357
26358                 ac_ext=c
26359 ac_cpp='$CPP $CPPFLAGS'
26360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26363
26364                 cat >conftest.$ac_ext <<_ACEOF
26365
26366 #ifdef ENSC_SYSCALL_FALLBACK
26367 #  include ENSC_SYSCALL_FALLBACK
26368 #else
26369 #  include <asm/unistd.h>
26370 #endif
26371 #ifdef __NR_vserver
26372 ensc_syscall_tmp_nr=__NR_vserver;
26373 ensc_syscall_tmp_src=ENSC_MARK
26374 #endif
26375
26376 _ACEOF
26377                 ensc_syscall_tmp_nr=
26378                 ensc_syscall_tmp_src=
26379                 test x"$ensc_syscall_tmp_nr" != x || \
26380                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
26381                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
26382                         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=.*)$')
26383                 test "$ensc_syscall_tmp_nr" || {
26384                         ensc_syscall_tmp_nr=273
26385                         ensc_syscall_tmp_src=default
26386                 }
26387
26388                 if test x"$ensc_syscall_tmp_nr" = x; then
26389                         { { 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
26390 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;}
26391    { (exit 1); exit 1; }; }
26392                 fi
26393                 ac_ext=c
26394 ac_cpp='$CPP $CPPFLAGS'
26395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26398
26399
26400                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
26401
26402 fi
26403 echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
26404 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6
26405
26406         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
26407         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
26408
26409         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
26410
26411 cat >>confdefs.h <<_ACEOF
26412 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
26413 _ACEOF
26414
26415         fi
26416
26417
26418
26419
26420         echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
26421 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6
26422
26423 # Check whether --with-syscall or --without-syscall was given.
26424 if test "${with_syscall+set}" = set; then
26425   withval="$with_syscall"
26426
26427 else
26428   with_syscall=auto
26429 fi;
26430         echo "$as_me:$LINENO: result: $with_syscall" >&5
26431 echo "${ECHO_T}$with_syscall" >&6
26432
26433         case x"$with_syscall" in
26434             (xauto)
26435                 echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
26436 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6
26437 if test "${ensc_cv_test_syscall+set}" = set; then
26438   echo $ECHO_N "(cached) $ECHO_C" >&6
26439 else
26440
26441                                 ac_ext=c
26442 ac_cpp='$CPP $CPPFLAGS'
26443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26446
26447                                 cat >conftest.$ac_ext <<_ACEOF
26448 /* confdefs.h.  */
26449 _ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h.  */
26453
26454 #include "$srcdir/lib/syscall-wrap.h"
26455 #include <errno.h>
26456
26457 #define __NR_foo0       300
26458 #define __NR_foo1       301
26459 #define __NR_foo2       302
26460 #define __NR_foo3       303
26461 #define __NR_foo4       304
26462 #define __NR_foo5       305
26463 inline static _syscall0(int, foo0)
26464 inline static _syscall1(int, foo1, int, a)
26465 inline static _syscall2(int, foo2, int, a, int, b)
26466 inline static _syscall3(int, foo3, int, a, int, b, int, c)
26467 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
26468 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
26469
26470 int main() {
26471   return foo0() || \
26472          foo1(1) || \
26473          foo2(1,2) || \
26474          foo3(1,2,3) || \
26475          foo4(1,2,3,4) || \
26476          foo5(1,2,3,4,5);
26477 }
26478
26479 _ACEOF
26480 rm -f conftest.$ac_objext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26482   (eval $ac_compile) 2>conftest.er1
26483   ac_status=$?
26484   grep -v '^ *+' conftest.er1 >conftest.err
26485   rm -f conftest.er1
26486   cat conftest.err >&5
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); } &&
26489          { ac_try='test -z "$ac_c_werror_flag"
26490                          || test ! -s conftest.err'
26491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492   (eval $ac_try) 2>&5
26493   ac_status=$?
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); }; } &&
26496          { ac_try='test -s conftest.$ac_objext'
26497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498   (eval $ac_try) 2>&5
26499   ac_status=$?
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); }; }; then
26502   ensc_cv_test_syscall=fast
26503 else
26504   echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507 ensc_cv_test_syscall=traditional
26508 fi
26509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26510
26511                                 ac_ext=c
26512 ac_cpp='$CPP $CPPFLAGS'
26513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26516
26517
26518 fi
26519 echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
26520 echo "${ECHO_T}$ensc_cv_test_syscall" >&6
26521                 with_syscall=$ensc_cv_test_syscall
26522                 ;;
26523             (xfast|xtraditional)
26524                 ;;
26525             *)
26526                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
26527 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
26528    { (exit 1); exit 1; }; }
26529                 ;;
26530         esac
26531
26532         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
26533             with_syscall='alternative'
26534         fi
26535
26536         if test x"$with_syscall" = xtraditional; then
26537
26538 cat >>confdefs.h <<\_ACEOF
26539 #define ENSC_SYSCALL_TRADITIONAL 1
26540 _ACEOF
26541
26542         fi
26543
26544
26545
26546
26547
26548
26549     ac_ext=cc
26550 ac_cpp='$CXXCPP $CPPFLAGS'
26551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26554
26555     echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26556 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6
26557 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26558   echo $ECHO_N "(cached) $ECHO_C" >&6
26559 else
26560
26561         cat >conftest.$ac_ext <<_ACEOF
26562 /* confdefs.h.  */
26563 _ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h.  */
26567 #include <ext2fs/ext2_fs.h>
26568                                           int main() { return 0; }
26569 _ACEOF
26570 rm -f conftest.$ac_objext
26571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26572   (eval $ac_compile) 2>conftest.er1
26573   ac_status=$?
26574   grep -v '^ *+' conftest.er1 >conftest.err
26575   rm -f conftest.er1
26576   cat conftest.err >&5
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); } &&
26579          { ac_try='test -z "$ac_cxx_werror_flag"
26580                          || test ! -s conftest.err'
26581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582   (eval $ac_try) 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); }; } &&
26586          { ac_try='test -s conftest.$ac_objext'
26587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588   (eval $ac_try) 2>&5
26589   ac_status=$?
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); }; }; then
26592   ensc_cv_test_ext2fs_header=e2fsprogs
26593 else
26594   echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26596
26597
26598         cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h.  */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h.  */
26604 #include <linux/ext2_fs.h>
26605                                           int main() { return 0; }
26606 _ACEOF
26607 rm -f conftest.$ac_objext
26608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26609   (eval $ac_compile) 2>conftest.er1
26610   ac_status=$?
26611   grep -v '^ *+' conftest.er1 >conftest.err
26612   rm -f conftest.er1
26613   cat conftest.err >&5
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); } &&
26616          { ac_try='test -z "$ac_cxx_werror_flag"
26617                          || test ! -s conftest.err'
26618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26619   (eval $ac_try) 2>&5
26620   ac_status=$?
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); }; } &&
26623          { ac_try='test -s conftest.$ac_objext'
26624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26625   (eval $ac_try) 2>&5
26626   ac_status=$?
26627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628   (exit $ac_status); }; }; then
26629   ensc_cv_test_ext2fs_header=kernel
26630 else
26631   echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26633
26634
26635         ensc_cv_test_ext2fs_header=none
26636 fi
26637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26638 fi
26639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26640 fi
26641 echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26642 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6
26643
26644     case x"$ensc_cv_test_ext2fs_header" in
26645         (xe2fsprogs)
26646                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26647   echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26648 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26649 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26650   echo $ECHO_N "(cached) $ECHO_C" >&6
26651 fi
26652 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26653 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26654 else
26655   # Is the header compilable?
26656 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26657 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6
26658 cat >conftest.$ac_ext <<_ACEOF
26659 /* confdefs.h.  */
26660 _ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h.  */
26664 $ac_includes_default
26665 #include <ext2fs/ext2_fs.h>
26666 _ACEOF
26667 rm -f conftest.$ac_objext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669   (eval $ac_compile) 2>conftest.er1
26670   ac_status=$?
26671   grep -v '^ *+' conftest.er1 >conftest.err
26672   rm -f conftest.er1
26673   cat conftest.err >&5
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); } &&
26676          { ac_try='test -z "$ac_cxx_werror_flag"
26677                          || test ! -s conftest.err'
26678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679   (eval $ac_try) 2>&5
26680   ac_status=$?
26681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682   (exit $ac_status); }; } &&
26683          { ac_try='test -s conftest.$ac_objext'
26684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685   (eval $ac_try) 2>&5
26686   ac_status=$?
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); }; }; then
26689   ac_header_compiler=yes
26690 else
26691   echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26693
26694 ac_header_compiler=no
26695 fi
26696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26698 echo "${ECHO_T}$ac_header_compiler" >&6
26699
26700 # Is the header present?
26701 echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26702 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6
26703 cat >conftest.$ac_ext <<_ACEOF
26704 /* confdefs.h.  */
26705 _ACEOF
26706 cat confdefs.h >>conftest.$ac_ext
26707 cat >>conftest.$ac_ext <<_ACEOF
26708 /* end confdefs.h.  */
26709 #include <ext2fs/ext2_fs.h>
26710 _ACEOF
26711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26713   ac_status=$?
26714   grep -v '^ *+' conftest.er1 >conftest.err
26715   rm -f conftest.er1
26716   cat conftest.err >&5
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); } >/dev/null; then
26719   if test -s conftest.err; then
26720     ac_cpp_err=$ac_cxx_preproc_warn_flag
26721     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26722   else
26723     ac_cpp_err=
26724   fi
26725 else
26726   ac_cpp_err=yes
26727 fi
26728 if test -z "$ac_cpp_err"; then
26729   ac_header_preproc=yes
26730 else
26731   echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734   ac_header_preproc=no
26735 fi
26736 rm -f conftest.err conftest.$ac_ext
26737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26738 echo "${ECHO_T}$ac_header_preproc" >&6
26739
26740 # So?  What about this header?
26741 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26742   yes:no: )
26743     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26744 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26745     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26746 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26747     ac_header_preproc=yes
26748     ;;
26749   no:yes:* )
26750     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26751 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
26752     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
26753 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26754     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
26755 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
26756     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26757 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26758     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
26759 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26760     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
26761 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26762     (
26763       cat <<\_ASBOX
26764 ## --------------------------------------------- ##
26765 ## Report this to vserver@list.linux-vserver.org ##
26766 ## --------------------------------------------- ##
26767 _ASBOX
26768     ) |
26769       sed "s/^/$as_me: WARNING:     /" >&2
26770     ;;
26771 esac
26772 echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26773 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6
26774 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26775   echo $ECHO_N "(cached) $ECHO_C" >&6
26776 else
26777   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
26778 fi
26779 echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26780 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6
26781
26782 fi
26783 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
26784
26785 cat >>confdefs.h <<\_ACEOF
26786 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
26787 _ACEOF
26788
26789 else
26790   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26791 See \`config.log' for more details." >&5
26792 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
26793 See \`config.log' for more details." >&2;}
26794    { (exit 1); exit 1; }; }
26795 fi
26796
26797
26798                 ;;
26799         (xkernel)
26800                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26801   echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26802 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26803 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26804   echo $ECHO_N "(cached) $ECHO_C" >&6
26805 fi
26806 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26807 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26808 else
26809   # Is the header compilable?
26810 echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
26811 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 $ac_includes_default
26819 #include <linux/ext2_fs.h>
26820 _ACEOF
26821 rm -f conftest.$ac_objext
26822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26823   (eval $ac_compile) 2>conftest.er1
26824   ac_status=$?
26825   grep -v '^ *+' conftest.er1 >conftest.err
26826   rm -f conftest.er1
26827   cat conftest.err >&5
26828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829   (exit $ac_status); } &&
26830          { ac_try='test -z "$ac_cxx_werror_flag"
26831                          || test ! -s conftest.err'
26832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26833   (eval $ac_try) 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; } &&
26837          { ac_try='test -s conftest.$ac_objext'
26838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839   (eval $ac_try) 2>&5
26840   ac_status=$?
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); }; }; then
26843   ac_header_compiler=yes
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848 ac_header_compiler=no
26849 fi
26850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26852 echo "${ECHO_T}$ac_header_compiler" >&6
26853
26854 # Is the header present?
26855 echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
26856 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6
26857 cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 #include <linux/ext2_fs.h>
26864 _ACEOF
26865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26867   ac_status=$?
26868   grep -v '^ *+' conftest.er1 >conftest.err
26869   rm -f conftest.er1
26870   cat conftest.err >&5
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } >/dev/null; then
26873   if test -s conftest.err; then
26874     ac_cpp_err=$ac_cxx_preproc_warn_flag
26875     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26876   else
26877     ac_cpp_err=
26878   fi
26879 else
26880   ac_cpp_err=yes
26881 fi
26882 if test -z "$ac_cpp_err"; then
26883   ac_header_preproc=yes
26884 else
26885   echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26887
26888   ac_header_preproc=no
26889 fi
26890 rm -f conftest.err conftest.$ac_ext
26891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26892 echo "${ECHO_T}$ac_header_preproc" >&6
26893
26894 # So?  What about this header?
26895 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26896   yes:no: )
26897     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26898 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26899     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
26900 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
26901     ac_header_preproc=yes
26902     ;;
26903   no:yes:* )
26904     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
26905 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
26906     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
26907 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
26908     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
26909 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
26910     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
26911 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26912     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
26913 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
26914     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
26915 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
26916     (
26917       cat <<\_ASBOX
26918 ## --------------------------------------------- ##
26919 ## Report this to vserver@list.linux-vserver.org ##
26920 ## --------------------------------------------- ##
26921 _ASBOX
26922     ) |
26923       sed "s/^/$as_me: WARNING:     /" >&2
26924     ;;
26925 esac
26926 echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
26927 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6
26928 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
26929   echo $ECHO_N "(cached) $ECHO_C" >&6
26930 else
26931   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
26932 fi
26933 echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
26934 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6
26935
26936 fi
26937 if test $ac_cv_header_linux_ext2_fs_h = yes; then
26938
26939 cat >>confdefs.h <<\_ACEOF
26940 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
26941 _ACEOF
26942
26943 else
26944   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
26945 See \`config.log' for more details." >&5
26946 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
26947 See \`config.log' for more details." >&2;}
26948    { (exit 1); exit 1; }; }
26949 fi
26950
26951
26952                 ;;
26953         (*)
26954                 { { echo "$as_me:$LINENO: error:
26955 ext2fs headers were not found, or they are not usable. This can have
26956 the following reasons:
26957
26958 * you have neither the e2fsprogs nor the kernel headers installed
26959
26960 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26961   and you do not have e2fsprogs headers installed; please try to install
26962   - e2fsprogs-devel (for Red Hat), or
26963   - lib*ext2fs2-devel (for Mandriva), or
26964   - e2fslibs-dev (for Debian)
26965   in this case.
26966
26967 * kernel headers are broken and your e2fsprogs headers are too old;
26968   until version 1.27 (inclusive), they are using reserved C++ keywords
26969
26970 * kernel headers are broken and your e2fsprogs headers are too new;
26971   recent (January 2004) BK snapshots of e2fsprogs are unusable for
26972   C++, for details and a solution see
26973   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
26974
26975
26976 In the latter two cases you have the following options:
26977 * fix the headers manually, or
26978 * install a stable version of e2fsprogs (e.g. 1.34), or
26979 * use good kernel headers (from linux 2.4.x)
26980
26981 See \`config.log' for more details." >&5
26982 echo "$as_me: error:
26983 ext2fs headers were not found, or they are not usable. This can have
26984 the following reasons:
26985
26986 * you have neither the e2fsprogs nor the kernel headers installed
26987
26988 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
26989   and you do not have e2fsprogs headers installed; please try to install
26990   - e2fsprogs-devel (for Red Hat), or
26991   - lib*ext2fs2-devel (for Mandriva), or
26992   - e2fslibs-dev (for Debian)
26993   in this case.
26994
26995 * kernel headers are broken and your e2fsprogs headers are too old;
26996   until version 1.27 (inclusive), they are using reserved C++ keywords
26997
26998 * kernel headers are broken and your e2fsprogs headers are too new;
26999   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27000   C++, for details and a solution see
27001   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27002
27003
27004 In the latter two cases you have the following options:
27005 * fix the headers manually, or
27006 * install a stable version of e2fsprogs (e.g. 1.34), or
27007 * use good kernel headers (from linux 2.4.x)
27008
27009 See \`config.log' for more details." >&2;}
27010    { (exit 1); exit 1; }; }
27011                 ;;
27012     esac
27013     ac_ext=c
27014 ac_cpp='$CPP $CPPFLAGS'
27015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27018
27019
27020
27021 for ac_func in vserver
27022 do
27023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27024 echo "$as_me:$LINENO: checking for $ac_func" >&5
27025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27026 if eval "test \"\${$as_ac_var+set}\" = set"; then
27027   echo $ECHO_N "(cached) $ECHO_C" >&6
27028 else
27029   cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27037 #define $ac_func innocuous_$ac_func
27038
27039 /* System header to define __stub macros and hopefully few prototypes,
27040     which can conflict with char $ac_func (); below.
27041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27042     <limits.h> exists even on freestanding compilers.  */
27043
27044 #ifdef __STDC__
27045 # include <limits.h>
27046 #else
27047 # include <assert.h>
27048 #endif
27049
27050 #undef $ac_func
27051
27052 /* Override any gcc2 internal prototype to avoid an error.  */
27053 #ifdef __cplusplus
27054 extern "C"
27055 {
27056 #endif
27057 /* We use char because int might match the return type of a gcc2
27058    builtin and then its argument prototype would still apply.  */
27059 char $ac_func ();
27060 /* The GNU C library defines this for functions which it implements
27061     to always fail with ENOSYS.  Some functions are actually named
27062     something starting with __ and the normal name is an alias.  */
27063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27064 choke me
27065 #else
27066 char (*f) () = $ac_func;
27067 #endif
27068 #ifdef __cplusplus
27069 }
27070 #endif
27071
27072 int
27073 main ()
27074 {
27075 return f != $ac_func;
27076   ;
27077   return 0;
27078 }
27079 _ACEOF
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27082   (eval $ac_link) 2>conftest.er1
27083   ac_status=$?
27084   grep -v '^ *+' conftest.er1 >conftest.err
27085   rm -f conftest.er1
27086   cat conftest.err >&5
27087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088   (exit $ac_status); } &&
27089          { ac_try='test -z "$ac_c_werror_flag"
27090                          || test ! -s conftest.err'
27091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092   (eval $ac_try) 2>&5
27093   ac_status=$?
27094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095   (exit $ac_status); }; } &&
27096          { ac_try='test -s conftest$ac_exeext'
27097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27098   (eval $ac_try) 2>&5
27099   ac_status=$?
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); }; }; then
27102   eval "$as_ac_var=yes"
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107 eval "$as_ac_var=no"
27108 fi
27109 rm -f conftest.err conftest.$ac_objext \
27110       conftest$ac_exeext conftest.$ac_ext
27111 fi
27112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27114 if test `eval echo '${'$as_ac_var'}'` = yes; then
27115   cat >>confdefs.h <<_ACEOF
27116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27117 _ACEOF
27118
27119 fi
27120 done
27121
27122 echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27123 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6
27124 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27125   echo $ECHO_N "(cached) $ECHO_C" >&6
27126 else
27127   cat >conftest.$ac_ext <<_ACEOF
27128 /* confdefs.h.  */
27129 _ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h.  */
27133 #include <linux/fs.h>
27134
27135 int
27136 main ()
27137 {
27138 #ifndef MS_MOVE
27139   char *p = (char *) MS_MOVE;
27140 #endif
27141
27142   ;
27143   return 0;
27144 }
27145 _ACEOF
27146 rm -f conftest.$ac_objext
27147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27148   (eval $ac_compile) 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } &&
27155          { ac_try='test -z "$ac_c_werror_flag"
27156                          || test ! -s conftest.err'
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); }; } &&
27162          { ac_try='test -s conftest.$ac_objext'
27163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164   (eval $ac_try) 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); }; }; then
27168   ac_cv_have_decl_MS_MOVE=yes
27169 else
27170   echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27172
27173 ac_cv_have_decl_MS_MOVE=no
27174 fi
27175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27176 fi
27177 echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27178 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6
27179 if test $ac_cv_have_decl_MS_MOVE = yes; then
27180
27181 cat >>confdefs.h <<_ACEOF
27182 #define HAVE_DECL_MS_MOVE 1
27183 _ACEOF
27184
27185
27186 else
27187   cat >>confdefs.h <<_ACEOF
27188 #define HAVE_DECL_MS_MOVE 0
27189 _ACEOF
27190
27191
27192 fi
27193
27194
27195 echo "$as_me:$LINENO: checking for xid_t" >&5
27196 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6
27197 if test "${ac_cv_type_xid_t+set}" = set; then
27198   echo $ECHO_N "(cached) $ECHO_C" >&6
27199 else
27200   cat >conftest.$ac_ext <<_ACEOF
27201 /* confdefs.h.  */
27202 _ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h.  */
27206 #include <sys/types.h>
27207
27208 int
27209 main ()
27210 {
27211 if ((xid_t *) 0)
27212   return 0;
27213 if (sizeof (xid_t))
27214   return 0;
27215   ;
27216   return 0;
27217 }
27218 _ACEOF
27219 rm -f conftest.$ac_objext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27221   (eval $ac_compile) 2>conftest.er1
27222   ac_status=$?
27223   grep -v '^ *+' conftest.er1 >conftest.err
27224   rm -f conftest.er1
27225   cat conftest.err >&5
27226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227   (exit $ac_status); } &&
27228          { ac_try='test -z "$ac_c_werror_flag"
27229                          || test ! -s conftest.err'
27230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231   (eval $ac_try) 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; } &&
27235          { ac_try='test -s conftest.$ac_objext'
27236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); }; }; then
27241   ac_cv_type_xid_t=yes
27242 else
27243   echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27245
27246 ac_cv_type_xid_t=no
27247 fi
27248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27249 fi
27250 echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27251 echo "${ECHO_T}$ac_cv_type_xid_t" >&6
27252 if test $ac_cv_type_xid_t = yes; then
27253
27254 cat >>confdefs.h <<_ACEOF
27255 #define HAVE_XID_T 1
27256 _ACEOF
27257
27258
27259 fi
27260
27261 echo "$as_me:$LINENO: checking for nid_t" >&5
27262 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6
27263 if test "${ac_cv_type_nid_t+set}" = set; then
27264   echo $ECHO_N "(cached) $ECHO_C" >&6
27265 else
27266   cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h.  */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h.  */
27272 #include <sys/types.h>
27273
27274 int
27275 main ()
27276 {
27277 if ((nid_t *) 0)
27278   return 0;
27279 if (sizeof (nid_t))
27280   return 0;
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287   (eval $ac_compile) 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag"
27295                          || test ! -s conftest.err'
27296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297   (eval $ac_try) 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; } &&
27301          { ac_try='test -s conftest.$ac_objext'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; }; then
27307   ac_cv_type_nid_t=yes
27308 else
27309   echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27311
27312 ac_cv_type_nid_t=no
27313 fi
27314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27315 fi
27316 echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27317 echo "${ECHO_T}$ac_cv_type_nid_t" >&6
27318 if test $ac_cv_type_nid_t = yes; then
27319
27320 cat >>confdefs.h <<_ACEOF
27321 #define HAVE_NID_T 1
27322 _ACEOF
27323
27324
27325 fi
27326
27327
27328
27329 for ac_header in sys/capability.h
27330 do
27331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27333   echo "$as_me:$LINENO: checking for $ac_header" >&5
27334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27336   echo $ECHO_N "(cached) $ECHO_C" >&6
27337 fi
27338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27340 else
27341   # Is the header compilable?
27342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27344 cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350 $ac_includes_default
27351 #include <$ac_header>
27352 _ACEOF
27353 rm -f conftest.$ac_objext
27354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27355   (eval $ac_compile) 2>conftest.er1
27356   ac_status=$?
27357   grep -v '^ *+' conftest.er1 >conftest.err
27358   rm -f conftest.er1
27359   cat conftest.err >&5
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); } &&
27362          { ac_try='test -z "$ac_c_werror_flag"
27363                          || test ! -s conftest.err'
27364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365   (eval $ac_try) 2>&5
27366   ac_status=$?
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); }; } &&
27369          { ac_try='test -s conftest.$ac_objext'
27370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371   (eval $ac_try) 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); }; }; then
27375   ac_header_compiler=yes
27376 else
27377   echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380 ac_header_compiler=no
27381 fi
27382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27384 echo "${ECHO_T}$ac_header_compiler" >&6
27385
27386 # Is the header present?
27387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27389 cat >conftest.$ac_ext <<_ACEOF
27390 /* confdefs.h.  */
27391 _ACEOF
27392 cat confdefs.h >>conftest.$ac_ext
27393 cat >>conftest.$ac_ext <<_ACEOF
27394 /* end confdefs.h.  */
27395 #include <$ac_header>
27396 _ACEOF
27397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27399   ac_status=$?
27400   grep -v '^ *+' conftest.er1 >conftest.err
27401   rm -f conftest.er1
27402   cat conftest.err >&5
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); } >/dev/null; then
27405   if test -s conftest.err; then
27406     ac_cpp_err=$ac_c_preproc_warn_flag
27407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27408   else
27409     ac_cpp_err=
27410   fi
27411 else
27412   ac_cpp_err=yes
27413 fi
27414 if test -z "$ac_cpp_err"; then
27415   ac_header_preproc=yes
27416 else
27417   echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420   ac_header_preproc=no
27421 fi
27422 rm -f conftest.err conftest.$ac_ext
27423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27424 echo "${ECHO_T}$ac_header_preproc" >&6
27425
27426 # So?  What about this header?
27427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27428   yes:no: )
27429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27433     ac_header_preproc=yes
27434     ;;
27435   no:yes:* )
27436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27448     (
27449       cat <<\_ASBOX
27450 ## --------------------------------------------- ##
27451 ## Report this to vserver@list.linux-vserver.org ##
27452 ## --------------------------------------------- ##
27453 _ASBOX
27454     ) |
27455       sed "s/^/$as_me: WARNING:     /" >&2
27456     ;;
27457 esac
27458 echo "$as_me:$LINENO: checking for $ac_header" >&5
27459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27461   echo $ECHO_N "(cached) $ECHO_C" >&6
27462 else
27463   eval "$as_ac_Header=\$ac_header_preproc"
27464 fi
27465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27467
27468 fi
27469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27470   cat >>confdefs.h <<_ACEOF
27471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27472 _ACEOF
27473
27474 fi
27475
27476 done
27477
27478
27479 if test x"$ensc_have_dietlibc" = xno; then
27480         echo "$as_me:$LINENO: checking for openpty" >&5
27481 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
27482 if test "${ac_cv_func_openpty+set}" = set; then
27483   echo $ECHO_N "(cached) $ECHO_C" >&6
27484 else
27485   cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27493 #define openpty innocuous_openpty
27494
27495 /* System header to define __stub macros and hopefully few prototypes,
27496     which can conflict with char openpty (); below.
27497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27498     <limits.h> exists even on freestanding compilers.  */
27499
27500 #ifdef __STDC__
27501 # include <limits.h>
27502 #else
27503 # include <assert.h>
27504 #endif
27505
27506 #undef openpty
27507
27508 /* Override any gcc2 internal prototype to avoid an error.  */
27509 #ifdef __cplusplus
27510 extern "C"
27511 {
27512 #endif
27513 /* We use char because int might match the return type of a gcc2
27514    builtin and then its argument prototype would still apply.  */
27515 char openpty ();
27516 /* The GNU C library defines this for functions which it implements
27517     to always fail with ENOSYS.  Some functions are actually named
27518     something starting with __ and the normal name is an alias.  */
27519 #if defined (__stub_openpty) || defined (__stub___openpty)
27520 choke me
27521 #else
27522 char (*f) () = openpty;
27523 #endif
27524 #ifdef __cplusplus
27525 }
27526 #endif
27527
27528 int
27529 main ()
27530 {
27531 return f != openpty;
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 rm -f conftest.$ac_objext conftest$ac_exeext
27537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27538   (eval $ac_link) 2>conftest.er1
27539   ac_status=$?
27540   grep -v '^ *+' conftest.er1 >conftest.err
27541   rm -f conftest.er1
27542   cat conftest.err >&5
27543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544   (exit $ac_status); } &&
27545          { ac_try='test -z "$ac_c_werror_flag"
27546                          || test ! -s conftest.err'
27547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548   (eval $ac_try) 2>&5
27549   ac_status=$?
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); }; } &&
27552          { ac_try='test -s conftest$ac_exeext'
27553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554   (eval $ac_try) 2>&5
27555   ac_status=$?
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); }; }; then
27558   ac_cv_func_openpty=yes
27559 else
27560   echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27562
27563 ac_cv_func_openpty=no
27564 fi
27565 rm -f conftest.err conftest.$ac_objext \
27566       conftest$ac_exeext conftest.$ac_ext
27567 fi
27568 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
27569 echo "${ECHO_T}$ac_cv_func_openpty" >&6
27570 if test $ac_cv_func_openpty = yes; then
27571   :
27572 else
27573
27574 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27575 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
27576 if test "${ac_cv_lib_util_openpty+set}" = set; then
27577   echo $ECHO_N "(cached) $ECHO_C" >&6
27578 else
27579   ac_check_lib_save_LIBS=$LIBS
27580 LIBS="-lutil  $LIBS"
27581 cat >conftest.$ac_ext <<_ACEOF
27582 /* confdefs.h.  */
27583 _ACEOF
27584 cat confdefs.h >>conftest.$ac_ext
27585 cat >>conftest.$ac_ext <<_ACEOF
27586 /* end confdefs.h.  */
27587
27588 /* Override any gcc2 internal prototype to avoid an error.  */
27589 #ifdef __cplusplus
27590 extern "C"
27591 #endif
27592 /* We use char because int might match the return type of a gcc2
27593    builtin and then its argument prototype would still apply.  */
27594 char openpty ();
27595 int
27596 main ()
27597 {
27598 openpty ();
27599   ;
27600   return 0;
27601 }
27602 _ACEOF
27603 rm -f conftest.$ac_objext conftest$ac_exeext
27604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27605   (eval $ac_link) 2>conftest.er1
27606   ac_status=$?
27607   grep -v '^ *+' conftest.er1 >conftest.err
27608   rm -f conftest.er1
27609   cat conftest.err >&5
27610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611   (exit $ac_status); } &&
27612          { ac_try='test -z "$ac_c_werror_flag"
27613                          || test ! -s conftest.err'
27614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27615   (eval $ac_try) 2>&5
27616   ac_status=$?
27617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27618   (exit $ac_status); }; } &&
27619          { ac_try='test -s conftest$ac_exeext'
27620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621   (eval $ac_try) 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; }; then
27625   ac_cv_lib_util_openpty=yes
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630 ac_cv_lib_util_openpty=no
27631 fi
27632 rm -f conftest.err conftest.$ac_objext \
27633       conftest$ac_exeext conftest.$ac_ext
27634 LIBS=$ac_check_lib_save_LIBS
27635 fi
27636 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27637 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
27638 if test $ac_cv_lib_util_openpty = yes; then
27639   cat >>confdefs.h <<_ACEOF
27640 #define HAVE_LIBUTIL 1
27641 _ACEOF
27642
27643   LIBS="-lutil $LIBS"
27644
27645 else
27646   { { echo "$as_me:$LINENO: error:
27647 ****
27648 **** openpty could not be found
27649 ****" >&5
27650 echo "$as_me: error:
27651 ****
27652 **** openpty could not be found
27653 ****" >&2;}
27654    { (exit 1); exit 1; }; }
27655 fi
27656
27657 fi
27658
27659 fi
27660
27661
27662 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27663         ensc_have_beecrypt=yes
27664
27665         if test x"$ensc_have_beecrypt" = xyes; then
27666                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27667   echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27668 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27669 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27670   echo $ECHO_N "(cached) $ECHO_C" >&6
27671 fi
27672 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27673 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27674 else
27675   # Is the header compilable?
27676 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27677 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6
27678 cat >conftest.$ac_ext <<_ACEOF
27679 /* confdefs.h.  */
27680 _ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h.  */
27684 $ac_includes_default
27685 #include <beecrypt/beecrypt.h>
27686 _ACEOF
27687 rm -f conftest.$ac_objext
27688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27689   (eval $ac_compile) 2>conftest.er1
27690   ac_status=$?
27691   grep -v '^ *+' conftest.er1 >conftest.err
27692   rm -f conftest.er1
27693   cat conftest.err >&5
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); } &&
27696          { ac_try='test -z "$ac_c_werror_flag"
27697                          || test ! -s conftest.err'
27698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699   (eval $ac_try) 2>&5
27700   ac_status=$?
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); }; } &&
27703          { ac_try='test -s conftest.$ac_objext'
27704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705   (eval $ac_try) 2>&5
27706   ac_status=$?
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); }; }; then
27709   ac_header_compiler=yes
27710 else
27711   echo "$as_me: failed program was:" >&5
27712 sed 's/^/| /' conftest.$ac_ext >&5
27713
27714 ac_header_compiler=no
27715 fi
27716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27718 echo "${ECHO_T}$ac_header_compiler" >&6
27719
27720 # Is the header present?
27721 echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27722 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6
27723 cat >conftest.$ac_ext <<_ACEOF
27724 /* confdefs.h.  */
27725 _ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h.  */
27729 #include <beecrypt/beecrypt.h>
27730 _ACEOF
27731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27732   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27733   ac_status=$?
27734   grep -v '^ *+' conftest.er1 >conftest.err
27735   rm -f conftest.er1
27736   cat conftest.err >&5
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); } >/dev/null; then
27739   if test -s conftest.err; then
27740     ac_cpp_err=$ac_c_preproc_warn_flag
27741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27742   else
27743     ac_cpp_err=
27744   fi
27745 else
27746   ac_cpp_err=yes
27747 fi
27748 if test -z "$ac_cpp_err"; then
27749   ac_header_preproc=yes
27750 else
27751   echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27753
27754   ac_header_preproc=no
27755 fi
27756 rm -f conftest.err conftest.$ac_ext
27757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27758 echo "${ECHO_T}$ac_header_preproc" >&6
27759
27760 # So?  What about this header?
27761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27762   yes:no: )
27763     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27764 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27765     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
27766 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
27767     ac_header_preproc=yes
27768     ;;
27769   no:yes:* )
27770     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
27771 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
27772     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
27773 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
27774     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
27775 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
27776     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
27777 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27778     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
27779 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
27780     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
27781 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
27782     (
27783       cat <<\_ASBOX
27784 ## --------------------------------------------- ##
27785 ## Report this to vserver@list.linux-vserver.org ##
27786 ## --------------------------------------------- ##
27787 _ASBOX
27788     ) |
27789       sed "s/^/$as_me: WARNING:     /" >&2
27790     ;;
27791 esac
27792 echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27793 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6
27794 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27795   echo $ECHO_N "(cached) $ECHO_C" >&6
27796 else
27797   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
27798 fi
27799 echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27800 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6
27801
27802 fi
27803 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
27804    :
27805 else
27806    ensc_have_beecrypt=no
27807 fi
27808
27809
27810         fi
27811
27812         if test x"$ensc_have_beecrypt" = xyes; then
27813                 echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
27814 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6
27815 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   ac_check_lib_save_LIBS=$LIBS
27819 LIBS="-lbeecrypt  $LIBS"
27820 cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h.  */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h.  */
27826
27827 /* Override any gcc2 internal prototype to avoid an error.  */
27828 #ifdef __cplusplus
27829 extern "C"
27830 #endif
27831 /* We use char because int might match the return type of a gcc2
27832    builtin and then its argument prototype would still apply.  */
27833 char hashFunctionContextInit ();
27834 int
27835 main ()
27836 {
27837 hashFunctionContextInit ();
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 rm -f conftest.$ac_objext conftest$ac_exeext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844   (eval $ac_link) 2>conftest.er1
27845   ac_status=$?
27846   grep -v '^ *+' conftest.er1 >conftest.err
27847   rm -f conftest.er1
27848   cat conftest.err >&5
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); } &&
27851          { ac_try='test -z "$ac_c_werror_flag"
27852                          || test ! -s conftest.err'
27853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854   (eval $ac_try) 2>&5
27855   ac_status=$?
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; } &&
27858          { ac_try='test -s conftest$ac_exeext'
27859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860   (eval $ac_try) 2>&5
27861   ac_status=$?
27862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863   (exit $ac_status); }; }; then
27864   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
27865 else
27866   echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869 ac_cv_lib_beecrypt_hashFunctionContextInit=no
27870 fi
27871 rm -f conftest.err conftest.$ac_objext \
27872       conftest$ac_exeext conftest.$ac_ext
27873 LIBS=$ac_check_lib_save_LIBS
27874 fi
27875 echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
27876 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6
27877 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
27878    :
27879 else
27880    ensc_have_beecrypt=no
27881 fi
27882
27883         fi
27884
27885         if test x"$ensc_have_beecrypt" != xyes; then
27886                 { echo "$as_me:$LINENO: WARNING:
27887 ****
27888 **** 'beecrypt' could not be found;
27889 **** this will disable the build of 'vhashify'
27890 ****" >&5
27891 echo "$as_me: WARNING:
27892 ****
27893 **** 'beecrypt' could not be found;
27894 **** this will disable the build of 'vhashify'
27895 ****" >&2;}
27896         fi
27897 else
27898         ensc_have_beecrypt=no
27899 fi
27900
27901
27902
27903 if test x"$ensc_have_beecrypt" = xyes; then
27904   ENSC_HAVE_BEECRYPT_TRUE=
27905   ENSC_HAVE_BEECRYPT_FALSE='#'
27906 else
27907   ENSC_HAVE_BEECRYPT_TRUE='#'
27908   ENSC_HAVE_BEECRYPT_FALSE=
27909 fi
27910
27911
27912
27913 if false; then
27914   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
27915   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
27916 else
27917   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
27918   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
27919 fi
27920
27921
27922
27923
27924 cat >>confdefs.h <<\_ACEOF
27925 #define UTMP_GID 22
27926 _ACEOF
27927
27928
27929 if false; then
27930
27931 cat >>confdefs.h <<\_ACEOF
27932 #define HAVE_GROWING_STACK 1
27933 _ACEOF
27934
27935 fi
27936
27937
27938 cat >>confdefs.h <<\_ACEOF
27939 #define _FILE_OFFSET_BITS 64
27940 _ACEOF
27941
27942
27943 ensc_cxx_affected=" (affected: vbuild, vcheck)"
27944 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
27945 ensc_diet_msg=" (you have been warned)"
27946 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
27947 ensc_diet_compat_msg=" (using -lcompat)"
27948 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
27949 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
27950 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
27951 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
27952 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
27953
27954
27955
27956
27957
27958                                         ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
27959
27960 cat >confcache <<\_ACEOF
27961 # This file is a shell script that caches the results of configure
27962 # tests run on this system so they can be shared between configure
27963 # scripts and configure runs, see configure's option --config-cache.
27964 # It is not useful on other systems.  If it contains results you don't
27965 # want to keep, you may remove or edit it.
27966 #
27967 # config.status only pays attention to the cache file if you give it
27968 # the --recheck option to rerun configure.
27969 #
27970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27972 # following values.
27973
27974 _ACEOF
27975
27976 # The following way of writing the cache mishandles newlines in values,
27977 # but we know of no workaround that is simple, portable, and efficient.
27978 # So, don't put newlines in cache variables' values.
27979 # Ultrix sh set writes to stderr and can't be redirected directly,
27980 # and sets the high bit in the cache file unless we assign to the vars.
27981 {
27982   (set) 2>&1 |
27983     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27984     *ac_space=\ *)
27985       # `set' does not quote correctly, so add quotes (double-quote
27986       # substitution turns \\\\ into \\, and sed turns \\ into \).
27987       sed -n \
27988         "s/'/'\\\\''/g;
27989           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27990       ;;
27991     *)
27992       # `set' quotes correctly as required by POSIX, so do not add quotes.
27993       sed -n \
27994         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27995       ;;
27996     esac;
27997 } |
27998   sed '
27999      t clear
28000      : clear
28001      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28002      t end
28003      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28004      : end' >>confcache
28005 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28006   if test -w $cache_file; then
28007     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28008     cat confcache >$cache_file
28009   else
28010     echo "not updating unwritable cache $cache_file"
28011   fi
28012 fi
28013 rm -f confcache
28014
28015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28016 # Let make expand exec_prefix.
28017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28018
28019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28021 # trailing colons and then remove the whole line if VPATH becomes empty
28022 # (actually we leave an empty line to preserve line numbers).
28023 if test "x$srcdir" = x.; then
28024   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28025 s/:*\$(srcdir):*/:/;
28026 s/:*\${srcdir}:*/:/;
28027 s/:*@srcdir@:*/:/;
28028 s/^\([^=]*=[     ]*\):*/\1/;
28029 s/:*$//;
28030 s/^[^=]*=[       ]*$//;
28031 }'
28032 fi
28033
28034 DEFS=-DHAVE_CONFIG_H
28035
28036 ac_libobjs=
28037 ac_ltlibobjs=
28038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28039   # 1. Remove the extension, and $U if already installed.
28040   ac_i=`echo "$ac_i" |
28041          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28042   # 2. Add them.
28043   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28044   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28045 done
28046 LIBOBJS=$ac_libobjs
28047
28048 LTLIBOBJS=$ac_ltlibobjs
28049
28050
28051 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28052   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28053 Usually this means the macro was only invoked conditionally." >&5
28054 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28055 Usually this means the macro was only invoked conditionally." >&2;}
28056    { (exit 1); exit 1; }; }
28057 fi
28058 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28059   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28060 Usually this means the macro was only invoked conditionally." >&5
28061 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28062 Usually this means the macro was only invoked conditionally." >&2;}
28063    { (exit 1); exit 1; }; }
28064 fi
28065 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28066   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28067 Usually this means the macro was only invoked conditionally." >&5
28068 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28069 Usually this means the macro was only invoked conditionally." >&2;}
28070    { (exit 1); exit 1; }; }
28071 fi
28072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28073   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28074 Usually this means the macro was only invoked conditionally." >&5
28075 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28076 Usually this means the macro was only invoked conditionally." >&2;}
28077    { (exit 1); exit 1; }; }
28078 fi
28079 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
28080   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
28081 Usually this means the macro was only invoked conditionally." >&5
28082 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
28083 Usually this means the macro was only invoked conditionally." >&2;}
28084    { (exit 1); exit 1; }; }
28085 fi
28086 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
28087   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28088 Usually this means the macro was only invoked conditionally." >&5
28089 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28090 Usually this means the macro was only invoked conditionally." >&2;}
28091    { (exit 1); exit 1; }; }
28092 fi
28093 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
28094   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
28095 Usually this means the macro was only invoked conditionally." >&5
28096 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
28097 Usually this means the macro was only invoked conditionally." >&2;}
28098    { (exit 1); exit 1; }; }
28099 fi
28100 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
28101   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
28102 Usually this means the macro was only invoked conditionally." >&5
28103 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
28104 Usually this means the macro was only invoked conditionally." >&2;}
28105    { (exit 1); exit 1; }; }
28106 fi
28107 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28108   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28109 Usually this means the macro was only invoked conditionally." >&5
28110 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28111 Usually this means the macro was only invoked conditionally." >&2;}
28112    { (exit 1); exit 1; }; }
28113 fi
28114 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28115   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28116 Usually this means the macro was only invoked conditionally." >&5
28117 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28118 Usually this means the macro was only invoked conditionally." >&2;}
28119    { (exit 1); exit 1; }; }
28120 fi
28121 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28122   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28123 Usually this means the macro was only invoked conditionally." >&5
28124 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28125 Usually this means the macro was only invoked conditionally." >&2;}
28126    { (exit 1); exit 1; }; }
28127 fi
28128 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28129   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28130 Usually this means the macro was only invoked conditionally." >&5
28131 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28132 Usually this means the macro was only invoked conditionally." >&2;}
28133    { (exit 1); exit 1; }; }
28134 fi
28135 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28136   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28137 Usually this means the macro was only invoked conditionally." >&5
28138 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28139 Usually this means the macro was only invoked conditionally." >&2;}
28140    { (exit 1); exit 1; }; }
28141 fi
28142 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28143   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28144 Usually this means the macro was only invoked conditionally." >&5
28145 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28146 Usually this means the macro was only invoked conditionally." >&2;}
28147    { (exit 1); exit 1; }; }
28148 fi
28149 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28150   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28151 Usually this means the macro was only invoked conditionally." >&5
28152 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28153 Usually this means the macro was only invoked conditionally." >&2;}
28154    { (exit 1); exit 1; }; }
28155 fi
28156 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
28157   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28158 Usually this means the macro was only invoked conditionally." >&5
28159 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28160 Usually this means the macro was only invoked conditionally." >&2;}
28161    { (exit 1); exit 1; }; }
28162 fi
28163 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
28164   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28165 Usually this means the macro was only invoked conditionally." >&5
28166 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28167 Usually this means the macro was only invoked conditionally." >&2;}
28168    { (exit 1); exit 1; }; }
28169 fi
28170 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
28171   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
28172 Usually this means the macro was only invoked conditionally." >&5
28173 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
28174 Usually this means the macro was only invoked conditionally." >&2;}
28175    { (exit 1); exit 1; }; }
28176 fi
28177 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
28178   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28179 Usually this means the macro was only invoked conditionally." >&5
28180 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28181 Usually this means the macro was only invoked conditionally." >&2;}
28182    { (exit 1); exit 1; }; }
28183 fi
28184 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
28185   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28186 Usually this means the macro was only invoked conditionally." >&5
28187 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28188 Usually this means the macro was only invoked conditionally." >&2;}
28189    { (exit 1); exit 1; }; }
28190 fi
28191 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
28192   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28193 Usually this means the macro was only invoked conditionally." >&5
28194 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28195 Usually this means the macro was only invoked conditionally." >&2;}
28196    { (exit 1); exit 1; }; }
28197 fi
28198
28199                         FEATURES_TXT="\
28200 Features:
28201                        CC: $CC, $($CC   --version | sed -e '1p;d')
28202                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
28203                  CPPFLAGS: '$CPPFLAGS'
28204                    CFLAGS: '$CFLAGS'
28205                  CXXFLAGS: '$CXXFLAGS'
28206                build/host: $build/$host
28207              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
28208        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
28209        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
28210            Available APIs: $enable_apis
28211             ext2fs Source: $ensc_cv_test_ext2fs_header
28212     syscall(2) invocation: $with_syscall
28213       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
28214
28215 Paths:
28216                    prefix: $prefix
28217         sysconf-Directory: $sysconfdir
28218             cfg-Directory: $sysconfdir/vservers
28219          initrd-Directory: $initrddir
28220        pkgstate-Directory: $localstatedir/run/vservers
28221           vserver-Rootdir: $vserverdir
28222 "
28223                         echo "$FEATURES_TXT" >FEATURES.txt
28224
28225
28226 : ${CONFIG_STATUS=./config.status}
28227 ac_clean_files_save=$ac_clean_files
28228 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28229 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28230 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28231 cat >$CONFIG_STATUS <<_ACEOF
28232 #! $SHELL
28233 # Generated by $as_me.
28234 # Run this file to recreate the current configuration.
28235 # Compiler output produced by configure, useful for debugging
28236 # configure, is in config.log if it exists.
28237
28238 debug=false
28239 ac_cs_recheck=false
28240 ac_cs_silent=false
28241 SHELL=\${CONFIG_SHELL-$SHELL}
28242 _ACEOF
28243
28244 cat >>$CONFIG_STATUS <<\_ACEOF
28245 ## --------------------- ##
28246 ## M4sh Initialization.  ##
28247 ## --------------------- ##
28248
28249 # Be Bourne compatible
28250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28251   emulate sh
28252   NULLCMD=:
28253   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28254   # is contrary to our usage.  Disable this feature.
28255   alias -g '${1+"$@"}'='"$@"'
28256 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28257   set -o posix
28258 fi
28259 DUALCASE=1; export DUALCASE # for MKS sh
28260
28261 # Support unset when possible.
28262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28263   as_unset=unset
28264 else
28265   as_unset=false
28266 fi
28267
28268
28269 # Work around bugs in pre-3.0 UWIN ksh.
28270 $as_unset ENV MAIL MAILPATH
28271 PS1='$ '
28272 PS2='> '
28273 PS4='+ '
28274
28275 # NLS nuisances.
28276 for as_var in \
28277   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28278   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28279   LC_TELEPHONE LC_TIME
28280 do
28281   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28282     eval $as_var=C; export $as_var
28283   else
28284     $as_unset $as_var
28285   fi
28286 done
28287
28288 # Required to use basename.
28289 if expr a : '\(a\)' >/dev/null 2>&1; then
28290   as_expr=expr
28291 else
28292   as_expr=false
28293 fi
28294
28295 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28296   as_basename=basename
28297 else
28298   as_basename=false
28299 fi
28300
28301
28302 # Name of the executable.
28303 as_me=`$as_basename "$0" ||
28304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28305          X"$0" : 'X\(//\)$' \| \
28306          X"$0" : 'X\(/\)$' \| \
28307          .     : '\(.\)' 2>/dev/null ||
28308 echo X/"$0" |
28309     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28310           /^X\/\(\/\/\)$/{ s//\1/; q; }
28311           /^X\/\(\/\).*/{ s//\1/; q; }
28312           s/.*/./; q'`
28313
28314
28315 # PATH needs CR, and LINENO needs CR and PATH.
28316 # Avoid depending upon Character Ranges.
28317 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28320 as_cr_digits='0123456789'
28321 as_cr_alnum=$as_cr_Letters$as_cr_digits
28322
28323 # The user is always right.
28324 if test "${PATH_SEPARATOR+set}" != set; then
28325   echo "#! /bin/sh" >conf$$.sh
28326   echo  "exit 0"   >>conf$$.sh
28327   chmod +x conf$$.sh
28328   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28329     PATH_SEPARATOR=';'
28330   else
28331     PATH_SEPARATOR=:
28332   fi
28333   rm -f conf$$.sh
28334 fi
28335
28336
28337   as_lineno_1=$LINENO
28338   as_lineno_2=$LINENO
28339   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28340   test "x$as_lineno_1" != "x$as_lineno_2" &&
28341   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28342   # Find who we are.  Look in the path if we contain no path at all
28343   # relative or not.
28344   case $0 in
28345     *[\\/]* ) as_myself=$0 ;;
28346     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28347 for as_dir in $PATH
28348 do
28349   IFS=$as_save_IFS
28350   test -z "$as_dir" && as_dir=.
28351   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28352 done
28353
28354        ;;
28355   esac
28356   # We did not find ourselves, most probably we were run as `sh COMMAND'
28357   # in which case we are not to be found in the path.
28358   if test "x$as_myself" = x; then
28359     as_myself=$0
28360   fi
28361   if test ! -f "$as_myself"; then
28362     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28363 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28364    { (exit 1); exit 1; }; }
28365   fi
28366   case $CONFIG_SHELL in
28367   '')
28368     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28369 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28370 do
28371   IFS=$as_save_IFS
28372   test -z "$as_dir" && as_dir=.
28373   for as_base in sh bash ksh sh5; do
28374          case $as_dir in
28375          /*)
28376            if ("$as_dir/$as_base" -c '
28377   as_lineno_1=$LINENO
28378   as_lineno_2=$LINENO
28379   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28380   test "x$as_lineno_1" != "x$as_lineno_2" &&
28381   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28382              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28383              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28384              CONFIG_SHELL=$as_dir/$as_base
28385              export CONFIG_SHELL
28386              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28387            fi;;
28388          esac
28389        done
28390 done
28391 ;;
28392   esac
28393
28394   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28395   # uniformly replaced by the line number.  The first 'sed' inserts a
28396   # line-number line before each line; the second 'sed' does the real
28397   # work.  The second script uses 'N' to pair each line-number line
28398   # with the numbered line, and appends trailing '-' during
28399   # substitution so that $LINENO is not a special case at line end.
28400   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28401   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28402   sed '=' <$as_myself |
28403     sed '
28404       N
28405       s,$,-,
28406       : loop
28407       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28408       t loop
28409       s,-$,,
28410       s,^['$as_cr_digits']*\n,,
28411     ' >$as_me.lineno &&
28412   chmod +x $as_me.lineno ||
28413     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28414 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28415    { (exit 1); exit 1; }; }
28416
28417   # Don't try to exec as it changes $[0], causing all sort of problems
28418   # (the dirname of $[0] is not the place where we might find the
28419   # original and so on.  Autoconf is especially sensible to this).
28420   . ./$as_me.lineno
28421   # Exit status is that of the last command.
28422   exit
28423 }
28424
28425
28426 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28427   *c*,-n*) ECHO_N= ECHO_C='
28428 ' ECHO_T='      ' ;;
28429   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28430   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28431 esac
28432
28433 if expr a : '\(a\)' >/dev/null 2>&1; then
28434   as_expr=expr
28435 else
28436   as_expr=false
28437 fi
28438
28439 rm -f conf$$ conf$$.exe conf$$.file
28440 echo >conf$$.file
28441 if ln -s conf$$.file conf$$ 2>/dev/null; then
28442   # We could just check for DJGPP; but this test a) works b) is more generic
28443   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28444   if test -f conf$$.exe; then
28445     # Don't use ln at all; we don't have any links
28446     as_ln_s='cp -p'
28447   else
28448     as_ln_s='ln -s'
28449   fi
28450 elif ln conf$$.file conf$$ 2>/dev/null; then
28451   as_ln_s=ln
28452 else
28453   as_ln_s='cp -p'
28454 fi
28455 rm -f conf$$ conf$$.exe conf$$.file
28456
28457 if mkdir -p . 2>/dev/null; then
28458   as_mkdir_p=:
28459 else
28460   test -d ./-p && rmdir ./-p
28461   as_mkdir_p=false
28462 fi
28463
28464 as_executable_p="test -f"
28465
28466 # Sed expression to map a string onto a valid CPP name.
28467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28468
28469 # Sed expression to map a string onto a valid variable name.
28470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28471
28472
28473 # IFS
28474 # We need space, tab and new line, in precisely that order.
28475 as_nl='
28476 '
28477 IFS="   $as_nl"
28478
28479 # CDPATH.
28480 $as_unset CDPATH
28481
28482 exec 6>&1
28483
28484 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28485 # report actual input values of CONFIG_FILES etc. instead of their
28486 # values after options handling.  Logging --version etc. is OK.
28487 exec 5>>config.log
28488 {
28489   echo
28490   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28491 ## Running $as_me. ##
28492 _ASBOX
28493 } >&5
28494 cat >&5 <<_CSEOF
28495
28496 This file was extended by util-vserver $as_me 0.30.212, which was
28497 generated by GNU Autoconf 2.59.  Invocation command line was
28498
28499   CONFIG_FILES    = $CONFIG_FILES
28500   CONFIG_HEADERS  = $CONFIG_HEADERS
28501   CONFIG_LINKS    = $CONFIG_LINKS
28502   CONFIG_COMMANDS = $CONFIG_COMMANDS
28503   $ $0 $@
28504
28505 _CSEOF
28506 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28507 echo >&5
28508 _ACEOF
28509
28510 # Files that config.status was made for.
28511 if test -n "$ac_config_files"; then
28512   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28513 fi
28514
28515 if test -n "$ac_config_headers"; then
28516   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28517 fi
28518
28519 if test -n "$ac_config_links"; then
28520   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28521 fi
28522
28523 if test -n "$ac_config_commands"; then
28524   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28525 fi
28526
28527 cat >>$CONFIG_STATUS <<\_ACEOF
28528
28529 ac_cs_usage="\
28530 \`$as_me' instantiates files from templates according to the
28531 current configuration.
28532
28533 Usage: $0 [OPTIONS] [FILE]...
28534
28535   -h, --help       print this help, then exit
28536   -V, --version    print version number, then exit
28537   -q, --quiet      do not print progress messages
28538   -d, --debug      don't remove temporary files
28539       --recheck    update $as_me by reconfiguring in the same conditions
28540   --file=FILE[:TEMPLATE]
28541                    instantiate the configuration file FILE
28542   --header=FILE[:TEMPLATE]
28543                    instantiate the configuration header FILE
28544
28545 Configuration files:
28546 $config_files
28547
28548 Configuration headers:
28549 $config_headers
28550
28551 Configuration commands:
28552 $config_commands
28553
28554 Report bugs to <bug-autoconf@gnu.org>."
28555 _ACEOF
28556
28557 cat >>$CONFIG_STATUS <<_ACEOF
28558 ac_cs_version="\\
28559 util-vserver config.status 0.30.212
28560 configured by $0, generated by GNU Autoconf 2.59,
28561   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28562
28563 Copyright (C) 2003 Free Software Foundation, Inc.
28564 This config.status script is free software; the Free Software Foundation
28565 gives unlimited permission to copy, distribute and modify it."
28566 srcdir=$srcdir
28567 INSTALL="$INSTALL"
28568 _ACEOF
28569
28570 cat >>$CONFIG_STATUS <<\_ACEOF
28571 # If no file are specified by the user, then we need to provide default
28572 # value.  By we need to know if files were specified by the user.
28573 ac_need_defaults=:
28574 while test $# != 0
28575 do
28576   case $1 in
28577   --*=*)
28578     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28579     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28580     ac_shift=:
28581     ;;
28582   -*)
28583     ac_option=$1
28584     ac_optarg=$2
28585     ac_shift=shift
28586     ;;
28587   *) # This is not an option, so the user has probably given explicit
28588      # arguments.
28589      ac_option=$1
28590      ac_need_defaults=false;;
28591   esac
28592
28593   case $ac_option in
28594   # Handling of the options.
28595 _ACEOF
28596 cat >>$CONFIG_STATUS <<\_ACEOF
28597   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28598     ac_cs_recheck=: ;;
28599   --version | --vers* | -V )
28600     echo "$ac_cs_version"; exit 0 ;;
28601   --he | --h)
28602     # Conflict between --help and --header
28603     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28604 Try \`$0 --help' for more information." >&5
28605 echo "$as_me: error: ambiguous option: $1
28606 Try \`$0 --help' for more information." >&2;}
28607    { (exit 1); exit 1; }; };;
28608   --help | --hel | -h )
28609     echo "$ac_cs_usage"; exit 0 ;;
28610   --debug | --d* | -d )
28611     debug=: ;;
28612   --file | --fil | --fi | --f )
28613     $ac_shift
28614     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28615     ac_need_defaults=false;;
28616   --header | --heade | --head | --hea )
28617     $ac_shift
28618     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28619     ac_need_defaults=false;;
28620   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28621   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28622     ac_cs_silent=: ;;
28623
28624   # This is an error.
28625   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28626 Try \`$0 --help' for more information." >&5
28627 echo "$as_me: error: unrecognized option: $1
28628 Try \`$0 --help' for more information." >&2;}
28629    { (exit 1); exit 1; }; } ;;
28630
28631   *) ac_config_targets="$ac_config_targets $1" ;;
28632
28633   esac
28634   shift
28635 done
28636
28637 ac_configure_extra_args=
28638
28639 if $ac_cs_silent; then
28640   exec 6>/dev/null
28641   ac_configure_extra_args="$ac_configure_extra_args --silent"
28642 fi
28643
28644 _ACEOF
28645 cat >>$CONFIG_STATUS <<_ACEOF
28646 if \$ac_cs_recheck; then
28647   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28648   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28649 fi
28650
28651 _ACEOF
28652
28653 cat >>$CONFIG_STATUS <<_ACEOF
28654 #
28655 # INIT-COMMANDS section.
28656 #
28657
28658 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28659
28660 _ACEOF
28661
28662
28663
28664 cat >>$CONFIG_STATUS <<\_ACEOF
28665 for ac_config_target in $ac_config_targets
28666 do
28667   case "$ac_config_target" in
28668   # Handling of arguments.
28669   "util-vserver.spec" ) CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
28670   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28671   "distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
28672   "lib/apidoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
28673   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28674   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28675   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28676 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28677    { (exit 1); exit 1; }; };;
28678   esac
28679 done
28680
28681 # If the user did not use the arguments to specify the items to instantiate,
28682 # then the envvar interface is used.  Set only those that are not.
28683 # We use the long form for the default assignment because of an extremely
28684 # bizarre bug on SunOS 4.1.3.
28685 if $ac_need_defaults; then
28686   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28687   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28688   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28689 fi
28690
28691 # Have a temporary directory for convenience.  Make it in the build tree
28692 # simply because there is no reason to put it here, and in addition,
28693 # creating and moving files from /tmp can sometimes cause problems.
28694 # Create a temporary directory, and hook for its removal unless debugging.
28695 $debug ||
28696 {
28697   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28698   trap '{ (exit 1); exit 1; }' 1 2 13 15
28699 }
28700
28701 # Create a (secure) tmp directory for tmp files.
28702
28703 {
28704   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28705   test -n "$tmp" && test -d "$tmp"
28706 }  ||
28707 {
28708   tmp=./confstat$$-$RANDOM
28709   (umask 077 && mkdir $tmp)
28710 } ||
28711 {
28712    echo "$me: cannot create a temporary directory in ." >&2
28713    { (exit 1); exit 1; }
28714 }
28715
28716 _ACEOF
28717
28718 cat >>$CONFIG_STATUS <<_ACEOF
28719
28720 #
28721 # CONFIG_FILES section.
28722 #
28723
28724 # No need to generate the scripts if there are no CONFIG_FILES.
28725 # This happens for instance when ./config.status config.h
28726 if test -n "\$CONFIG_FILES"; then
28727   # Protect against being on the right side of a sed subst in config.status.
28728   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28729    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28730 s,@SHELL@,$SHELL,;t t
28731 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28732 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28733 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28734 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28735 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28736 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28737 s,@exec_prefix@,$exec_prefix,;t t
28738 s,@prefix@,$prefix,;t t
28739 s,@program_transform_name@,$program_transform_name,;t t
28740 s,@bindir@,$bindir,;t t
28741 s,@sbindir@,$sbindir,;t t
28742 s,@libexecdir@,$libexecdir,;t t
28743 s,@datadir@,$datadir,;t t
28744 s,@sysconfdir@,$sysconfdir,;t t
28745 s,@sharedstatedir@,$sharedstatedir,;t t
28746 s,@localstatedir@,$localstatedir,;t t
28747 s,@libdir@,$libdir,;t t
28748 s,@includedir@,$includedir,;t t
28749 s,@oldincludedir@,$oldincludedir,;t t
28750 s,@infodir@,$infodir,;t t
28751 s,@mandir@,$mandir,;t t
28752 s,@build_alias@,$build_alias,;t t
28753 s,@host_alias@,$host_alias,;t t
28754 s,@target_alias@,$target_alias,;t t
28755 s,@DEFS@,$DEFS,;t t
28756 s,@ECHO_C@,$ECHO_C,;t t
28757 s,@ECHO_N@,$ECHO_N,;t t
28758 s,@ECHO_T@,$ECHO_T,;t t
28759 s,@LIBS@,$LIBS,;t t
28760 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28761 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28762 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28763 s,@CYGPATH_W@,$CYGPATH_W,;t t
28764 s,@PACKAGE@,$PACKAGE,;t t
28765 s,@VERSION@,$VERSION,;t t
28766 s,@ACLOCAL@,$ACLOCAL,;t t
28767 s,@AUTOCONF@,$AUTOCONF,;t t
28768 s,@AUTOMAKE@,$AUTOMAKE,;t t
28769 s,@AUTOHEADER@,$AUTOHEADER,;t t
28770 s,@MAKEINFO@,$MAKEINFO,;t t
28771 s,@AMTAR@,$AMTAR,;t t
28772 s,@install_sh@,$install_sh,;t t
28773 s,@STRIP@,$STRIP,;t t
28774 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
28775 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
28776 s,@mkdir_p@,$mkdir_p,;t t
28777 s,@AWK@,$AWK,;t t
28778 s,@SET_MAKE@,$SET_MAKE,;t t
28779 s,@am__leading_dot@,$am__leading_dot,;t t
28780 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28781 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28782 s,@MAINT@,$MAINT,;t t
28783 s,@build@,$build,;t t
28784 s,@build_cpu@,$build_cpu,;t t
28785 s,@build_vendor@,$build_vendor,;t t
28786 s,@build_os@,$build_os,;t t
28787 s,@host@,$host,;t t
28788 s,@host_cpu@,$host_cpu,;t t
28789 s,@host_vendor@,$host_vendor,;t t
28790 s,@host_os@,$host_os,;t t
28791 s,@GPG_KEY@,$GPG_KEY,;t t
28792 s,@CXX@,$CXX,;t t
28793 s,@CXXFLAGS@,$CXXFLAGS,;t t
28794 s,@LDFLAGS@,$LDFLAGS,;t t
28795 s,@CPPFLAGS@,$CPPFLAGS,;t t
28796 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28797 s,@EXEEXT@,$EXEEXT,;t t
28798 s,@OBJEXT@,$OBJEXT,;t t
28799 s,@DEPDIR@,$DEPDIR,;t t
28800 s,@am__include@,$am__include,;t t
28801 s,@am__quote@,$am__quote,;t t
28802 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
28803 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28804 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28805 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28806 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28807 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28808 s,@CC@,$CC,;t t
28809 s,@CFLAGS@,$CFLAGS,;t t
28810 s,@ac_ct_CC@,$ac_ct_CC,;t t
28811 s,@CCDEPMODE@,$CCDEPMODE,;t t
28812 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28813 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
28814 s,@LN_S@,$LN_S,;t t
28815 s,@PYTHON@,$PYTHON,;t t
28816 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
28817 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
28818 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
28819 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
28820 s,@pythondir@,$pythondir,;t t
28821 s,@pkgpythondir@,$pkgpythondir,;t t
28822 s,@pyexecdir@,$pyexecdir,;t t
28823 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
28824 s,@ENSC_HAVE_CXX_COMPILER_TRUE@,$ENSC_HAVE_CXX_COMPILER_TRUE,;t t
28825 s,@ENSC_HAVE_CXX_COMPILER_FALSE@,$ENSC_HAVE_CXX_COMPILER_FALSE,;t t
28826 s,@ENSC_HAVE_C99_COMPILER_TRUE@,$ENSC_HAVE_C99_COMPILER_TRUE,;t t
28827 s,@ENSC_HAVE_C99_COMPILER_FALSE@,$ENSC_HAVE_C99_COMPILER_FALSE,;t t
28828 s,@ENSC_PATHPROG_SED@,$ENSC_PATHPROG_SED,;t t
28829 s,@CAT@,$CAT,;t t
28830 s,@CHOWN@,$CHOWN,;t t
28831 s,@CMP@,$CMP,;t t
28832 s,@CP@,$CP,;t t
28833 s,@DIRNAME@,$DIRNAME,;t t
28834 s,@EGREP@,$EGREP,;t t
28835 s,@ENV@,$ENV,;t t
28836 s,@GREP@,$GREP,;t t
28837 s,@LN@,$LN,;t t
28838 s,@MKDIR@,$MKDIR,;t t
28839 s,@MKFIFO@,$MKFIFO,;t t
28840 s,@MKTEMP@,$MKTEMP,;t t
28841 s,@MOUNT@,$MOUNT,;t t
28842 s,@MV@,$MV,;t t
28843 s,@NICE@,$NICE,;t t
28844 s,@PS@,$PS,;t t
28845 s,@RM@,$RM,;t t
28846 s,@RMDIR@,$RMDIR,;t t
28847 s,@SED@,$SED,;t t
28848 s,@SH@,$SH,;t t
28849 s,@TAC@,$TAC,;t t
28850 s,@TAR@,$TAR,;t t
28851 s,@TOUCH@,$TOUCH,;t t
28852 s,@TTY@,$TTY,;t t
28853 s,@UMOUNT@,$UMOUNT,;t t
28854 s,@WC@,$WC,;t t
28855 s,@IP@,$IP,;t t
28856 s,@IPTABLES@,$IPTABLES,;t t
28857 s,@MODPROBE@,$MODPROBE,;t t
28858 s,@NAMEIF@,$NAMEIF,;t t
28859 s,@NOHUP@,$NOHUP,;t t
28860 s,@RMMOD@,$RMMOD,;t t
28861 s,@VCONFIG@,$VCONFIG,;t t
28862 s,@WGET@,$WGET,;t t
28863 s,@FILE@,$FILE,;t t
28864 s,@GZIP@,$GZIP,;t t
28865 s,@BZIP2@,$BZIP2,;t t
28866 s,@CPIO@,$CPIO,;t t
28867 s,@RESTORE@,$RESTORE,;t t
28868 s,@RSYNC@,$RSYNC,;t t
28869 s,@DOXYGEN@,$DOXYGEN,;t t
28870 s,@XSLTP@,$XSLTP,;t t
28871 s,@XSLTPROC@,$XSLTPROC,;t t
28872 s,@HAVE_XSLTP_TRUE@,$HAVE_XSLTP_TRUE,;t t
28873 s,@HAVE_XSLTP_FALSE@,$HAVE_XSLTP_FALSE,;t t
28874 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
28875 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
28876 s,@LIB_DEBUG_CPPFLAGS@,$LIB_DEBUG_CPPFLAGS,;t t
28877 s,@ENSC_USE_EXPENSIVE_TESTS@,$ENSC_USE_EXPENSIVE_TESTS,;t t
28878 s,@initrddir@,$initrddir,;t t
28879 s,@RELEASE_CPPFLAGS@,$RELEASE_CPPFLAGS,;t t
28880 s,@DIET@,$DIET,;t t
28881 s,@DIETFLAGS@,$DIETFLAGS,;t t
28882 s,@USE_DIETLIBC_TRUE@,$USE_DIETLIBC_TRUE,;t t
28883 s,@USE_DIETLIBC_FALSE@,$USE_DIETLIBC_FALSE,;t t
28884 s,@USE_DIETLIBC_COMPAT_TRUE@,$USE_DIETLIBC_COMPAT_TRUE,;t t
28885 s,@USE_DIETLIBC_COMPAT_FALSE@,$USE_DIETLIBC_COMPAT_FALSE,;t t
28886 s,@ENSC_USE_DIETLIBC_TRUE@,$ENSC_USE_DIETLIBC_TRUE,;t t
28887 s,@ENSC_USE_DIETLIBC_FALSE@,$ENSC_USE_DIETLIBC_FALSE,;t t
28888 s,@ENSC_USE_GLIBC_TRUE@,$ENSC_USE_GLIBC_TRUE,;t t
28889 s,@ENSC_USE_GLIBC_FALSE@,$ENSC_USE_GLIBC_FALSE,;t t
28890 s,@ECHO@,$ECHO,;t t
28891 s,@AR@,$AR,;t t
28892 s,@ac_ct_AR@,$ac_ct_AR,;t t
28893 s,@RANLIB@,$RANLIB,;t t
28894 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28895 s,@CPP@,$CPP,;t t
28896 s,@CXXCPP@,$CXXCPP,;t t
28897 s,@F77@,$F77,;t t
28898 s,@FFLAGS@,$FFLAGS,;t t
28899 s,@ac_ct_F77@,$ac_ct_F77,;t t
28900 s,@LIBTOOL@,$LIBTOOL,;t t
28901 s,@vserverdir@,$vserverdir,;t t
28902 s,@SVN2CL@,$SVN2CL,;t t
28903 s,@HAVE_SVN2CL_TRUE@,$HAVE_SVN2CL_TRUE,;t t
28904 s,@HAVE_SVN2CL_FALSE@,$HAVE_SVN2CL_FALSE,;t t
28905 s,@ENSC_ENABLE_INTERNAL_HEADERS_TRUE@,$ENSC_ENABLE_INTERNAL_HEADERS_TRUE,;t t
28906 s,@ENSC_ENABLE_INTERNAL_HEADERS_FALSE@,$ENSC_ENABLE_INTERNAL_HEADERS_FALSE,;t t
28907 s,@ENSC_HAVE_BEECRYPT_TRUE@,$ENSC_HAVE_BEECRYPT_TRUE,;t t
28908 s,@ENSC_HAVE_BEECRYPT_FALSE@,$ENSC_HAVE_BEECRYPT_FALSE,;t t
28909 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE,;t t
28910 s,@ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE@,$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE,;t t
28911 s,@LIBOBJS@,$LIBOBJS,;t t
28912 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
28913 CEOF
28914
28915 _ACEOF
28916
28917   cat >>$CONFIG_STATUS <<\_ACEOF
28918   # Split the substitutions into bite-sized pieces for seds with
28919   # small command number limits, like on Digital OSF/1 and HP-UX.
28920   ac_max_sed_lines=48
28921   ac_sed_frag=1 # Number of current file.
28922   ac_beg=1 # First line for current file.
28923   ac_end=$ac_max_sed_lines # Line after last line for current file.
28924   ac_more_lines=:
28925   ac_sed_cmds=
28926   while $ac_more_lines; do
28927     if test $ac_beg -gt 1; then
28928       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28929     else
28930       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
28931     fi
28932     if test ! -s $tmp/subs.frag; then
28933       ac_more_lines=false
28934     else
28935       # The purpose of the label and of the branching condition is to
28936       # speed up the sed processing (if there are no `@' at all, there
28937       # is no need to browse any of the substitutions).
28938       # These are the two extra sed commands mentioned above.
28939       (echo ':t
28940   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
28941       if test -z "$ac_sed_cmds"; then
28942         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
28943       else
28944         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
28945       fi
28946       ac_sed_frag=`expr $ac_sed_frag + 1`
28947       ac_beg=$ac_end
28948       ac_end=`expr $ac_end + $ac_max_sed_lines`
28949     fi
28950   done
28951   if test -z "$ac_sed_cmds"; then
28952     ac_sed_cmds=cat
28953   fi
28954 fi # test -n "$CONFIG_FILES"
28955
28956 _ACEOF
28957 cat >>$CONFIG_STATUS <<\_ACEOF
28958 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
28959   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28960   case $ac_file in
28961   - | *:- | *:-:* ) # input from stdin
28962         cat >$tmp/stdin
28963         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28964         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28965   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28966         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28967   * )   ac_file_in=$ac_file.in ;;
28968   esac
28969
28970   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
28971   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28973          X"$ac_file" : 'X\(//\)[^/]' \| \
28974          X"$ac_file" : 'X\(//\)$' \| \
28975          X"$ac_file" : 'X\(/\)' \| \
28976          .     : '\(.\)' 2>/dev/null ||
28977 echo X"$ac_file" |
28978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28979           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28980           /^X\(\/\/\)$/{ s//\1/; q; }
28981           /^X\(\/\).*/{ s//\1/; q; }
28982           s/.*/./; q'`
28983   { if $as_mkdir_p; then
28984     mkdir -p "$ac_dir"
28985   else
28986     as_dir="$ac_dir"
28987     as_dirs=
28988     while test ! -d "$as_dir"; do
28989       as_dirs="$as_dir $as_dirs"
28990       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28992          X"$as_dir" : 'X\(//\)[^/]' \| \
28993          X"$as_dir" : 'X\(//\)$' \| \
28994          X"$as_dir" : 'X\(/\)' \| \
28995          .     : '\(.\)' 2>/dev/null ||
28996 echo X"$as_dir" |
28997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28998           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28999           /^X\(\/\/\)$/{ s//\1/; q; }
29000           /^X\(\/\).*/{ s//\1/; q; }
29001           s/.*/./; q'`
29002     done
29003     test ! -n "$as_dirs" || mkdir $as_dirs
29004   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29006    { (exit 1); exit 1; }; }; }
29007
29008   ac_builddir=.
29009
29010 if test "$ac_dir" != .; then
29011   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29012   # A "../" for each directory in $ac_dir_suffix.
29013   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29014 else
29015   ac_dir_suffix= ac_top_builddir=
29016 fi
29017
29018 case $srcdir in
29019   .)  # No --srcdir option.  We are building in place.
29020     ac_srcdir=.
29021     if test -z "$ac_top_builddir"; then
29022        ac_top_srcdir=.
29023     else
29024        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29025     fi ;;
29026   [\\/]* | ?:[\\/]* )  # Absolute path.
29027     ac_srcdir=$srcdir$ac_dir_suffix;
29028     ac_top_srcdir=$srcdir ;;
29029   *) # Relative path.
29030     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29031     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29032 esac
29033
29034 # Do not use `cd foo && pwd` to compute absolute paths, because
29035 # the directories may not exist.
29036 case `pwd` in
29037 .) ac_abs_builddir="$ac_dir";;
29038 *)
29039   case "$ac_dir" in
29040   .) ac_abs_builddir=`pwd`;;
29041   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29042   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29043   esac;;
29044 esac
29045 case $ac_abs_builddir in
29046 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29047 *)
29048   case ${ac_top_builddir}. in
29049   .) ac_abs_top_builddir=$ac_abs_builddir;;
29050   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29051   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29052   esac;;
29053 esac
29054 case $ac_abs_builddir in
29055 .) ac_abs_srcdir=$ac_srcdir;;
29056 *)
29057   case $ac_srcdir in
29058   .) ac_abs_srcdir=$ac_abs_builddir;;
29059   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29060   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29061   esac;;
29062 esac
29063 case $ac_abs_builddir in
29064 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29065 *)
29066   case $ac_top_srcdir in
29067   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29068   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29069   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29070   esac;;
29071 esac
29072
29073
29074   case $INSTALL in
29075   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29076   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29077   esac
29078
29079   if test x"$ac_file" != x-; then
29080     { echo "$as_me:$LINENO: creating $ac_file" >&5
29081 echo "$as_me: creating $ac_file" >&6;}
29082     rm -f "$ac_file"
29083   fi
29084   # Let's still pretend it is `configure' which instantiates (i.e., don't
29085   # use $as_me), people would be surprised to read:
29086   #    /* config.h.  Generated by config.status.  */
29087   if test x"$ac_file" = x-; then
29088     configure_input=
29089   else
29090     configure_input="$ac_file.  "
29091   fi
29092   configure_input=$configure_input"Generated from `echo $ac_file_in |
29093                                      sed 's,.*/,,'` by configure."
29094
29095   # First look for the input files in the build tree, otherwise in the
29096   # src tree.
29097   ac_file_inputs=`IFS=:
29098     for f in $ac_file_in; do
29099       case $f in
29100       -) echo $tmp/stdin ;;
29101       [\\/$]*)
29102          # Absolute (can't be DOS-style, as IFS=:)
29103          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29104 echo "$as_me: error: cannot find input file: $f" >&2;}
29105    { (exit 1); exit 1; }; }
29106          echo "$f";;
29107       *) # Relative
29108          if test -f "$f"; then
29109            # Build tree
29110            echo "$f"
29111          elif test -f "$srcdir/$f"; then
29112            # Source tree
29113            echo "$srcdir/$f"
29114          else
29115            # /dev/null tree
29116            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29117 echo "$as_me: error: cannot find input file: $f" >&2;}
29118    { (exit 1); exit 1; }; }
29119          fi;;
29120       esac
29121     done` || { (exit 1); exit 1; }
29122 _ACEOF
29123 cat >>$CONFIG_STATUS <<_ACEOF
29124   sed "$ac_vpsub
29125 $extrasub
29126 _ACEOF
29127 cat >>$CONFIG_STATUS <<\_ACEOF
29128 :t
29129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29130 s,@configure_input@,$configure_input,;t t
29131 s,@srcdir@,$ac_srcdir,;t t
29132 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29133 s,@top_srcdir@,$ac_top_srcdir,;t t
29134 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29135 s,@builddir@,$ac_builddir,;t t
29136 s,@abs_builddir@,$ac_abs_builddir,;t t
29137 s,@top_builddir@,$ac_top_builddir,;t t
29138 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29139 s,@INSTALL@,$ac_INSTALL,;t t
29140 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29141   rm -f $tmp/stdin
29142   if test x"$ac_file" != x-; then
29143     mv $tmp/out $ac_file
29144   else
29145     cat $tmp/out
29146     rm -f $tmp/out
29147   fi
29148
29149 done
29150 _ACEOF
29151 cat >>$CONFIG_STATUS <<\_ACEOF
29152
29153 #
29154 # CONFIG_HEADER section.
29155 #
29156
29157 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29158 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29159 #
29160 # ac_d sets the value in "#define NAME VALUE" lines.
29161 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29162 ac_dB='[         ].*$,\1#\2'
29163 ac_dC=' '
29164 ac_dD=',;t'
29165 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29166 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29167 ac_uB='$,\1#\2define\3'
29168 ac_uC=' '
29169 ac_uD=',;t'
29170
29171 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29172   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29173   case $ac_file in
29174   - | *:- | *:-:* ) # input from stdin
29175         cat >$tmp/stdin
29176         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29177         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29178   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29179         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29180   * )   ac_file_in=$ac_file.in ;;
29181   esac
29182
29183   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29184 echo "$as_me: creating $ac_file" >&6;}
29185
29186   # First look for the input files in the build tree, otherwise in the
29187   # src tree.
29188   ac_file_inputs=`IFS=:
29189     for f in $ac_file_in; do
29190       case $f in
29191       -) echo $tmp/stdin ;;
29192       [\\/$]*)
29193          # Absolute (can't be DOS-style, as IFS=:)
29194          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29195 echo "$as_me: error: cannot find input file: $f" >&2;}
29196    { (exit 1); exit 1; }; }
29197          # Do quote $f, to prevent DOS paths from being IFS'd.
29198          echo "$f";;
29199       *) # Relative
29200          if test -f "$f"; then
29201            # Build tree
29202            echo "$f"
29203          elif test -f "$srcdir/$f"; then
29204            # Source tree
29205            echo "$srcdir/$f"
29206          else
29207            # /dev/null tree
29208            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29209 echo "$as_me: error: cannot find input file: $f" >&2;}
29210    { (exit 1); exit 1; }; }
29211          fi;;
29212       esac
29213     done` || { (exit 1); exit 1; }
29214   # Remove the trailing spaces.
29215   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29216
29217 _ACEOF
29218
29219 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29220 # `conftest.undefs', that substitutes the proper values into
29221 # config.h.in to produce config.h.  The first handles `#define'
29222 # templates, and the second `#undef' templates.
29223 # And first: Protect against being on the right side of a sed subst in
29224 # config.status.  Protect against being in an unquoted here document
29225 # in config.status.
29226 rm -f conftest.defines conftest.undefs
29227 # Using a here document instead of a string reduces the quoting nightmare.
29228 # Putting comments in sed scripts is not portable.
29229 #
29230 # `end' is used to avoid that the second main sed command (meant for
29231 # 0-ary CPP macros) applies to n-ary macro definitions.
29232 # See the Autoconf documentation for `clear'.
29233 cat >confdef2sed.sed <<\_ACEOF
29234 s/[\\&,]/\\&/g
29235 s,[\\$`],\\&,g
29236 t clear
29237 : clear
29238 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29239 t end
29240 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29241 : end
29242 _ACEOF
29243 # If some macros were called several times there might be several times
29244 # the same #defines, which is useless.  Nevertheless, we may not want to
29245 # sort them, since we want the *last* AC-DEFINE to be honored.
29246 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29247 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29248 rm -f confdef2sed.sed
29249
29250 # This sed command replaces #undef with comments.  This is necessary, for
29251 # example, in the case of _POSIX_SOURCE, which is predefined and required
29252 # on some systems where configure will not decide to define it.
29253 cat >>conftest.undefs <<\_ACEOF
29254 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29255 _ACEOF
29256
29257 # Break up conftest.defines because some shells have a limit on the size
29258 # of here documents, and old seds have small limits too (100 cmds).
29259 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29260 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29261 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29262 echo '  :' >>$CONFIG_STATUS
29263 rm -f conftest.tail
29264 while grep . conftest.defines >/dev/null
29265 do
29266   # Write a limited-size here document to $tmp/defines.sed.
29267   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29268   # Speed up: don't consider the non `#define' lines.
29269   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29270   # Work around the forget-to-reset-the-flag bug.
29271   echo 't clr' >>$CONFIG_STATUS
29272   echo ': clr' >>$CONFIG_STATUS
29273   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29274   echo 'CEOF
29275   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29276   rm -f $tmp/in
29277   mv $tmp/out $tmp/in
29278 ' >>$CONFIG_STATUS
29279   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29280   rm -f conftest.defines
29281   mv conftest.tail conftest.defines
29282 done
29283 rm -f conftest.defines
29284 echo '  fi # grep' >>$CONFIG_STATUS
29285 echo >>$CONFIG_STATUS
29286
29287 # Break up conftest.undefs because some shells have a limit on the size
29288 # of here documents, and old seds have small limits too (100 cmds).
29289 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29290 rm -f conftest.tail
29291 while grep . conftest.undefs >/dev/null
29292 do
29293   # Write a limited-size here document to $tmp/undefs.sed.
29294   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29295   # Speed up: don't consider the non `#undef'
29296   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29297   # Work around the forget-to-reset-the-flag bug.
29298   echo 't clr' >>$CONFIG_STATUS
29299   echo ': clr' >>$CONFIG_STATUS
29300   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29301   echo 'CEOF
29302   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29303   rm -f $tmp/in
29304   mv $tmp/out $tmp/in
29305 ' >>$CONFIG_STATUS
29306   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29307   rm -f conftest.undefs
29308   mv conftest.tail conftest.undefs
29309 done
29310 rm -f conftest.undefs
29311
29312 cat >>$CONFIG_STATUS <<\_ACEOF
29313   # Let's still pretend it is `configure' which instantiates (i.e., don't
29314   # use $as_me), people would be surprised to read:
29315   #    /* config.h.  Generated by config.status.  */
29316   if test x"$ac_file" = x-; then
29317     echo "/* Generated by configure.  */" >$tmp/config.h
29318   else
29319     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29320   fi
29321   cat $tmp/in >>$tmp/config.h
29322   rm -f $tmp/in
29323   if test x"$ac_file" != x-; then
29324     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29325       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29326 echo "$as_me: $ac_file is unchanged" >&6;}
29327     else
29328       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29330          X"$ac_file" : 'X\(//\)[^/]' \| \
29331          X"$ac_file" : 'X\(//\)$' \| \
29332          X"$ac_file" : 'X\(/\)' \| \
29333          .     : '\(.\)' 2>/dev/null ||
29334 echo X"$ac_file" |
29335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29336           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29337           /^X\(\/\/\)$/{ s//\1/; q; }
29338           /^X\(\/\).*/{ s//\1/; q; }
29339           s/.*/./; q'`
29340       { if $as_mkdir_p; then
29341     mkdir -p "$ac_dir"
29342   else
29343     as_dir="$ac_dir"
29344     as_dirs=
29345     while test ! -d "$as_dir"; do
29346       as_dirs="$as_dir $as_dirs"
29347       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29349          X"$as_dir" : 'X\(//\)[^/]' \| \
29350          X"$as_dir" : 'X\(//\)$' \| \
29351          X"$as_dir" : 'X\(/\)' \| \
29352          .     : '\(.\)' 2>/dev/null ||
29353 echo X"$as_dir" |
29354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29355           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29356           /^X\(\/\/\)$/{ s//\1/; q; }
29357           /^X\(\/\).*/{ s//\1/; q; }
29358           s/.*/./; q'`
29359     done
29360     test ! -n "$as_dirs" || mkdir $as_dirs
29361   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29362 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29363    { (exit 1); exit 1; }; }; }
29364
29365       rm -f $ac_file
29366       mv $tmp/config.h $ac_file
29367     fi
29368   else
29369     cat $tmp/config.h
29370     rm -f $tmp/config.h
29371   fi
29372 # Compute $ac_file's index in $config_headers.
29373 _am_stamp_count=1
29374 for _am_header in $config_headers :; do
29375   case $_am_header in
29376     $ac_file | $ac_file:* )
29377       break ;;
29378     * )
29379       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29380   esac
29381 done
29382 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29383 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29384          X$ac_file : 'X\(//\)[^/]' \| \
29385          X$ac_file : 'X\(//\)$' \| \
29386          X$ac_file : 'X\(/\)' \| \
29387          .     : '\(.\)' 2>/dev/null ||
29388 echo X$ac_file |
29389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29390           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29391           /^X\(\/\/\)$/{ s//\1/; q; }
29392           /^X\(\/\).*/{ s//\1/; q; }
29393           s/.*/./; q'`/stamp-h$_am_stamp_count
29394 done
29395 _ACEOF
29396 cat >>$CONFIG_STATUS <<\_ACEOF
29397
29398 #
29399 # CONFIG_COMMANDS section.
29400 #
29401 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29402   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29403   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29404   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29405 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29406          X"$ac_dest" : 'X\(//\)[^/]' \| \
29407          X"$ac_dest" : 'X\(//\)$' \| \
29408          X"$ac_dest" : 'X\(/\)' \| \
29409          .     : '\(.\)' 2>/dev/null ||
29410 echo X"$ac_dest" |
29411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29412           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29413           /^X\(\/\/\)$/{ s//\1/; q; }
29414           /^X\(\/\).*/{ s//\1/; q; }
29415           s/.*/./; q'`
29416   { if $as_mkdir_p; then
29417     mkdir -p "$ac_dir"
29418   else
29419     as_dir="$ac_dir"
29420     as_dirs=
29421     while test ! -d "$as_dir"; do
29422       as_dirs="$as_dir $as_dirs"
29423       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29425          X"$as_dir" : 'X\(//\)[^/]' \| \
29426          X"$as_dir" : 'X\(//\)$' \| \
29427          X"$as_dir" : 'X\(/\)' \| \
29428          .     : '\(.\)' 2>/dev/null ||
29429 echo X"$as_dir" |
29430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29431           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29432           /^X\(\/\/\)$/{ s//\1/; q; }
29433           /^X\(\/\).*/{ s//\1/; q; }
29434           s/.*/./; q'`
29435     done
29436     test ! -n "$as_dirs" || mkdir $as_dirs
29437   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29438 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29439    { (exit 1); exit 1; }; }; }
29440
29441   ac_builddir=.
29442
29443 if test "$ac_dir" != .; then
29444   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29445   # A "../" for each directory in $ac_dir_suffix.
29446   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29447 else
29448   ac_dir_suffix= ac_top_builddir=
29449 fi
29450
29451 case $srcdir in
29452   .)  # No --srcdir option.  We are building in place.
29453     ac_srcdir=.
29454     if test -z "$ac_top_builddir"; then
29455        ac_top_srcdir=.
29456     else
29457        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29458     fi ;;
29459   [\\/]* | ?:[\\/]* )  # Absolute path.
29460     ac_srcdir=$srcdir$ac_dir_suffix;
29461     ac_top_srcdir=$srcdir ;;
29462   *) # Relative path.
29463     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29464     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29465 esac
29466
29467 # Do not use `cd foo && pwd` to compute absolute paths, because
29468 # the directories may not exist.
29469 case `pwd` in
29470 .) ac_abs_builddir="$ac_dir";;
29471 *)
29472   case "$ac_dir" in
29473   .) ac_abs_builddir=`pwd`;;
29474   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29475   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29476   esac;;
29477 esac
29478 case $ac_abs_builddir in
29479 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29480 *)
29481   case ${ac_top_builddir}. in
29482   .) ac_abs_top_builddir=$ac_abs_builddir;;
29483   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29484   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29485   esac;;
29486 esac
29487 case $ac_abs_builddir in
29488 .) ac_abs_srcdir=$ac_srcdir;;
29489 *)
29490   case $ac_srcdir in
29491   .) ac_abs_srcdir=$ac_abs_builddir;;
29492   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29493   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29494   esac;;
29495 esac
29496 case $ac_abs_builddir in
29497 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29498 *)
29499   case $ac_top_srcdir in
29500   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29501   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29502   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29503   esac;;
29504 esac
29505
29506
29507   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29508 echo "$as_me: executing $ac_dest commands" >&6;}
29509   case $ac_dest in
29510     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29511   # Strip MF so we end up with the name of the file.
29512   mf=`echo "$mf" | sed -e 's/:.*$//'`
29513   # Check whether this is an Automake generated Makefile or not.
29514   # We used to match only the files named `Makefile.in', but
29515   # some people rename them; so instead we look at the file content.
29516   # Grep'ing the first line is not enough: some people post-process
29517   # each Makefile.in and add a new line on top of each file to say so.
29518   # So let's grep whole file.
29519   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29520     dirpart=`(dirname "$mf") 2>/dev/null ||
29521 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29522          X"$mf" : 'X\(//\)[^/]' \| \
29523          X"$mf" : 'X\(//\)$' \| \
29524          X"$mf" : 'X\(/\)' \| \
29525          .     : '\(.\)' 2>/dev/null ||
29526 echo X"$mf" |
29527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29528           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29529           /^X\(\/\/\)$/{ s//\1/; q; }
29530           /^X\(\/\).*/{ s//\1/; q; }
29531           s/.*/./; q'`
29532   else
29533     continue
29534   fi
29535   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
29536   # Extract the definition of DEP_FILES from the Makefile without
29537   # running `make'.
29538   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29539   test -z "$DEPDIR" && continue
29540   # When using ansi2knr, U may be empty or an underscore; expand it
29541   U=`sed -n 's/^U = //p' < "$mf"`
29542   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
29543   # We invoke sed twice because it is the simplest approach to
29544   # changing $(DEPDIR) to its actual value in the expansion.
29545   for file in `sed -n '
29546     /^DEP_FILES = .*\\\\$/ {
29547       s/^DEP_FILES = //
29548       :loop
29549         s/\\\\$//
29550         p
29551         n
29552         /\\\\$/ b loop
29553       p
29554     }
29555     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
29556        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29557     # Make sure the directory exists.
29558     test -f "$dirpart/$file" && continue
29559     fdir=`(dirname "$file") 2>/dev/null ||
29560 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29561          X"$file" : 'X\(//\)[^/]' \| \
29562          X"$file" : 'X\(//\)$' \| \
29563          X"$file" : 'X\(/\)' \| \
29564          .     : '\(.\)' 2>/dev/null ||
29565 echo X"$file" |
29566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29568           /^X\(\/\/\)$/{ s//\1/; q; }
29569           /^X\(\/\).*/{ s//\1/; q; }
29570           s/.*/./; q'`
29571     { if $as_mkdir_p; then
29572     mkdir -p $dirpart/$fdir
29573   else
29574     as_dir=$dirpart/$fdir
29575     as_dirs=
29576     while test ! -d "$as_dir"; do
29577       as_dirs="$as_dir $as_dirs"
29578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29580          X"$as_dir" : 'X\(//\)[^/]' \| \
29581          X"$as_dir" : 'X\(//\)$' \| \
29582          X"$as_dir" : 'X\(/\)' \| \
29583          .     : '\(.\)' 2>/dev/null ||
29584 echo X"$as_dir" |
29585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29587           /^X\(\/\/\)$/{ s//\1/; q; }
29588           /^X\(\/\).*/{ s//\1/; q; }
29589           s/.*/./; q'`
29590     done
29591     test ! -n "$as_dirs" || mkdir $as_dirs
29592   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
29593 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
29594    { (exit 1); exit 1; }; }; }
29595
29596     # echo "creating $dirpart/$file"
29597     echo '# dummy' > "$dirpart/$file"
29598   done
29599 done
29600  ;;
29601   esac
29602 done
29603 _ACEOF
29604
29605 cat >>$CONFIG_STATUS <<\_ACEOF
29606
29607 { (exit 0); exit 0; }
29608 _ACEOF
29609 chmod +x $CONFIG_STATUS
29610 ac_clean_files=$ac_clean_files_save
29611
29612
29613 # configure is writing to config.log, and then calls config.status.
29614 # config.status does its own redirection, appending to config.log.
29615 # Unfortunately, on DOS this fails, as config.log is still kept open
29616 # by configure, so config.status won't be able to write to it; its
29617 # output is simply discarded.  So we exec the FD to /dev/null,
29618 # effectively closing config.log, so it can be properly (re)opened and
29619 # appended to by config.status.  When coming back to configure, we
29620 # need to make the FD available again.
29621 if test "$no_create" != yes; then
29622   ac_cs_success=:
29623   ac_config_status_args=
29624   test "$silent" = yes &&
29625     ac_config_status_args="$ac_config_status_args --quiet"
29626   exec 5>/dev/null
29627   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29628   exec 5>>config.log
29629   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29630   # would make configure fail if this is the last instruction.
29631   $ac_cs_success || { (exit 1); exit 1; }
29632 fi
29633
29634
29635 { echo "$as_me:$LINENO:
29636
29637 $PACKAGE_STRING
29638
29639 $FEATURES_TXT" >&5
29640 echo "$as_me:
29641
29642 $PACKAGE_STRING
29643
29644 $FEATURES_TXT" >&6;}